I was able to build with LTO (-O4) on OS X nicely, till Gecko 13. Since Gecko 14 it now fails with the following error at the end of the build: ld: warning: ignoring file /Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks//QuickTime.framework/QuickTime, file was built for unsupported file format ( 0xce 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 0 0x 3 0x 0 0x 0 0x 0 0x 9 0x 0 0x 0 0x 0 ) which is not the architecture being linked (x86_64): /Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks//QuickTime.framework/QuickTime ld: warning: could not create compact unwind for _ffi_call_unix64: does not use RBP or RSP based frame Undefined symbols for architecture x86_64: "nsWrapperCache::GetWrapper() const", referenced from: nsGlobalWindow::WrapObject(JSContext*, JSObject*, bool*) in nsDocShell.o non-virtual thunk to nsGlobalWindow::WrapObject(JSContext*, JSObject*, bool*) in nsDocShell.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [XUL] Error 1 make: *** [libs_tier_platform] Error 2 make: *** [tier_platform] Error 2 make: *** [default] Error 2 make: *** [default] Error 2 make: *** [build] Error 2 This is true for Apples Clang 3.1 on OS X 10.4.7 and with Apples Clang 4.0 on OS X 10.8. It builds nicely with -O3 instead of -O4. I build with CXXFLAGS="-O4" CFLAGS="-O4" LDFLAGS="-O4".
This works again for me since Gecko 17. :-)
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.