Bug#598968: marked as done (ITP: bsnes -- Accurate SNES/SuperFamicom emulator)
great that bsnes has finally been uploaded to unstable. However,
the package is broken, it doesn't build from source (FTBFS). The
problem appears to be a hardwired version of gcc. The Makefile
explicitly calls gcc-4.5/g++-4.5 which are not available on
testing and unstable anymore.
The compilers are set in the following Makefiles in the bsnes source:
The compiler version is set to 4.5 when neither Windows or MacOS
compiler := gcc
else ifeq ($(platform),osx)
compiler := gcc-mp-4.5
compiler := gcc-4.5
The C++ compiler binary is then generated by regexp replace
in the other Makefiles:
c := $(compiler) -std=gnu99
cpp := $(subst cc,++,$(compiler)) -std=gnu++0x
for example in bsnes/Makefile.
The resulting build messages show the attempted invocation
make: Entering directory
g++-4.5 -std=gnu++0x -O3 -fomit-frame-pointer
-I. -DPROFILE_COMPATIBILITY -c ui/main.cpp -o obj/ui-main.o
make: g++-4.5: Command not found
make: *** [obj/ui-main.o] Error 127
See the build logs here .
There is actually already a Debian patch which adresses this
issue for the subdirectory "snespurify", but apparently not
for the remaining subdirectories. The patch is found at
the other Makefiles mentioned above should fix the FTBFS.