Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 798834 - x11-libs/motif-2.3.8-r2 fails to compile: relocation R_X86_64_PC32 against symbol `exit@@GLIBC_2.2.5' can not be used when making a PIE object; recompile with -fPIE
Summary: x11-libs/motif-2.3.8-r2 fails to compile: relocation R_X86_64_PC32 against sy...
Status: RESOLVED DUPLICATE of bug 583842
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ulrich Müller
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-26 19:35 UTC by Sebastian Pipping
Modified: 2021-06-27 00:40 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Build log (x11-libs:motif-2.3.8-r2:20210626-192605.log,20.89 KB, text/x-log)
2021-06-26 19:35 UTC, Sebastian Pipping
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Pipping gentoo-dev 2021-06-26 19:35:15 UTC
Created attachment 719481 [details]
Build log

Full build log attached

>>> Compiling source in /var/tmp/portage/x11-libs/motif-2.3.8-r2/work/motif-2.3.8 ...
 * abi_x86_64.amd64: running multilib-minimal_abi_src_compile
make -j5 -C tools/wml CC=x86_64-pc-linux-gnu-gcc LIBS=-lfl wmluiltok 
make: Entering directory '/var/tmp/portage/x11-libs/motif-2.3.8-r2/work/motif-2.3.8-abi_x86_64.amd64/tools/wml'
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/x11-libs/motif-2.3.8-r2/work/motif-2.3.8/tools/wml -I../../include -I../../lib/Xm -I../../lib -I/var/tmp/portage/x11-libs/motif-2.3.8-r2/work/motif-2.3.8/tools/wml/../../lib -I/var/tmp/portage/x11-libs/motif-2.3.8-r2/work/motif-2.3.8/tools/wml/../../include    -I/usr/include/uuid -I/usr/include/freetype2  -march=sandybridge -maes --param l1-cache-line-size=64 --param l1-cache-size=32 --param l2-cache-size=3072 -O2 -pipe -frecord-gcc-switches -fno-strict-aliasing -Wall -fno-strict-aliasing -Wno-unused -Wno-comment -I/usr/include/uuid -I/usr/include/freetype2   -c -o wmluiltok.o /var/tmp/portage/x11-libs/motif-2.3.8-r2/work/motif-2.3.8/tools/wml/wmluiltok.c
/bin/sh ../../libtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc  -march=sandybridge -maes --param l1-cache-line-size=64 --param l1-cache-size=32 --param l2-cache-size=3072 -O2 -pipe -frecord-gcc-switches -fno-strict-aliasing -Wall -fno-strict-aliasing -Wno-unused -Wno-comment -I/usr/include/uuid -I/usr/include/freetype2    -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -o wmluiltok wmluiltok.o -lfl -lfl
libtool: link: x86_64-pc-linux-gnu-gcc -march=sandybridge -maes --param l1-cache-line-size=64 --param l1-cache-size=32 --param l2-cache-size=3072 -O2 -pipe -frecord-gcc-switches -fno-strict-aliasing -Wall -fno-strict-aliasing -Wno-unused -Wno-comment -I/usr/include/uuid -I/usr/include/freetype2 -Wl,-O1 -Wl,--defsym=__gentoo_check_ldflags__=0 -o wmluiltok wmluiltok.o  -Wl,--as-needed -lfl
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../lib64/libfl.a(libmain.o): warning: relocation against `exit@@GLIBC_2.2.5' in read-only section `.text.startup'
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../lib64/libfl.a(libmain.o): relocation R_X86_64_PC32 against symbol `exit@@GLIBC_2.2.5' can not be used when making a PIE object; recompile with -fPIE
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
make: *** [Makefile:502: wmluiltok] Error 1
make: Leaving directory '/var/tmp/portage/x11-libs/motif-2.3.8-r2/work/motif-2.3.8-abi_x86_64.amd64/tools/wml'
Comment 1 Ulrich Müller gentoo-dev 2021-06-26 21:48:53 UTC
This may be a duplicate of bug 583842. Can you recompile sys-devel/flex and then try again?
Comment 2 Sebastian Pipping gentoo-dev 2021-06-27 00:40:31 UTC
(In reply to Ulrich Müller from comment #1)
> This may be a duplicate of bug 583842. Can you recompile sys-devel/flex and
> then try again?

I did "emerge -1 -j1 sys-devel/flex x11-libs/motif" and that worked without error.  I guess that confirms your theory.  I'll close as a duplicate for you.  Please re-open if that was too eager or a misunderstanding.  Thanks!

*** This bug has been marked as a duplicate of bug 583842 ***