Le 06-11-2014 22:12, [email protected] a écrit :
> Le 06-11-2014 21:44, Bruce Dubbs a écrit :
>
> [email protected]:
> Le 06-11-2014 16:07, Pierre Labastie a écrit : Le 06/11/2014 04:05,
> [email protected]écrit : Hi In chapter 5.7 afterwards the following
> echo 'main(){}' > dummy.c $LFS_TGT-gcc dummy.c crtn.o crti.o crt1.o could not
> be found. 1) I ran "ln -s /mnt/lfs/tools/lib/crt[i1n].o" in
> /mnt/lfs/tools/lib/gcc/i686-lfs-linux-gnu/4.9.1/ So it worked 2) I typed the
> following command as shown in the book readelf -l a.out | grep ': /tools'. I
> got nothing But I got this output: [Requesting program interpreter:
> /lib/ld-linux.so.2] when typing : grep "linux" The lfs user environment is
> likely not set up properly, yet I checked it and I re-build Linux API Headers
> and Glibc-2.20 Thanks for help, Pierre (Debian wheezy i686) Hello Pierre, It
> is hard to know what is going wrong here. Some more information can be gained
> if you type: $LFS_TGT-gcc -v -Wl,-verbose dummy.c |& tee dummy-compile.log
> You'll see what are the commands which are executed during compilation, and
> also where the linker is looking
for libraries. Maybe the problem is before compiling glibc, since it seems the
linker (from binutils) has some problem. regards Pierre
Could you look the ouput of the command in www.pierre-selosse.net/lfs
[1] [1] and let me know what you find out, if any ? the lines below have
been marked in bold egrep -o -n " /lib/ld-linux.so.2" dummy-compile.log
34: /lib/ld-linux.so.2 egrep -n "failed" dummy-compile.log 258:attempt
to open /mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.9.1/libgcc.so
failed 260:attempt to open
/mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.9.1/libc.so failed
261:attempt to open
/mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.9.1/libc.a failed
262:attempt to open /mnt/lfs/tools/bin/../lib/gcc/libc.so failed
263:attempt to open /mnt/lfs/tools/bin/../lib/gcc/libc.a failed
264:attempt to open
/mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.9.1/../../../../i686-lfs-linux-gnu/lib/libc.so
failed 265:attempt to open
/mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.9.1/../../../../i686-lfs-linux-gnu/lib/libc.a
failed 275:attempt to open
/mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.9.1/libgcc.so failed
Should i erase all my work? and try again?
That may be appropriate, but from the above, gcc has not been installed
properly. You need to go back at least to that point. If it doesn't
work after redoing gcc, then you'll need to start over.
-- Bruce
Do you think it's relevant with my previous post in october:
http://lists.linuxfromscratch.org/pipermail/lfs-support/2014-October/047874.html
[2]
I didn't resolve the issue, so I re-build GCC without typing this
command before:
sed -i 's/if ((code.*)))/if (1 && !DEBUG_INSN_P (insn))/'
gcc/sched-deps.c.
Thanks for your interest
Pierre
what is the command that I must type to cleanly remove Gcc and Glibc?
Pierre
Links:
------
[1] http://www.pierre-selosse.net/lfs
[2]
http://lists.linuxfromscratch.org/pipermail/lfs-support/2014-October/047874.html--
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