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
OS X Intel dmg for 3.11.1 installs ocaml which doesn't work on OS X 10.6 #4861
Comments
Comment author: @xavierleroy Could it be that under 10.6 gcc defaults to 64-bit mode, while under 10.5 it defaults to 32-bit mode? We'll have to figure this out. In the meantime, recompilation from sources is advised. Configure either with -cc "gcc -m32" or "gcc -m64" to make sure that you get the mode (32 or 64 bits) that you want. |
Comment author: @johnwhitington Unfortunately, ./configure -cc "gcc -m32" won't compile: gcc -c -DSYS_macosx -o i386.o i386.S || -cc "gcc -m64" works fine. (the ./configure for gcc -m32): Configuration for the bytecode compiler: |
Comment author: @xclerc It seems that -cc "gg -m32" is not enough to build in 32-bit mode, Tested successfully with 3.11.1 on MacOS X 10.6.1 running on top of an Intel Core 2 Duo. On this configuration, a bare ./configure with no argument is enough to build a 64-bit version. |
Comment author: @johnwhitington Yes, this works for me too. Thanks. |
Original bug ID: 4861
Reporter: @johnwhitington
Assigned to: @damiendoligez
Status: closed (set by @damiendoligez on 2010-05-12T13:54:59Z)
Resolution: fixed
Priority: normal
Severity: minor
Version: 3.11.1
Fixed in version: 3.11.2
Category: ~DO NOT USE (was: OCaml general)
Bug description
Installing the standard intel dmg for 3.11.1 from caml.inria.fr, and compiling a simple file:
feast:~ john$ ocamlopt -c a.ml
/var/folders/Wn/Wntolm9pFXGlJQS2eW4HfE+++TI/-Tmp-/camlasm42597e.s:25:32-bit absolute addressing is not supported for x86-64
/var/folders/Wn/Wntolm9pFXGlJQS2eW4HfE+++TI/-Tmp-/camlasm42597e.s:25:cannot do signed 4 byte relocation
/var/folders/Wn/Wntolm9pFXGlJQS2eW4HfE+++TI/-Tmp-/camlasm42597e.s:52:unknown section type: non_lazy_symbol_pointers
/var/folders/Wn/Wntolm9pFXGlJQS2eW4HfE+++TI/-Tmp-/camlasm42597e.s:52:Rest of line ignored. 1st junk character valued 32 ( ).
File "a.ml", line 1, characters 0-1:
Error: Assembler error, input left in file /var/folders/Wn/Wntolm9pFXGlJQS2eW4HfE+++TI/-Tmp-/camlasm42597e.s
I'm not sure if this was expected or not, but am reporting for completeness.
The text was updated successfully, but these errors were encountered: