-
Notifications
You must be signed in to change notification settings - Fork 26
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
Error compilling Macos #48
Comments
This is due to recent clang 12 that doesn't like gdb 8.3.1 anymore due to stricter compilation defaults. I have to change the default build flags in subproject ngdevkit-toolchain to fix that. Meanwhile, I think you might get around it by exporting the following variables before you compile the devkit:
Also, I just pushed a update to the README this morning regarding the dependencies you need for building on macOS lately. Please make sure that you install sdl2 with |
checking for GL/gl.h... yes Now seems like yer OpenGL is not being found. Im on BigSur. Thanks Damien |
Hmm I don't have access to BigSur locally unfortunately and the CI environment I'm using are stuck on 10.15... Could you check in ./build/gngeo/config.log, you should have the output of the autoconf test that failed. On my system, the gl headers come from brew's SDL2 and the compilation succeeds with:
Hopefully we can understand why your system is different and fix the autodetection accordingly |
warning generated. |
Oh that's apparently the same clang error that you hit with gdb. Maybe the variables that you exported earlier are not passed correctly to gngeo when it's being configured. I'm going to try and reproduce on my macOS 10.15 plus recent clang, this shouldn't be specific to Big Sur.
and rely on mame until I come up with a fix. |
So I think I have a fairly recent clang version:
But I can't immediately reproduce your issue. I wonder if it could be related to the I'll try to always inject the |
The two commits above should make clang happy. You need to update your local copy of ngdevkit's repo and delete the downloaded copy of gngeo. Tell me if this fixes your compilation woes. |
Making all in locale Thanks seems like it's still getting some errors. |
Hmm this one is more complex to troubleshoot. It means the gcc cross compiler failed to build, as to why I have no idea yet because ngdevkit-toolchain doesn't produce an easily parseable compilation log. Did you spot another earlier error when building in ./build/nggcc? |
I think the very first error was trying to create two folders here, permissions error to create that folders: /usr/local/m68k-neogeo-elf/ And then the very first error I believe it's this one: Making all in libc |
ok, I have no good means of installing the devkit from source into a directory which doesn't have write permission, because the compilation and the installtion process are somehow intertwined and I don't want to run sudo in the makefile directly. For now, I'm afraid your best option is to reconfigure the toolkit to deploy into an isolated directory with write permission. By default it's /local |
rm -f readline.o
gcc -c -DHAVE_CONFIG_H -I. -I/Users/laurenmanuelgarciacarro/Code/repositories/NeoGeo-Devkit/ngdevkit/toolchain/toolchain/gdb-8.3.1/readline -DRL_LIBRARY_VERSION='"6.2"' -g -O2 /Users/laurenmanuelgarciacarro/Code/repositories/NeoGeo-Devkit/ngdevkit/toolchain/toolchain/gdb-8.3.1/readline/readline.c
rm -f vi_mode.o
gcc -c -DHAVE_CONFIG_H -I. -I/Users/laurenmanuelgarciacarro/Code/repositories/NeoGeo-Devkit/ngdevkit/toolchain/toolchain/gdb-8.3.1/readline -DRL_LIBRARY_VERSION='"6.2"' -g -O2 /Users/laurenmanuelgarciacarro/Code/repositories/NeoGeo-Devkit/ngdevkit/toolchain/toolchain/gdb-8.3.1/readline/vi_mode.c
rm -f funmap.o
gcc -c -DHAVE_CONFIG_H -I. -I/Users/laurenmanuelgarciacarro/Code/repositories/NeoGeo-Devkit/ngdevkit/toolchain/toolchain/gdb-8.3.1/readline -DRL_LIBRARY_VERSION='"6.2"' -g -O2 /Users/laurenmanuelgarciacarro/Code/repositories/NeoGeo-Devkit/ngdevkit/toolchain/toolchain/gdb-8.3.1/readline/funmap.c
rm -f keymaps.o
gcc -c -DHAVE_CONFIG_H -I. -I/Users/laurenmanuelgarciacarro/Code/repositories/NeoGeo-Devkit/ngdevkit/toolchain/toolchain/gdb-8.3.1/readline -DRL_LIBRARY_VERSION='"6.2"' -g -O2 /Users/laurenmanuelgarciacarro/Code/repositories/NeoGeo-Devkit/ngdevkit/toolchain/toolchain/gdb-8.3.1/readline/keymaps.c
rm -f parens.o
gcc -c -DHAVE_CONFIG_H -I. -I/Users/laurenmanuelgarciacarro/Code/repositories/NeoGeo-Devkit/ngdevkit/toolchain/toolchain/gdb-8.3.1/readline -DRL_LIBRARY_VERSION='"6.2"' -g -O2 /Users/laurenmanuelgarciacarro/Code/repositories/NeoGeo-Devkit/ngdevkit/toolchain/toolchain/gdb-8.3.1/readline/parens.c
rm -f search.o
gcc -c -DHAVE_CONFIG_H -I. -I/Users/laurenmanuelgarciacarro/Code/repositories/NeoGeo-Devkit/ngdevkit/toolchain/toolchain/gdb-8.3.1/readline -DRL_LIBRARY_VERSION='"6.2"' -g -O2 /Users/laurenmanuelgarciacarro/Code/repositories/NeoGeo-Devkit/ngdevkit/toolchain/toolchain/gdb-8.3.1/readline/search.c
rm -f rltty.o
gcc -c -DHAVE_CONFIG_H -I. -I/Users/laurenmanuelgarciacarro/Code/repositories/NeoGeo-Devkit/ngdevkit/toolchain/toolchain/gdb-8.3.1/readline -DRL_LIBRARY_VERSION='"6.2"' -g -O2 /Users/laurenmanuelgarciacarro/Code/repositories/NeoGeo-Devkit/ngdevkit/toolchain/toolchain/gdb-8.3.1/readline/rltty.c
/Users/laurenmanuelgarciacarro/Code/repositories/NeoGeo-Devkit/ngdevkit/toolchain/toolchain/gdb-8.3.1/readline/rltty.c:83:7: error: implicit declaration of function 'ioctl' is invalid in C99
[-Werror,-Wimplicit-function-declaration]
if (ioctl (tty, TIOCGWINSZ, &w) == 0)
^
/Users/laurenmanuelgarciacarro/Code/repositories/NeoGeo-Devkit/ngdevkit/toolchain/toolchain/gdb-8.3.1/readline/rltty.c:720:3: error: implicit declaration of function 'ioctl' is invalid in C99
[-Werror,-Wimplicit-function-declaration]
ioctl (fildes, TIOCSTART, 0);
^
/Users/laurenmanuelgarciacarro/Code/repositories/NeoGeo-Devkit/ngdevkit/toolchain/toolchain/gdb-8.3.1/readline/rltty.c:759:3: error: implicit declaration of function 'ioctl' is invalid in C99
[-Werror,-Wimplicit-function-declaration]
ioctl (fildes, TIOCSTOP, 0);
^
3 errors generated.
make[4]: *** [rltty.o] Error 1
make[3]: *** [all-readline] Error 2
make[2]: *** [all] Error 2
make[1]: *** [/Users/laurenmanuelgarciacarro/Code/repositories/NeoGeo-Devkit/ngdevkit/build/nggdb] Error 2
make: *** [build-toolchain] Error 2
The text was updated successfully, but these errors were encountered: