fgsfdsfgs / perfect_dark

work in progress port of n64decomp/perfect_dark to modern platforms
MIT License
1.22k stars 75 forks source link

Unable to compile windows build #392

Closed 0x2480 closed 8 months ago

0x2480 commented 8 months ago

MINGW32 didn't work at all when compiling so I'm using Ubuntu 22.04 via WSL to compile, which has gotten significantly further; while still failing to build and showing an error I haven't seen before, here's the last output from compiling if it could help

Host platform: i686-linux
Target platform: i686-windows
fatal: not a git repository (or any parent up to mount point /mnt)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
fatal: not a git repository (or any parent up to mount point /mnt)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
i686-w64-mingw32-g++ -std=c++20 -DVERSION=2 -DVERSION_HASH=\"\" -DVERSION_TARGET=\"i686-windows\" -DVERSION_ROMID=\"ntsc-final\" -DVERSION_BRANCH=\"port-custom\" -DMATCHING=0 -DPAL=0 -DPIRACYCHECKS=0 -DROM_SIZE=32 -D_LANGUAGE_C=1 -DAVOID_UB=1 -I include -I include/PR -I src/include -I src/generated/ntsc-final -I src/lib/ultra/audio -I port/include -I/usr/local/include -I/usr/local/include/SDL2 -g -fno-inline-functions -fno-strict-aliasing -funsigned-char -fwrapv -Wall -Wno-address -Wno-aggressive-loop-optimizations -Wno-int-in-bool-context -Wno-misleading-indentation -Wno-missing-braces -Wno-multichar -Wno-tautological-compare -Wno-unused-but-set-variable -Wno-unused-value -Wno-unused-variable -Wno-format-truncation  -o build/ntsc-final-port/pd.exe build/ntsc-final-port/src/game/acosasin.o build/ntsc-final-port/src/game/acosfasinf.o build/ntsc-final-port/src/game/activemenu.o build/ntsc-final-port/src/game/activemenutick.o build/ntsc-final-port/src/game/atan2f.o build/ntsc-final-port/src/game/bg.o build/ntsc-final-port/src/game/bgbss.o build/ntsc-final-port/src/game/body.o build/ntsc-final-port/src/game/bodyinit.o build/ntsc-final-port/src/game/bodyreset.o build/ntsc-final-port/src/game/bondbike.o build/ntsc-final-port/src/game/bondcutscene.o build/ntsc-final-port/src/game/bondeyespy.o build/ntsc-final-port/src/game/bondgrab.o build/ntsc-final-port/src/game/bondgun.o build/ntsc-final-port/src/game/bondgunreset.o build/ntsc-final-port/src/game/bondgunstop.o build/ntsc-final-port/src/game/bondhead.o build/ntsc-final-port/src/game/bondheadreset.o build/ntsc-final-port/src/game/bondmove.o build/ntsc-final-port/src/game/bondview.o build/ntsc-final-port/src/game/bondwalk.o build/ntsc-final-port/src/game/bossfile.o build/ntsc-final-port/src/game/bot.o build/ntsc-final-port/src/game/botact.o build/ntsc-final-port/src/game/botcmd.o build/ntsc-final-port/src/game/botinv.o build/ntsc-final-port/src/game/botinvinit.o build/ntsc-final-port/src/game/botmgr.o build/ntsc-final-port/src/game/botroom.o build/ntsc-final-port/src/game/buildtime.o build/ntsc-final-port/src/game/camdraw.o build/ntsc-final-port/src/game/camera.o build/ntsc-final-port/src/game/casingreset.o build/ntsc-final-port/src/game/casingtick.o build/ntsc-final-port/src/game/ceil.o build/ntsc-final-port/src/game/challenge.o build/ntsc-final-port/src/game/challengeinit.o build/ntsc-final-port/src/game/cheats.o build/ntsc-final-port/src/game/chr.o build/ntsc-final-port/src/game/chraction.o build/ntsc-final-port/src/game/chrai.o build/ntsc-final-port/src/game/chraicommands.o build/ntsc-final-port/src/game/chrmgr.o build/ntsc-final-port/src/game/chrmgrstop.o build/ntsc-final-port/src/game/collisionutils.o build/ntsc-final-port/src/game/crc.o build/ntsc-final-port/src/game/credits.o build/ntsc-final-port/src/game/debug1.o build/ntsc-final-port/src/game/debug2.o build/ntsc-final-port/src/game/debug3.o build/ntsc-final-port/src/game/dlights.o build/ntsc-final-port/src/game/dyntex.o build/ntsc-final-port/src/game/endscreen.o build/ntsc-final-port/src/game/env.o build/ntsc-final-port/src/game/explosions.o build/ntsc-final-port/src/game/explosionsreset.o build/ntsc-final-port/src/game/explosionsstop.o build/ntsc-final-port/src/game/file.o build/ntsc-final-port/src/game/filelist.o build/ntsc-final-port/src/game/filemgr.o build/ntsc-final-port/src/game/floor.o build/ntsc-final-port/src/game/fmb.o build/ntsc-final-port/src/game/footstep.o build/ntsc-final-port/src/game/gailists.o build/ntsc-final-port/src/game/gamefile.o build/ntsc-final-port/src/game/game_006900.o build/ntsc-final-port/src/game/game_00b820.o build/ntsc-final-port/src/game/game_096360.o build/ntsc-final-port/src/game/game_096700.o build/ntsc-final-port/src/game/game_096b20.o build/ntsc-final-port/src/game/game_097a50.o build/ntsc-final-port/src/game/game_097aa0.o build/ntsc-final-port/src/game/game_0b0fd0.o build/ntsc-final-port/src/game/game_0b2150.o build/ntsc-final-port/src/game/game_13c510.o build/ntsc-final-port/src/game/game_152fa0.o build/ntsc-final-port/src/game/game_1531a0.o build/ntsc-final-port/src/game/game_175f90.o build/ntsc-final-port/src/game/game_1a78b0.o build/ntsc-final-port/src/game/getitle.o build/ntsc-final-port/src/game/getitlereset.o build/ntsc-final-port/src/game/gfxmemory.o build/ntsc-final-port/src/game/gfxreplace.o build/ntsc-final-port/src/game/gunfx.o build/ntsc-final-port/src/game/gunfxreset.o build/ntsc-final-port/src/game/healthbar.o build/ntsc-final-port/src/game/hudmsg.o build/ntsc-final-port/src/game/inv.o build/ntsc-final-port/src/game/invitems.o build/ntsc-final-port/src/game/invreset.o build/ntsc-final-port/src/game/lang.o build/ntsc-final-port/src/game/langinit.o build/ntsc-final-port/src/game/langreset.o build/ntsc-final-port/src/game/langtick.o build/ntsc-final-port/src/game/lv.o build/ntsc-final-port/src/game/mainmenu.o build/ntsc-final-port/src/game/menu.o build/ntsc-final-port/src/game/menugfx.o build/ntsc-final-port/src/game/menuitem.o build/ntsc-final-port/src/game/menustop.o build/ntsc-final-port/src/game/menutick.o build/ntsc-final-port/src/game/modeldata/basic.o build/ntsc-final-port/src/game/modeldata/casing.o build/ntsc-final-port/src/game/modeldata/chr.o build/ntsc-final-port/src/game/modeldata/chrgun.o build/ntsc-final-port/src/game/modeldata/classicgun.o build/ntsc-final-port/src/game/modeldata/general.o build/ntsc-final-port/src/game/modeldata/player.o build/ntsc-final-port/src/game/modeldata/robot.o build/ntsc-final-port/src/game/modeldata/skedar.o build/ntsc-final-port/src/game/modeldata/skel06.o build/ntsc-final-port/src/game/modeldata/skel0a.o build/ntsc-final-port/src/game/modeldata/skel0b.o build/ntsc-final-port/src/game/modeldata/skel20.o build/ntsc-final-port/src/game/modeldata/uzi.o build/ntsc-final-port/src/game/modeldata/weapon.o build/ntsc-final-port/src/game/modeldef.o build/ntsc-final-port/src/game/modelmgr.o build/ntsc-final-port/src/game/modelmgrreset.o build/ntsc-final-port/src/game/mplayer/ingame.o build/ntsc-final-port/src/game/mplayer/mpaicommands.o build/ntsc-final-port/src/game/mplayer/mplayer.o build/ntsc-final-port/src/game/mplayer/scenarios.o build/ntsc-final-port/src/game/mplayer/setup.o build/ntsc-final-port/src/game/mpstats.o build/ntsc-final-port/src/game/mtxf2lbulkasm_c.o build/ntsc-final-port/src/game/music.o build/ntsc-final-port/src/game/nbomb.o build/ntsc-final-port/src/game/objectives.o build/ntsc-final-port/src/game/objectivesreset.o build/ntsc-final-port/src/game/objectivesstop.o build/ntsc-final-port/src/game/options.o build/ntsc-final-port/src/game/pad.o build/ntsc-final-port/src/game/padhalllv.o build/ntsc-final-port/src/game/pak.o build/ntsc-final-port/src/game/pdmode.o build/ntsc-final-port/src/game/player.o build/ntsc-final-port/src/game/playermgr.o build/ntsc-final-port/src/game/playerreset.o build/ntsc-final-port/src/game/portal.o build/ntsc-final-port/src/game/portalconv_c.o build/ntsc-final-port/src/game/prop.o build/ntsc-final-port/src/game/propobj.o build/ntsc-final-port/src/game/propobjbss.o build/ntsc-final-port/src/game/propobjstop.o build/ntsc-final-port/src/game/propsnd.o build/ntsc-final-port/src/game/propsndreset.o build/ntsc-final-port/src/game/propsndstop.o build/ntsc-final-port/src/game/propsstop.o build/ntsc-final-port/src/game/proptick.o build/ntsc-final-port/src/game/quaternion.o build/ntsc-final-port/src/game/race.o build/ntsc-final-port/src/game/raceinit.o build/ntsc-final-port/src/game/radar.o build/ntsc-final-port/src/game/rng2_c.o build/ntsc-final-port/src/game/room.o build/ntsc-final-port/src/game/roomreset.o build/ntsc-final-port/src/game/roomtick.o build/ntsc-final-port/src/game/savebuffer.o build/ntsc-final-port/src/game/setup.o build/ntsc-final-port/src/game/setupcover.o build/ntsc-final-port/src/game/setuppads.o build/ntsc-final-port/src/game/setuputils.o build/ntsc-final-port/src/game/setupwaypoints.o build/ntsc-final-port/src/game/shards.o build/ntsc-final-port/src/game/shardsreset.o build/ntsc-final-port/src/game/shardsstop.o build/ntsc-final-port/src/game/shardstick.o build/ntsc-final-port/src/game/sight.o build/ntsc-final-port/src/game/sky.o build/ntsc-final-port/src/game/skyreset.o build/ntsc-final-port/src/game/skytick.o build/ntsc-final-port/src/game/smoke.o build/ntsc-final-port/src/game/smokeinit.o build/ntsc-final-port/src/game/smokereset.o build/ntsc-final-port/src/game/smokestop.o build/ntsc-final-port/src/game/sparks.o build/ntsc-final-port/src/game/sparksreset.o build/ntsc-final-port/src/game/sparkstick.o build/ntsc-final-port/src/game/splat.o build/ntsc-final-port/src/game/stagemusic.o build/ntsc-final-port/src/game/stagetable.o build/ntsc-final-port/src/game/stars.o build/ntsc-final-port/src/game/stubs/game_000840.o build/ntsc-final-port/src/game/stubs/game_000850.o build/ntsc-final-port/src/game/stubs/game_000860.o build/ntsc-final-port/src/game/stubs/game_000870.o build/ntsc-final-port/src/game/stubs/game_0008e0.o build/ntsc-final-port/src/game/stubs/game_0008f0.o build/ntsc-final-port/src/game/stubs/game_000900.o build/ntsc-final-port/src/game/stubs/game_000910.o build/ntsc-final-port/src/game/stubs/game_00b180.o build/ntsc-final-port/src/game/stubs/game_00b200.o build/ntsc-final-port/src/game/stubs/game_013540.o build/ntsc-final-port/src/game/stubs/game_015260.o build/ntsc-final-port/src/game/stubs/game_015270.o build/ntsc-final-port/src/game/stubs/game_0153f0.o build/ntsc-final-port/src/game/stubs/game_015400.o build/ntsc-final-port/src/game/stubs/game_015410.o build/ntsc-final-port/src/game/stubs/game_102230.o build/ntsc-final-port/src/game/stubs/game_11eff0.o build/ntsc-final-port/src/game/stubs/game_175f50.o build/ntsc-final-port/src/game/stubs/game_176000.o build/ntsc-final-port/src/game/surfacereset.o build/ntsc-final-port/src/game/tex.o build/ntsc-final-port/src/game/texdecompress.o build/ntsc-final-port/src/game/texinit.o build/ntsc-final-port/src/game/texreset.o build/ntsc-final-port/src/game/texselect.o build/ntsc-final-port/src/game/tilesreset.o build/ntsc-final-port/src/game/timing.o build/ntsc-final-port/src/game/title.o build/ntsc-final-port/src/game/titleclear.o build/ntsc-final-port/src/game/titleinit.o build/ntsc-final-port/src/game/titlereset.o build/ntsc-final-port/src/game/training.o build/ntsc-final-port/src/game/trainingmenus.o build/ntsc-final-port/src/game/utils.o build/ntsc-final-port/src/game/varsreset.o build/ntsc-final-port/src/game/vmstats.o build/ntsc-final-port/src/game/vtxstore.o build/ntsc-final-port/src/game/vtxstorereset.o build/ntsc-final-port/src/game/wallhit.o build/ntsc-final-port/src/game/wallhitreset.o build/ntsc-final-port/src/game/weather.o build/ntsc-final-port/src/game/weatherreset.o build/ntsc-final-port/src/game/weathertick.o build/ntsc-final-port/src/game/zbuf.o build/ntsc-final-port/port/external/enet.o build/ntsc-final-port/port/external/minimp3.o build/ntsc-final-port/port/fast3d/glad/glad.o build/ntsc-final-port/port/src/audio.o build/ntsc-final-port/port/src/config.o build/ntsc-final-port/port/src/console.o build/ntsc-final-port/port/src/crash.o build/ntsc-final-port/port/src/fs.o build/ntsc-final-port/port/src/input.o build/ntsc-final-port/port/src/libultra.o build/ntsc-final-port/port/src/main.o build/ntsc-final-port/port/src/mixer.o build/ntsc-final-port/port/src/mod.o build/ntsc-final-port/port/src/net/net.o build/ntsc-final-port/port/src/net/netbuf.o build/ntsc-final-port/port/src/net/netmenu.o build/ntsc-final-port/port/src/net/netmsg.o build/ntsc-final-port/port/src/optionsmenu.o build/ntsc-final-port/port/src/pdmain.o build/ntsc-final-port/port/src/pdsched.o build/ntsc-final-port/port/src/preprocess.o build/ntsc-final-port/port/src/romdata.o build/ntsc-final-port/port/src/system.o build/ntsc-final-port/port/src/utils.o build/ntsc-final-port/port/src/video.o build/ntsc-final-port/src/lib/mp3/decoder.o build/ntsc-final-port/src/lib/mp3/lib_45ed0.o build/ntsc-final-port/src/lib/mp3/lib_47d20.o build/ntsc-final-port/src/lib/mp3/lib_47ef0.o build/ntsc-final-port/src/lib/mp3/main.o build/ntsc-final-port/src/lib/mp3/util_c.o build/ntsc-final-port/src/lib/naudio/n_auxbus.o build/ntsc-final-port/src/lib/naudio/n_cspgetstate.o build/ntsc-final-port/src/lib/naudio/n_csplayer.o build/ntsc-final-port/src/lib/naudio/n_cspplay.o build/ntsc-final-port/src/lib/naudio/n_cspsendmidi.o build/ntsc-final-port/src/lib/naudio/n_cspsetbank.o build/ntsc-final-port/src/lib/naudio/n_cspsetseq.o build/ntsc-final-port/src/lib/naudio/n_cspsetvol.o build/ntsc-final-port/src/lib/naudio/n_csq.o build/ntsc-final-port/src/lib/naudio/n_drvrNew.o build/ntsc-final-port/src/lib/naudio/n_env.o build/ntsc-final-port/src/lib/naudio/n_event.o build/ntsc-final-port/src/lib/naudio/n_load.o build/ntsc-final-port/src/lib/naudio/n_mainbus.o build/ntsc-final-port/src/lib/naudio/n_resample.o build/ntsc-final-port/src/lib/naudio/n_resample2.o build/ntsc-final-port/src/lib/naudio/n_reverb.o build/ntsc-final-port/src/lib/naudio/n_save.o build/ntsc-final-port/src/lib/naudio/n_seqplayer.o build/ntsc-final-port/src/lib/naudio/n_seqpstop.o build/ntsc-final-port/src/lib/naudio/n_sl.o build/ntsc-final-port/src/lib/naudio/n_sndplayer.o build/ntsc-final-port/src/lib/naudio/n_synaddplayer.o build/ntsc-final-port/src/lib/naudio/n_synallocfx.o build/ntsc-final-port/src/lib/naudio/n_synallocvoice.o build/ntsc-final-port/src/lib/naudio/n_syndelete.o build/ntsc-final-port/src/lib/naudio/n_synfilter11.o build/ntsc-final-port/src/lib/naudio/n_synfilter12.o build/ntsc-final-port/src/lib/naudio/n_synfilter13.o build/ntsc-final-port/src/lib/naudio/n_synfreevoice.o build/ntsc-final-port/src/lib/naudio/n_synsetfxmix.o build/ntsc-final-port/src/lib/naudio/n_synsetfxparam.o build/ntsc-final-port/src/lib/naudio/n_synsetpan.o build/ntsc-final-port/src/lib/naudio/n_synsetpitch.o build/ntsc-final-port/src/lib/naudio/n_synsetpriority.o build/ntsc-final-port/src/lib/naudio/n_synsetvol.o build/ntsc-final-port/src/lib/naudio/n_synstartvoiceparam.o build/ntsc-final-port/src/lib/naudio/n_synstopvoice.o build/ntsc-final-port/src/lib/naudio/n_synthesizer.o build/ntsc-final-port/src/lib/ultra/audio/bnkf.o build/ntsc-final-port/src/lib/ultra/audio/cents2ratio.o build/ntsc-final-port/src/lib/ultra/audio/cseq.o build/ntsc-final-port/src/lib/ultra/audio/heap.o build/ntsc-final-port/src/lib/ultra/audio/sl.o build/ntsc-final-port/src/lib/ultra/gu/align.o build/ntsc-final-port/src/lib/ultra/gu/coss.o build/ntsc-final-port/src/lib/ultra/gu/frustum.o build/ntsc-final-port/src/lib/ultra/gu/lookat.o build/ntsc-final-port/src/lib/ultra/gu/lookatref.o build/ntsc-final-port/src/lib/ultra/gu/mtxutil.o build/ntsc-final-port/src/lib/ultra/gu/normalize.o build/ntsc-final-port/src/lib/ultra/gu/ortho.o build/ntsc-final-port/src/lib/ultra/gu/perspective.o build/ntsc-final-port/src/lib/ultra/gu/rotate.o build/ntsc-final-port/src/lib/ultra/gu/scale.o build/ntsc-final-port/src/lib/ultra/gu/sins.o build/ntsc-final-port/src/lib/ultra/gu/translate.o build/ntsc-final-port/src/lib/ultra/io/vimodentsclan1.o build/ntsc-final-port/src/lib/ultra/io/vimodepallan1.o build/ntsc-final-port/src/lib/ultra/io/vimodempallan1.o build/ntsc-final-port/src/lib/ultra/io/vitbl.o build/ntsc-final-port/src/lib/ailist.o build/ntsc-final-port/src/lib/anim.o build/ntsc-final-port/src/lib/args.o build/ntsc-final-port/src/lib/audiodma.o build/ntsc-final-port/src/lib/audiomgr.o build/ntsc-final-port/src/lib/base.o build/ntsc-final-port/src/lib/collision.o build/ntsc-final-port/src/lib/debughud.o build/ntsc-final-port/src/lib/dma.o build/ntsc-final-port/src/lib/fault.o build/ntsc-final-port/src/lib/joy.o build/ntsc-final-port/src/lib/lib_034d0.o build/ntsc-final-port/src/lib/lib_04f60nb.o build/ntsc-final-port/src/lib/lib_15850.o build/ntsc-final-port/src/lib/lib_17ce0.o build/ntsc-final-port/src/lib/lib_2f490_c.o build/ntsc-final-port/src/lib/lib_2fc60.o build/ntsc-final-port/src/lib/lib_39c80.o build/ntsc-final-port/src/lib/lib_3e3e0.o build/ntsc-final-port/src/lib/mema.o build/ntsc-final-port/src/lib/memp.o build/ntsc-final-port/src/lib/model.o build/ntsc-final-port/src/lib/modelasm_c.o build/ntsc-final-port/src/lib/mp3.o build/ntsc-final-port/src/lib/mtx_c.o build/ntsc-final-port/src/lib/mtx.o build/ntsc-final-port/src/lib/music.o build/ntsc-final-port/src/lib/path.o build/ntsc-final-port/src/lib/profile.o build/ntsc-final-port/src/lib/rdp.o build/ntsc-final-port/src/lib/rmon.o build/ntsc-final-port/src/lib/rng_c.o build/ntsc-final-port/src/lib/rzip_c.o build/ntsc-final-port/src/lib/snd.o build/ntsc-final-port/src/lib/speaker.o build/ntsc-final-port/src/lib/varsinit.o build/ntsc-final-port/src/lib/vi.o build/ntsc-final-port/src/textureconfig.o build/ntsc-final-port/port/fast3d/gfx_cc.o build/ntsc-final-port/port/fast3d/gfx_opengl.o build/ntsc-final-port/port/fast3d/gfx_pc.o build/ntsc-final-port/port/fast3d/gfx_sdl2.o -L/usr/local/lib -Wl,-rpath,/usr/local/lib -Wl,--enable-new-dtags -lSDL2 -lz -lopengl32 -static-libstdc++ -lws2_32 -lwinmm -ldbghelp
/usr/bin/i686-w64-mingw32-ld: unrecognized option '--enable-new-dtags'
/usr/bin/i686-w64-mingw32-ld: use the --help option for usage information
collect2: error: ld returned 1 exit status
make: *** [Makefile.port:307: build/ntsc-final-port/pd.exe] Error 1

I mainly want to compile in order to mess around with things like adding noclip for exploration, so unless something like that were to be added later on the automatic builds wont cut it for me.

(UPDATE) No longer an issue, but incase anyone else has a similar problem doing a fresh install of msys2 and running mingw32 in compatibility mode for windows 7 fixed the issues for me

fgsfdsfgs commented 8 months ago

This is because you either didn't download the source using git or the .git folder in it got nuked. Do not use "Download ZIP" to get it.