PROBLEM: compiling with gcc 3.0
Hi,
I was trying to compile 2.4.5 with gcc 3.0 but there is a problem (conflicting type) between kernel/timer.c and include/linux/sched.h Apparently the problem solves with this oneline workarond:
include/linux/sched.h.orig Tue Jun 19 17:00:13 2001 renamed from include/linux/sched.h Tue Jun 19 17:00:03 2001 +1 -1
@@ -537,7 +537,7 @@ extern unsigned long volatile jiffies; extern unsigned long itimer_ticks; extern unsigned long itimer_next; -extern volatile struct timeval xtime __attribute__ ((aligned (16))); +extern struct timeval xtime; extern void do_timer(struct pt_regs *)
don't know if this is the right approach but works for me.
Signature · 6 lines
.-----------------------------------------------------------------. | Simone Piunno Wireless Solutions srl - DADA group | | software architect Europe HQ, via Castiglione 25 Bologna | | http://www.wseurope.com Tel: +390512966823 Fax: +390512966800 | | http://www.waptopic.com God is real, unless declared integer. | '-----------------------------------------------------------------'
Quoted 3 lines
I was trying to compile 2.4.5 with gcc 3.0 but there is a problem (conflicting type) between
kernel/timer.candinclude/linux/sched.hApparently the problem solves with this oneline workarond:
Yep. Its fixed in the pre-patches I believe now. There are also a pile of warning fixes that need to be merging. I would still be very wary of relying on a gcc 3.0.0 built kernel though
include/linux/sched.h.orig Tue Jun 19 17:00:13 2001
Quoted 6 lines · Simone Piunno
I was trying to compile 2.4.5 with gcc 3.0 but there is a problem (conflicting type) between
kernel/timer.candinclude/linux/sched.hApparently the problem solves with this oneline workarond:include/linux/sched.h.orig Tue Jun 19 17:00:13 2001 renamed from include/linux/sched.h Tue Jun 19 17:00:03 2001 +0
-0
[short patch snipped]
Quoted 1 line
don't know if this is the right approach but works for me.
The approach was right, but your argument order to diff was backwards. Andrea posted this patch a little while ago:
include/linux/sched.h renamed from include/linux/sched.h.~1~ +1 -1
@@ -541,7 +541,7 @@extern unsigned long volatile jiffies;extern unsigned long itimer_ticks;extern unsigned long itimer_next; -extern struct timeval xtime; +extern volatile struct timeval xtime;extern void do_timer (struct pt_regs *);extern unsigned int * prof_buffer;
-Chris
Signature · 3 lines
Two penguins were walking on an iceberg. The first penguin said to the second, "you look like you are wearing a tuxedo." The second penguin said, "I might be..." --David Lynch, Twin Peaks
It was posted by Alan Cox where I now add my 0.02 EUR...
Quoted 7 lines
Quoted 3 lines
I was trying to compile 2.4.5 with gcc 3.0 but there is a problem (conflicting type) between
kernel/timer.candinclude/linux/sched.hApparently the problem solves with this oneline workarond:Yep. Its fixed in the pre-patches I believe now. There are also a pile of warning fixes that need to be merging. I would still be very wary of relying on a gcc 3.0.0 built kernel though
Since the rwsem had been fixed my 2.4.3-ac7 (with Andrea's generic rwsem) has been rock solid, and it has been built with a binary snapshot of april 2001. We don't have any problems using it yet.
I can send the .config if you want.
-mirabilos
Signature · 4 lines
C:\>debug -e100 EA F0 FF 00 F0 -g --->Enjoy!