[Clang]: LTO build fails since Gecko 14

RESOLVED WORKSFORME

Status

Firefox Build System
General
RESOLVED WORKSFORME
6 years ago
5 months ago

People

(Reporter: Nomis101, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

6 years ago
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".
(Reporter)

Comment 1

6 years ago
This works again for me since Gecko 17. :-)
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → WORKSFORME

Updated

5 months ago
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.