Can't compile sg.c 2.6.8-rc1-mm1
I am using gcc-3.4.1
CC [M] drivers/scsi/sg.odrivers/scsi/sg.c: In function `sg_ioctl':drivers/scsi/sg.c:209: sorry, unimplemented: inlining failed in call to 'sg_jif_to_ms': function body not available drivers/scsi/sg.c:930: sorry, unimplemented: called from here make[2]: *** [drivers/scsi/sg.o] Error 1
make[1]: *** [drivers/scsi] Error 2
make: *** [drivers] Error 2
Signature · 1 line
Genady Okrain AKA Mafteah
Quoted 11 lines · Genady Okrain
I am using gcc-3.4.1
CC [M]
drivers/scsi/sg.odrivers/scsi/sg.c: In function `sg_ioctl':drivers/scsi/sg.c:209: sorry, unimplemented: inlining failed in call to 'sg_jif_to_ms': function body not availabledrivers/scsi/sg.c:930: sorry, unimplemented: called from here make[2]: *** [drivers/scsi/sg.o] Error 1
make[1]: *** [drivers/scsi] Error 2
make: *** [drivers] Error 2
Also, the following patch is needed for "make menuconfig" to work with GCC 3.5.
scripts/kconfig/mconf.c +1 -1
@@ -88,7 +88,7 @@static int indent;static struct termios ios_org;static int rows, cols; -static struct menu *current_menu; +struct menu *current_menu;static int child_count;static int do_resize;static int single_menu_mode;
Quoted 10 lines · Genady Okrain
I am using gcc-3.4.1
CC [M]
drivers/scsi/sg.odrivers/scsi/sg.c: In function `sg_ioctl':drivers/scsi/sg.c:209: sorry, unimplemented: inlining failed in call to 'sg_jif_to_ms': function body not availabledrivers/scsi/sg.c:930: sorry, unimplemented: called from here make[2]: *** [drivers/scsi/sg.o] Error 1
make[1]: *** [drivers/scsi] Error 2
make: *** [drivers] Error 2
Looks like a compiler bug.
Jeff
Quoted 13 lines · Jeff Garzik
Quoted 10 lines · Genady Okrain
I am using gcc-3.4.1
CC [M]
drivers/scsi/sg.odrivers/scsi/sg.c: In function `sg_ioctl':drivers/scsi/sg.c:209: sorry, unimplemented: inlining failed in call to 'sg_jif_to_ms': function body not availabledrivers/scsi/sg.c:930: sorry, unimplemented: called from here make[2]: *** [drivers/scsi/sg.o] Error 1
make[1]: *** [drivers/scsi] Error 2
make: *** [drivers] Error 2
Quoted 1 line
Looks like a compiler bug.
No, it's an inline that is used before it's defined.
I'll send a fix soon.
Quoted 1 line
Jeff
cu
Adrian
Signature · 4 lines
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon SeedQuoted 16 lines · Adrian Bunk
Quoted 14 lines · Jeff Garzik
Quoted 10 lines · Genady Okrain
I am using gcc-3.4.1
CC [M]
drivers/scsi/sg.odrivers/scsi/sg.c: In function `sg_ioctl':drivers/scsi/sg.c:209: sorry, unimplemented: inlining failed in call to 'sg_jif_to_ms': function body not availabledrivers/scsi/sg.c:930: sorry, unimplemented: called from here make[2]: *** [drivers/scsi/sg.o] Error 1
make[1]: *** [drivers/scsi] Error 2
make: *** [drivers] Error 2
Quoted 6 lines
Quoted 1 line
Looks like a compiler bug.
No, it's an inline that is used before it's defined.
I'll send a fix soon.
Wrong. The prototype is at the top of the file, as it should be.
Jeff