Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 154267 - net-misc/mknbi-* fails to compile with GCC4.X
Summary: net-misc/mknbi-* fails to compile with GCC4.X
Status: RESOLVED DUPLICATE of bug 148091
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-06 10:04 UTC by Phillip Lemon
Modified: 2006-11-06 12:12 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Updated ebuild for mknbi-1.4.4 (mknbi-1.4.4-r1.ebuild,1.07 KB, application/octet-stream)
2006-11-06 10:07 UTC, Phillip Lemon
Details
mknbi-1.4.4 GCC4 compile fix (mknbi-1.4.4-GCC4-fixes.patch,1.04 KB, patch)
2006-11-06 10:09 UTC, Phillip Lemon
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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 ***