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

Not compiling on OSX #2

Open
viclib opened this issue Sep 13, 2013 · 1 comment
Open

Not compiling on OSX #2

viclib opened this issue Sep 13, 2013 · 1 comment

Comments

@viclib
Copy link

viclib commented Sep 13, 2013

./build
gcc -O -I./include -DATOMIC_UNCOLLECTABLE -DNO_SIGNALS -DNO_EXECUTE_PERMISSION -DSILENT -DALL_INTERIOR_POINTERS -DLARGE_CONFIG -DUSE_MMAP -DDONT_ADD_BYTE_AT_END -o if_mach ./if_mach.c
In file included from ./if_mach.c:3:
./include/private/gcconfig.h:477: error: expected identifier or ‘(’ before ‘--’ token
./if_mach.c: In function ‘main’:
./if_mach.c:14: error: ‘MACH_TYPE’ undeclared (first use in this function)
./if_mach.c:14: error: (Each undeclared identifier is reported only once
./if_mach.c:14: error: for each function it appears in.)
make: *** [if_mach] Error 1
cp: gc6.8/gc.a: No such file or directory
ranlib: can't open file: include/libgc.a (No such file or directory)
Cannot (yet) run Stalin on this architecture

What can I do?

@barak
Copy link
Owner

barak commented Sep 14, 2014

Although I don't have a Mac to test on, it looks like this is due to the Boehm garbage collector definitions. You might be able to find some other program that uses -lgc and figure out what case is missing here in the include file to define things right for OSX. Assuming you have it installed?

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

2 participants