* Can't compile sg.c 2.6.8-rc1-mm1
@ 2004-07-14 8:45 Genady Okrain
2004-07-14 9:37 ` Felipe Alfaro Solana
2004-07-14 15:55 ` Jeff Garzik
0 siblings, 2 replies; 5+ messages in thread
From: Genady Okrain @ 2004-07-14 8:45 UTC (permalink / raw)
To: akpm; +Cc: linux-kernel
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
--
Genady Okrain AKA Mafteah
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Can't compile sg.c 2.6.8-rc1-mm1
2004-07-14 8:45 Can't compile sg.c 2.6.8-rc1-mm1 Genady Okrain
@ 2004-07-14 9:37 ` Felipe Alfaro Solana
2004-07-14 15:55 ` Jeff Garzik
1 sibling, 0 replies; 5+ messages in thread
From: Felipe Alfaro Solana @ 2004-07-14 9:37 UTC (permalink / raw)
To: akpm, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 536 bytes --]
On Wed, 2004-07-14 at 11:45 +0300, Genady Okrain wrote:
> 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.
[-- Attachment #2: gcc-35-fix-mconf.c.patch --]
[-- Type: text/x-patch, Size: 497 bytes --]
diff -uNr linux-2.6.7-mm7/scripts/kconfig/mconf.c linux-2.6.7-mm7-gcc35/scripts/kconfig/mconf.c
--- linux-2.6.7-mm7/scripts/kconfig/mconf.c 2004-06-16 07:19:02.000000000 +0200
+++ linux-2.6.7-mm7-gcc35/scripts/kconfig/mconf.c 2004-07-09 10:10:07.000000000 +0200
@@ -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;
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Can't compile sg.c 2.6.8-rc1-mm1
2004-07-14 8:45 Can't compile sg.c 2.6.8-rc1-mm1 Genady Okrain
2004-07-14 9:37 ` Felipe Alfaro Solana
@ 2004-07-14 15:55 ` Jeff Garzik
2004-07-14 16:39 ` Adrian Bunk
1 sibling, 1 reply; 5+ messages in thread
From: Jeff Garzik @ 2004-07-14 15:55 UTC (permalink / raw)
To: Genady Okrain; +Cc: akpm, linux-kernel
Genady Okrain wrote:
> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Can't compile sg.c 2.6.8-rc1-mm1
2004-07-14 15:55 ` Jeff Garzik
@ 2004-07-14 16:39 ` Adrian Bunk
2004-07-14 16:40 ` Jeff Garzik
0 siblings, 1 reply; 5+ messages in thread
From: Adrian Bunk @ 2004-07-14 16:39 UTC (permalink / raw)
To: Jeff Garzik; +Cc: Genady Okrain, akpm, linux-kernel
On Wed, Jul 14, 2004 at 11:55:15AM -0400, Jeff Garzik wrote:
> Genady Okrain wrote:
> >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.
No, it's an inline that is used before it's defined.
I'll send a fix soon.
> Jeff
cu
Adrian
--
"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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Can't compile sg.c 2.6.8-rc1-mm1
2004-07-14 16:39 ` Adrian Bunk
@ 2004-07-14 16:40 ` Jeff Garzik
0 siblings, 0 replies; 5+ messages in thread
From: Jeff Garzik @ 2004-07-14 16:40 UTC (permalink / raw)
To: Adrian Bunk; +Cc: Genady Okrain, akpm, linux-kernel
Adrian Bunk wrote:
> On Wed, Jul 14, 2004 at 11:55:15AM -0400, Jeff Garzik wrote:
>
>>Genady Okrain wrote:
>>
>>>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.
>
>
> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-07-14 16:41 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-14 8:45 Can't compile sg.c 2.6.8-rc1-mm1 Genady Okrain
2004-07-14 9:37 ` Felipe Alfaro Solana
2004-07-14 15:55 ` Jeff Garzik
2004-07-14 16:39 ` Adrian Bunk
2004-07-14 16:40 ` Jeff Garzik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox