Closed
Bug 778997
Opened 12 years ago
Closed 12 years ago
[Clang]: LTO build fails since Gecko 14
Categories
(Firefox Build System :: General, defect)
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: Nomis101, Unassigned)
References
Details
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[5]: *** [XUL] Error 1
make[4]: *** [libs_tier_platform] Error 2
make[3]: *** [tier_platform] Error 2
make[2]: *** [default] Error 2
make[1]: *** [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
Closed: 12 years ago
Resolution: --- → WORKSFORME
Updated•7 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•