On OSX: FATAL:/usr/bin/../libexec/as/x86_64/as: I don't understand '-' flag!
jkleiser opened this issue · 6 comments
I've tried to 'make' on both Mac OS X 10.8.5 and 10.9.5. On 10.8.5 I get this
$ make
cd rowl0; make
as main.s -o main.o --32
FATAL:/usr/bin/../libexec/as/x86_64/as: I don't understand '-' flag!
make[1]: *** [main.o] Error 1
make: *** [all] Error 2
On 10.9.5 I get something similar.
Sorry for that! I'll try fix it.
Not only Makefiles system calls have to be modified for Mac OS.
It requires some time because I have no Mac.
someone help me?
Would be great to build amber on mac, it's an awesome piece of work.
First step:
main.o: main.s defs.s token.s
Use #define instead .equ in defs.s token.s and main.s
Use .globl instead .global in main.s
as -arch i386 -o main.o main.s defs.s token.s
no errors.
Not too much time now, just a start point.
Or maybe to replace the rowl0 assembly files by a little c program and build the rest
of Amber from there.
Thank you for instructios!
Not only rowl0, following layers before VM also use assembly.
So I think porting assembly codes is easier.
I am getting the same error on OSX 10.10.3.
I'll take a look at what needs to be done to get this thing to build.