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.
EDuke32 / Mapster32 Compilation Issues
#31 Posted 29 May 2016 - 08:59 AM
#32 Posted 29 May 2016 - 12:24 PM
Hendricks266, 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.
#33 Posted 22 June 2016 - 11:00 AM
You can now run `make NULLSTREAM=/dev/null` to work around the problem.
#37 Posted 08 August 2019 - 05:08 AM
Ding!
make RENDERTYPE=WIN is broken as of r7907:
Btw.:
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)) | ^~
#38 Posted 14 August 2019 - 04:28 AM
Well, this didn't last long ...
make RENDERTYPE=WIN is broken as of r7968:
Hendricks266 said:
Rev 7960 – 1d 9h
Author: hendricks266
Log message:
Fix RENDERTYPE=WIN build
Author: hendricks266
Log message:
Fix RENDERTYPE=WIN build
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
#39 Posted 26 August 2019 - 05:53 AM
make eduke32.exe USE_OPENGL=0 is broken as of r7219
make mapster32.exe USE_OPENGL=0 is broken as of r7612
make mapster32.exe USE_OPENGL=0 is broken as of r7612
#40 Posted 20 October 2019 - 02:14 PM
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
#41 Posted 24 February 2020 - 02:52 AM
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.
Patches attached. Fixing r8413 means reverting to fixed r8412. No idea what that change was supposed to do.
Attached File(s)
-
winlayer-patches.zip (877bytes)
Number of downloads: 231
#42 Posted 07 March 2020 - 12:40 PM
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
#43 Posted 13 March 2020 - 06:11 AM
Bump.
Fixing zpl.h seems easy, patch attached. Now I'm running into the next issue, though, probably beyond my scope:
LeoD, 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
/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)
-
zpl-8278-8742.h.patch.zip (335bytes)
Number of downloads: 203
#44 Posted 13 March 2020 - 02:06 PM
Apparently to fix that you have to add -latomic to the link line. https://github.com/n...lood/issues/332
#45 Posted 13 March 2020 - 05:07 PM
Hendricks266, 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
#46 Posted 14 March 2020 - 04:40 AM
Moving on ... after applying the patches above ...
Raspbian: make voidsw USE_OPENGL=0 fails.
Raspbian: make voidsw USE_OPENGL=0 fails.
Spoiler
#47 Posted 15 March 2020 - 06:51 AM
Since updating MSYS2's GCC to 9.3.0, linking fails for my bisect-compile options:
make OPTLEVEL=0 LTO=0
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
#48 Posted 17 March 2020 - 04:34 AM
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
#49 Posted 04 November 2023 - 02:50 PM
#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