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

Bug 444590

Summary: media-video/rtmpdump-2.4 fails to build for ABI=x86 on amd64
Product: Gentoo Linux Reporter: Alexander E. Patrakov <patrakov>
Component: Current packagesAssignee: Markos Chandras (RETIRED) <hwoarang>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Alexander E. Patrakov 2012-11-24 17:07:14 UTC
The ebuild of rtmpdump has this:

        emake CC=$(tc-getCC) LD=$(tc-getLD) \
                OPT="${CFLAGS}" XLDFLAGS="${LDFLAGS}" CRYPTO="${crypto}" SYS=posix || die "emake failed"

Since CC and LD can contain a space when cross-compiling (example: CC="x86_64-pc-linux-gnu-gcc -m32"), the results of tc-getCC and tc-getLD need quoted around them:

        emake CC="$(tc-getCC)" LD="$(tc-getLD)" \
                OPT="${CFLAGS}" XLDFLAGS="${LDFLAGS}" CRYPTO="${crypto}" SYS=posix || die "emake failed"

Otherwise GNU make complains about unknown -3 and -2 options.

Probably you want to check other packages for this failure pattern.

Reproducible: Always




A not-so-sane workalike of the multilib-portage overlay is used on this computer. Please take the report with a grain of salt.
Comment 1 Alexander E. Patrakov 2012-11-25 06:11:30 UTC
A simple command

grep -r 'make.*=$(tc-getCC)' /usr/portage/*-* | cut -d / -f 4,5 | sort -u

found 158 packages that may have the same problem.
Comment 2 Markos Chandras (RETIRED) gentoo-dev 2012-11-25 10:53:52 UTC
+  25 Nov 2012; Markos Chandras <hwoarang@gentoo.org> rtmpdump-2.3.ebuild,
+  rtmpdump-2.4.ebuild, rtmpdump-9999.ebuild:
+  Add missing quotes for tc-getXX functions to avoid problems with cross-
+  compilation. Bug #444590. Thanks to Alexander E. Patrakov <patrakov@gmail.com>
+