Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 471274 - sys-boot/lilo-23.2-r2 with sys-devel/gcc-4.8 - as: opcode expected in "This file is part of the GNU C Library."
Summary: sys-boot/lilo-23.2-r2 with sys-devel/gcc-4.8 - as: opcode expected in "This f...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-4.8
  Show dependency tree
 
Reported: 2013-05-25 20:22 UTC by om3i
Modified: 2013-12-23 13:10 UTC (History)
1 user (show)

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


Attachments
failed build log (build_failure.log,23.93 KB, text/plain)
2013-05-25 20:25 UTC, om3i
Details
successful build log (build_success.log,35.55 KB, text/plain)
2013-05-25 20:25 UTC, om3i
Details
emerge --info (emerge_info.txt,2.70 KB, text/plain)
2013-05-25 20:27 UTC, om3i
Details

Note You need to log in before you can comment on or make changes to this bug.
Description om3i 2013-05-25 20:22:17 UTC
sys-boot/lilo-23.2-r2 fails to build with gcc 4.8

There is similiar bug in debian tracker:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=701315

they haven't fixed it yet, however i managed to compile lilo with -ffreestanding gcc flag as in:
http://gcc.gnu.org/gcc-4.8/porting_to.html

but haven't tested if it actualy boots.

Reproducible: Always
Comment 1 om3i 2013-05-25 20:25:38 UTC
Created attachment 349164 [details]
failed build log
Comment 2 om3i 2013-05-25 20:25:58 UTC
Created attachment 349166 [details]
successful build log
Comment 3 om3i 2013-05-25 20:27:58 UTC
Created attachment 349168 [details]
emerge --info
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2013-05-30 07:59:20 UTC
Lunar Linux developer cavalier pointed me to this patch:

http://download.lunar-linux.org/lunar/patches/lilo-23.2-gcc-4.8.patch

--- lilo-23.0-4.7/src/Makefile	2010-06-27 14:53:05.000000000 +0200
+++ lilo-23.0-4.8/src/Makefile	2013-05-30 09:10:37.412311814 +0200
@@ -185,7 +185,7 @@
 		(dd if=first.b bs=512 conv=sync; dd if=bitmap.b) >boot-bmp.b
 
 common.s:	common.h
-		$(CPP) -C -traditional -DLILO_ASM -o common.s common.h
+		$(CPP) -C -nostdinc -traditional -DLILO_ASM -o common.s common.h
 
 bitmap.o: bitmap.s common.s
 third.o: third.s common.s
Comment 5 Ryan Hill (RETIRED) gentoo-dev 2013-08-13 01:44:45 UTC
Looks sane to me.  Has anyone tested this?
Comment 6 Konstantin B 2013-09-18 10:33:07 UTC
I've built lilo on two amd64 machines with gcc-4.8.1 successfully with the patch, and it has been running on both without problems for a month now. Sorry for the late comment.
Comment 7 Tony Vroon (RETIRED) gentoo-dev 2013-09-23 12:20:53 UTC
+*lilo-24.0 (23 Sep 2013)
+
+  23 Sep 2013; Tony Vroon <chainsaw@gentoo.org> +lilo-24.0.ebuild,
+  +files/lilo-24.0-novga.patch:
+  Version bump, as requested by Tomasz Golinski in bug #473366. Rediffed
+  "novga" patch by Ben Kohler closes bug #452862. Upstream changelog confirms
+  that this fixes the GCC 4.8 build failure reported by nzqr in bug #471274.