Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

32-bit build on OS X fails #6196

Closed
vicuna opened this issue Sep 29, 2013 · 2 comments
Closed

32-bit build on OS X fails #6196

vicuna opened this issue Sep 29, 2013 · 2 comments

Comments

@vicuna
Copy link

vicuna commented Sep 29, 2013

Original bug ID: 6196
Reporter: argp
Assigned to: @mshinwell
Status: closed (set by @xavierleroy on 2015-12-11T18:27:49Z)
Resolution: fixed
Priority: low
Severity: minor
Platform: x86_64
OS: OS X
OS Version: any > 10.7
Version: 4.01.0
Fixed in version: 4.02.0+dev
Category: configure and build/install
Tags: patch

Bug description

A 32-bit build on OS X fails always if one follows the steps suggested in the INSTALL file.

The problem lies in the fact that if the so called "host triplet" is not defined, the configure script uses the define -DTARGET_amd64 causing the build to fail.

Steps to reproduce

On an OS X system follow the INSTALL file and do:

./configure -cc "gcc -m32" -as "as -arch i386" -aspp "gcc -m32 -c"
make world.opt

The above fails always.

Additional information

In order to fix this, line 160 of the INSTALL file needs to be changed from this:

160 ./configure -cc "gcc -m32" -as "as -arch i386" -aspp "gcc -m32 -c"

to this:

160 ./configure -host "i386-apple-darwin11.4.2" -cc "gcc -arch i386 -m32" -as "as -arch i386" -aspp "gcc -arch i386 -m32 -c"

In other words, the so called "host triplet" needs to be defined during the configure step.

@vicuna
Copy link
Author

vicuna commented May 30, 2014

Comment author: @mshinwell

I'm investigating whether we can just fix the configure script.

@vicuna
Copy link
Author

vicuna commented May 30, 2014

Comment author: @mshinwell

...apparently not. The problem is that the host triplet is detected as 64-bit.

The proposed instructions seem reasonable; I re-validated them on a recent Mac OS X system, and they are committed to 4.02 and trunk now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants