Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 444590 - media-video/rtmpdump-2.4 fails to build for ABI=x86 on amd64
Summary: media-video/rtmpdump-2.4 fails to build for ABI=x86 on amd64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Markos Chandras (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-24 17:07 UTC by Alexander E. Patrakov
Modified: 2012-11-25 10:53 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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>
+