I just updated to gcc-4.1.1 and rebuilt world, but maelstrom failed to compile: x86_64-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"Maelstrom\" -DVERSION=\"3.0.6\" -I. -I. -pipe -O2 -pipe -O2 -I/usr/include/SDL -D_REENTRANT -I.. -I../netlogic -I../screenlib -I../maclib -DLIBDIR=\"/usr/share/games/Maelstrom\" -c SDL_FrameBuf.cpp SDL_FrameBuf.cpp: In member function 'void FrameBuf::AddDirtyRect(SDL_Rect*)': SDL_FrameBuf.cpp:851: error: cast from 'SDL_Rect*' to 'int' loses precision SDL_FrameBuf.cpp:851: error: cast from 'SDL_Rect*' to 'int' loses precision SDL_FrameBuf.cpp:852: error: cast from 'SDL_Rect*' to 'int' loses precision make[1]: *** [SDL_FrameBuf.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/maelstrom-3.0.6-r1/work/Maelstrom-3.0.6/screenlib' Looks to me like this is an unsafe 64-bit pointer -> 32-bit integer cast. I'm not sure why previous versions of gcc would have accepted this, but clearly I managed to build it before on this system.
Created attachment 95851 [details] emerge --info
Same problem here after updating to gcc 4.1 and trying to compile it using this gcc version.
Patched it and it now works for me, providing a patch file and ebuild to throw into your PORTAGE_OVERLAY If PORTAGE_OVERLAY is /usr/local/portage then you will need: (Copied from /usr/portage) /usr/local/portage/games-action/maelstrom/files/maelstrom-3.0.6-r1-security.patch /usr/local/portage/games-action/maelstrom/files/maelstrom-gcc34.patch (Provided here) /usr/local/portage/games-action/maelstrom/files/maelstrom-gcc41.patch /usr/local/portage/games-action/maelstrom/maelstrom-3.0.6-r1.ebuild (Run "ebuild /usr/local/portage/games-action/maelstrom/maelstrom-3.0.6-r1.ebuild digest") /usr/local/portage/games-action/maelstrom/Manifest /usr/local/portage/games-action/maelstrom/files/digest-maelstrom-3.0.6-r1
Created attachment 98422 [details] ebuild that applies patch /usr/local/portage/games-action/maelstrom/maelstrom-3.0.6-r1.ebuild
Created attachment 98423 [details, diff] patch error and all warnings /usr/local/portage/games-action/maelstrom/files/maelstrom-gcc41.patch
Just submitted patch upstream as well.
Fix is in portage. Thanks for report and patch