On 01/02/2016 10:50, Paul wrote:
Hi,
I built a few lfs systems about 10-12 years ago and am just coming
back to it. I am building the SVN version.
The build is done on an up to date Arch system which passed the
compatibility tests.
Stage 1 compiles with quite a few warnings but no significant errors.
After stage 1 the make executable in /mnt/lfs/tools works fine until I
chroot and then it segfaults and core dumps.
Make has no apparant dependencies to the base system.
[root@odin ~]# cd /mnt/lfs/tools/
[root@odin tools]# ldd bin/make
linux-vdso.so.1 (0x00007ffdcd9eb000)
libdl.so.2 => /tools/lib/libdl.so.2 (0x00007f6d069a7000)
libc.so.6 => /tools/lib/libc.so.6 (0x00007f6d06603000)
/tools/lib/ld-linux-x86-64.so.2 (0x00007f6d06bab000)
[root@odin tools]# ldd /tools/lib/libdl.so.2
linux-vdso.so.1 (0x00007fff9f6f5000)
libc.so.6 => /tools/lib/libc.so.6 (0x00007f6b84a50000)
/tools/lib/ld-linux-x86-64.so.2 (0x00005558f1d91000)
[root@odin tools]# ldd /tools/lib/libc.so.6
/tools/lib/ld-linux-x86-64.so.2 (0x00007ff07740f000)
linux-vdso.so.1 (0x00007ffdbd329000)
[root@odin tools]# ldd /tools/lib64/ld-linux-x86-64.so.2
statically linked
I have been cross checking things for over a week now and haven't been
able to spot my mistake.
Hopefully some one here will be able to suggest something that will help.
Paul
Hi Paul,
There are quite a few possibilities:
- Is it only "make" which segfaults, and no other program (sed, perl,
bash, anything built in stage 1)?
- Is it really "make" which segfaults, and not one of the commands it
tries to run?
- You say there is a core dump. Could you analyze the dump on the host,
using gdb (needs perhaps a few other steps, I have not tried myself).
Pierre
--
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