[uClibc] buildroot and STAGING_DIR nonstandard fails crti.o

Allan Clark allanc at chickenandporn.com
Wed Dec 8 00:02:22 UTC 2004


Hi;

Has anyone had the same problem I have: using anything for STAGING_DIR 
except the default, and the build process doesn't build a crti.o, 
failing the build when it's needed later.

This is reproduced quite faithfully as:
1) download buildroot
2) configure
3) make -- works

or

3) make STAGING_DIR=/opt/arm-uclibc  -- fails

My intention is to get a usable gcc/uclibc toolchain outside of 
buildroot that has a pathname shorter than 
/home/allanc/buildroot/staging_dir/yada/yada/yada

Am I going about this the wrong way?  Should I just use Thomas's patch?

Allan


.config:  (grep -v '^#')

> BR2_HAVE_DOT_CONFIG=y
> BR2_arm=y
> BR2_ARCH="arm"
> BR2_WGET="wget --passive-ftp -nd"
> BR2_KERNEL_HEADERS_2_4_27=y
> BR2_DEFAULT_KERNEL_HEADERS="2.4.27"
> BR2_UCLIBC_VERSION_SNAPSHOT=y
> BR2_USE_UCLIBC_SNAPSHOT="snapshot"
> BR2_BINUTILS_VERSION_2_15_91_0_2=y
> BR2_BINUTILS_VERSION="2.15.91.0.2"
> BR2_GCC_VERSION_3_4_2=y
> BR2_GCC_VERSION="3.4.2"
> BR2_GCC_USE_SJLJ_EXCEPTIONS="--enable-sjlj-exceptions"
> BR2_EXTRA_GCC_CONFIG_OPTIONS=""
> BR2_INSTALL_LIBSTDCPP=y
> BR2_ENABLE_MULTILIB=y
> BR2_SOFT_FLOAT=y
> BR2_TARGET_OPTIMIZATION=""
> BR2_PACKAGE_BUSYBOX=y
> BR2_PACKAGE_BUSYBOX_SNAPSHOT=y
> BR2_TARGET_ROOTFS_EXT2=y


Error:

> /opt/arm-uclibc-b/toolchain_build_arm_nofpu/gcc-3.4.2-final/gcc/xgcc 
> -B/opt/arm-uclibc-b/toolchain_build_arm_nofpu/gcc-3.4.2-final/gcc/ 
> -B/opt/arm-uclibc/arm-linux-uclibc/bin/ 
> -B/opt/arm-uclibc/arm-linux-uclibc/lib/ -isystem 
> /opt/arm-uclibc/arm-linux-uclibc/include -isystem 
> /opt/arm-uclibc/arm-linux-uclibc/sys-include -O2  -DIN_GCC 
> -DCROSS_COMPILE  -DUSE_UCLIBC -W -Wall -Wwrite-strings 
> -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  
> -isystem ./include  -fomit-frame-pointer -fPIC -g0 -DHAVE_GTHR_DEFAULT 
> -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -shared 
> -nodefaultlibs -Wl,--soname=libgcc_s.so.1 
> -Wl,--version-script=libgcc/./libgcc.map -o libgcc_s.so.1   
> libgcc/./_udivsi3.o libgcc/./_divsi3.o libgcc/./_umodsi3.o 
> libgcc/./_modsi3.o libgcc/./_dvmd_lnx.o  [...]  libgcc/./unwind-c.o 
> -lc && rm -f libgcc_s.so && ln -s libgcc_s.so.1 libgcc_s.so
> /opt/arm-uclibc/arm-linux-uclibc/bin/ld: crti.o: No such file: No such 
> file or directory
> collect2: ld returned 1 exit status
> make[3]: *** [libgcc_s.so] Error 1
> make[3]: Leaving directory 
> `/opt/arm-uclibc-b/toolchain_build_arm_nofpu/gcc-3.4.2-final/gcc'

(No, there is no attempt to build crti.o in the build log)





More information about the uClibc mailing list