ocaml 4.02.2 won't build on Snow Leopard

Ryan Schmidt ryandesign at macports.org
Wed Jul 1 08:17:03 PDT 2015

On Jul 1, 2015, at 4:08 AM, Peter Hancock wrote:

> On 01/07/2015 08:24, Ryan Schmidt wrote:
>> On Jun 30, 2015, at 6:22 AM, Peter Hancock wrote:
>>> Before I write a ticket, I wonder if anyone else has had problems in gettin ocaml at 4.02.2 to build.
>>> This is on an early MacBook1,1, with OSX 10.6.8, Xcode 3.2.4.
>>> The occasion of the error in the log file seems to be
>>>  ld: absolute addressing (perhaps -mdynamic-no-pic) used in _caml_system__code_begin
>>>  from i386.pic.o not allowed in slidable image.
>>>  Use '-read_only_relocs suppress' to enable text relocs:
>> That's a 32-bit Mac, right? Might be a 32-bit specific problem.
> That's correct.
> I tried to build ocaml myself from github, using a configure command that the INSTALL file
> seems to recommend. make world and make bootstrap worked, but make opt failed with a ld error
> about illegal text relocation, that looks similar (not exactly) to the macports error.
> Browsing around the ocaml bug tracking site, I notice that one or two people with lots more clue than me
> are struggling with this (acknowledged) issue.
> Maybe it'll get fixed; maybe they'll just explicitly drop support for 32 bits.
> Should I go ahead and raise a macports ticket?

We have another ticket for 32-bit build problems with ocaml on 10.6


but it's a different error message and is years old so maybe the problem you're seeing is different.

You could file a new ticket in our issue tracker, but it sounds like the problem is not MacPorts-specific, so you may have better luck reporting the problem to the developers of ocaml directly.

More information about the macports-users mailing list