• [gentoo-user] Motif compile fails

    From Philip Webb@21:1/5 to All on Sat Aug 28 18:30:01 2021
    As part of updating to the latest stable Xscreensaver,
    I tried to emerge its requirement Motif, which failed with this message :

    Compiling source in /var/tmp/portage/portage/x11-libs/motif-2.3.8-r2/work/motif-2.3.8 ...
    * abi_x86_64.amd64: running multilib-minimal_abi_src_compile
    make -j9 -C tools/wml CC=x86_64-pc-linux-gnu-gcc LIBS=-lfl wmluiltok
    make: Entering directory '/var/tmp/portage/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/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/portage/x11-libs/motif-2.3.8-r2/work/motif-2.3.8/tools/wml/../../lib -
    I/var/tmp/portage/portage/x11-libs/motif-2.3.8-r2/work/motif-2.3.8/tools/wml/../../include -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/uuid -march=native -O2 -pipe -fno-strict-
    aliasing -Wall -fno-strict-aliasing -Wno-unused -Wno-comment -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/uuid -c -o wmluiltok.o /var/tmp/portage/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=native -O2 -pipe -fno-strict-aliasing -Wall -fno-strict-aliasing -Wno-unused -Wno-comment -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/
    glib-2.0/include -I/usr/include/uuid -Wl,-O1 -Wl,--as-needed -Wl,--as-needed -o wmluiltok wmluiltok.o -lfl -lfl
    libtool: link: x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -fno-strict-aliasing -Wall -fno-strict-aliasing -Wno-unused -Wno-comment -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/
    uuid -Wl,-O1 -o wmluiltok wmluiltok.o -Wl,--as-needed -lfl /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.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/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.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/10.2.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/portage/x11-libs/motif-2.3.8-r2/work/motif-2.3.8-abi_x86_64.amd64/tools/wml'
    * ERROR: x11-libs/motif-2.3.8-r2::gentoo failed (compile phase):
    * emake failed

    -- end of Portage output --

    This looks as if the problem is with Gcc flags, which is rather technical.

    Has anyone else run into this ? Does anyone have suggestions ?

    --
    ========================,,============================================
    SUPPORT ___________//___, Philip Webb
    ELECTRIC /] [] [] [] [] []| Cities Centre, University of Toronto
    TRANSIT `-O----------O---' purslowatchassdotutorontodotca

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Nuno Silva@21:1/5 to Philip Webb on Tue Aug 31 11:10:02 2021
    On 2021-08-28, Philip Webb wrote:

    As part of updating to the latest stable Xscreensaver,
    I tried to emerge its requirement Motif, which failed with this message :
    [...]
    /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld:
    /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.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/10.2.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/portage/x11-libs/motif-2.3.8-r2/work/motif-2.3.8-abi_x86_64.amd64/tools/wml'
    * ERROR: x11-libs/motif-2.3.8-r2::gentoo failed (compile phase):
    * emake failed

    -- end of Portage output --

    This looks as if the problem is with Gcc flags, which is rather technical.

    Has anyone else run into this ? Does anyone have suggestions ?

    As the error involves libfl.a, from sys-devel/flex, I'd try rebuilding
    that package. See bug 583842,

    https://bugs.gentoo.org/show_bug.cgi?id=583842

    --
    Nuno Silva

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Philip Webb@21:1/5 to All on Tue Aug 31 14:00:01 2021
    210831 Nuno Silva wrote:
    On 2021-08-28, Philip Webb wrote:
    As part of updating to the latest stable Xscreensaver,
    I tried to emerge its requirement Motif, which failed with this message : >[...]
    /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld:
    /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.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/10.2.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/portage/x11-libs/motif-2.3.8-r2/work/motif-2.3.8-abi_x86_64.amd64/tools/wml'
    * ERROR: x11-libs/motif-2.3.8-r2::gentoo failed (compile phase):
    * emake failed
    -- end of Portage output --
    As the error involves libfl.a, from sys-devel/flex,
    I'd try rebuilding that package.
    See bug https://bugs.gentoo.org/show_bug.cgi?id=583842

    Thanks a lot : I was afraid no-one would reply.

    Yes, that worked & I've gone on to emerge the latest Xscreensaver-6.01-r3 , which has restored 'xscreensaver-settings' (was '-demo'),
    so I can finally suppress a couple of really ugly screensavers !

    I did check Bugs for 'motif',
    but the bug above dates from 2016, so it didn't turn up in my search.

    --
    ========================,,============================================
    SUPPORT ___________//___, Philip Webb
    ELECTRIC /] [] [] [] [] []| Cities Centre, University of Toronto
    TRANSIT `-O----------O---' purslowatchassdotutorontodotca

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)