Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Not compiling `opt` in OS X 10.6 #5385
Original bug ID: 5385
On my x86-64 machine running OS X 10.6, I cannot build the optimizing compiler from source. (Although
The problem appears to be that the "availability macro" MAC_OS_X_VERSION_MIN_REQUIRED is never defined but is checked (in order to define that missing symbol) in asmrun/signals_osdep.h. Perhaps this should be defined somewhere when it's known that the user's system is running OS X?
In any case, since I don't need to run the compiled binaries on any OS X version less than 10.5, I added the flag
to $FLAGS in asmrun/Makefile and the problem went away.
I have the exact same problem with version 3.12.0.
Comment author: @damiendoligez
I'm compiling OCaml under 10.6.8 on a 64-bit machine several times per day...
skilpat, do you have the variable MACOSX_DEPLOYMENT_TARGET defined in your environment?
Comment author: skilpat
Yes, MACOSX_DEPLOYMENT_TARGET is set to "10.4" in my .bash_profile, which I apparently added along with some other variables for the fink package manager. Not sure when or why I did that.
In any case, I stripped that from the environment and successfully built ocaml-3.12.0 without the Makefile patch I mentioned before. That environment variable seems to have been the cause of the problem all along.