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

RESOLVED FIXED

Status

RESOLVED FIXED
8 years ago
7 months ago

People

(Reporter: smontagu, Assigned: glandium)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(2 attachments, 2 obsolete attachments)

(Reporter)

Description

8 years ago
Created attachment 521128 [details]
Output of expandlibs_exec.py --v

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)

Updated

8 years ago
Assignee: nobody → mh+mozilla
(Assignee)

Comment 1

8 years ago
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...

Comment 2

8 years ago
Is there a workaround for this?
(Assignee)

Comment 3

8 years ago
Created attachment 521274 [details] [diff] [review]
quick and dirty workaround

Requires python 2.6
(Assignee)

Comment 4

8 years ago
Created attachment 521472 [details] [diff] [review]
Use relative paths as much as possible in expandlibs.py
Attachment #521274 - Attachment is obsolete: true
Attachment #521472 - Flags: review?(ted.mielczarek)
(Assignee)

Updated

8 years ago
Blocks: 584474

Comment 5

8 years ago
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+
(Assignee)

Comment 8

8 years ago
(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.
(Assignee)

Comment 9

8 years ago
http://hg.mozilla.org/mozilla-central/rev/208e88837e65
Status: NEW → RESOLVED
Last Resolved: 8 years ago
Resolution: --- → FIXED
(Assignee)

Comment 10

8 years ago
Created attachment 521893 [details] [diff] [review]
Use relative paths as much as possible in expandlibs.py, as landed
Attachment #521472 - Attachment is obsolete: true

Updated

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