You are not logged in.

#1 2003-05-19 21:27:09

xirus
Member
Registered: 2002-12-01
Posts: 113

kernel compilation errors with the latest gcc 3.3

There are some bugs in the kernel that cause gcc3.3 to stop compiling.

The solution is to make the changes given in the url below

http://marc.theaimsgroup.com/?l=linux-k … 728468&w=2


eg

--- linux-2.4.20-orig/drivers/ide/ide-cd.h2002-12-10 17:46:28 +0900
+++ linux-2.4.20/drivers/ide/ide-cd.h2003-05-16 00:59:53 +0900
@@ -437,7 +437,7 @@
 
 byte     curlba[3];
 byte     nslots;
-__u8 short slot_tablelen;
+__u8     slot_tablelen;
 };

means you have to replace
__u8 short slot_tablelen;
with
u8     slot_tablelen;
in the drivers/ide/ide-cd.h file on line 437
so always remove the lines with a "-" in front of them and replace them with the ones with a +

a second one:

--- linux-2.4.20-orig/net/core/rtnetlink.c2002-12-09 16:38:46 +0900
+++ linux-2.4.20/net/core/rtnetlink.c2003-05-16 01:31:20 +0900
@@ -394,7 +394,7 @@
  * Malformed skbs with wrong lengths of messages are discarded silently.
  */
 
-extern __inline__ int rtnetlink_rcv_skb(struct sk_buff *skb)
+__inline__ int rtnetlink_rcv_skb(struct sk_buff *skb)
 {
 int err;
 struct nlmsghdr * nlh;

and also

--- linux-2.4.20-orig/drivers/scsi/aic7xxx/aic7xxx_osm.c2002-08-03 09:39:44 +0900
+++ linux-2.4.20/drivers/scsi/aic7xxx/aic7xxx_osm.c2003-05-16 01:21:40 +0900
@@ -417,25 +417,25 @@
 MODULE_LICENSE("Dual BSD/GPL");
 #endif
 MODULE_PARM(aic7xxx, "s");
-MODULE_PARM_DESC(aic7xxx, "period delimited, options string.
-verboseEnable verbose/diagnostic logging
-no_probeDisable EISA/VLB controller probing
-no_resetSupress initial bus resets
-extendedEnable extended geometry on all controllers
-periodic_otagSend an ordered tagged transaction periodically
-to prevent tag starvation.  This may be
-required by some older disk drives/RAID arrays. 
-reverse_scanSort PCI devices highest Bus/Slot to lowest
-tag_info:<tag_str>Set per-target tag depth
-seltime:<int>Selection Timeout(0/256ms,1/128ms,2/64ms,3/32ms)
-
-Sample /etc/modules.conf line:
-Enable verbose logging
-Disable EISA/VLB probing
-Set tag depth on Controller 2/Target 2 to 10 tags
-Shorten the selection timeout to 128ms from its default of 256
-
-options aic7xxx='"verbose.no_probe.tag_info:{{}.{}.{..10}}.seltime:1"'
+MODULE_PARM_DESC(aic7xxx, "period delimited, options string.n
+verboseEnable verbose/diagnostic loggingn
+no_probeDisable EISA/VLB controller probingn
+no_resetSupress initial bus resetsn
+extendedEnable extended geometry on all controllersn
+periodic_otagSend an ordered tagged transaction periodicallyn
+to prevent tag starvation.  This may ben
+required by some older disk drives/RAID arrays. n
+reverse_scanSort PCI devices highest Bus/Slot to lowestn
+tag_info:<tag_str>Set per-target tag depthn
+seltime:<int>Selection Timeout(0/256ms,1/128ms,2/64ms,3/32ms)n
+n
+Sample /etc/modules.conf line:n
+Enable verbose loggingn
+Disable EISA/VLB probingn
+Set tag depth on Controller 2/Target 2 to 10 tagsn
+Shorten the selection timeout to 128ms from its default of 256n
+n
+options aic7xxx='"verbose.no_probe.tag_info:{{}.{}.{..10}}.seltime:1"'n
 ");
 #endif

Offline

#2 2003-05-19 21:39:50

Xentac
Forum Fellow
From: Victoria, BC
Registered: 2003-01-17
Posts: 1,797
Website

Re: kernel compilation errors with the latest gcc 3.3

Doing a little bit of research, this seems to be a general problem with gcc 3.3 and kernels.  Not sure what the gcc people are thinking of doing... also not sure what Arch should do about it.  This issue will need more research.


I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal

Offline

#3 2003-05-19 22:03:28

netkrash
Member
From: Viña del Mar, Chile.
Registered: 2003-03-19
Posts: 95

Re: kernel compilation errors with the latest gcc 3.3

thats why i couldn't rebuild my kernel with gcc3.3 =/

anyway thanks for the patches..

it always fails in the ide-cd.h with the __u8 stuff..


GNU/Linux: Share & Enjoy!

Offline

#4 2003-05-19 23:27:23

sarah31
Member
From: Middle of Canada
Registered: 2002-08-20
Posts: 2,975
Website

Re: kernel compilation errors with the latest gcc 3.3

actually by the looks of it so far coders will have to be even more vigilent because the new gcc seems far less forgiving.


AKA uknowme

I am not your friend

Offline

Board footer

Powered by FluxBB