OpenVZ Forum


Home » Mailing lists » Users » Error recompiling kernel FC4 patched win OVZ
Error recompiling kernel FC4 patched win OVZ [message #3439] Mon, 29 May 2006 01:33 Go to next message
jbravo is currently offline  jbravo
Messages: 20
Registered: May 2006
Junior Member
Hi,

Im triting to recompile kernel-2.6.8 with OVZ patch.

Im getting this error when I do: make modules

make[3]: *** [drivers/scsi/qla2xxx/qla_gs.o] Error 1
make[2]: *** [drivers/scsi/qla2xxx] Error 2
make[1]: *** [drivers/scsi] Error 2
make: *** [drivers] Error 2


Thanks,

José David Bravo Álvarez
Re: Error recompiling kernel FC4 patched win OVZ [message #3444 is a reply to message #3439] Mon, 29 May 2006 06:40 Go to previous messageGo to next message
Kirill Korotaev is currently offline  Kirill Korotaev
Messages: 137
Registered: January 2006
Senior Member
Can you post error messages before make error?
I suppose this can be somwhow gcc version related.

Thanks,
Kirill


> Hi,
>
> Im triting to recompile kernel-2.6.8 with OVZ patch.
>
> Im getting this error when I do: make modules
>
> make[3]: *** [drivers/scsi/qla2xxx/qla_gs.o] Error 1
> make[2]: *** [drivers/scsi/qla2xxx] Error 2
> make[1]: *** [drivers/scsi] Error 2
> make: *** [drivers] Error 2
>
>
> Thanks,
>
> José David Bravo Álvarez
Re: Error recompiling kernel FC4 patched win OVZ [message #3454 is a reply to message #3444] Tue, 30 May 2006 02:38 Go to previous messageGo to next message
jbravo is currently offline  jbravo
Messages: 20
Registered: May 2006
Junior Member
Kirill Korotaev escribió:
> Can you post error messages before make error?
> I suppose this can be somwhow gcc version related.
>
> Thanks,
> Kirill
>
>
>> Hi,
>>
>> Im triting to recompile kernel-2.6.8 with OVZ patch.
>>
>> Im getting this error when I do: make modules
>>
>> make[3]: *** [drivers/scsi/qla2xxx/qla_gs.o] Error 1
>> make[2]: *** [drivers/scsi/qla2xxx] Error 2
>> make[1]: *** [drivers/scsi] Error 2
>> make: *** [drivers] Error 2
>>
>>
>> Thanks,
>>
>> José David Bravo Álvarez
make[1]: `arch/i386/kernel/asm-offsets.s' is up to date.
CC [M] drivers/scsi/qla2xxx/qla_gs.o
drivers/scsi/qla2xxx/qla_gs.c: In function âqla2x00_ga_nxtâ:
drivers/scsi/qla2xxx/qla_gs.c:97: sorry, unimplemented: inlining failed
in call to âqla24xx_prep_ms_iocbâ: function not considered for inlining
drivers/scsi/qla2xxx/qla_gs.c:61: sorry, unimplemented: called from here
drivers/scsi/qla2xxx/qla_gs.c: In function âqla2x00_rsnn_nnâ:
drivers/scsi/qla2xxx/qla_gs.c:684: warning: pointer targets in passing
argument 1 of âstrcpyâ differ in signedness
drivers/scsi/qla2xxx/qla_gs.c:684: warning: pointer targets in passing
argument 2 of âstrcpyâ differ in signedness
drivers/scsi/qla2xxx/qla_gs.c:686: warning: pointer targets in passing
argument 1 of âstrcatâ differ in signedness
drivers/scsi/qla2xxx/qla_gs.c:688: warning: pointer targets in passing
argument 1 of âsprintfâ differ in signedness
drivers/scsi/qla2xxx/qla_gs.c:689: warning: pointer targets in passing
argument 1 of âstrcatâ differ in signedness
drivers/scsi/qla2xxx/qla_gs.c:689: warning: pointer targets in passing
argument 2 of âstrcatâ differ in signedness
drivers/scsi/qla2xxx/qla_gs.c:691: warning: pointer targets in passing
argument 1 of âstrcatâ differ in signedness
drivers/scsi/qla2xxx/qla_gs.c:692: warning: pointer targets in passing
argument 1 of âstrcatâ differ in signedness
drivers/scsi/qla2xxx/qla_gs.c:695: warning: pointer targets in passing
argument 1 of âstrlenâ differ in signedness
drivers/scsi/qla2xxx/qla_gs.c: In function âqla2x00_fdmi_rhbaâ:
drivers/scsi/qla2xxx/qla_gs.c:1325: warning: pointer targets in passing
argument 1 of âstrcpyâ differ in signedness
drivers/scsi/qla2xxx/qla_gs.c:1326: warning: pointer targets in passing
argument 1 of âstrlenâ differ in signedness
drivers/scsi/qla2xxx/qla_gs.c:1338: warning: pointer targets in passing
argument 1 of âsprintfâ differ in signedness
drivers/scsi/qla2xxx/qla_gs.c:1339: warning: pointer targets in passing
argument 1 of âstrlenâ differ in signedness
drivers/scsi/qla2xxx/qla_gs.c:1350: warning: pointer targets in passing
argument 1 of âstrcpyâ differ in signedness
drivers/scsi/qla2xxx/qla_gs.c:1350: warning: pointer targets in passing
argument 2 of âstrcpyâ differ in signedness
drivers/scsi/qla2xxx/qla_gs.c:1351: warning: pointer targets in passing
argument 1 of âstrlenâ differ in signedness
drivers/scsi/qla2xxx/qla_gs.c:1363: warning: pointer targets in passing
argument 1 of âstrncpyâ differ in signedness
drivers/scsi/qla2xxx/qla_gs.c:1364: warning: pointer targets in passing
argument 1 of âstrlenâ differ in signedness
drivers/scsi/qla2xxx/qla_gs.c:1375: warning: pointer targets in passing
argument 1 of âstrcpyâ differ in signedness
drivers/scsi/qla2xxx/qla_gs.c:1375: warning: pointer targets in passing
argument 2 of âstrcpyâ differ in signedness
drivers/scsi/qla2xxx/qla_gs.c:1376: warning: pointer targets in passing
argument 1 of âstrlenâ differ in signedness
drivers/scsi/qla2xxx/qla_gs.c:1387: warning: pointer targets in passing
argument 1 of âstrcpyâ differ in signedness
drivers/scsi/qla2xxx/qla_gs.c:1388: warning: pointer targets in passing
argument 1 of âstrlenâ differ in signedness
drivers/scsi/qla2xxx/qla_gs.c:1403: warning: pointer targets in passing
argument 1 of âstrcpyâ differ in signedness
drivers/scsi/qla2xxx/qla_gs.c:1405: warning: pointer targets in passing
argument 1 of âstrlenâ differ in signedness
drivers/scsi/qla2xxx/qla_gs.c:1416: warning: pointer targets in passing
argument 2 of âqla2x00_get_fw_version_strâ differ in signedness
drivers/scsi/qla2xxx/qla_gs.c:1417: warning: pointer targets in passing
argument 1 of âstrlenâ differ in signedness
drivers/scsi/qla2xxx/qla_gs.c:1429: warning: pointer targets in passing
argument 1 of âsprintfâ differ in signedness
drivers/scsi/qla2xxx/qla_gs.c:1430: warning: pointer targets in passing
argument 1 of âstrlenâ differ in signedness
drivers/scsi/qla2xxx/qla_gs.c: In function âqla2x00_fdmi_rpaâ:
drivers/scsi/qla2xxx/qla_gs.c:1636: warning: pointer targets in passing
argument 1 of âsprintfâ differ in signedness
drivers/scsi/qla2xxx/qla_gs.c:1637: warning: pointer targets in passing
argument 1 of âstrlenâ differ in signedness
drivers/scsi/qla2xxx/qla_gs.c:1648: warning: pointer targets in passing
argument 1 of âstrcpyâ differ in signedness
drivers/scsi/qla2xxx/qla_gs.c:1649: warning: pointer targets in passing
argument 1 of âstrlenâ differ in signedness
make[3]: *** [drivers/scsi/qla2xxx/qla_gs.o] Error 1
make[2]: *** [drivers/scsi/qla2xxx] Error 2
make[1]: *** [drivers/scsi] Error 2
make: *** [drivers] Error 2
Re: Error recompiling kernel FC4 patched win OVZ [message #3460 is a reply to message #3454] Tue, 30 May 2006 07:36 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

I might be wrong but it looks like you need to update your gcc version.
Try this command (as root):
yum -y update gcc

Or report us your distribution (it is FC4, right?) and gcc version
(output of rpm -q gcc or gcc --version).

Regards,
Kir.

José David Bravo Álvarez wrote:

> Kirill Korotaev escribió:
>
>> Can you post error messages before make error?
>> I suppose this can be somwhow gcc version related.
>>
>> Thanks,
>> Kirill
>>
>>
>>> Hi,
>>>
>>> Im triting to recompile kernel-2.6.8 with OVZ patch.
>>>
>>> Im getting this error when I do: make modules
>>>
>>> make[3]: *** [drivers/scsi/qla2xxx/qla_gs.o] Error 1
>>> make[2]: *** [drivers/scsi/qla2xxx] Error 2
>>> make[1]: *** [drivers/scsi] Error 2
>>> make: *** [drivers] Error 2
>>>
>>>
>>> Thanks,
>>>
>>> José David Bravo Álvarez
> make[1]: `arch/i386/kernel/asm-offsets.s' is up to date.
> CC [M] drivers/scsi/qla2xxx/qla_gs.o
> drivers/scsi/qla2xxx/qla_gs.c: In function âqla2x00_ga_nxtâ:
> drivers/scsi/qla2xxx/qla_gs.c:97: sorry, unimplemented: inlining
> failed in call to âqla24xx_prep_ms_iocbâ: function not considered for
> inlining
> drivers/scsi/qla2xxx/qla_gs.c:61: sorry, unimplemented: called from here
> drivers/scsi/qla2xxx/qla_gs.c: In function âqla2x00_rsnn_nnâ:
> drivers/scsi/qla2xxx/qla_gs.c:684: warning: pointer targets in passing
> argument 1 of âstrcpyâ differ in signedness
> drivers/scsi/qla2xxx/qla_gs.c:684: warning: pointer targets in passing
> argument 2 of âstrcpyâ differ in signedness
> drivers/scsi/qla2xxx/qla_gs.c:686: warning: pointer targets in passing
> argument 1 of âstrcatâ differ in signedness
> drivers/scsi/qla2xxx/qla_gs.c:688: warning: pointer targets in passing
> argument 1 of âsprintfâ differ in signedness
> drivers/scsi/qla2xxx/qla_gs.c:689: warning: pointer targets in passing
> argument 1 of âstrcatâ differ in signedness
> drivers/scsi/qla2xxx/qla_gs.c:689: warning: pointer targets in passing
> argument 2 of âstrcatâ differ in signedness
> drivers/scsi/qla2xxx/qla_gs.c:691: warning: pointer targets in passing
> argument 1 of âstrcatâ differ in signedness
> drivers/scsi/qla2xxx/qla_gs.c:692: warning: pointer targets in passing
> argument 1 of âstrcatâ differ in signedness
> drivers/scsi/qla2xxx/qla_gs.c:695: warning: pointer targets in passing
> argument 1 of âstrlenâ differ in signedness
> drivers/scsi/qla2xxx/qla_gs.c: In function âqla2x00_fdmi_rhbaâ:
> drivers/scsi/qla2xxx/qla_gs.c:1325: warning: pointer targets in
> passing argument 1 of âstrcpyâ differ in signedness
> drivers/scsi/qla2xxx/qla_gs.c:1326: warning: pointer targets in
> passing argument 1 of âstrlenâ differ in signedness
> drivers/scsi/qla2xxx/qla_gs.c:1338: warning: pointer targets in
> passing argument 1 of âsprintfâ differ in signedness
> drivers/scsi/qla2xxx/qla_gs.c:1339: warning: pointer targets in
> passing argument 1 of âstrlenâ differ in signedness
> drivers/scsi/qla2xxx/qla_gs.c:1350: warning: pointer targets in
> passing argument 1 of âstrcpyâ differ in signedness
> drivers/scsi/qla2xxx/qla_gs.c:1350: warning: pointer targets in
> passing argument 2 of âstrcpyâ differ in signedness
> drivers/scsi/qla2xxx/qla_gs.c:1351: warning: pointer targets in
> passing argument 1 of âstrlenâ differ in signedness
> drivers/scsi/qla2xxx/qla_gs.c:1363: warning: pointer targets in
> passing argument 1 of âstrncpyâ differ in signedness
> drivers/scsi/qla2xxx/qla_gs.c:1364: warning: pointer targets in
> passing argument 1 of âstrlenâ differ in signedness
> drivers/scsi/qla2xxx/qla_gs.c:1375: warning: pointer targets in
> passing argument 1 of âstrcpyâ differ in signedness
> drivers/scsi/qla2xxx/qla_gs.c:1375: warning: pointer targets in
> passing argument 2 of âstrcpyâ differ in signedness
> drivers/scsi/qla2xxx/qla_gs.c:1376: warning: pointer targets in
> passing argument 1 of âstrlenâ differ in signedness
> drivers/scsi/qla2xxx/qla_gs.c:1387: warning: pointer targets in
> passing argument 1 of âstrcpyâ differ in signedness
> drivers/scsi/qla2xxx/qla_gs.c:1388: warning: pointer targets in
> passing argument 1 of âstrlenâ differ in signedness
> drivers/scsi/qla2xxx/qla_gs.c:1403: warning: pointer targets in
> passing argument 1 of âstrcpyâ differ in signedness
> drivers/scsi/qla2xxx/qla_gs.c:1405: warning: pointer targets in
> passing argument 1 of âstrlenâ differ in signedness
> drivers/scsi/qla2xxx/qla_gs.c:1416: warning: pointer targets in
> passing argument 2 of âqla2x00_get_fw_version_strâ differ in signedness
> drivers/scsi/qla2xxx/qla_gs.c:1417: warning: pointer targets in
> passing argument 1 of âstrlenâ differ in signedness
> drivers/scsi/qla2xxx/qla_gs.c:1429: warning: pointer targets in
> passing argument 1 of âsprintfâ differ in signedness
> drivers/scsi/qla2xxx/qla_gs.c:1430: warning: pointer targets in
> passing argument 1 of âstrlenâ differ in signedness
> drivers/scsi/qla2xxx/qla_gs.c: In function âqla2x00_fdmi_rpaâ:
> drivers/scsi/qla2xxx/qla_gs.c:1636: warning: pointer targets in
> passing argument 1 of âsprintfâ differ in signedness
> drivers/scsi/qla2xxx/qla_gs.c:1637: warning: pointer targets in
> passing argument 1 of âstrlenâ differ in signedness
> drivers/scsi/qla2xxx/qla_gs.c:1648: warning: pointer targets in
> passing argument 1 of âstrcpyâ differ in signedness
> drivers/scsi/qla2xxx/qla_gs.c:1649: warning: pointer targets in
> passing argument 1 of âstrlenâ differ in signedness
> make[3]: *** [drivers/scsi/qla2xxx/qla_gs.o] Error 1
> make[2]: *** [drivers/scsi/qla2xxx] Error 2
> make[1]: *** [drivers/scsi] Error 2
> make: *** [drivers] Error 2
>
Re: Error recompiling kernel FC4 patched win OVZ [message #3462 is a reply to message #3454] Tue, 30 May 2006 08:27 Go to previous messageGo to next message
Kirill Korotaev is currently offline  Kirill Korotaev
Messages: 137
Registered: January 2006
Senior Member
Looks like you have some poor gcc version, which has unimplemented
feature (according to log). You can update your gcc with yum or try to
apply the following patch attached.

Thanks,
Kirill

> Kirill Korotaev escribió:
>
>> Can you post error messages before make error?
>> I suppose this can be somwhow gcc version related.
>>
>> Thanks,
>> Kirill
>>
>>
>>> Hi,
>>>
>>> Im triting to recompile kernel-2.6.8 with OVZ patch.
>>>
>>> Im getting this error when I do: make modules
>>>
>>> make[3]: *** [drivers/scsi/qla2xxx/qla_gs.o] Error 1
>>> make[2]: *** [drivers/scsi/qla2xxx] Error 2
>>> make[1]: *** [drivers/scsi] Error 2
>>> make: *** [drivers] Error 2
>>>
>>>
>>> Thanks,
>>>
>>> José David Bravo Álvarez
> make[1]: `arch/i386/kernel/asm-offsets.s' is up to date.
> CC [M] drivers/scsi/qla2xxx/qla_gs.o
> drivers/scsi/qla2xxx/qla_gs.c: In function âqla2x00_ga_nxtâ:
> drivers/scsi/qla2xxx/qla_gs.c:97: sorry, unimplemented: inlining failed
> in call to âqla24xx_prep_ms_iocbâ: function not considered for inlining
> drivers/scsi/qla2xxx/qla_gs.c:61: sorry, unimplemented: called from here
> drivers/scsi/qla2xxx/qla_gs.c: In function âqla2x00_rsnn_nnâ:
> drivers/scsi/qla2xxx/qla_gs.c:684: warning: pointer targets in passing
> argument 1 of âstrcpyâ differ in signedness
> drivers/scsi/qla2xxx/qla_gs.c:684: warning: pointer targets in passing
> argument 2 of âstrcpyâ differ in signedness
> drivers/scsi/qla2xxx/qla_gs.c:686: warning: pointer targets in passing
> argument 1 of âstrcatâ differ in signedness
> drivers/scsi/qla2xxx/qla_gs.c:688: warning: pointer targets in passing
> argument 1 of âsprintfâ differ in signedness
> drivers/scsi/qla2xxx/qla_gs.c:689: warning: pointer targets in passing
> argument 1 of âstrcatâ differ in signedness
> drivers/scsi/qla2xxx/qla_gs.c:689: warning: pointer targets in passing
> argument 2 of âstrcatâ differ in signedness
> drivers/scsi/qla2xxx/qla_gs.c:691: warning: pointer targets in passing
> argument 1 of âstrcatâ differ in signedness
> drivers/scsi/qla2xxx/qla_gs.c:692: warning: pointer targets in passing
> argument 1 of âstrcatâ differ in signedness
> drivers/scsi/qla2xxx/qla_gs.c:695: warning: pointer targets in passing
> argument 1 of âstrlenâ differ in signedness
> drivers/scsi/qla2xxx/qla_gs.c: In function âqla2x00_fdmi_rhbaâ:
> drivers/scsi/qla2xxx/qla_gs.c:1325: warning: pointer targets in passing
> argument 1 of âstrcpyâ differ in signedness
> drivers/scsi/qla2xxx/qla_gs.c:1326: warning: pointer targets in passing
> argument 1 of âstrlenâ differ in signedness
> drivers/scsi/qla2xxx/qla_gs.c:1338: warning: pointer targets in passing
> argument 1 of âsprintfâ differ in signedness
> drivers/scsi/qla2xxx/qla_gs.c:1339: warning: pointer targets in passing
> argument 1 of âstrlenâ differ in signedness
> drivers/scsi/qla2xxx/qla_gs.c:1350: warning: pointer targets in passing
> argument 1 of âstrcpyâ differ in signedness
> drivers/scsi/qla2xxx/qla_gs.c:1350: warning: pointer targets in passing
> argument 2 of âstrcpyâ differ in signedness
> drivers/scsi/qla2xxx/qla_gs.c:1351: warning: pointer targets in passing
> argument 1 of âstrlenâ differ in signedness
> drivers/scsi/qla2xxx/qla_gs.c:1363: warning: pointer targets in passing
> argument 1 of âstrncpyâ differ in signedness
> drivers/scsi/qla2xxx/qla_gs.c:1364: warning: pointer targets in passing
> argument 1 of âstrlenâ differ in signedness
> drivers/scsi/qla2xxx/qla_gs.c:1375: warning: pointer targets in passing
> argument 1 of âstrcpyâ differ in signedness
> drivers/scsi/qla2xxx/qla_gs.c:1375: warning: pointer targets in passing
> argument 2 of âstrcpyâ differ in signedness
> drivers/scsi/qla2xxx/qla_gs.c:1376: warning: pointer targets in passing
> argument 1 of âstrlenâ differ in signedness
> drivers/scsi/qla2xxx/qla_gs.c:1387: warning: pointer targets in passing
> argument 1 of âstrcpyâ differ in signedness
> drivers/scsi/qla2xxx/qla_gs.c:1388: warning: pointer targets in passing
> argument 1 of âstrlenâ differ in signedness
> drivers/scsi/qla2xxx/qla_gs.c:1403: warning: pointer targets in passing
> argument 1 of âstrcpyâ differ in signedness
> drivers/scsi/qla2xxx/qla_gs.c:1405: warning: pointer targets in passing
> argument 1 of âstrlenâ differ in signedness
> drivers/scsi/qla2xxx/qla_gs.c:1416: warning: pointer targets in passing
> argument 2 of âqla2x00_get_fw_version_strâ differ in signedness
> drivers/scsi/qla2xxx/qla_gs.c:1417: warning: pointer targets in passing
> argument 1 of âstrlenâ differ in signedness
> drivers/scsi/qla2xxx/qla_gs.c:1429: warning: pointer targets in passing
> argument 1 of âsprintfâ differ in signedness
> drivers/scsi/qla2xxx/qla_gs.c:1430: warning: pointer targets in passing
> argument 1 of âstrlenâ differ in signedness
> drivers/scsi/qla2xxx/qla_gs.c: In function âqla2x00_fdmi_rpaâ:
> drivers/scsi/qla2xxx/qla_gs.c:1636: warning: pointer targets in passing
> argument 1 of âsprintfâ differ in signedness
> drivers/scsi/qla2xxx/qla_gs.c:1637: warning: pointer targets in passing
> argument 1 of âstrlenâ differ in signedness
> drivers/scsi/qla2xxx/qla_gs.c:1648: warning: pointer targets in passing
> argument 1 of âstrcpyâ differ in signedness
> drivers/scsi/qla2xxx/qla_gs.c:1649: warning: pointer targets in passing
> argument 1 of âstrlenâ differ in signedness
> make[3]: *** [drivers/scsi/qla2xxx/qla_gs.o] Error 1
> make[2]: *** [drivers/scsi/qla2xxx] Error 2
> make[1]: *** [drivers/scsi] Error 2
> make: *** [drivers] Error 2
>
>


--- ./drivers/scsi/qla2xxx/qla_gs.c.qla 2006-05-25 22:55:04.000000000 +0400
+++ ./drivers/scsi/qla2xxx/qla_gs.c 2006-05-30 11:34:08.000000000 +0400
@@ -23,7 +23,7 @@
static inline ms_iocb_entry_t *
qla2x00_prep_ms_iocb(scsi_qla_host_t *, uint32_t, uint32_t);

-static inline void *
+static void *
qla24xx_prep_ms_iocb(scsi_qla_host_t *, uint32_t, uint32_t);

static inline struct ct_sns_req *
@@ -92,7 +92,7 @@
*
* Returns a pointer to the @ha's ms_iocb.
*/
-static inline void *
+static void *
qla24xx_prep_ms_iocb(scsi_qla_host_t *ha, uint32_t req_size, uint32_t rsp_size)
{
struct ct_entry_24xx *ct_pkt;
Re: Error recompiling kernel FC4 patched win OVZ [message #3477 is a reply to message #3460] Tue, 30 May 2006 16:14 Go to previous messageGo to next message
jbravo is currently offline  jbravo
Messages: 20
Registered: May 2006
Junior Member
Kir Kolyshkin escribió:
> I might be wrong but it looks like you need to update your gcc
> version. Try this command (as root):
> yum -y update gcc
>
> Or report us your distribution (it is FC4, right?) and gcc version
> (output of rpm -q gcc or gcc --version).
>
> Regards,
> Kir.
>
> José David Bravo Álvarez wrote:
>
>> Kirill Korotaev escribió:
>>
>>> Can you post error messages before make error?
>>> I suppose this can be somwhow gcc version related.
>>>
>>> Thanks,
>>> Kirill
>>>
>>>
>>>> Hi,
>>>>
>>>> Im triting to recompile kernel-2.6.8 with OVZ patch.
>>>>
>>>> Im getting this error when I do: make modules
>>>>
>>>> make[3]: *** [drivers/scsi/qla2xxx/qla_gs.o] Error 1
>>>> make[2]: *** [drivers/scsi/qla2xxx] Error 2
>>>> make[1]: *** [drivers/scsi] Error 2
>>>> make: *** [drivers] Error 2
>>>>
>>>>
>>>> Thanks,
>>>>
>>>> José David Bravo Álvarez
>> make[1]: `arch/i386/kernel/asm-offsets.s' is up to date.
>> CC [M] drivers/scsi/qla2xxx/qla_gs.o
>> drivers/scsi/qla2xxx/qla_gs.c: In function âqla2x00_ga_nxtâ:
>> drivers/scsi/qla2xxx/qla_gs.c:97: sorry, unimplemented: inlining
>> failed in call to âqla24xx_prep_ms_iocbâ: function not considered for
>> inlining
>> drivers/scsi/qla2xxx/qla_gs.c:61: sorry, unimplemented: called from here
>> drivers/scsi/qla2xxx/qla_gs.c: In function âqla2x00_rsnn_nnâ:
>> drivers/scsi/qla2xxx/qla_gs.c:684: warning: pointer targets in
>> passing argument 1 of âstrcpyâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:684: warning: pointer targets in
>> passing argument 2 of âstrcpyâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:686: warning: pointer targets in
>> passing argument 1 of âstrcatâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:688: warning: pointer targets in
>> passing argument 1 of âsprintfâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:689: warning: pointer targets in
>> passing argument 1 of âstrcatâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:689: warning: pointer targets in
>> passing argument 2 of âstrcatâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:691: warning: pointer targets in
>> passing argument 1 of âstrcatâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:692: warning: pointer targets in
>> passing argument 1 of âstrcatâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:695: warning: pointer targets in
>> passing argument 1 of âstrlenâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c: In function âqla2x00_fdmi_rhbaâ:
>> drivers/scsi/qla2xxx/qla_gs.c:1325: warning: pointer targets in
>> passing argument 1 of âstrcpyâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:1326: warning: pointer targets in
>> passing argument 1 of âstrlenâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:1338: warning: pointer targets in
>> passing argument 1 of âsprintfâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:1339: warning: pointer targets in
>> passing argument 1 of âstrlenâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:1350: warning: pointer targets in
>> passing argument 1 of âstrcpyâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:1350: warning: pointer targets in
>> passing argument 2 of âstrcpyâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:1351: warning: pointer targets in
>> passing argument 1 of âstrlenâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:1363: warning: pointer targets in
>> passing argument 1 of âstrncpyâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:1364: warning: pointer targets in
>> passing argument 1 of âstrlenâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:1375: warning: pointer targets in
>> passing argument 1 of âstrcpyâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:1375: warning: pointer targets in
>> passing argument 2 of âstrcpyâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:1376: warning: pointer targets in
>> passing argument 1 of âstrlenâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:1387: warning: pointer targets in
>> passing argument 1 of âstrcpyâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:1388: warning: pointer targets in
>> passing argument 1 of âstrlenâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:1403: warning: pointer targets in
>> passing argument 1 of âstrcpyâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:1405: warning: pointer targets in
>> passing argument 1 of âstrlenâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:1416: warning: pointer targets in
>> passing argument 2 of âqla2x00_get_fw_version_strâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:1417: warning: pointer targets in
>> passing argument 1 of âstrlenâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:1429: warning: pointer targets in
>> passing argument 1 of âsprintfâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:1430: warning: pointer targets in
>> passing argument 1 of âstrlenâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c: In function âqla2x00_fdmi_rpaâ:
>> drivers/scsi/qla2xxx/qla_gs.c:1636: warning: pointer targets in
>> passing argument 1 of âsprintfâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:1637: warning: pointer targets in
>> passing argument 1 of âstrlenâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:1648: warning: pointer targets in
>> passing argument 1 of âstrcpyâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:1649: warning: pointer targets in
>> passing argument 1 of âstrlenâ differ in signedness
>> make[3]: *** [drivers/scsi/qla2xxx/qla_gs.o] Error 1
>> make[2]: *** [drivers/scsi/qla2xxx] Error 2
>> make[1]: *** [drivers/scsi] Error 2
>> make: *** [drivers] Error 2
>>
[root@genesis src]# yum -y update gcc
Setting up Update Process
Setting up repositories
updates-released 100% |=========================| 951 B 00:00
extras 100% |=========================| 1.1 kB 00:00
base 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
primary.xml.gz 100% |=========================| 401 kB 00:00
updates-re: ################################################## 1123/1123
Added 2 new packages, deleted 0 old in 2.33 seconds
primary.xml.gz 100% |=========================| 1.3 MB 00:08
extras : ################################################## 3925/3925
Added 18 new packages, deleted 10 old in 9.90 seconds
Could not find update match for gcc
No Packages marked for Update/Obsoletion
Re: Error recompiling kernel FC4 patched win OVZ [message #3479 is a reply to message #3462] Tue, 30 May 2006 16:26 Go to previous messageGo to next message
jbravo is currently offline  jbravo
Messages: 20
Registered: May 2006
Junior Member
Kirill Korotaev escribió:
> Looks like you have some poor gcc version, which has unimplemented
> feature (according to log). You can update your gcc with yum or try to
> apply the following patch attached.
>
> Thanks,
> Kirill
>
>> Kirill Korotaev escribió:
>>
>>> Can you post error messages before make error?
>>> I suppose this can be somwhow gcc version related.
>>>
>>> Thanks,
>>> Kirill
>>>
>>>
>>>> Hi,
>>>>
>>>> Im triting to recompile kernel-2.6.8 with OVZ patch.
>>>>
>>>> Im getting this error when I do: make modules
>>>>
>>>> make[3]: *** [drivers/scsi/qla2xxx/qla_gs.o] Error 1
>>>> make[2]: *** [drivers/scsi/qla2xxx] Error 2
>>>> make[1]: *** [drivers/scsi] Error 2
>>>> make: *** [drivers] Error 2
>>>>
>>>>
>>>> Thanks,
>>>>
>>>> José David Bravo Álvarez
>> make[1]: `arch/i386/kernel/asm-offsets.s' is up to date.
>> CC [M] drivers/scsi/qla2xxx/qla_gs.o
>> drivers/scsi/qla2xxx/qla_gs.c: In function âqla2x00_ga_nxtâ:
>> drivers/scsi/qla2xxx/qla_gs.c:97: sorry, unimplemented: inlining
>> failed in call to âqla24xx_prep_ms_iocbâ: function not considered for
>> inlining
>> drivers/scsi/qla2xxx/qla_gs.c:61: sorry, unimplemented: called from here
>> drivers/scsi/qla2xxx/qla_gs.c: In function âqla2x00_rsnn_nnâ:
>> drivers/scsi/qla2xxx/qla_gs.c:684: warning: pointer targets in
>> passing argument 1 of âstrcpyâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:684: warning: pointer targets in
>> passing argument 2 of âstrcpyâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:686: warning: pointer targets in
>> passing argument 1 of âstrcatâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:688: warning: pointer targets in
>> passing argument 1 of âsprintfâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:689: warning: pointer targets in
>> passing argument 1 of âstrcatâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:689: warning: pointer targets in
>> passing argument 2 of âstrcatâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:691: warning: pointer targets in
>> passing argument 1 of âstrcatâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:692: warning: pointer targets in
>> passing argument 1 of âstrcatâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:695: warning: pointer targets in
>> passing argument 1 of âstrlenâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c: In function âqla2x00_fdmi_rhbaâ:
>> drivers/scsi/qla2xxx/qla_gs.c:1325: warning: pointer targets in
>> passing argument 1 of âstrcpyâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:1326: warning: pointer targets in
>> passing argument 1 of âstrlenâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:1338: warning: pointer targets in
>> passing argument 1 of âsprintfâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:1339: warning: pointer targets in
>> passing argument 1 of âstrlenâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:1350: warning: pointer targets in
>> passing argument 1 of âstrcpyâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:1350: warning: pointer targets in
>> passing argument 2 of âstrcpyâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:1351: warning: pointer targets in
>> passing argument 1 of âstrlenâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:1363: warning: pointer targets in
>> passing argument 1 of âstrncpyâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:1364: warning: pointer targets in
>> passing argument 1 of âstrlenâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:1375: warning: pointer targets in
>> passing argument 1 of âstrcpyâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:1375: warning: pointer targets in
>> passing argument 2 of âstrcpyâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:1376: warning: pointer targets in
>> passing argument 1 of âstrlenâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:1387: warning: pointer targets in
>> passing argument 1 of âstrcpyâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:1388: warning: pointer targets in
>> passing argument 1 of âstrlenâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:1403: warning: pointer targets in
>> passing argument 1 of âstrcpyâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:1405: warning: pointer targets in
>> passing argument 1 of âstrlenâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:1416: warning: pointer targets in
>> passing argument 2 of âqla2x00_get_fw_version_strâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:1417: warning: pointer targets in
>> passing argument 1 of âstrlenâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:1429: warning: pointer targets in
>> passing argument 1 of âsprintfâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:1430: warning: pointer targets in
>> passing argument 1 of âstrlenâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c: In function âqla2x00_fdmi_rpaâ:
>> drivers/scsi/qla2xxx/qla_gs.c:1636: warning: pointer targets in
>> passing argument 1 of âsprintfâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:1637: warning: pointer targets in
>> passing argument 1 of âstrlenâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:1648: warning: pointer targets in
>> passing argument 1 of âstrcpyâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:1649: warning: pointer targets in
>> passing argument 1 of âstrlenâ differ in signedness
>> make[3]: *** [drivers/scsi/qla2xxx/qla_gs.o] Error 1
>> make[2]: *** [drivers/scsi/qla2xxx] Error 2
>> make[1]: *** [drivers/scsi] Error 2
>> make: *** [drivers] Error 2
>>
>>
>
> ------------------------------------------------------------ ------------
>
> --- ./drivers/scsi/qla2xxx/qla_gs.c.qla 2006-05-25 22:55:04.000000000 +0400
> +++ ./drivers/scsi/qla2xxx/qla_gs.c 2006-05-30 11:34:08.000000000 +0400
> @@ -23,7 +23,7 @@
> static inline ms_iocb_entry_t *
> qla2x00_prep_ms_iocb(scsi_qla_host_t *, uint32_t, uint32_t);
>
> -static inline void *
> +static void *
> qla24xx_prep_ms_iocb(scsi_qla_host_t *, uint32_t, uint32_t);
>
> static inline struct ct_sns_req *
> @@ -92,7 +92,7 @@
> *
> * Returns a pointer to the @ha's ms_iocb.
> */
> -static inline void *
> +static void *
> qla24xx_prep_ms_iocb(scsi_qla_host_t *ha, uint32_t req_size, uint32_t rsp_size)
> {
> struct ct_entry_24xx *ct_pkt;
>
[root@genesis linux-2.6.8]# patch -p1 < patch-qla
patching file drivers/scsi/qla2xxx/qla_gs.c
Hunk #1 FAILED at 23.
Hunk #2 FAILED at 92.
2 out of 2 hunks FAILED -- saving rejects to file
drivers/scsi/qla2xxx/qla_gs.c.rej



[root@genesis linux-2.6.8]# cat drivers/scsi/qla2xxx/qla_gs.c.rej
***************
*** 23,29 ****
static inline ms_iocb_entry_t *
qla2x00_prep_ms_iocb(scsi_qla_host_t *, uint32_t, uint32_t);

- static inline void *
qla24xx_prep_ms_iocb(scsi_qla_host_t *, uint32_t, uint32_t);

static inline struct ct_sns_req *
--- 23,29 ----
static inline ms_iocb_entry_t *
qla2x00_prep_ms_iocb(scsi_qla_host_t *, uint32_t, uint32_t);

+ static void *
qla24xx_prep_ms_iocb(scsi_qla_host_t *, uint32_t, uint32_t);

static inline struct ct_sns_req *
***************
*** 92,98 ****
*
* Returns a pointer to the @ha's ms_iocb.
*/
- static inline void *
qla24xx_prep_ms_iocb(scsi_qla_host_t *ha, uint32_t req_size, uint32_t
rsp_size)
{
struct ct_entry_24xx *ct_pkt;
--- 92,98 ----
*
* Returns a pointer to the @ha's ms_iocb.
*/
+ static void *
qla24xx_prep_ms_iocb(scsi_qla_host_t *ha, uint32_t req_size, uint32_t
rsp_size)
{
struct ct_entry_24xx *ct_pkt;
Re: Error recompiling kernel FC4 patched win OVZ [message #3480 is a reply to message #3460] Tue, 30 May 2006 16:29 Go to previous messageGo to next message
jbravo is currently offline  jbravo
Messages: 20
Registered: May 2006
Junior Member
Kir Kolyshkin escribió:
> I might be wrong but it looks like you need to update your gcc
> version. Try this command (as root):
> yum -y update gcc
>
> Or report us your distribution (it is FC4, right?) and gcc version
> (output of rpm -q gcc or gcc --version).
>
> Regards,
> Kir.
>
> José David Bravo Álvarez wrote:
>
>> Kirill Korotaev escribió:
>>
>>> Can you post error messages before make error?
>>> I suppose this can be somwhow gcc version related.
>>>
>>> Thanks,
>>> Kirill
>>>
>>>
>>>> Hi,
>>>>
>>>> Im triting to recompile kernel-2.6.8 with OVZ patch.
>>>>
>>>> Im getting this error when I do: make modules
>>>>
>>>> make[3]: *** [drivers/scsi/qla2xxx/qla_gs.o] Error 1
>>>> make[2]: *** [drivers/scsi/qla2xxx] Error 2
>>>> make[1]: *** [drivers/scsi] Error 2
>>>> make: *** [drivers] Error 2
>>>>
>>>>
>>>> Thanks,
>>>>
>>>> José David Bravo Álvarez
>> make[1]: `arch/i386/kernel/asm-offsets.s' is up to date.
>> CC [M] drivers/scsi/qla2xxx/qla_gs.o
>> drivers/scsi/qla2xxx/qla_gs.c: In function âqla2x00_ga_nxtâ:
>> drivers/scsi/qla2xxx/qla_gs.c:97: sorry, unimplemented: inlining
>> failed in call to âqla24xx_prep_ms_iocbâ: function not considered for
>> inlining
>> drivers/scsi/qla2xxx/qla_gs.c:61: sorry, unimplemented: called from here
>> drivers/scsi/qla2xxx/qla_gs.c: In function âqla2x00_rsnn_nnâ:
>> drivers/scsi/qla2xxx/qla_gs.c:684: warning: pointer targets in
>> passing argument 1 of âstrcpyâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:684: warning: pointer targets in
>> passing argument 2 of âstrcpyâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:686: warning: pointer targets in
>> passing argument 1 of âstrcatâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:688: warning: pointer targets in
>> passing argument 1 of âsprintfâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:689: warning: pointer targets in
>> passing argument 1 of âstrcatâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:689: warning: pointer targets in
>> passing argument 2 of âstrcatâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:691: warning: pointer targets in
>> passing argument 1 of âstrcatâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:692: warning: pointer targets in
>> passing argument 1 of âstrcatâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:695: warning: pointer targets in
>> passing argument 1 of âstrlenâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c: In function âqla2x00_fdmi_rhbaâ:
>> drivers/scsi/qla2xxx/qla_gs.c:1325: warning: pointer targets in
>> passing argument 1 of âstrcpyâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:1326: warning: pointer targets in
>> passing argument 1 of âstrlenâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:1338: warning: pointer targets in
>> passing argument 1 of âsprintfâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:1339: warning: pointer targets in
>> passing argument 1 of âstrlenâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:1350: warning: pointer targets in
>> passing argument 1 of âstrcpyâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:1350: warning: pointer targets in
>> passing argument 2 of âstrcpyâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:1351: warning: pointer targets in
>> passing argument 1 of âstrlenâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:1363: warning: pointer targets in
>> passing argument 1 of âstrncpyâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:1364: warning: pointer targets in
>> passing argument 1 of âstrlenâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:1375: warning: pointer targets in
>> passing argument 1 of âstrcpyâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:1375: warning: pointer targets in
>> passing argument 2 of âstrcpyâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:1376: warning: pointer targets in
>> passing argument 1 of âstrlenâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:1387: warning: pointer targets in
>> passing argument 1 of âstrcpyâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:1388: warning: pointer targets in
>> passing argument 1 of âstrlenâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:1403: warning: pointer targets in
>> passing argument 1 of âstrcpyâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:1405: warning: pointer targets in
>> passing argument 1 of âstrlenâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:1416: warning: pointer targets in
>> passing argument 2 of âqla2x00_get_fw_version_strâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:1417: warning: pointer targets in
>> passing argument 1 of âstrlenâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:1429: warning: pointer targets in
>> passing argument 1 of âsprintfâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:1430: warning: pointer targets in
>> passing argument 1 of âstrlenâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c: In function âqla2x00_fdmi_rpaâ:
>> drivers/scsi/qla2xxx/qla_gs.c:1636: warning: pointer targets in
>> passing argument 1 of âsprintfâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:1637: warning: pointer targets in
>> passing argument 1 of âstrlenâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:1648: warning: pointer targets in
>> passing argument 1 of âstrcpyâ differ in signedness
>> drivers/scsi/qla2xxx/qla_gs.c:1649: warning: pointer targets in
>> passing argument 1 of âstrlenâ differ in signedness
>> make[3]: *** [drivers/scsi/qla2xxx/qla_gs.o] Error 1
>> make[2]: *** [drivers/scsi/qla2xxx] Error 2
>> make[1]: *** [drivers/scsi] Error 2
>> make: *** [drivers] Error 2
>>
Yes FC4

[root@genesis linux-2.6.8]# gcc --version
gcc (GCC) 4.0.2 20051125 (Red Hat 4.0.2-8)
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[root@genesis linux-2.6.8]# rpm -q gcc
gcc-4.0.2-8.fc4
Re: Error recompiling kernel FC4 patched win OVZ [message #3481 is a reply to message #3479] Tue, 30 May 2006 16:37 Go to previous message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

Jose,

ok, can you point to the sources you took and what you do step by step,
since the patch I sent to you, should apply to the latest OVZ 2.6.8
kernel fine.

Thanks,
Kirill
P.S. Kir is on IRC :)


> Kirill Korotaev escribió:
>
>> Looks like you have some poor gcc version, which has unimplemented
>> feature (according to log). You can update your gcc with yum or try to
>> apply the following patch attached.
>>
>> Thanks,
>> Kirill
>>
>>> Kirill Korotaev escribió:
>>>
>>>> Can you post error messages before make error?
>>>> I suppose this can be somwhow gcc version related.
>>>>
>>>> Thanks,
>>>> Kirill
>>>>
>>>>
>>>>> Hi,
>>>>>
>>>>> Im triting to recompile kernel-2.6.8 with OVZ patch.
>>>>>
>>>>> Im getting this error when I do: make modules
>>>>>
>>>>> make[3]: *** [drivers/scsi/qla2xxx/qla_gs.o] Error 1
>>>>> make[2]: *** [drivers/scsi/qla2xxx] Error 2
>>>>> make[1]: *** [drivers/scsi] Error 2
>>>>> make: *** [drivers] Error 2
>>>>>
>>>>>
>>>>> Thanks,
>>>>>
>>>>> José David Bravo Álvarez
>>> make[1]: `arch/i386/kernel/asm-offsets.s' is up to date.
>>> CC [M] drivers/scsi/qla2xxx/qla_gs.o
>>> drivers/scsi/qla2xxx/qla_gs.c: In function âqla2x00_ga_nxtâ:
>>> drivers/scsi/qla2xxx/qla_gs.c:97: sorry, unimplemented: inlining
>>> failed in call to âqla24xx_prep_ms_iocbâ: function not considered for
>>> inlining
>>> drivers/scsi/qla2xxx/qla_gs.c:61: sorry, unimplemented: called from here
>>> drivers/scsi/qla2xxx/qla_gs.c: In function âqla2x00_rsnn_nnâ:
>>> drivers/scsi/qla2xxx/qla_gs.c:684: warning: pointer targets in
>>> passing argument 1 of âstrcpyâ differ in signedness
>>> drivers/scsi/qla2xxx/qla_gs.c:684: warning: pointer targets in
>>> passing argument 2 of âstrcpyâ differ in signedness
>>> drivers/scsi/qla2xxx/qla_gs.c:686: warning: pointer targets in
>>> passing argument 1 of âstrcatâ differ in signedness
>>> drivers/scsi/qla2xxx/qla_gs.c:688: warning: pointer targets in
>>> passing argument 1 of âsprintfâ differ in signedness
>>> drivers/scsi/qla2xxx/qla_gs.c:689: warning: pointer targets in
>>> passing argument 1 of âstrcatâ differ in signedness
>>> drivers/scsi/qla2xxx/qla_gs.c:689: warning: pointer targets in
>>> passing argument 2 of âstrcatâ differ in signedness
>>> drivers/scsi/qla2xxx/qla_gs.c:691: warning: pointer targets in
>>> passing argument 1 of âstrcatâ differ in signedness
>>> drivers/scsi/qla2xxx/qla_gs.c:692: warning: pointer targets in
>>> passing argument 1 of âstrcatâ differ in signedness
>>> drivers/scsi/qla2xxx/qla_gs.c:695: warning: pointer targets in
>>> passing argument 1 of âstrlenâ differ in signedness
>>> drivers/scsi/qla2xxx/qla_gs.c: In function âqla2x00_fdmi_rhbaâ:
>>> drivers/scsi/qla2xxx/qla_gs.c:1325: warning: pointer targets in
>>> passing argument 1 of âstrcpyâ differ in signedness
>>> drivers/scsi/qla2xxx/qla_gs.c:1326: warning: pointer targets in
>>> passing argument 1 of âstrlenâ differ in signedness
>>> drivers/scsi/qla2xxx/qla_gs.c:1338: warning: pointer targets in
>>> passing argument 1 of âsprintfâ differ in signedness
>>> drivers/scsi/qla2xxx/qla_gs.c:1339: warning: pointer targets in
>>> passing argument 1 of âstrlenâ differ in signedness
>>> drivers/scsi/qla2xxx/qla_gs.c:1350: warning: pointer targets in
>>> passing argument 1 of âstrcpyâ differ in signedness
>>> drivers/scsi/qla2xxx/qla_gs.c:1350: warning: pointer targets in
>>> passing argument 2 of âstrcpyâ differ in signedness
>>> drivers/scsi/qla2xxx/qla_gs.c:1351: warning: pointer targets in
>>> passing argument 1 of âstrlenâ differ in signedness
>>> drivers/scsi/qla2xxx/qla_gs.c:1363: warning: pointer targets in
>>> passing argument 1 of âstrncpyâ differ in signedness
>>> drivers/scsi/qla2xxx/qla_gs.c:1364: warning: pointer targets in
>>> passing argument 1 of âstrlenâ differ in signedness
>>> drivers/scsi/qla2xxx/qla_gs.c:1375: warning: pointer targets in
>>> passing argument 1 of âstrcpyâ differ in signedness
>>> drivers/scsi/qla2xxx/qla_gs.c:1375: warning: pointer targets in
>>> passing argument 2 of âstrcpyâ differ in signedness
>>> drivers/scsi/qla2xxx/qla_gs.c:1376: warning: pointer targets in
>>> passing argument 1 of âstrlenâ differ in signedness
>>> drivers/scsi/qla2xxx/qla_gs.c:1387: warning: pointer targets in
>>> passing argument 1 of âstrcpyâ differ in signedness
>>> drivers/scsi/qla2xxx/qla_gs.c:1388: warning: pointer targets in
>>> passing argument 1 of âstrlenâ differ in signedness
>>> drivers/scsi/qla2xxx/qla_gs.c:1403: warning: pointer targets in
>>> passing argument 1 of âstrcpyâ differ in signedness
>>> drivers/scsi/qla2xxx/qla_gs.c:1405: warning: pointer targets in
>>> passing argument 1 of âstrlenâ differ in signedness
>>> drivers/scsi/qla2xxx/qla_gs.c:1416: warning: pointer targets in
>>> passing argument 2 of âqla2x00_get_fw_version_strâ differ in signedness
>>> drivers/scsi/qla2xxx/qla_gs.c:1417: warning: pointer targets in
>>> passing argument 1 of âstrlenâ differ in signedness
>>> drivers/scsi/qla2xxx/qla_gs.c:1429: warning: pointer targets in
>>> passing argument 1 of âsprintfâ differ in signedness
>>> drivers/scsi/qla2xxx/qla_gs.c:1430: warning: pointer targets in
>>> passing argument 1 of âstrlenâ differ in signedness
>>> drivers/scsi/qla2xxx/qla_gs.c: In function âqla2x00_fdmi_rpaâ:
>>> drivers/scsi/qla2xxx/qla_gs.c:1636: warning: pointer targets in
>>> passing argument 1 of âsprintfâ differ in signedness
>>> drivers/scsi/qla2xxx/qla_gs.c:1637: warning: pointer targets in
>>> passing argument 1 of âstrlenâ differ in signedness
>>> drivers/scsi/qla2xxx/qla_gs.c:1648: warning: pointer targets in
>>> passing argument 1 of âstrcpyâ differ in signedness
>>> drivers/scsi/qla2xxx/qla_gs.c:1649: warning: pointer targets in
>>> passing argument 1 of âstrlenâ differ in signedness
>>> make[3]: *** [drivers/scsi/qla2xxx/qla_gs.o] Error 1
>>> make[2]: *** [drivers/scsi/qla2xxx] Error 2
>>> make[1]: *** [drivers/scsi] Error 2
>>> make: *** [drivers] Error 2
>>>
>>>
>>
>> ------------------------------------------------------------ ------------
>>
>> --- ./drivers/scsi/qla2xxx/qla_gs.c.qla 2006-05-25
>> 22:55:04.000000000 +0400
>> +++ ./drivers/scsi/qla2xxx/qla_gs.c 2006-05-30 11:34:08.000000000
>> +0400
>> @@ -23,7 +23,7 @@
>> static inline ms_iocb_entry_t *
>> qla2x00_prep_ms_iocb(scsi_qla_host_t *, uint32_t, uint32_t);
>>
>> -static inline void *
>> +static void *
>> qla24xx_prep_ms_iocb(scsi_qla_host_t *, uint32_t, uint32_t);
>>
>> static inline struct ct_sns_req *
>> @@ -92,7 +92,7 @@
>> *
>> * Returns a pointer to the @ha's ms_iocb.
>> */
>> -static inline void *
>> +static void *
>> qla24xx_prep_ms_iocb(scsi_qla_host_t *ha, uint32_t req_size, uint32_t
>> rsp_size)
>> {
>> struct ct_entry_24xx *ct_pkt;
>>
>
> [root@genesis linux-2.6.8]# patch -p1 < patch-qla
> patching file drivers/scsi/qla2xxx/qla_gs.c
> Hunk #1 FAILED at 23.
> Hunk #2 FAILED at 92.
> 2 out of 2 hunks FAILED -- saving rejects to file
> drivers/scsi/qla2xxx/qla_gs.c.rej
>
>
>
> [root@genesis linux-2.6.8]# cat drivers/scsi/qla2xxx/qla_gs.c.rej
> ***************
> *** 23,29 ****
> static inline ms_iocb_entry_t *
> qla2x00_prep_ms_iocb(scsi_qla_host_t *, uint32_t, uint32_t);
>
> - static inline void *
> qla24xx_prep_ms_iocb(scsi_qla_host_t *, uint32_t, uint32_t);
>
> static inline struct ct_sns_req *
> --- 23,29 ----
> static inline ms_iocb_entry_t *
> qla2x00_prep_ms_iocb(scsi_qla_host_t *, uint32_t, uint32_t);
>
> + static void *
> qla24xx_prep_ms_iocb(scsi_qla_host_t *, uint32_t, uint32_t);
>
> static inline struct ct_sns_req *
> ***************
> *** 92,98 ****
> *
> * Returns a pointer to the @ha's ms_iocb.
> */
> - static inline void *
> qla24xx_prep_ms_iocb(scsi_qla_host_t *ha, uint32_t req_size, uint32_t
> rsp_size)
> {
> struct ct_entry_24xx *ct_pkt;
> --- 92,98 ----
> *
> * Returns a pointer to the @ha's ms_iocb.
> */
> + static void *
> qla24xx_prep_ms_iocb(scsi_qla_host_t *ha, uint32_t req_size, uint32_t
> rsp_size)
> {
> struct ct_entry_24xx *ct_pkt;
>
>
...

Previous Topic: Enable IPSec in VPS
Next Topic: openvz with VIA C3 processor
Goto Forum:
  


Current Time: Fri Nov 01 00:47:50 GMT 2024

Total time taken to generate the page: 0.04078 seconds