Skip to content
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

On OSX: FATAL:/usr/bin/../libexec/as/x86_64/as: I don't understand '-' flag! #336

Open
jkleiser opened this issue Jun 12, 2015 · 6 comments

Comments

@jkleiser
Copy link

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.

@nineties
Copy link
Owner

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?

@nineties
Copy link
Owner

@rncar
Copy link

rncar commented Jun 15, 2015

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.

@rncar
Copy link

rncar commented Jun 15, 2015

Or maybe to replace the rowl0 assembly files by a little c program and build the rest
of Amber from there.

@nineties
Copy link
Owner

Thank you for instructios!
Not only rowl0, following layers before VM also use assembly.
So I think porting assembly codes is easier.

@mikedesu
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants