drojaazu / sgdk_nix

Makefiles and instructions for using SGDK in *nix environments
MIT License
29 stars 5 forks source link

build failing on Ubuntu 20.04 #6

Open BWoodson opened 4 years ago

BWoodson commented 4 years ago

Hello,

I'm running into this issue with SGDK 1.51 on Ubuntu 20.04. It's stopping at this part with an error. Any help would be greatly appreciated!

m68k-linux-gnu-gcc -m68000 -n -T /home/sirskid/Dev/SGDK/md.ld -nostdlib out/sega.o out/res/sprite.o out/res/sound.o out/res/gfx.o out/src/main.o /home/sirskid/Dev/SGDK/lib/libmd.a /home/sirskid/Dev/SGDK/lib/libgcc.a -o out/rom.out -Wl,--gc-sections
/usr/lib/gcc-cross/m68k-linux-gnu/9/../../../../m68k-linux-gnu/bin/ld: error: no memory region specified for loadable section `.note.gnu.build-id'
collect2: error: ld returned 1 exit status
make: *** [makefile:183: out/rom.out] Error 1
rm res/sound.rs res/gfx.rs res/sprite.rs
BWoodson commented 4 years ago

I was able to get it to compile by adding --build-id=none to the linker line (183) to the makefile. Might this be related to the libgcc issue discussed in the readme? I haven't tried compiling a new version to see if that fixes it as well.