After hours of heated compiling, it successfully finishes compiling, but then fails miserably during the install phase!? net-libs/webkit-gtk-1.8.1-r201 USE="jit (-aqua) -coverage -debug -geoloc% -gstreamer -introspection -spell -test -webgl" [...Insert Hours Of Compilation...] libtool: install: warning: relinking `libwebkitgtk-1.0.la' libtool: install: (cd /var/tmp/portage/net-libs/webkit-gtk-1.8.1-r201/work/webkit-1.8.1; /bin/sh /var/tmp/portage/net-libs/webkit-gtk-1.8.1-r201/work/webkit-1.8.1/libtool --silent --tag CXX --mode=relink x86_64-pc-linux-gnu-g++ -fvisibility-inlines-hidden -fno-rtti -O2 -march=k8 -mtune=k8 -pipe -fomit-frame-pointer -version-info 13:2:13 -Wl,--version-script,./Source/autotools/symbols.filter -Wl,-O1 -Wl,--as-needed -o libwebkitgtk-1.0.la -rpath /usr/lib64 Source/WebCore/bindings/gobject/libwebkitgtk_1_0_la-ConvertToUTF8String.lo [MASSIVE LONG LIST OF .lo FILES] make[1]: *** [install-am] Killed make[1]: Leaving directory `/var/tmp/portage/net-libs/webkit-gtk-1.8.1-r201/work/webkit-1.8.1' make: *** [install] Error 2 ERROR: net-libs/webkit-gtk-1.8.1-r201 failed (install phase): emake failed The ebuild phase 'install' with pid 1693 appears to have left an orphan process running in the background. [BANGING HEAD ON WALL.] (I'm on a x86_64 1.6ghz laptop, libtool-2.2.10, gcc-4.5.3-r1, etc.) Oh, and it failed to compile with +webgl before that, with: [lots of CXXs] CXX DerivedSources/WebCore/libWebCore_la-JSWebSocket.lo CXX DerivedSources/ANGLE/libWebCore_la-glslang.lo DerivedSources/ANGLE/glslang.cpp: In function ‘void CPPDebugLogMsg(const char*)’: DerivedSources/ANGLE/glslang.cpp:2896:5: warning: unused variable ‘yyg’ DerivedSources/ANGLE/glslang.cpp: In function ‘void HandlePragma(const char**, int)’: DerivedSources/ANGLE/glslang.cpp:2970:5: warning: unused variable ‘yyg’ DerivedSources/ANGLE/glslang.cpp: In function ‘void StoreStr(char*)’: DerivedSources/ANGLE/glslang.cpp:3054:5: warning: unused variable ‘yyg’ DerivedSources/ANGLE/glslang.cpp: In function ‘const char* GetStrfromTStr()’: DerivedSources/ANGLE/glslang.cpp:3063:5: warning: unused variable ‘yyg’ DerivedSources/ANGLE/glslang.cpp: In function ‘void ResetTString()’: DerivedSources/ANGLE/glslang.cpp:3070:5: warning: unused variable ‘yyg’ DerivedSources/ANGLE/glslang.cpp: In function ‘int yylex(YYSTYPE*, void*)’: DerivedSources/ANGLE/glslang.cpp:1713:5: warning: ignoring return value of ‘size_t fwrite(const void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result DerivedSources/ANGLE/glslang.cpp: At global scope: DerivedSources/ANGLE/glslang.cpp:2519:16: warning: ‘int yy_top_state(void*)’ defined but not used CXX DerivedSources/ANGLE/libWebCore_la-glslang_tab.lo DerivedSources/ANGLE/glslang_tab.cpp: In function ‘int yyparse(TParseContext*)’: DerivedSources/ANGLE/glslang_tab.cpp:1835:31: error: ‘abs’ was not declared in this scope make: *** [DerivedSources/ANGLE/libWebCore_la-glslang_tab.lo] Error 1 ERROR: net-libs/webkit-gtk-1.8.1-r201 failed (compile phase): emake failed :( Reproducible: Always
Hmm... a closer look at my system logs shows it was my kernel that kills the install/make process :\. "Out of memory: Kill process (make)". Although I have over a gig of it free :S. Perhaps even -O2 is too aggressive? :s
The usual options would be: 1) Install more RAM. 2) Set MAKEOPTS=-j1. 3) Remove -pipe from CFLAGS/CXXFLAGS.