Closed Bug 799093 Opened 12 years ago Closed 12 years ago

error: cannot run test program while cross compiling when building with jemalloc 3 on osx

Categories

(Firefox Build System :: General, defect)

All
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla19

People

(Reporter: glandium, Assigned: glandium)

References

Details

Attachments

(1 file)

checking STATIC_PAGE_SHIFT... configure: error: in `/builds/slave/try-osx64/build/obj-firefox/x86_64/memory/jemalloc/src':
configure: error: cannot run test program while cross compiling
See `config.log' for more details
configure: error: /builds/slave/try-osx64/build/memory/jemalloc/src/configure failed for memory/jemalloc/src
Blocks: 788955
Essentially, this reverts the part of bug 674647 that touched build/macosx/universal/mozconfig.common.
The fundamental problem is that the target doesn't match the host (x86_64-apple-darwin10 vs. x86_64-apple-darwin11.2.0) and jemalloc3 configure fails because it believes the setup is a cross compile, while the main configure doesn't consider it so, and thus doesn't call the jemalloc3 configure with some extra info that makes it work when cross compiling.
Besides the jemalloc3 problem, it's better to avoid autoconf considering a build a cross compile when it's not one.
Attachment #669444 - Flags: review?(ted.mielczarek)
Assignee: nobody → mh+mozilla
Component: jemalloc → Build Config
Comment on attachment 669444 [details] [diff] [review]
Avoid mac builds being considered as cross compiled by jemalloc configure

Review of attachment 669444 [details] [diff] [review]:
-----------------------------------------------------------------

Configure triplets are super annoying.
Attachment #669444 - Flags: review?(ted.mielczarek) → review+
https://hg.mozilla.org/mozilla-central/rev/0fea15c742aa
Status: NEW → RESOLVED
Closed: 12 years ago
Flags: in-testsuite-
Resolution: --- → FIXED
Target Milestone: --- → mozilla19
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: