XorTroll / Plutonium

An easy-to-use UI framework for Nintendo Switch homebrew
https://xortroll.github.io/Plutonium/
MIT License
271 stars 40 forks source link

Cant build example #29

Closed NicolaiVdS closed 4 years ago

NicolaiVdS commented 4 years ago

When i try to build the example i get following error

make[1]: Entering directory '/home/nicolaivds/Documents/Switch_DEV/MultiSave/Plutonium'
make[2]: Entering directory '/home/nicolaivds/Documents/Switch_DEV/MultiSave/Plutonium/Plutonium'
make[3]: '/home/nicolaivds/Documents/Switch_DEV/MultiSave/Plutonium/Plutonium/Output/lib/libpu.a' is up to date.
make[2]: Leaving directory '/home/nicolaivds/Documents/Switch_DEV/MultiSave/Plutonium/Plutonium'
make[1]: Leaving directory '/home/nicolaivds/Documents/Switch_DEV/MultiSave/Plutonium'
make[1]: Entering directory '/home/nicolaivds/Documents/Switch_DEV/MultiSave/MultiSave'
MainApplication.cpp
aarch64-none-elf-g++ -MMD -MP -MF /home/nicolaivds/Documents/Switch_DEV/MultiSave/MultiSave/build/MainApplication.d -g -O2 -ffunction-sections -march=armv8-a+crc+crypto -mtune=cortex-a57 -mtp=soft -fPIE -Wl,-wrap,fatalThrow  -I/home/nicolaivds/Documents/Switch_DEV/MultiSave/MultiSave/Include -I/opt/devkitpro/portlibs/switch/include -I/opt/devkitpro/libnx/include -I/home/nicolaivds/Documents/Switch_DEV/MultiSave/MultiSave/../Plutonium/Plutonium/Output/include -I/home/nicolaivds/Documents/Switch_DEV/MultiSave/MultiSave/build -D__SWITCH__ -DMULTISAVE_MAJOR=0 -DMULTISAVE_MINOR=0 -DMULTISAVE_MICRO=1 -DMULTISAVE_VERSION=\"0.0.1\" -fno-rtti -fexceptions -std=gnu++17 -c /home/nicolaivds/Documents/Switch_DEV/MultiSave/MultiSave/Source/MainApplication.cpp -o MainApplication.o 
Main.cpp
aarch64-none-elf-g++ -MMD -MP -MF /home/nicolaivds/Documents/Switch_DEV/MultiSave/MultiSave/build/Main.d -g -O2 -ffunction-sections -march=armv8-a+crc+crypto -mtune=cortex-a57 -mtp=soft -fPIE -Wl,-wrap,fatalThrow  -I/home/nicolaivds/Documents/Switch_DEV/MultiSave/MultiSave/Include -I/opt/devkitpro/portlibs/switch/include -I/opt/devkitpro/libnx/include -I/home/nicolaivds/Documents/Switch_DEV/MultiSave/MultiSave/../Plutonium/Plutonium/Output/include -I/home/nicolaivds/Documents/Switch_DEV/MultiSave/MultiSave/build -D__SWITCH__ -DMULTISAVE_MAJOR=0 -DMULTISAVE_MINOR=0 -DMULTISAVE_MICRO=1 -DMULTISAVE_VERSION=\"0.0.1\" -fno-rtti -fexceptions -std=gnu++17 -c /home/nicolaivds/Documents/Switch_DEV/MultiSave/MultiSave/Source/Main.cpp -o Main.o 
linking MultiSave.elf
/opt/devkitpro/devkitA64/lib/gcc/aarch64-none-elf/9.2.0/../../../../aarch64-none-elf/bin/ld: /opt/devkitpro/libnx/lib/libnx.a(applet.o): in function `appletNotifyRunning':
/home/fincs/pacman-packages/libnx/src/libnx-3.0.0/nx/source/services/applet.c:2005: undefined reference to `__wrap_fatalThrow'
/opt/devkitpro/devkitA64/lib/gcc/aarch64-none-elf/9.2.0/../../../../aarch64-none-elf/bin/ld: /opt/devkitpro/libnx/lib/libnx.a(applet.o): in function `_appletInitialize':
/home/fincs/pacman-packages/libnx/src/libnx-3.0.0/nx/source/services/applet.c:163: undefined reference to `__wrap_fatalThrow'
/opt/devkitpro/devkitA64/lib/gcc/aarch64-none-elf/9.2.0/../../../../aarch64-none-elf/bin/ld: /opt/devkitpro/libnx/lib/libnx.a(applet.o): in function `appletGetMessage':
/home/fincs/pacman-packages/libnx/src/libnx-3.0.0/nx/source/services/applet.c:2883: undefined reference to `__wrap_fatalThrow'
/opt/devkitpro/devkitA64/lib/gcc/aarch64-none-elf/9.2.0/../../../../aarch64-none-elf/bin/ld: /opt/devkitpro/libnx/lib/libnx.a(applet.o): in function `appletProcessMessage':
/home/fincs/pacman-packages/libnx/src/libnx-3.0.0/nx/source/services/applet.c:2913: undefined reference to `__wrap_fatalThrow'
/opt/devkitpro/devkitA64/lib/gcc/aarch64-none-elf/9.2.0/../../../../aarch64-none-elf/bin/ld: /home/fincs/pacman-packages/libnx/src/libnx-3.0.0/nx/source/services/applet.c:2901: undefined reference to `__wrap_fatalThrow'
/opt/devkitpro/devkitA64/lib/gcc/aarch64-none-elf/9.2.0/../../../../aarch64-none-elf/bin/ld: /opt/devkitpro/libnx/lib/libnx.a(applet.o):/home/fincs/pacman-packages/libnx/src/libnx-3.0.0/nx/source/services/applet.c:2921: more undefined references to `__wrap_fatalThrow' follow
collect2: error: ld returned 1 exit status
make[2]: *** [/opt/devkitpro/libnx/switch_rules:80: /home/nicolaivds/Documents/Switch_DEV/MultiSave/MultiSave/MultiSave.elf] Error 1
make[1]: *** [Makefile:176: build] Error 2
make[1]: Leaving directory '/home/nicolaivds/Documents/Switch_DEV/MultiSave/MultiSave'
make: *** [Makefile:5: all] Error 2

link to my repo https://gitlab.com/NicolaiVdS/multisave

NicolaiVdS commented 4 years ago

had -Wl,-wrap,fatalThrow in my ARCH flag after removing that it worked