Closed x1a0 closed 12 years ago
The problem is that ocamlc is invoking just gcc
rather than the CC set in the environment, and the CFLAGS which are set for clang are not compatible with gcc.
I didn't see an obvious way to force it to use the right compiler; will look harder later.
Perhaps re-bottling ocaml would cause it to default to another compiler? Although that may hose Lion users who have Xcode < 4.3...
This lets me build it:
ENV.libpng
ENV['OCAMLC'] = "#{HOMEBREW_PREFIX}/bin/ocamlc.opt -cc #{ENV.cc}"
inreplace 'Makefile', '-O6', '' if ENV.compiler == :clang
COOL! Adding codes above works for me! Thanks!
Reopening since we still have to pull this or do something.
Added this fix in bde9f3db878579f7c48b0f16cd5d5d8f7cd7f09b
This is my install output: https://gist.github.com/1999222
brew doctor shows: Warning: /Library/Frameworks/Mono.framework detected This can be picked up by CMake's build system and likely cause the build to fail. You may need to move this file out of the way to compile CMake.
It was compiled successfully in my 10.7.3. Yesterday I reinstall OSX and install Xcode 4.3. Then I got this... need help. thanks!