[uClibc]buildroot && fileutils

Anders Eriksson aeriksson at fastmail.fm
Sun Dec 15 09:47:47 UTC 2002


Trying buildroot from yesterday's cvs I get:

(cd /home/ander/projects/uclibc/buildroot/build/findutils-4.1.7.orig; 
rm -f config.cache; CC=/home/ander/projects/uclibc/buildroot/build/sta
ging_dir/bin/i386-uclibc-gcc \
    CFLAGS=-D_POSIX_SOURCE ./configure --build=i386 --host=i386 
--prefix=/usr --disable-nls \
    --mandir=/junk --infodir=/junk --localstatedir=/var/lib/locate \
    --libexecdir='${prefix}/lib/locate' \
);
checking build system type... i386-pc-none
checking host system type... i386-pc-none
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for mawk... no
checking for gawk... gawk
checking whether make sets ${MAKE}... yes
checking for i386-gcc... /home/ander/projects/uclibc/buildroot/build/s
taging_dir/bin/i386-uclibc-gcc
checking for C compiler default output... a.out
checking whether the C compiler works... configure: error: cannot run 
C compiled programs.
If you meant to cross compile, use `--host'.
make: *** [/home/ander/projects/uclibc/buildroot/build/findutils-4.1.7
.orig/.configured] Error 1


Adding --host=$(ARCH) to the configure line eems to cure that 
problem, but later on I get:

(cd /home/ander/projects/uclibc/buildroot/build/findutils-4.1.7.orig; 
rm -f config.cache; CC=/home/ander/projects/uclibc/buildroot/build/sta
ging_dir/bin/i386-uclibc-gcc \
    CFLAGS=-D_POSIX_SOURCE ./configure --host=i386 --prefix=/usr 
--disable-nls \
    --mandir=/junk --infodir=/junk --localstatedir=/var/lib/locate \
    --libexecdir='${prefix}/lib/locate' \
);
configure: WARNING: If you wanted to set the --build type, don't use 
--host.
    If a cross compiler is detected then cross compile mode will be 
used.
checking build system type... ./config.guess: ./dummy-6948: No such 
file or directory
i686-pc-linux-gnu
checking host system type... i386-pc-none
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for mawk... no
checking for gawk... gawk
checking whether make sets ${MAKE}... yes
checking for i386-gcc... /home/ander/projects/uclibc/buildroot/build/s
taging_dir/bin/i386-uclibc-gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for executable suffix... 
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether /home/ander/projects/uclibc/buildroot/build/staging_d
ir/bin/i386-uclibc-gcc accepts -g... yes
checking how to run the C preprocessor... /home/ander/projects/uclibc/
buildroot/build/staging_dir/bin/i386-uclibc-gcc -E
checking for style of include used by make... #
checking dependency style of /home/ander/projects/uclibc/buildroot/bui
ld/staging_dir/bin/i386-uclibc-gcc... gcc
checking how to run the C preprocessor... /home/ander/projects/uclibc/
buildroot/build/staging_dir/bin/i386-uclibc-gcc -E
checking for AIX... no
checking for minix/config.h... no
checking for strerror in -lcposix... no
checking for /home/ander/projects/uclibc/buildroot/build/staging_dir/b
in/i386-uclibc-gcc option to accept ANSI C... none needed
checking for /home/ander/projects/uclibc/buildroot/build/staging_dir/b
in/i386-uclibc-gcc option to accept ANSI C... none needed
checking for function prototypes... yes
checking for ANSI C header files... yes
checking for string.h... yes
checking for a BSD compatible install... /usr/bin/install -c
checking for i386-ranlib... no
checking for ranlib... ranlib
checking whether make sets ${MAKE}... (cached) yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for _LARGE_FILES value needed for large files... no
checking whether byte ordering is bigendian... configure: error: 
cannot run test program while cross compiling
make: *** [/home/ander/projects/uclibc/buildroot/build/findutils-4.1.7
.orig/.configured] Error 1


Which leads me to suspect that the previous fix was not the right 
thing. Anything of this looks familiar?

/Anders




More information about the uClibc mailing list