Closed Bug 644081 Opened 14 years ago Closed 14 years ago

Build failure on OSX: error trying to exec '/usr/libexec/gcc/i686-apple-darwin10/4.2.1/collect2': execv: Argument list too long

Categories

(Firefox Build System :: General, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: smontagu, Assigned: glandium)

References

Details

Attachments

(2 files, 2 obsolete files)

Attached file Output of expandlibs_exec.py --v (deleted) —
i686-apple-darwin10-g++-4.2.1: error trying to exec '/usr/libexec/gcc/i686-apple-darwin10/4.2.1/collect2': execv: Argument list too long
Assignee: nobody → mh+mozilla
As per irc, using relative paths instead of absolute makes it work, so it's a command line length issue, and not an argument count issue. The fix would be pretty simple if we'd require python 2.6, but we require python 2.5, which doesn't have os.path.relpath...
Is there a workaround for this?
Attached patch quick and dirty workaround (obsolete) (deleted) — Splinter Review
Requires python 2.6
Attachment #521274 - Attachment is obsolete: true
Attachment #521472 - Flags: review?(ted.mielczarek)
Blocks: 584474
FWIW, the patch allows Thunderbird to build against trunk moz-central.
Comment on attachment 521472 [details] [diff] [review] Use relative paths as much as possible in expandlibs.py >+def relativize(path): Can you stick a short docstring comment here? I gather that this produces a path relative to the current working directory, but it would be good to have that noted. Looks fine otherwise. Do we get screwed on mac because of the old gcc version? I thought we were using linker scripts where possible.
Attachment #521472 - Flags: review?(ted.mielczarek) → review+
(In reply to comment #7) > Looks fine otherwise. Do we get screwed on mac because of the old gcc version? yes > I thought we were using linker scripts where possible. we do, except mac is where it's not possible, because mac ld doesn't support link scripts.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Attachment #521472 - Attachment is obsolete: true
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: