Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006196OCamlOCaml internal build/install (Makefiles, configure)public2013-09-29 14:492014-01-22 16:28
Assigned To 
Platformx86_64OSOS XOS Versionany > 10.7
Product Version4.01.0 
Target VersionFixed in Version 
Summary0006196: 32-bit build on OS X fails
DescriptionA 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 ReproduceOn 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 InformationIn 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.
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2013-09-29 14:49 argp New Issue
2014-01-22 16:28 doligez Tag Attached: patch

Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker