There are a couple of problems with the 1.4.x mknbi ebuilds. when building on gcc4.x systems Problem) `-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead. Solution) fixed the ebuild to replace all instances of -mcpu with -march Problem) cc1: error: unrecognized command line option "-fno-stack-protector-all" make: *** [first32.o] Error 1 Soultion) Caused by a nossp patch for the gcc3 compilers, -fno-stack-* is not available in gentoo's gcc4 versions. check etools 'gcc-version' before calling epatch Problem) nfl.c:127: error: static declaration of 'terminal' follows non-static declaration Soultion) patch included to fix the static declarations in nfl.c Result) mknbi-1.4.4 is working again on gentoo systems with GCC-4.1.1
Created attachment 101342 [details] Updated ebuild for mknbi-1.4.4 Includes trivial march/mcpu updates, and check for gcc3.x before applying the existing nossp patch which is unrequired for gcc4
Created attachment 101343 [details, diff] mknbi-1.4.4 GCC4 compile fix Trivial fix for some naughty declarations that weren't playing nicely together.
Update: This resolves open bug 148091 http://bugs.gentoo.org/show_bug.cgi?id=148091
Please, attach to the original bug, thanks. *** This bug has been marked as a duplicate of 148091 ***