Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 154267

Summary: net-misc/mknbi-* fails to compile with GCC4.X
Product: Gentoo Linux Reporter: Phillip Lemon <lucidcomms>
Component: New packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: 2006.1   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Updated ebuild for mknbi-1.4.4
mknbi-1.4.4 GCC4 compile fix

Description Phillip Lemon 2006-11-06 10:04:59 UTC
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
Comment 1 Phillip Lemon 2006-11-06 10:07:33 UTC
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
Comment 2 Phillip Lemon 2006-11-06 10:09:06 UTC
Created attachment 101343 [details, diff]
mknbi-1.4.4 GCC4 compile fix

Trivial fix for some naughty declarations that weren't playing nicely together.
Comment 3 Phillip Lemon 2006-11-06 10:25:01 UTC
Update:  This resolves open bug 148091

http://bugs.gentoo.org/show_bug.cgi?id=148091
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2006-11-06 12:12:04 UTC
Please, attach to the original bug, thanks.

*** This bug has been marked as a duplicate of 148091 ***