On Fri, May 10, 2019 at 09:25:48PM +0000, Niels Terp wrote: > Hey, I’m kind of new here. I build LFS several times a few years ago, but > then got busy with other things. > > Now I’m back, I’m following current stable lfs, and here is my first problem: > Niels, in future please can you start a new post when you raise a new issue. Your mail is threaded under the perl segfaults thread, as if you perhaps replied to that and changed the title ?
Outlook is not a very friendly mail client (I'm assuming you used outlook from your mail's Message-ID header). Anyway, what's done is done. So - > I have a script that builds the temporary system. Since i want to install > RPM, I continue with the deps of RPM, among wich is elfutils. > > It is set up like chapter 6.48.1 with ./configure –prefix=/tools > –program-prefix=”eu-” > > When I run ”make” I get these errors: > > CC dwarf_next_lines.os > AR libdw.a > AR libdw_pic.a > CCLD libdw.so > /mnt/lfs/tools/bin/../lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: > > /mnt/lfs/tools/bin/../lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../lib64/libbz2.a(bzlib.o): > relocation R_X86_64_32S against symbol `BZ2_crc32Table' can not be used when > making a shared object; recompile with -fPIC > I suspect something went wrong with your bzip build. On x86_64 8.4 I just have CC dwarf_cu_info.o CC dwarf_next_lines.o CC dwarf_begin.os Looking at what got installed for bzip2, I see that we have moved it to /lib, and that is probably where the problem arose. I rename almost all my '.a' static libaries to '....hidden' so that I can know when something tries to use them (in particular, "hello, kde" :) - on LFS, when I've screwed up this sort of movement I then get messages that ld cannot find the library. On x86_64, static system libs cannot often be linked into shared system libs (unlike on 32-bit x86). On my current LFS-svn system (same version of bzip2 as in 8.4) I have: ken@origin ~ $find /lib /usr/lib -name 'libbz2*' | xargs ls -l lrwxrwxrwx 1 root root 15 May 10 01:55 /lib/libbz2.so.1.0 -> libbz2.so.1.0.6 -rwxr-xr-x 1 root root 83672 May 10 01:55 /lib/libbz2.so.1.0.6 -rw-r--r-- 1 root root 84298 May 10 01:55 /usr/lib/libbz2.a.hidden lrwxrwxrwx 1 root root 23 May 10 01:55 /usr/lib/libbz2.so -> ../../lib/libbz2.so.1.0 HTH ĸen -- Before the universe began, there was a sound. It went: "One, two, ONE, two, three, four" [...] The cataclysmic power chord that followed was the creation of time and space and matter and it does Not Fade Away. - wiki.lspace.org/mediawiki/Music_With_Rocks_In -- 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