Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

I encountered the following problem.

POP1 32X builder report (exit status 1)


--- system

Linux 6.18.58.1-microsoft-standard-WSL2 x86_64

PRETTY_NAME="Ubuntu 26.04.1 LTS"

running in WSL

cpus: 12

/dev/sdd 1007G 6.6G 950G 1% /

Mem: 3.5Gi 508Mi 2.8Gi 292Ki 271Mi 3.0Gi


--- tools

python3: Python 3.14.4

cc: cc (Ubuntu 15.2.0-16ubuntu1) 15.2.0

make: GNU Make 4.4.1

sh-elf-gcc: sh-elf-gcc (GCC) 14.2.0

sh-elf-nm: GNU nm (GNU Binutils) 2.43.1

m68k-elf-gcc: <builder>/tools/report.sh: 8: <builder>/tools/compiler/inst/bin/m68k-elf-g


--- files

dos_1.0/LEVELS.DAT present

dos_1.3/MIDISND1.DAT present


--- steps reached

== binutils for sh-elf

== gcc for sh-elf

== binutils for m68k-elf

== gcc for m68k-elf


--- end of the screen output

g++ -fno-PIE -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute

g++ -fno-PIE -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute

g++ -fno-PIE -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute

g++ -fno-PIE -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute

g++ -fno-PIE -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute

g++: fatal error: Killed signal terminated program cc1plus

make[1]: *** [Makefile:1198: gimple-match-7.o] Error 1

make: *** [Makefile:4673: all-gcc] Error 2

--- last lines of the build:

g++ -fno-PIE -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute

g++ -fno-PIE -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute

g++ -fno-PIE -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute

g++ -fno-PIE -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute

g++ -fno-PIE -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute

g++ -fno-PIE -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute

g++ -fno-PIE -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute

g++ -fno-PIE -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute

g++: fatal error: Killed signal terminated program cc1plus

compilation terminated.

make[1]: *** [Makefile:1198: gimple-match-7.o] Error 1

make[1]: *** Waiting for unfinished jobs....

rm gcc.pod

make[1]: Leaving directory '<builder>/tools/compiler/build/gcc-m68k-elf/gcc'

make: *** [Makefile:4673: all-gcc] Error 2

(the build folder is kept in tools/compiler/build; send this text)


--- 32X compiler build (errors)

g++: fatal error: Killed signal terminated program cc1plus

make[1]: *** [Makefile:1198: gimple-match-7.o] Error 1

make: *** [Makefile:4673: all-gcc] Error 2

Thanks a lot for the report, it had everything needed!

The build ran out of memory: your WSL has 12 CPUs but only 3.5 GB of RAM, and the builder compiled GCC with 12 jobs at once. Some of GCC's files need about 1 GB each, so the system killed the compiler ("Killed signal"). It was not a problem with your files.

I uploaded a new version of the builder that fixes it:

  • It now runs at most one compile job per 1.5 GB of memory (2 in your case).
  • If the system still runs out of memory, it continues with one job at a time instead of failing.

Please download the builder again and run it as before; it will start the compiler again from GCC. It will take a bit longer, but it should finish. If anything else fails, just post the new build_report.txt here.

I’ll download the new version and give it a try. Could you also update the memory issue fix for the ports of Prince of Persia: The Sands of Time on the Sega Genesis and Prince of Persia 2: The Shadow and the Flame on the Sega 32X? Otherwise, if I run into the same problem, I’ll have to leave a comment in the respective threads again—way too much hassle!

I need you to post the error on pop2 32x page? I know you have low ram but I need the report anyways.

The build succeeded, and the Prince of Persia.32x file has been generated. This time there weren’t many issues during the build, and it went pretty quickly—though the waiting period was long. Now I’m preparing to build the next one.