Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 725852 - x11-libs/gtk+-2.24.32-r1 fails abi_x86_32.x86 compile ( libtool: line 1791: nm: command not found, ld:.libs/libgdk-x11-2.0.ver:2: syntax error in VERSION script )
Summary: x11-libs/gtk+-2.24.32-r1 fails abi_x86_32.x86 compile ( libtool: line 1791: n...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: tc-directly
  Show dependency tree
 
Reported: 2020-05-28 08:16 UTC by Kent Fredric (IRC: kent\n)
Modified: 2020-12-19 19:16 UTC (History)
2 users (show)

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


Attachments
build.log.gz (build.log.gz,28.69 KB, application/gzip)
2020-05-28 08:16 UTC, Kent Fredric (IRC: kent\n)
Details
x86_32.config.log (x86_32.config.log,129.99 KB, text/plain)
2020-05-28 08:18 UTC, Kent Fredric (IRC: kent\n)
Details
gtk+-2.24.32-respect-NM.patch (gtk+-2.24.32-respect-NM.patch,273 bytes, patch)
2020-05-28 18:35 UTC, Sergei Trofimovich
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kent Fredric (IRC: kent\n) gentoo-dev 2020-05-28 08:16:50 UTC
Created attachment 642320 [details]
build.log.gz

Failure context:

/bin/sh ../libtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc -m32  -O2 -pipe -mtune=native -march=native -Wall  -v
ersion-info 2400:32:2400 -export-dynamic -rpath /usr/lib  -export-symbols-regex "^[^_].*" -Wl,-O1 -Wl,--as-needed -o lib
gdk-x11-2.0.la    gdk.lo gdkapplaunchcontext.lo gdkcairo.lo gdkcolor.lo gdkcursor.lo gdkdisplay.lo gdkdisplaymanager.lo 
gdkdnd.lo gdkdraw.lo gdkevents.lo gdkfont.lo gdkgc.lo gdkglobals.lo gdkimage.lo gdkkeys.lo gdkkeyuni.lo gdkoffscreenwind
ow.lo gdkpango.lo gdkpixbuf-drawable.lo gdkpixbuf-render.lo gdkpixmap.lo gdkpolyreg-generic.lo gdkrectangle.lo gdkregion
-generic.lo gdkrgb.lo gdkscreen.lo gdkselection.lo gdkvisual.lo gdkwindow.lo gdkwindowimpl.lo gdkenumtypes.lo gdkmarshal
ers.lo x11/libgdk-x11.la -lpangocairo-1.0 -lpango-1.0 -lgio-2.0 -lfontconfig -lfreetype -lXrender -lXinerama -lXi -lXran
dr -lXcursor -lXcomposite -lXdamage -lXfixes -lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.0 -lcairo -lX11 -lXext -lm 
libtool: link: nm  .libs/gdk.o .libs/gdkapplaunchcontext.o .libs/gdkcairo.o .libs/gdkcolor.o .libs/gdkcursor.o .libs/gdk
display.o .libs/gdkdisplaymanager.o .libs/gdkdnd.o .libs/gdkdraw.o .libs/gdkevents.o .libs/gdkfont.o .libs/gdkgc.o .libs
/gdkglobals.o .libs/gdkimage.o .libs/gdkkeys.o .libs/gdkkeyuni.o .libs/gdkoffscreenwindow.o .libs/gdkpango.o .libs/gdkpi
xbuf-drawable.o .libs/gdkpixbuf-render.o .libs/gdkpixmap.o .libs/gdkpolyreg-generic.o .libs/gdkrectangle.o .libs/gdkregi
on-generic.o .libs/gdkrgb.o .libs/gdkscreen.o .libs/gdkselection.o .libs/gdkvisual.o .libs/gdkwindow.o .libs/gdkwindowim
pl.o .libs/gdkenumtypes.o .libs/gdkmarshalers.o   x11/.libs/libgdk-x11.a | sed -n -e 's/^.*[     ]\([ABCDGIRSTW][ABCDGIR
STW]*\)[         ][      ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' | sed '/ __gnu_lto/d' | /bin/sed 's/.* //' | sort | u
niq > .libs/libgdk-x11-2.0.exp
../libtool: line 1791: nm: command not found
libtool: link: /bin/grep -E -e "^[^_].*" ".libs/libgdk-x11-2.0.exp" > ".libs/libgdk-x11-2.0.expT"
libtool: link: mv -f ".libs/libgdk-x11-2.0.expT" ".libs/libgdk-x11-2.0.exp"
libtool: link: echo "{ global:" > .libs/libgdk-x11-2.0.ver
libtool: link:  cat .libs/libgdk-x11-2.0.exp | sed -e "s/\(.*\)/\1;/" >> .libs/libgdk-x11-2.0.ver
libtool: link:  echo "local: *; };" >> .libs/libgdk-x11-2.0.ver
libtool: link:  x86_64-pc-linux-gnu-gcc -m32 -shared  -fPIC -DPIC  .libs/gdk.o .libs/gdkapplaunchcontext.o .libs/gdkcairo.o .libs/gdkcolor.o .libs/gdkcursor.o .libs/gdkdisplay.o .libs/gdkdisplaymanager.o .libs/gdkdnd.o .libs/gdkdraw.o .libs/gdkevents.o .libs/gdkfont.o .libs/gdkgc.o .libs/gdkglobals.o .libs/gdkimage.o .libs/gdkkeys.o .libs/gdkkeyuni.o .libs/gdkoffscreenwindow.o .libs/gdkpango.o .libs/gdkpixbuf-drawable.o .libs/gdkpixbuf-render.o .libs/gdkpixmap.o .libs/gdkpolyreg-generic.o .libs/gdkrectangle.o .libs/gdkregion-generic.o .libs/gdkrgb.o .libs/gdkscreen.o .libs/gdkselection.o .libs/gdkvisual.o .libs/gdkwindow.o .libs/gdkwindowimpl.o .libs/gdkenumtypes.o .libs/gdkmarshalers.o  -Wl,--whole-archive x11/.libs/libgdk-x11.a -Wl,--no-whole-archive  -Wl,--as-needed -lpangocairo-1.0 -lpango-1.0 -lgio-2.0 -lfontconfig -lfreetype -lXrender -lXinerama -lXi -lXrandr -lXcursor -lXcomposite -lXdamage -lXfixes -lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.0 -lcairo -lX11 -lXext -lm  -m32 -O2 -mtune=native -march=native -Wl,-O1   -Wl,-soname -Wl,libgdk-x11-2.0.so.0 -Wl,-version-script -Wl,.libs/libgdk-x11-2.0.ver -o .libs/libgdk-x11-2.0.so.0.2400.32
/usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld:.libs/libgdk-x11-2.0.ver:2: syntax error in VERSION script
collect2: error: ld returned 1 exit status


May be caused by lack of symlinks w/ binutils-config USE="-native-synlinks"

Trimmed einfo:

Portage 2.3.100 (python 3.7.7-final-0, default/linux/amd64/17.1, gcc-10.1.0, glibc-2.31-r3, 5.2.7-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.2.7-gentoo-x86_64-Intel-R-_Core-TM-_i5-2410M_CPU_@_2.30GHz-with-gentoo-2.7
KiB Mem:     8004420 total,    354004 free
KiB Swap:   20478972 total,  16996264 free
Timestamp of repository gentoo: Tue, 26 May 2020 11:00:02 +0000
Head commit of repository gentoo: ad8c79245d320264c800845b2a5e402d6600be20
Timestamp of repository rust: Mon, 25 May 2020 21:51:00 +0000
Head commit of repository rust: 0df08c857a2ecf986d93ae5278463c83997aa7cf

Head commit of repository rust-dev: b59d4991426194f9408f37df2c868fedde680bdf

sh bash 5.0_p17
ld GNU ld (Gentoo 2.34 p4) 2.34.0
ccache version 3.7.9 [enabled]
app-shells/bash:          5.0_p17::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.30.2-r2::local-portage
dev-lang/python:          2.7.18::gentoo, 3.6.10-r2::gentoo, 3.7.7-r2::gentoo, 3.8.3::gentoo, 3.9.0_beta1::gentoo
dev-util/ccache:          3.7.9::gentoo
dev-util/cmake:           3.17.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.2::gentoo
sys-devel/binutils:       2.34-r1::gentoo
sys-devel/gcc:            8.3.0-r3::gentoo, 9.2.0-r4::gentoo, 9.3.0::gentoo, 10.1.0::gentoo
sys-devel/gcc-config:     9999::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.6::gentoo (virtual/os-headers)
sys-libs/glibc:           2.31-r3::gentoo

x11-libs/gtk+-2.24.32-r1::gentoo was built with the following:
USE="introspection vim-syntax xinerama (-aqua) -cups -examples -test" ABI_X86="32 (64) (-x32)"
FEATURES="clean-logs strict binpkg-logs userpriv sign assume-digests pid-sandbox usersync xattr sandbox config-protect-if-modified ccache strict-keepdir unknown-features-warn parallel-install fixlafiles sfperms multilib-strict binpkg-dostrip usersandbox cgroup news split-log parallel-fetch splitdebug ipc-sandbox unmerge-orphans distlocks metadata-transfer compressdebug preserve-libs userfetch compress-build-logs protect-owned split-elog network-sandbox merge-sync binpkg-docompress unmerge-logs"
Comment 1 Kent Fredric (IRC: kent\n) gentoo-dev 2020-05-28 08:18:04 UTC
Created attachment 642322 [details]
x86_32.config.log
Comment 2 Mart Raudsepp gentoo-dev 2020-05-28 08:58:36 UTC
This is a legacy SLOT that doesn't have any actual problems from calling nm directly, unless self-inflected, so unlikely that anything is going to be done for this.
Comment 3 Sergei Trofimovich gentoo-dev 2020-05-28 18:35:31 UTC
Created attachment 642378 [details, diff]
gtk+-2.24.32-respect-NM.patch

I think the bug here in using AC_PATH_TOOL (requires absolute path) instead of AC_CHECK_TOOL.

gtk+-2.24.32-respect-NM.patch fixes build for me.