[uClibc] [help] missing dirs in *-linux-uclibc-gcc default search list

ZHUANGYUYAO ihollo at tom.com
Thu Sep 9 15:36:06 UTC 2004


Hi,

I just compiled gcc-3.3.4 using the latest buildroot cvs update 
(ARCH=i386), the compilation finished successfully, but I noticed that 
library-path $(STAGING_DIR)/usr/lib:$(STAGING_DIR)/usr/local/lib and 
include-path $(TAGING_DIR)/usr/include:$(STAGING_DIR)/usr/local/include 
no longer exist  in  $(ARCH)-linux-uclibc-gcc's default search-dir list.

some of my source code failed to compile, the compiler complains that 
some header files are missed. Adding -L and -I to Makefiles needs huge 
work, I just want to find a way to put the dirs back into the default 
search list.

I'v searched google but found nothing helpful. Could anyone help me to 
solve such a problem?

Thanks very much!

debian:/opt/project/buildroot# 
../buildfarm/build_i386/staging_dir/bin/i386-linux-uclibc-gcc -v hello.c 
-o hello
Reading specs from 
/opt/project/buildfarm/build_i386/staging_dir/bin-ccache/../lib/gcc/i386-linux-uclibc/3.3.4/specs
Configured with: 
/opt/project/buildfarm/toolchain_build_i386/gcc-3.3.4/configure 
--prefix=/opt/project/buildfarm/build_i386/staging_dir 
--build=i386-pc-linux-gnu --host=i386-pc-linux-gnu 
--target=i386-linux-uclibc --enable-languages=c,c++ --enable-shared 
--disable-__cxa_atexit --enable-target-optspace --with-gnu-ld 
--disable-nls --enable-multilib --enable-sjlj-exceptions : 
(reconfigured) 
/opt/project/buildfarm/toolchain_build_i386/gcc-3.3.4/configure 
--prefix=/opt/project/buildfarm/build_i386/staging_dir 
--build=i386-pc-linux-gnu --host=i386-pc-linux-gnu 
--target=i386-linux-uclibc --enable-languages=c,c++ --enable-shared 
--disable-__cxa_atexit --enable-target-optspace --with-gnu-ld 
--disable-nls --enable-multilib --enable-sjlj-exceptions
.......

#include "..." search starts here:
#include <...> search starts here:
 /opt/project/buildfarm/build_i386/staging_dir/bin-ccache/../lib/gcc/i386-linux-uclibc/3.3.4/include
 /opt/project/buildfarm/build_i386/staging_dir/bin-ccache/../lib/gcc/i386-linux-uclibc/3.3.4/../../../../i386-linux-uclibc/sys-include
End of search list.
.......
 ****** (usr/include and usr/local/include are missing in the search 
list) ******

here is the output of gcc-3.3.4 (Debian 1:3.3.4-11) in my host machine.
debian:/opt/project/buildroot# gcc -v hello.c -o hello
Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.4/specs
Configured with: ../src/configure -v 
--enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr 
--mandir=/usr/share/man --infodir=/usr/share/info 
--with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared 
--with-system-zlib --enable-nls --without-included-gettext 
--enable-__cxa_atexit --enable-clocale=gnu --enable-debug 
--enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i486-linux
Thread model: posix
......
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /usr/lib/gcc-lib/i486-linux/3.3.4/include
 /usr/include
End of search list.
......
 ****** (usr/include and usr/local/include are included in the search 
list) ******








More information about the uClibc mailing list