Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 724448

Summary: media-libs/libdvdnav-6.1.0 directly calls "nm"
Product: Gentoo Linux Reporter: Kent Fredric (IRC: kent\n) (RETIRED) <kentnl>
Component: Current packagesAssignee: media-video herd <media-video>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=724568
https://bugs.gentoo.org/show_bug.cgi?id=724558
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 243502    
Attachments: build.log.gz

Description Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2020-05-21 12:11:40 UTC
Created attachment 640736 [details]
build.log.gz

On a system where binutils and gcc don't inject compat symlinks into /usr/bin (the 'ago config' ):

> libtool: link: nm  src/.libs/dvdnav.o src/.libs/read_cache.o src/.libs/navigation.o src/.libs/highlight.o src/.libs/logger.o src/.libs/searching.o src/.libs/settings.o src/vm/.libs/decoder.o src/vm/.libs/vm.o src/vm/.libs/play.o src/vm/.libs/getset.o src/vm/.libs/vmget.o src/vm/.libs/vmcmd.o   |  | /bin/sed 's/.* //' | sort | uniq > .libs/libdvdnav.exp
> ./libtool: eval: line 1774: syntax error near unexpected token `|'
> ./libtool: eval: line 1774: `nm  src/.libs/dvdnav.o src/.libs/read_cache.o src/.libs/navigation.o src/.libs/highlight.o src/.libs/logger.o src/.libs/searching.o src/.libs/settings.o src/vm/.libs/decoder.o src/vm/.libs/vm.o src/vm/.libs/play.o src/vm/.libs/getset.o src/vm/.libs/vmget.o src/vm/.libs/vmcmd.o   |  | /bin/sed 's/.* //' | sort | uniq > .libs/libdvdnav.exp'
> make[1]: *** [Makefile:568: libdvdnav.la] Error 2
> make[1]: Leaving directory '/var/tmp/portage/media-libs/libdvdnav-6.1.0/work/libdvdnav-6.1.0-abi_x86_32.x86'
> make: *** [Makefile:443: all] Error 2

With the symlinks in place it builds successfully.

So this indicates maybe some toolchain-funcs.eclass love is needed.
Comment 1 Sergei Trofimovich gentoo-dev 2020-05-24 11:14:22 UTC
Probably a case of bug #724558. Can you reproduce build failure past that commit?

32-bit build does not fail for me and detects NM as:

> checking for BSD- or MS-compatible name lister (nm)... x86_64-pc-linux-gnu-nm
Comment 2 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2020-05-25 21:16:59 UTC
No longer fails with updated multilib.eclass :)