Skip to contentSkip to conversation

Can't compile sg.c 2.6.8-rc1-mm1

DISCUSSION Genady Okrain 4 participants 5 messages Jul 14, 2004 Kconfig

lore
Share & tools
lore
#0 lore raw

I am using gcc-3.4.1

CC [M] drivers/scsi/sg.o
drivers/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
#1 lore raw
Quoted 11 lines · Genady Okrain

I am using gcc-3.4.1

CC [M] drivers/scsi/sg.o
drivers/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

Also, the following patch is needed for "make menuconfig" to work with GCC 3.5.

scripts/kconfig/mconf.c +1 -1
diff -uNr linux-2.6.7-mm7/scripts/kconfig/mconf.c linux-2.6.7-mm7-gcc35/scripts/kconfig/mconf.c
@@ -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;
#2 lore raw
In reply to Genady Okrain
Quoted 10 lines · Genady Okrain

I am using gcc-3.4.1

CC [M] drivers/scsi/sg.o
drivers/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

Looks like a compiler bug.

Jeff

#3 lore raw
Quoted 13 lines · Jeff Garzik
Quoted 10 lines · Genady Okrain

I am using gcc-3.4.1

CC [M] drivers/scsi/sg.o
drivers/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

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 Seed
#4 lore raw
Quoted 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.o
drivers/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

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