Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 556176 - bootstrap-prefix.sh: dev-libs/gmp is built with +cxx in stage2, fails when host compiler is missing cxx support
Summary: bootstrap-prefix.sh: dev-libs/gmp is built with +cxx in stage2, fails when ho...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2015-07-28 21:36 UTC by Jeremi Piotrowski
Modified: 2015-08-27 06:06 UTC (History)
1 user (show)

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


Attachments
shortened gmp stage2 build log (stage2.log,5.55 KB, text/plain)
2015-07-28 21:36 UTC, Jeremi Piotrowski
Details
Add "dev-libs/gmp -cxx" to ${ROOT}/tmp/package.use in stage2 (gmp_no_cxx.patch,577 bytes, patch)
2015-07-28 21:38 UTC, Jeremi Piotrowski
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremi Piotrowski 2015-07-28 21:36:17 UTC
Created attachment 407832 [details]
shortened gmp stage2 build log

As mentioned in the comments within bootstrap-prefix.sh, many binary distributions have separate packages for gcc and g++. The current script tries to accommodate this case, but leaves dev-libs/gmp with default flags which end up including cxx. This then fails during configure, as can be seen in the shortened stage2.log.

Patch follows; I think it's easiest to add an entry into package.use in ${ROOT}/tmp so that it only affects stage2. Fixes the bug on systems that I tested with (Centos 7, Fedora 22).
Comment 1 Jeremi Piotrowski 2015-07-28 21:38:15 UTC
Created attachment 407834 [details, diff]
Add "dev-libs/gmp -cxx" to ${ROOT}/tmp/package.use in stage2
Comment 2 Jeremi Piotrowski 2015-07-28 21:41:35 UTC
GCC 4.7.3 still compiles cleanly after this change, and stage3 starts by rebuilding all the compiler dependencies anyway so that this change disappears.
Comment 3 Fabian Groffen gentoo-dev 2015-08-27 06:06:47 UTC
ok, pushed your fix