Hello Li,
man ldconfig
edit /etc/ld.so.conf
export LD_RUN_PATH with existing and new stuff
export LD_LIBRARY_PATH with existing and new stuff
WARNING: you might break your environment so clone your existing
hard-drive before starting.
Once you become aware of what you can and cannot do, you will need less
driving cloning.
Cheers :)
On 10/08/2015 02:38 AM, 李攀登 wrote:
> Hello LFS-Supporter:
> My name is Li Pandeng,from chinese.my english is poor.I'm sorry for
> something that i can't express clearly.
> I'm newer to LFS,but is very interested with LFS,so i do build LFS step
> by step following LFS-BOOK-6.6.unfortunatly,i met some difficulties,and it
> took my three days,until now,i don't deal with it.i have poor knowledge about
> Linux,but i really want to handle it.so i am very looking foward your reply!
> here is version check list:
> bash, version 4.3.11(1)-release
> /bin/sh -> /bin/dash
> Binutils: (GNU Binutils for Ubuntu) 2.24
> bison (GNU Bison) 3.0.2
> /usr/bin/yacc -> /usr/bin/bison.yacc
> bzip2, Version 1.0.6, 6-Sept-2010.
> Coreutils: 8.21
> diff (GNU diffutils) 3.3
> find (GNU findutils) 4.4.2
> GNU Awk 4.0.1
> /usr/bin/awk -> /usr/bin/gawk
> gcc (Ubuntu/Linaro 4.4.7-8ubuntu1) 4.4.7
> version-check.sh: line 22: /lib/libc.so.6: No such file or directory
> grep (GNU grep) 2.16
> gzip 1.6
> Linux version 3.19.0-30-generic (buildd@lgw01-56) (gcc version 4.8.2
> (Ubuntu 4.8.2-19ubuntu1) ) #33~14.04.1-Ubuntu SMP Tue Sep 22 09:27:00 UTC
> 2015
> m4 (GNU M4) 1.4.17
> GNU Make 3.81
> GNU patch 2.7.1
> Perl version='5.18.2';
> sed (GNU sed) 4.2.2
> tar (GNU tar) 1.27.1
> Texinfo: makeinfo (GNU texinfo) 5.2
> Compilation OK
>
> the output lists illustrate the system don't have libc.so.6,but when run
> "ld --verbose | grep SEARCH",I find libc.so.6 in /lib/x86_64-linux-gnu.so the
> version check is ok.the i build binutils as the book says and succeeded.but
> there is a little problem.there is only libiberty.a in /tools/lib,and the
> book 6.13 says there are libiberty.a libbfd.a libopcodes.a. so i copy
> libbfd.a and libopcodes.a from gcc-build to /tools/lib.
> then i start build gcc.this is where i met problem.i doubt it's ubuntu
> environment problems,but it's so complex that i can't figure it out what is
> wrong.i'm working with ubuntu 14.04 and my machine is 64 bits.
> i put the configure.log and make output below,and highlight the
> information that i doubt.and hoping someone give me some help!
>
> here is the part of configure.log,there are some errors over there,but i
> don't know whether it impact gcc compile.
> $ ../gcc-4.4.3/configure --target=x86_64-lfs-linux-gnu --prefix=/tools
> --disable-nls --disable-shared --disable-multilib --disable-decimal-float
> --disable-threads --disable-libmudflap --disable-libssp --disable-libgomp
> --enable-languages=c
>
> ## --------- ##
> ## Platform. ##
> ## --------- ##
>
> hostname = LiPD
> uname -m = x86_64
> uname -r = 3.19.0-30-generic
> uname -s = Linux
> uname -v = #33~14.04.1-Ubuntu SMP Tue Sep 22 09:27:00 UTC 2015
>
> /usr/bin/uname -p = unknown
> /bin/uname -X = unknown
>
> /bin/arch = unknown
> /usr/bin/arch -k = unknown
> /usr/convex/getsysinfo = unknown
> hostinfo = unknown
> /bin/machine = unknown
> /usr/bin/oslevel = unknown
> /bin/universe = unknown
>
> PATH: /tools/bin
> PATH: /bin
> PATH: /usr/bin
>
> ## ----------- ##
> ## Core tests. ##
> ## ----------- ##
>
> configure:1563: checking build system type
> configure:1581: result: x86_64-unknown-linux-gnu
> configure:1616: checking host system type
> configure:1630: result: x86_64-unknown-linux-gnu
> configure:1638: checking target system type
> configure:1652: result: x86_64-lfs-linux-gnu
> configure:1696: checking for a BSD-compatible install
> configure:1762: result: /usr/bin/install -c
> configure:1773: checking whether ln works
> configure:1795: result: yes
> configure:1799: checking whether ln -s works
> configure:1803: result: yes
> configure:3002: checking for gcc
> configure:3018: found /usr/bin/gcc
> configure:3028: result: gcc
> configure:3274: checking for C compiler version
> configure:3277: gcc --version </dev/null >&5
> gcc (Ubuntu/Linaro 4.4.7-8ubuntu1) 4.4.7
>
>
> configure:3757: gcc -c -g -O2 conftest.c >&5
> conftest.c:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before
> 'me'
>
> configure:4209: g++ -c -g -O2 conftest.cc >&5
> conftest.cc: In function 'int main()':
> conftest.cc:13: error: 'exit' was not declared in this scope
> configure:4215: $? = 1
> configure: failed program was:
> | /* confdefs.h. */
> |
> | #define PACKAGE_NAME ""
> | #define PACKAGE_TARNAME ""
> | #define PACKAGE_VERSION ""
> | #define PACKAGE_STRING ""
> | #define PACKAGE_BUGREPORT ""
> | /* end confdefs.h. */
> |
> | int
> | main ()
> | {
> | exit (42);
> | ;
> | return 0;
> | }
> configure:4164: g++ -c -g -O2 conftest.cc >&5
> conftest.cc:9: error: 'void std::exit(int)' should have been declared inside
> 'std'
> configure:4170: $? = 1
> configure: failed program was:
> | /* confdefs.h. */
> |
> | #define PACKAGE_NAME ""
> | #define PACKAGE_TARNAME ""
> | #define PACKAGE_VERSION ""
> | #define PACKAGE_STRING ""
> | #define PACKAGE_BUGREPORT ""
> | /* end confdefs.h. */
> | extern "C" void std::exit (int) throw (); using std::exit;
> | #include <stdlib.h>
> | int
> | main ()
> | {
> | exit (42);
> | ;
> | return 0;
> | }
> configure:4164: g++ -c -g -O2 conftest.cc >&5
> conftest.cc:9: error: 'void std::exit(int)' should have been declared inside
> 'std'
> In file included from conftest.cc:10:
> /usr/include/stdlib.h:543: error: declaration of 'void std::exit(int) throw
> ()' throws different exceptions
> conftest.cc:9: error: from previous declaration 'void std::exit(int)'
> configure:4170: $? = 1
> configure: failed program was:
> | /* confdefs.h. */
>
> configure:4912: gcc -c -g -O2 -I/include -I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp
> -I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr conftest.c >&5
> conftest.c:12: fatal error: ppl_c.h: No such file or directory
> compilation terminated.
> configure:4918: $? = 1
> configure: failed program was:
> | /* confdefs.h. */
>
> configure:5031: gcc -c -g -O2 -I/include -DCLOOG_PPL_BACKEND
> -I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp -I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr
> conftest.c >&5
> conftest.c:12: fatal error: cloog/cloog.h: No such file or directory
> compilation terminated.
> configure:5037: $? = 1
> configure: failed program was:
> | /* confdefs.h. */
> |
> | #define PACKAGE_NAME ""
> | #define PACKAGE_TARNAME ""
> | #define PACKAGE_VERSION ""
> | #define PACKAGE_STRING ""
> | #define PACKAGE_BUGREPORT ""
> | #ifdef __cplusplus
> | extern "C" void exit (int) throw ();
> | #endif
> | /* end confdefs.h. */
>
> here is part of make output:
> cat ../../gcc-4.4.3/gcc/config/i386/pmm_malloc.h > mm_malloc.h
> if [ -d include ] ; then true; else mkdir include; chmod a+rx include; fi
> if [ -d include-fixed ] ; then true; else mkdir include-fixed; chmod a+rx
> include-fixed; fi
> for file in .. ../../gcc-4.4.3/gcc/ginclude/float.h
> ../../gcc-4.4.3/gcc/ginclude/iso646.h ../../gcc-4.4.3/gcc/ginclude/stdarg.h
> ../../gcc-4.4.3/gcc/ginclude/stdbool.h ../../gcc-4.4.3/gcc/ginclude/stddef.h
> ../../gcc-4.4.3/gcc/ginclude/varargs.h ../../gcc-4.4.3/gcc/ginclude/stdfix.h
> ../../gcc-4.4.3/gcc/config/i386/cpuid.h
> ../../gcc-4.4.3/gcc/config/i386/mmintrin.h
> ../../gcc-4.4.3/gcc/config/i386/mm3dnow.h
> ../../gcc-4.4.3/gcc/config/i386/xmmintrin.h
> ../../gcc-4.4.3/gcc/config/i386/emmintrin.h
> ../../gcc-4.4.3/gcc/config/i386/pmmintrin.h
> ../../gcc-4.4.3/gcc/config/i386/tmmintrin.h
> ../../gcc-4.4.3/gcc/config/i386/ammintrin.h
> ../../gcc-4.4.3/gcc/config/i386/smmintrin.h
> ../../gcc-4.4.3/gcc/config/i386/nmmintrin.h
> ../../gcc-4.4.3/gcc/config/i386/bmmintrin.h
> ../../gcc-4.4.3/gcc/config/i386/mmintrin-common.h
> ../../gcc-4.4.3/gcc/config/i386/wmmintrin.h
> ../../gcc-4.4.3/gcc/config/i386/immintrin.h
> ../../gcc-4.4.3/gcc/config/i386/x86intrin.h
> ../../gcc-4.4.3/gcc/config/i386/avxintrin.h ../../gcc-4.
4.3/gcc/config/i386/cross-stdarg.h mm_malloc.h; do \
> if [ X$file != X.. ]; then \
> realfile=`echo $file | sed -e 's|.*/\([^/]*\)$|\1|'`; \
> echo timestamp > include/$realfile; \
> rm -f include/$realfile; \
> cp $file include; \
> chmod a+r include/$realfile; \
> fi; \
> done
> rm -f include/unwind.h
> cp ../../gcc-4.4.3/gcc/unwind-generic.h include/unwind.h
> set -e; for ml in `cat fixinc_list`; do \
> sysroot_headers_suffix=`echo ${ml} | sed -e 's/;.*$//'`; \
> multi_dir=`echo ${ml} | sed -e 's/^[^;]*;//'`; \
> fix_dir=include-fixed${multi_dir}; \
> if [ -f `echo
> /tools/lib/gcc/x86_64-lfs-linux-gnu/4.4.3/../../../../x86_64-lfs-linux-gnu/sys-include
> | sed -e :a -e 's,[^/]*/\.\.\/,,' -e ta`/limits.h ] ; then \
> cat ../../gcc-4.4.3/gcc/limitx.h ../../gcc-4.4.3/gcc/glimits.h
> ../../gcc-4.4.3/gcc/limity.h > tmp-xlimits.h; \
> else \
> cat ../../gcc-4.4.3/gcc/glimits.h > tmp-xlimits.h; \
> fi; \
> /bin/bash ../../gcc-4.4.3/gcc/../mkinstalldirs ${fix_dir}; \
> chmod a+rx ${fix_dir} || true; \
> rm -f ${fix_dir}/limits.h; \
> mv tmp-xlimits.h ${fix_dir}/limits.h; \
> chmod a+r ${fix_dir}/limits.h; \
> done
> rm -f include-fixed/README
> cp ../../gcc-4.4.3/gcc/../fixincludes/README-fixinc include-fixed/README
> chmod a+r include-fixed/README
> echo timestamp > stmp-int-hdrs
> TARGET_CPU_DEFAULT="" \
> HEADERS="auto-host.h ansidecl.h" DEFINES="USED_FOR_TARGET " \
> /bin/bash ../../gcc-4.4.3/gcc/mkconfig.sh tconfig.h
> cp ../../gcc-4.4.3/gcc/config/i386/sfp-machine.h sfp-machine.h
> (echo "@set version-GCC 4.4.3"; \
> if [ "" = "experimental" ]; \
> then echo "@set DEVELOPMENT"; \
> else echo "@clear DEVELOPMENT"; \
> fi) > gcc-vers.texiT
> echo @set srcdir /mnt/lfs/gcc-build/gcc/../../gcc-4.4.3/gcc >> gcc-vers.texiT
> if [ -n "(GCC) " ]; then \
> echo "@set VERSION_PACKAGE (GCC) " >> gcc-vers.texiT; \
> fi
> echo "@set BUGURL @uref{http://gcc.gnu.org/bugs.html}" >> gcc-vers.texiT; \
> mv -f gcc-vers.texiT gcc-vers.texi
> if [ xinfo = xinfo ]; then \
> makeinfo --split-size=5000000 --split-size=5000000 --no-split -I . -I
> ../../gcc-4.4.3/gcc/doc \
> -I ../../gcc-4.4.3/gcc/doc/include -o doc/cpp.info
> ../../gcc-4.4.3/gcc/doc/cpp.texi; \
> fi
> ../../gcc-4.4.3/gcc/doc/cppopts.texi:761: @itemx must follow @item
> make[2]: *** [doc/cpp.info] Error 1
> make[2]: Leaving directory `/mnt/lfs/gcc-build/gcc'
> make[1]: *** [all-gcc] Error 2
> make[1]: Leaving directory `/mnt/lfs/gcc-build'
> make: *** [all] Error 2
>
>
>
--
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