| Summary: | cc1plus gets oom-killed compiling dev-libs/ace | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | konsti |
| Component: | [OLD] Core system | Assignee: | C++ Team [disbanded] <cpp+disabled> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | normal | CC: | strowi, tantive |
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | AMD64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | fixed ebuild | ||
|
Description
konsti
2010-03-03 10:52:38 UTC
Sorry, I forgot to mention that I tried also lowering MAKEOPTS from -j3 to -j1 or CFLAGS (==CXXFLAGS) lowering from -O2 to -Os did not help either. Well, try without -pipe... This yields into the same error: creating RB_Tree_Functors x86_64-pc-linux-gnu-g++ -W -Wall -Wpointer-arith -march=k8 -O2 -fomit-frame-pointer -pipe -O3 -Wl,-O1 -o .libs/Stacks Stacks-Stacks.o -pthread ../../../ace/.libs/libACE.so -lrt -ldl creating Stacks x86_64-pc-linux-gnu-g++: Internal error: Killed (program cc1plus) Well, clearly this hardcodes -O3 somewhere. (In reply to comment #4) > Well, clearly this hardcodes -O3 somewhere. I had the same problem. The culprit is /var/tmp/portage/dev-libs/ace-5.7.2/work/ACE_wrappers/configure where it's hardcoded the "-O3". I solved by modifying the relevant ebuild (and re-manifesting it, of course), with this simple addition: [...stuff...] src_compile() { export ACE_ROOT="${S}" mkdir build cd build ECONF_SOURCE="${S}" echo "=========================" #### sed -i "s/-O3//" ${S}/configure # Added to remove the hardcoded optimization echo "=========================" #### econf \ --enable-lib-all \ $(use_with X) \ $(use_enable ipv6) \ || die "econf died" # --with-qos needs ACE_HAS_RAPI emake static_libs=1 || die "emake failed" } [...more stuff...] Without the -O3, it compiles cleanly. The production of a simple overlay patch is left as exercise to the reader! ;) Created attachment 230003 [details]
fixed ebuild
(In reply to comment #6) > Created an attachment (id=230003) [details] > fixed ebuild Please add to portage, it won't build with -O3 on gcc-4.3 or 4.4.x. *** This bug has been marked as a duplicate of bug 322941 *** |