Closed
Bug 403258
Opened 17 years ago
Closed 17 years ago
[10.5] When using an SDK, many configure checks fail
Categories
(Firefox Build System :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: mark, Assigned: mark)
Details
(Keywords: verified1.8.1.12)
Attachments
(2 files)
3.17 KB,
patch
|
ted
:
review+
damons
:
approval1.9+
|
Details | Diff | Splinter Review |
3.75 KB,
patch
|
ted
:
review+
dveditz
:
approval1.8.1.12+
|
Details | Diff | Splinter Review |
Found during bug 403250 investigation:
When building on Mac OS X 10.5 ("Leopard"), many configure checks that should succeed are failing. We don't use the results of many of these checks, and the build is still able to proceed and succeed, but in some cases, the build behavior winds up being changed on Leopard.
One thing I noticed was this:
checking for -dead_strip option to ld... no
That's not true, ld -dead_strip works on Leopard as well as it did on Tiger. What's up here?
I took a simple test program, x.c:
int main(int argc, char **argv) {
return 0;
}
and tried building it with an SDK on Leopard:
mark@leopard bash$ gcc-4.0 -isysroot /Developer/SDKs/MacOSX10.4u.sdk /tmp/x.c -o /tmp/x
ld: library not found for -lcrt1.10.5.o
collect2: ld returned 1 exit status
/usr/lib/crt1.10.5.o is a new crt1 for Leopard, and exists in /usr/lib and the 10.5 SDK, but does not exist in earlier SDKs. The compiler now needs to be informed of the deployment target in order to select the proper version of crt1 to include. Earlier deployment targets use crt1.o. Setting MACOSX_DEPLOYMENT_TARGET results in a proper compilation:
mark@Crack bash$ MACOSX_DEPLOYMENT_TARGET=10.4 gcc-4.0 -isysroot /Developer/SDKs/MacOSX10.4u.sdk /tmp/x.c -o /tmp/x
(no errors)
We currently set MACOSX_DEPLOYMENT_TARGET for all phases of the build, but there's a window in the configure script between where we set the SDK CFLAGS and where we set (and export) MACOSX_DEPLOYMENT_TARGET. We need to close this window in the configure script.
This problem does not exist in NSPR's configure script, which exports MACOSX_DEPLOYMENT_TARGET immediately prior to setting the SDK CFLAGS.
Assignee | ||
Comment 1•17 years ago
|
||
Assignee | ||
Comment 2•17 years ago
|
||
We'd like to take this patch on the 1.8 branch because that branch is still used for active Camino development, and our developers are moving to Leopard.
Attachment #288058 -
Flags: review?(ted.mielczarek)
Attachment #288058 -
Flags: approval1.8.1.10?
Updated•17 years ago
|
Attachment #288058 -
Flags: approval1.8.1.10? → approval1.8.1.11?
Updated•17 years ago
|
Attachment #288057 -
Flags: review?(ted.mielczarek) → review+
Updated•17 years ago
|
Attachment #288058 -
Flags: review?(ted.mielczarek) → review+
Assignee | ||
Comment 3•17 years ago
|
||
Comment on attachment 288057 [details] [diff] [review]
Set MACOSX_DEPLOYMENT_TARGET before SDK CFLAGS
Needed for Leopard build compatibility.
Attachment #288057 -
Flags: approval1.9?
Updated•17 years ago
|
Attachment #288057 -
Flags: approval1.9? → approval1.9+
Assignee | ||
Comment 4•17 years ago
|
||
Checked in on the trunk.
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Comment 5•17 years ago
|
||
Comment on attachment 288058 [details] [diff] [review]
1.8 branch version
approved for 1.8.1.12, a=dveditz for release-drivers
Attachment #288058 -
Flags: approval1.8.1.12? → approval1.8.1.12+
Assignee | ||
Comment 6•17 years ago
|
||
Checked in on MOZILLA_1_8_BRANCH for 1.8.1.12.
Keywords: fixed1.8.1.12
Verified on the MOZILLA_1_8_BRANCH by my ability to build 1_8 branch builds on Mac OS X 10.5 without these configure checks failing ;)
Keywords: fixed1.8.1.12 → verified1.8.1.12
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
•