2008-08-14 11:27:17     search dir for bfin-uclinux-gcc

Document created by Aaronwu Employee on Aug 7, 2013
Version 1Show Document
  • View in full screen mode

2008-08-14 11:27:17     search dir for bfin-uclinux-gcc

Mikael Bohman (SWEDEN)

Message: 60479   




I have succed with installing and flashing the precompiled 2008 uBoot and uClinux to my BF533 stamp board, and it works.


I have also downloaded the toolchain as a rpm package, converted it with alien, and installed it to my Ubuntu 8.0x.


My problem comes then trying to compile files with bfin-uclinux-gcc.


The compiler does not find the directories for common .h files as <stdio.h>


A printout of my search dirs look like:


$ bfin-uclinux-gcc -print-search-dirs

installation: /opt/uClinux/bfin-uclinux/lib/gcc/bfin-uclinux/4.1.2/

program: =/opt/uClinux/bfin-uclinux/libexec/gcc/bfin-uclinux/4.1.2/:/opt/uClinux/bfin-uclinux/libexec/gcc/bfin-uclinux/4.1.2/:/opt/uClinux/bfin-uclinux/libexec/gcc/bfin-uclinux/:/opt/uClinux/bfin-uclinux/lib/gcc/bfin-uclinux/4.1.2/:/opt/uClinux/bfin-uclinux/lib/gcc/bfin-uclinux/:/usr/libexec/gcc/bfin-uclinux/4.1.2/:/usr/libexec/gcc/bfin-uclinux/:/usr/lib/gcc/bfin-uclinux/4.1.2/:/usr/lib/gcc/bfin-uclinux/:/opt/uClinux/bfin-uclinux/lib/../bfin-uclinux/bin/bfin-uclinux/4.1.2/:/opt/uClinux/bfin-uclinux/lib/../bfin-uclinux/bin/

bibliotek: =/opt/uClinux/bfin-uclinux/lib/gcc/bfin-uclinux/4.1.2/:/usr/lib/gcc/bfin-uclinux/4.1.2/:/opt/uClinux/bfin-uclinux/lib/../bfin-uclinux/lib/bfin-uclinux/4.1.2/:/opt/uClinux/bfin-uclinux/lib/../bfin-uclinux/lib/:/opt/uClinux/bfin-uclinux/bfin-uclinux/runtime/lib/bfin-uclinux/4.1.2/:/opt/uClinux/bfin-uclinux/bfin-uclinux/runtime/lib/:/opt/uClinux/bfin-uclinux/bfin-uclinux/runtime/usr/lib/bfin-uclinux/4.1.2/:/opt/uClinux/bfin-uclinux/bfin-uclinux/runtime/usr/lib/


and for the example with stdio.h, the path to the standard gcc stdio.h would be /usr/include/ on my computer


When I add that one, the next .h file is missing like <stdarg.h> that is placed in the dir: /usr/lib/gcc/i486-linux-gnu/4.2/include


... and so on and so on.


What is the error? What am i missing in my installation ?


(Compiling the 'Hello world' with the standard gcc works fine without any modifications)




/Linux rookie & BF rookie but better in MATLAB/Labview and Signal Processing. Do_not_like = 'Windows*';








2008-08-14 11:38:27     Re: search dir for bfin-uclinux-gcc

Mike Frysinger (UNITED STATES)

Message: 60480   


you didnt install all the necessary files.  please review the documentation:



the FAQ also explains this (stdarg.h):





2008-08-15 20:31:50     Re: search dir for bfin-uclinux-gcc

Mikael Bohman (SWEDEN)

Message: 60515   


Thanks !


Solved the problem with the Toolchain.