http://qa.mandrakesoft.com/show_bug.cgi?id=4095





------- Additional Comments From [EMAIL PROTECTED]  2003-24-06 08:25 -------
Already tested. Copy of my message from yesterday:

$ rpm --rebuild --with up --without smp --without secure --without
enterprise --without BOOT --without minimal --without mydsdt --without
debug --without doc --with source --target athlon
kernel-2.4.21-0.rc1.1mdk-1-1mdk.src.rpm

Using the last gcc-3.3-2mdk breaks at the atm driver stage:

gcc -D__KERNEL__ -I/usr/src/RPM/BUILD/kernel-2.4/linux-2.4.20/include 
-Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing
-fno-common -pipe -mpreferred-stack-boundary=2 -march=athlon -DMODULE
-DMODVERSIONS -include
/usr/src/RPM/BUILD/kernel-2.4/linux-2.4.20/include/linux/modversions.h
-g -nostdinc -iwithprefix include -DKBUILD_BASENAME=ambassador  -c -o
ambassador.o ambassador.c
ambassador.c:301:22: atmsar11. start: No such file or directory
ambassador.c:302: error: parse error before ';' token
ambassador.c:305:24: atmsar11. regions: No such file or directory
ambassador.c:310:21: atmsar11. data: No such file or directory
make[2]: *** [ambassador.o] Error 1
make[2]: Leaving directory
`/usr/src/RPM/BUILD/kernel-2.4/linux-2.4.20/drivers/atm'
make[1]: *** [_modsubdir_atm] Error 2
make[1]: Leaving directory
`/usr/src/RPM/BUILD/kernel-2.4/linux-2.4.20/drivers'

Applying this patch seems to get the build going:

--- kernel-2.4/linux-2.4.20/drivers/atm/ambassador.c.orig      
2003-06-22 13:19:29.000000000 -0700
+++ kernel-2.4/linux-2.4.20/drivers/atm/ambassador.c    2003-06-22
13:19:48.000000000 -0700
@@ -290,12 +290,12 @@
 /********** microcode **********/
  
 #ifdef AMB_NEW_MICROCODE
-#define UCODE(x) UCODE1(atmsar12.,x)
+#define UCODE(x) UCODE1(atmsar12,x)
 #else
-#define UCODE(x) UCODE1(atmsar11.,x)
+#define UCODE(x) UCODE1(atmsar11,x)
 #endif
 #define UCODE2(x) #x
-#define UCODE1(x,y) UCODE2(x y)
+#define UCODE1(x,y) UCODE2(x.y)
  
 static u32 __initdata ucode_start =
 #include UCODE(start)

However, the build breaks a bit later with:

/usr/src/RPM/BUILD/kernel-2.4/linux-2.4.20/drivers/net/irda/ma600.c
>
> ma600.c:189:40: pasting ";" and "return" does not give a valid
> preprocessing token
> ma600.c:303:40: pasting ";" and "return" does not give a valid
> preprocessing token

Something wrong or changed with the cpp macro interpreter?

-- 
Configure bugmail: http://qa.mandrakesoft.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


------- Reminder: -------
assigned_to: [EMAIL PROTECTED]
status: UNCONFIRMED
creation_date: 
description: 
Hello,

just compiling kernel 2.4.21-0.18mdk and I experienced this problem with latest
Cooker gcc-3.3-1mdk:

...
make[2]: Entering directory `/usr/src/linux-2.4.21-0.18mdk/kernel'
gcc -D__KERNEL__ -I/usr/src/linux-2.4.21-0.18mdk/include  -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686   -nostdinc
-iwithprefix include -DKBUILD_BASENAME=sched  -fno-omit-frame-pointer -c -o
sched.o sched.c
sched.c: In function `schedule':
sched.c:714: internal compiler error: in merge_assigned_reloads, at reload1.c:6134
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:https://qa.mandrakesoft.com/> for instructions.
make[2]: *** [sched.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.4.21-0.18mdk/kernel'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.21-0.18mdk/kernel'
make: *** [_dir_kernel] Error 2

Patch should be applied because this gcc is unusable.

Thanks,
Vlasta

Reply via email to