On 5/10/19 5:25 PM, 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:

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

/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(compress.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC

/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(decompress.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC

/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(blocksort.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC

/mnt/lfs/tools/bin/../lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: nonrepresentable section on output

collect2: error: ld returned 1 exit status

make[3]: *** [Makefile:1372: libdw.so] Error 1

make[2]: *** [Makefile:614: all] Error 2

make[1]: *** [Makefile:485: all-recursive] Error 1

make: *** [Makefile:401: all] Error 2

The full log file is enclosed.

I see that I have to recompile with -fPIC – but how do I do that ?

Hope you can help me with this ?

Cheers

Niels



Welcome back Niels,  I still have my github repos.  You may want to have a look at them.  I am almost finished with the LFS-8.4 build system.

I need to have it build itself and I need to fix the rpm installers script.  The build procedure should be correct, just need to validate.

Look at my tools.sh script, it builds elfutils libraries which is all you need to build rpm.

https://github.com/baho-utot/LFS-RPM

If you like we can work this together.



-- 
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

Reply via email to