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

error when running "make systemshock" #412

Open
shadept-GitHub opened this issue May 13, 2024 · 1 comment
Open

error when running "make systemshock" #412

shadept-GitHub opened this issue May 13, 2024 · 1 comment

Comments

@shadept-GitHub
Copy link

when compiling on x64 arch with linux-lts kernel i get this error:

error: assignment to ‘ubyte *’ {aka ‘unsigned char *’} from incompatible pointer type ‘ubyte **’ {aka ‘unsigned char **’} [-Wincompatible-pointer-types]
  216 |     parm_ptr = (&object_ptr) + sizeof(object_ptr); //va_start(parm_ptr, object_ptr);
      |              ^
make[3]: *** [src/Libraries/CMakeFiles/3D_LIB.dir/build.make:174: src/Libraries/CMakeFiles/3D_LIB.dir/3D/Source/interp.c.o] Error 1
make[2]: *** [CMakeFiles/Makefile2:252: src/Libraries/CMakeFiles/3D_LIB.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:155: CMakeFiles/systemshock.dir/rule] Error 2
make: *** [Makefile:124: systemshock] Error 2

what do i do? it used to compile just fine before. i did a full system update recently, is this why? is my SDL2 version too new?

Steps to reproduce:

  1. Clone the systemshock repo
  2. run ./build_deps.sh
  3. run cmake .
  4. run make systemshock
@Interrupt
Copy link
Owner

It looks like your compiler is running in a way that turns warnings into errors - that's what the (-Wincompatible-pointer-types). You should be able to change your compiler flags to not error out in that case by using -Wno-incompatible-pointer-types - check out https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html

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