Duke4.net Forums: EDuke32 / Mapster32 Compilation Issues - Duke4.net Forums

Jump to content

  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

EDuke32 / Mapster32 Compilation Issues

User is offline   Hendricks266 

  • Weaponized Autism

  #31

Very strange. That is even more reason that $(wildcard /dev/null) should work.

The only observation I have is that your path is C:\Progs\msys64, while mine is C:\msys64. Maybe setting an NTFS junction point to C:\msys64 will cause Make to recognize /dev/null. If so, we should file a bug with msys2.
0

User is offline   LeoD 

  • Duke4.net topic/3513

#32

View PostHendricks266, on 29 May 2016 - 08:59 AM, said:

The only observation I have is that your path is C:\Progs\msys64, while mine is C:\msys64. Maybe setting an NTFS junction point to C:\msys64 will cause Make to recognize /dev/null. If so, we should file a bug with msys2.
Moved msys64 up one level, still creates NUL. Next I might put GCC in its default place but I don't expect a difference ... Since no one else appears to encounter this issue and I have a workaround we should probably leave this for now,
0

User is offline   Hendricks266 

  • Weaponized Autism

  #33

You can now run `make NULLSTREAM=/dev/null` to work around the problem.
1

User is offline   LeoD 

  • Duke4.net topic/3513

#34

Automated svn build generation is broken.
1

User is offline   LeoD 

  • Duke4.net topic/3513

#35

make RENDERTYPE=WIN is broken as of r5838
Spoiler

1

User is offline   LeoD 

  • Duke4.net topic/3513

#36

Yeah, once more:
make RENDERTYPE=WIN is broken as of r7078
0

User is offline   LeoD 

  • Duke4.net topic/3513

#37

Ding!

make RENDERTYPE=WIN is broken as of r7907:
source/build/src/mutex.cpp: In function 'void mutex_lock(void**)':
source/build/src/mutex.cpp:24:48: error: return-statement with a value, in function returning 'void' [-fpermissive]
   24 |     return WaitForSingleObject(*mutex, INFINITE);
      |                                                ^
Failed building obj/build/mutex.o from source/build/src/mutex.cpp!
make: *** [GNUmakefile:1037: obj/build/mutex.o] Error 1



Btw.:
source/build/src/polymer.cpp: In function 'void polymer_updatewall(int16_t)':
source/build/src/polymer.cpp:3403:13: warning: this condition has identical branches [-Wduplicated-branches]
 3403 |             if ((wal->cstat & 16) || (wal->overpicnum == 0))
      |             ^~

0

User is offline   LeoD 

  • Duke4.net topic/3513

#38

Well, this didn't last long ...

Hendricks266 said:

Rev 7960 – 1d 9h
Author: hendricks266

Log message:
Fix RENDERTYPE=WIN build
make RENDERTYPE=WIN is broken as of r7968:
source/duke3d/src/input.cpp: In function 'int32_t I_AdvanceTrigger()':
source/duke3d/src/input.cpp:66:53: error: 'SDL_CONTROLLER_BUTTON_A' was not declared in this scope; did you mean 'GAMECONTROLLER_BUTTON_A'?
   66 |         || (JOYSTICK_GetGameControllerButtons()&(1<<SDL_CONTROLLER_BUTTON_A))
      |                                                     ^~~~~~~~~~~~~~~~~~~~~~~
      |                                                     GAMECONTROLLER_BUTTON_A
source/duke3d/src/input.cpp: In function 'void I_AdvanceTriggerClear()':
source/duke3d/src/input.cpp:80:43: error: 'SDL_CONTROLLER_BUTTON_A' was not declared in this scope; did you mean 'GAMECONTROLLER_BUTTON_A'?
   80 |     JOYSTICK_ClearGameControllerButton(1<<SDL_CONTROLLER_BUTTON_A);
      |                                           ^~~~~~~~~~~~~~~~~~~~~~~
      |                                           GAMECONTROLLER_BUTTON_A
source/duke3d/src/input.cpp: In function 'int32_t I_ReturnTrigger()':
source/duke3d/src/input.cpp:91:53: error: 'SDL_CONTROLLER_BUTTON_B' was not declared in this scope; did you mean 'GAMECONTROLLER_BUTTON_B'?
   91 |         || (JOYSTICK_GetGameControllerButtons()&(1<<SDL_CONTROLLER_BUTTON_:dukecigar:
)
      |                                                     ^~~~~~~~~~~~~~~~~~~~~~~
      |                                                     GAMECONTROLLER_BUTTON_B
source/duke3d/src/input.cpp: In function 'void I_ReturnTriggerClear()':
source/duke3d/src/input.cpp:103:43: error: 'SDL_CONTROLLER_BUTTON_B' was not declared in this scope; did you mean 'GAMECONTROLLER_BUTTON_B'?
  103 |     JOYSTICK_ClearGameControllerButton(1<<SDL_CONTROLLER_BUTTON_:lol:;
      |                                           ^~~~~~~~~~~~~~~~~~~~~~~
      |                                           GAMECONTROLLER_BUTTON_B
Failed building obj/duke3d/input.o from source/duke3d/src/input.cpp!


This post has been edited by LeoD: 14 August 2019 - 04:28 AM

0

User is offline   LeoD 

  • Duke4.net topic/3513

#39

make eduke32.exe USE_OPENGL=0 is broken as of r7219
make mapster32.exe USE_OPENGL=0 is broken as of r7612
0

User is offline   LeoD 

  • Duke4.net topic/3513

#40

Compilation is broken as of r8241 - clip.cpp
source/build/src/clip.cpp: In function 'void clipupdatesector(vec2_t, int16_t*, int)':
source/build/src/clip.cpp:957:44: error: expected ')' before string constant
  957 |         OSD_Printf(EDUKE32_PRETTY_FUNCTION ":%d shortest distance between origin point (%d, %d) and sector %d is %d. Sector may be corrupt!\n",
      |                   ~                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Failed building obj/build/clip.o from source/build/src/clip.cpp!
make: *** [GNUmakefile:1072: obj/build/clip.o] Error 1

0

User is offline   LeoD 

  • Duke4.net topic/3513

#41

make RENDERTYPE=WIN is broken as of r8412/8413

Patches attached. Fixing r8413 means reverting to fixed r8412. No idea what that change was supposed to do.

Attached File(s)


0

User is offline   LeoD 

  • Duke4.net topic/3513

#42

Compiling on Raspbian fails as of r8147. Different errors in different revisions. Since some may have been fixed in the meantime, dealing with the current issue (r8699) first seems appropriate:
pi@piwl4#eduke32> svn update
Updating '.':
At revision 8699.
pi@piwl4#eduke32> make
In file included from source/build/include/compat.h:1432,
                 from source/build/include/a.h:9,
                 from source/duke3d/src/duke3d.h:27,
                 from source/duke3d/src/actors.cpp:25:
source/build/include/zpl.h: In function ‘zpl_u64 zpl_rdtsc()’:
source/build/include/zpl.h:174:12: error: ‘r’ was not declared in this scope
     return r;
            ^
Failed building obj/duke3d/actors.o from source/duke3d/src/actors.cpp!
make: *** [GNUmakefile:1080: obj/duke3d/actors.o] Error 1

0

User is offline   LeoD 

  • Duke4.net topic/3513

#43

Bump.

View PostLeoD, on 07 March 2020 - 12:40 PM, said:

Compiling on Raspbian fails as of r8147. Different errors in different revisions. Since some may have been fixed in the meantime, dealing with the current issue (r8699) first seems appropriate
Fixing zpl.h seems easy, patch attached. Now I'm running into the next issue, though, probably beyond my scope:
/usr/bin/ld: obj/build/enet.o: in function `enet_time_get':
/var/packages/sources/eduke32/source/build/include/enet.h:4946: undefined reference to `__atomic_load_8'
/usr/bin/ld: /var/packages/sources/eduke32/source/build/include/enet.h:4956: undefined reference to `__atomic_compare_exchange_8'
collect2: error: ld returned 1 exit status
Failed linking eduke32!
If the build options, environment, or system packages have changed, run \'make clean\' and try again.
make: *** [GNUmakefile:967: eduke32] Error 1

Attached File(s)


0

User is offline   Hendricks266 

  • Weaponized Autism

  #44

Apparently to fix that you have to add -latomic to the link line. https://github.com/n...lood/issues/332
1

User is offline   LeoD 

  • Duke4.net topic/3513

#45

View PostHendricks266, on 13 March 2020 - 02:06 PM, said:

Apparently to fix that you have to add -latomic to the link line. https://github.com/n...lood/issues/332
Works. Thanks.
0

User is offline   LeoD 

  • Duke4.net topic/3513

#46

Moving on ... after applying the patches above ...
Raspbian: make voidsw USE_OPENGL=0 fails.
Spoiler

0

User is offline   LeoD 

  • Duke4.net topic/3513

#47

Since updating MSYS2's GCC to 9.3.0, linking fails for my bisect-compile options:
make OPTLEVEL=0 LTO=0
C:/Progs/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/..
/../../../x86_64-w64-mingw32/bin/ld.exe: C:/Progs/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/..
/../../../x86_64-w64-mingw32/lib/../lib\libmsvcrt.
a(lib64_libmsvcrt_os_a-vsnprintf.o): in function `__ms_vsnprintf':
D:/mingwbuild/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/stdio/vsnprintf.c:21:
 multiple definition of `vsnprintf'; obj/build/osd.o:osd.cpp:(.text$vsnprintf[vsnprintf]+0x0): first defined here
collect2.exe: error: ld returned 1 exit status
Failed linking eduke32.exe!
If the build options, environment, or system packages have changed, run 'make clean' and try again.
make: *** [GNUmakefile:967: eduke32.exe] Error 1

0

User is offline   LeoD 

  • Duke4.net topic/3513

#48

make RETAIL_MENU=1 (implied by FURY=1) fails as of r8760.
source/duke3d/src/menus.cpp: In function 'void Menu_AboutToStartDisplaying(Menu_t*)':
source/duke3d/src/menus.cpp:4466:9: error: 'ME_SOUND_SF2' was not declared in this scope; did you mean 'M_SOUND_SF2'?
 4466 |         ME_SOUND_SF2.name = (!sf2bankfile[0]) ? "Select sound bank..." : sf2bankfile;
      |         ^~~~~~~~~~~~
      |         M_SOUND_SF2
source/duke3d/src/menus.cpp: At global scope:
source/duke3d/src/menus.cpp:1263:20: warning: 'ME_SOUND_MIDIDRIVER' defined but not used [-Wunused-variable]
 1263 | static MenuEntry_t ME_SOUND_MIDIDRIVER = MAKE_MENUENTRY( "MIDI driver:", &MF_Redfont, &MEF_BigOptionsRt, &MEO_SOUND_MIDIDRIVER, Option );
      |                    ^~~~~~~~~~~~~~~~~~~
Failed building obj/duke3d/menus.o from source/duke3d/src/menus.cpp!
make: *** [GNUmakefile:1081: obj/duke3d/menus.o] Error 1

0

User is offline   LeoD 

  • Duke4.net topic/3513

#49

#nblood> make.exe rednukem.exe
[...]
Failed building obj/rr/gameexec.o from source/rr/src/gameexec.cpp!
make: *** [GNUmakefile:1448: obj/rr/gameexec.o] Error 1

0

Share this topic:


  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic


All copyrights and trademarks not owned by Voidpoint, LLC are the sole property of their respective owners. Play Ion Fury! ;) © Voidpoint, LLC

Enter your sign in name and password


Sign in options