digger icon indicating copy to clipboard operation
digger copied to clipboard

Can't compile in raspberry pi 400

Open cpcbegin opened this issue 10 months ago • 0 comments

I try to compile in raspberry pi 400 (latest Raspberry Pi OS) with make command and I get this error:

cc -pipe -O0 -g3 -DDIGGER_DEBUG -o digger main.o digger.o drawing.o sprite.o scores.o record.o sound.o newsnd.o ini.o input.o monster.o bags.o alpha.o vgagrafx.o title_gz.o icon.o sdl_kbd.o sdl_vid.o sdl_timer.o sdl_snd.o digger_math.o monster_obj.o digger_obj.o bullet_obj.o cgagrafx.o keyboard.o soundgen.o spinlock.o game.o fbsd_sup.o	 -lSDL2 -lz -lm -lX11
/usr/bin/ld: spinlock.o: en la función `spinlock_ctor':
/opt/linuxgames/digger/spinlock.c:53: referencia a `__atomic_store_8' sin definir
/usr/bin/ld: spinlock.o: en la función `spinlock_lock':
/opt/linuxgames/digger/spinlock.c:74: referencia a `__atomic_fetch_add_8' sin definir
collect2: error: ld returned 1 exit status
make: *** [GNUmakefile:98: digger] Error 1

I compile successfully in a PC with Debian 12.

cpcbegin avatar Apr 21 '24 10:04 cpcbegin