On 03/02/2016 02:07 AM, 草木 wrote:
############################################ I configure gcc-5.2.0 with the option --disable-libatomic, but I don't known the meaning of it. There are no explanation descripthon in <Installing GCC :Configuration>. could anyone can tell me ?
As noted in the book, it disables the use of the libatomic library so it won't be built.
############################################# I have configure binutils with follow configruation: ../binutils-2.25/configure --prefix=$CROSS_TOOL --target=$TARGET --with-sysroot=$SYSROOT #$CROSS_TOOL=/sig/cross-tool $TARGET=x86_64-none-linux-gnu $HOST=x86_64-unknown-linux-gnu $SYSROOT=/sig/sysroot -----the directory /sig/sysroot is emtpy after i install glibc with $../glibc-2.22.0/configure --prefix=/usr --host=$TARGET --enable-kernel=4.4 --disable-profile --enable-add-ons --with-headers=$SYSROOT/usr/include libc_cv_forced_unwind=yes libc_cv_c_cleanup=yes libc_cv_ctors_header=yes --enable-obsolete-rpc $make $make install_root=$SYSROOT install gcc-5.2.0 configure with: ../glibc-2.22.0/configure --prefix=/usr --host=$TARGET --enable-kernel=4.4 --disable-profile --enable-add-ons --with-headers=$SYSROOT/usr/include libc_cv_forced_unwind=yes libc_cv_c_cleanup=yes libc_cv_ctors_header=yes --enable-obsolete-rpc how to add /sig/sysroot/lib64 to ld(the one i just complie) lib search path? i have try the environment Variables LIBRARY_PATH,but it don't work $ echo $LIBRARY_PATH /sig/sysroot/lib64/:/sig/sysroot/usr/lib64 $ $CC test.c /sig/cross-tool/lib/gcc/x86_64-none-linux-gnu/5.2.0/../../../../x86_64-none-linux-gnu/bin/ld: cannot find crt1.o: No such file or directory /sig/cross-tool/lib/gcc/x86_64-none-linux-gnu/5.2.0/../../../../x86_64-none-linux-gnu/bin/ld: cannot find crti.o: No such file or directory collect2: error: ld returned 1 exit status but i can compile whit $ $CC -B /sig/sysroot/usr/lib64 test.c
It looks like you're not building LFS. You'd be better off asking this kind of stuff in other places, such as mailing lists for Glibc/Binutils/GCC.
####################################################### there are another question, when cross compiling glibc. what's the meaning of config configuration option: --prefix=/usr ?
Read the output of ./configure --help. -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
