[blfs-support] elfutils-0.156 Make Errors

Pierre Labastie pierre.labastie at neuf.fr
Sat Dec 28 10:36:09 PST 2013


Le 28/12/2013 17:33, Douglas R. Reno a écrit :
> 
> 
> 
> On Sat, Dec 28, 2013 at 3:33 AM, Pierre Labastie <pierre.labastie at neuf.fr
> <mailto:pierre.labastie at neuf.fr>> wrote:
> 
>     Le 28/12/2013 04:17, Douglas R. Reno a écrit :
>     > Hello everyone,
>     >
>     > BLFS Version: 7.4 Stable
>     > LFS Version: 7.3 Stable
>     > Brief Hardware Description: Intel Pentium III-M, Dell Latitude C800,
>     256mb RAM
>     >
>     > I get an error while making elfutils. It says something about libdw. Are
>     there
>     > any dependencies I am missing? I have libxml2, expat, etc. as required for
>     > MesaLib. Here are the errors
>     >
>     > gcc -std=gnu99 -Wall -Wshadow -Werror -Wunused -Wextra -Wformat=2 -g -02 -o
>     > libdw.so -shared -o libdw.so -Wl,--soname,libdw.so.1,-z,defs \
>     >              -Wl,--enable-new-dtags,-rpath,/usr/lib/elfutils \
>     >              -Wl,--version-script,libdw.map,--no-undefined \
>     >              -Wl,--whole-archive libdw_pic.a ../libdwfl/libdwfl_pic.a
>     > ../libebl/libebl.a ../libelf/libelf.so -Wl,--no-whole-archive \
>     >              -ldl -llzma -lbz2 -lz
>     > if readelf -d libdw.so | fgrep -q TEXTREL; then exit 1; fi
>     > make[3]: *** [libdw.so] Error 1
>     > make[3]: Leaving directory '/home/renodr/src/p2wget/xc/elfutils-0.156/libdw'
>     > make[2]: *** [all] Error 2
>     > make[2]: Leaving directory '/home/renodr/src/p2wget/xc/elfutils-0.156/libdw'
>     > make[1]: *** [all-recursive] Error 1
>     > make[1]: Leaving directory '/home/renodr/src/p2wget/xc/elfutils-0.156'
>     > make: *** [all] Error 2
>     I have exactly the same commands in my logs, but they give no error.
> 
>     Try to change to /home/renodr/src/p2wget/xc/elfutils-0.156/libdw, run
>     readelf -d libdw.so, and see where TEXREL occurs (it should not, but it looks
>     like it does).
>     >
>     > If this helps, I am building as root because I am in a chroot environment
>     > attempting to build this. I want to get the X Window System installed
>     and edit
>     > /etc/inittab so that it starts twm on startup. I can restart my PC and logon
>     > as renodr if needed though.
> 
>     I do not think it should change anything, unless you are doing weird things
>     with permission or ownerships. Could be the PATH though. Did you enter chroot
>     using the command at page 6.66 "Cleaning up"? Are the virtual kernel
>     filesystems mounted (maybe not needed, but just in case)?
> 
>     Pierre
> 
>     --
>     http://linuxfromscratch.org/mailman/listinfo/blfs-support
>     FAQ: http://www.linuxfromscratch.org/blfs/faq.html
>     Unsubscribe: See the above information page
> 
> Adding onto my previous post:
> 
> renodr [ ~/src/p2wget/xc/elfutils-0.156/libdw ]$ readelf -d libdw.so | grep
> "TEXTREL"
>  0x00000016 (TEXTREL)                                 0x0
>  0x0000001e (FLAGS)                                    TEXTREL
> 
> So it appears that it was built in.
> 
> 
> 
Well I do not know what makes textrel pop up. It definitely is not there on my
installation (running readelf -d /usr/lib/libdw-0.157.so after installing).
But I see that you have an old processor, and that might be the clue.

Googling, I found:
http://www.akkadia.org/drepper/textrelocs.html (elfutils has been written by
U. Drepper, and that explains why he does not like textrel).

and
http://article.gmane.org/gmane.comp.sysutils.elfutils.devel/1755 (about what
you can do to see what is going on).

Regards
Pierre




More information about the blfs-support mailing list