Closed kubatyszko closed 8 years ago
What kind of "as" do you have exactly? I added -L specifically for OS X compatibility, to make sure that local labels end up in the object's symbol table. If they do not, functions and branches et cetera won't work.
Apple LLVM version 7.0.0 (clang-700.0.72) Target: x86_64-apple-darwin14.4.0 Thread model: posix "/Library/Developer/CommandLineTools/usr/bin/clang" -cc1as -triple x86_64-apple-macosx10.10.0 -filetype obj -main-file-name - -target-cpu core2 -fdebug-compilation-dir /Users/kuba -dwarf-debug-producer Apple LLVM version 7.0.0 (clang-700.0.72) -o a.out -
Standard "as" from OS X, didn't touch anything
I didn't investigate the issue very deeply but when I use "-L" the clang complains about input files, it might have something to do with order of arguments. .... And now I tried different order, and this call:
as -o /tmp/jit_out.o /tmp/jit_out.s -L
seems to work better (but throws a warning: "clang: warning: argument unused during compilation: '-L-integrated-as'")
Ok, finally have time to boot OSX and fix this. For the record, I currently have Yosemite 10.10.5 and "as" is /usr/bin/as, "Apple Inc version cctools-870, GNU assembler version 1.38".
@kubatyszko I changed the OSX version now to force clang to use the system as (not the integrated one). This works on my system but I'm curious what happens on yours!
@mntmn it works well now. I'm on 10.10.4, my as is:
as --version Apple LLVM version 7.0.0 (clang-700.0.72) Target: x86_64-apple-darwin14.4.0 Thread model: posix
Thanks
I traced it to the:
as -L /tmp/jit_out.s -o /tmp/jit_out.o"
call, and concluded that my as didn't like the "-L" argument. After removing it and recompiling it the sledge works.
(it still throws me a segfault when trying to run the GUI but I'll leave that for another day)