[Ur] Compiling ur/web on Mac OS X 10.6 (Snow Leopard)
Christoph Angerer
christoph.angerer at inf.ethz.ch
Sun Feb 21 17:20:06 EST 2010
Hi,
I am trying to compile ur on my Intel Macbook Pro running Snow Leopard. I had the same problem with the MLton compiler using including some deprecated ucontext stuff. Georg mentioned the solution is posted in this mail: http://www.impredicative.com/pipermail/ur/2010-January/000175.html
I installed the MLton binary for Darwin (Intel) and then simply added the #define in the /usr/local/lib/mlton/include/platform/darwin.h header. I did not recompile MLton, though, so I am not sure if that was enough what I did. The annoying thing is, that MLton is self-compiling, so you first need a mlton binary to compile it.
I do not get the deprecated error any more. So the "mlton -output bin/urweb src/compiler.mlb" step seems to do something, but after a while I get a very long list of messages (see below) followed by a
call to system failed with exit status 1:
gcc -c -o /var/folders/M-/M-lpnweGFFGVwnkEVDfXGk+++TI/-Tmp-/fileHwiUp7.o /var/folders/M-/M-lpnweGFFGVwnkEVDfXGk+++TI/-Tmp-/filesG2eD6.46.S
make[1]: *** [bin/urweb] Error 1
make: *** [all-recursive] Error 1
(Some of) The messages imply that the issue has to do with my 64 bit machine, so I tried to convince GCC to compile for a 32 bit machine by changing the compile flags. I tried a ./configure CFLAGS="-m32 -c -arch i386" as well as adding those flags manually in the makefile. All those tries didn't make any difference.
I was wondering whether somebody else manages to compile ur on a 64 bit snow leopard machine? Am I missing something?
Thanks for any help,
Christoph
---- the messages ----
/var/folders/M-/M-lpnweGFFGVwnkEVDfXGk+++TI/-Tmp-/filesG2eD6.46.S:113:unknown section type: symbol_stubs
/var/folders/M-/M-lpnweGFFGVwnkEVDfXGk+++TI/-Tmp-/filesG2eD6.46.S:113:Rest of line ignored. 1st junk character valued 115 (s).
/var/folders/M-/M-lpnweGFFGVwnkEVDfXGk+++TI/-Tmp-/filesG2eD6.46.S:115:Unknown pseudo-op: .indirect_symbol
/var/folders/M-/M-lpnweGFFGVwnkEVDfXGk+++TI/-Tmp-/filesG2eD6.46.S:115:Rest of line ignored. 1st junk character valued 95 (_).
/var/folders/M-/M-lpnweGFFGVwnkEVDfXGk+++TI/-Tmp-/filesG2eD6.46.S:126:32-bit absolute addressing is not supported for x86-64
/var/folders/M-/M-lpnweGFFGVwnkEVDfXGk+++TI/-Tmp-/filesG2eD6.46.S:126:cannot do signed 4 byte relocation
/var/folders/M-/M-lpnweGFFGVwnkEVDfXGk+++TI/-Tmp-/filesG2eD6.46.S:129:32-bit absolute addressing is not supported for x86-64
/var/folders/M-/M-lpnweGFFGVwnkEVDfXGk+++TI/-Tmp-/filesG2eD6.46.S:129:cannot do signed 4 byte relocation
/var/folders/M-/M-lpnweGFFGVwnkEVDfXGk+++TI/-Tmp-/filesG2eD6.46.S:132:suffix or operands invalid for `push'
/var/folders/M-/M-lpnweGFFGVwnkEVDfXGk+++TI/-Tmp-/filesG2eD6.46.S:133:suffix or operands invalid for `push'
/var/folders/M-/M-lpnweGFFGVwnkEVDfXGk+++TI/-Tmp-/filesG2eD6.46.S:134:suffix or operands invalid for `push'
/var/folders/M-/M-lpnweGFFGVwnkEVDfXGk+++TI/-Tmp-/filesG2eD6.46.S:135:suffix or operands invalid for `push'
/var/folders/M-/M-lpnweGFFGVwnkEVDfXGk+++TI/-Tmp-/filesG2eD6.46.S:136:suffix or operands invalid for `push'
/var/folders/M-/M-lpnweGFFGVwnkEVDfXGk+++TI/-Tmp-/filesG2eD6.46.S:138:4294967292 shortened to 252
/var/folders/M-/M-lpnweGFFGVwnkEVDfXGk+++TI/-Tmp-/filesG2eD6.46.S:139:32-bit absolute addressing is not supported for x86-64
(* and many more; essentially the same messages with different line numbers*)
More information about the Ur
mailing list