Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gentoo-sources-3.4.0 errors out doesn't compile
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3  
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
cld71
Tux's lil' helper
Tux's lil' helper


Joined: 12 Jul 2005
Posts: 128

PostPosted: Sat Jun 09, 2012 3:25 pm    Post subject: It worked!!!!!!!!!!!!!!!!! :d Reply with quote

I commented out the line that had BUSYBOX_VER="1.19.3" and added BUSYBOX_VER="1.20.1" to the /etc/genkernel.conf file.
And copied the /usr/portage/distfiles/busybox-1.20.1.tar.bz2 source file to /var/cache/genkernel/src/ .
Just like Yan-Fa Li suggested on Gentoo Bugzilla page https://bugs.gentoo.org/show_bug.cgi?id=419511.
And the kernel finally compiled using genkernel.

I like to thank everyone that helped.

THANKS!!!!!!!!!!!!!!!!!!!!!!
Back to top
View user's profile Send private message
gcasillo
l33t
l33t


Joined: 23 Sep 2003
Posts: 738
Location: Cincinnati, Ohio, USA

PostPosted: Sun Jun 17, 2012 4:10 am    Post subject: Re: It worked!!!!!!!!!!!!!!!!! :d Reply with quote

cld71 wrote:
I commented out the line that had BUSYBOX_VER="1.19.3" and added BUSYBOX_VER="1.20.1" to the /etc/genkernel.conf file.
And copied the /usr/portage/distfiles/busybox-1.20.1.tar.bz2 source file to /var/cache/genkernel/src/ .
Just like Yan-Fa Li suggested on Gentoo Bugzilla page https://bugs.gentoo.org/show_bug.cgi?id=419511.
And the kernel finally compiled using genkernel.

I like to thank everyone that helped.

THANKS!!!!!!!!!!!!!!!!!!!!!!

I've taken these steps or they were done automatically for me (don't remember), and I still can't get genkernel to build a kernel without running into that lpfc error. Anybody else stuck?
Back to top
View user's profile Send private message
NuMPTy
Tux's lil' helper
Tux's lil' helper


Joined: 04 Mar 2012
Posts: 75

PostPosted: Wed Jul 25, 2012 1:56 am    Post subject: Re: gentoo-sources-3.4.0 errors out doesn't compile Reply with quote

ryao wrote:
ryao wrote:
cld71 wrote:
Code:
*  CC [M]  drivers/net/wireless/rtl818x/rtl8180/grf5101.o
*  CC [M]  drivers/scsi/lpfc/lpfc_scsi.o
*  LD [M]  drivers/net/wireless/rtl818x/rtl8180/rtl8180.o
*  CC [M]  drivers/net/wireless/rtl818x/rtl8187/dev.o
*drivers/scsi/lpfc/lpfc_scsi.c: In function ‘lpfc_bg_setup_bpl’:
*drivers/scsi/lpfc/lpfc_scsi.c:1900:11: error: unused variable ‘rc’ [-Werror=unused-variable]
*drivers/scsi/lpfc/lpfc_scsi.c: In function ‘lpfc_bg_setup_bpl_prot’:
*drivers/scsi/lpfc/lpfc_scsi.c:2037:11: error: unused variable ‘rc’ [-Werror=unused-variable]
*drivers/scsi/lpfc/lpfc_scsi.c: In function ‘lpfc_bg_setup_sgl’:
*drivers/scsi/lpfc/lpfc_scsi.c:2256:11: error: unused variable ‘rc’ [-Werror=unused-variable]
*drivers/scsi/lpfc/lpfc_scsi.c: In function ‘lpfc_bg_setup_sgl_prot’:
*drivers/scsi/lpfc/lpfc_scsi.c:2386:11: error: unused variable ‘rc’ [-Werror=unused-variable]
*cc1: all warnings being treated as errors
*make[3]: *** [drivers/scsi/lpfc/lpfc_scsi.o] Error 1
*make[2]: *** [drivers/scsi/lpfc] Error 2
*make[1]: *** [drivers/scsi] Error 2
*--


This is a bug in the kernel. Open /usr/src/linux-3.4.0/drivers/scsi/lpfc/lpfc_scsi.c in your favorite text editor and delete lines 2386, 2256, 2037 and 1900 in that order. Save the file and recompile. This issue should disappear.


Here is a patch that does this:

https://gist.github.com/2886793


I know I'm late to the party, but this fixed my issue on a custom build of 3.4,6 - thanks :)

Any word on if your patch is being integrated?
Back to top
View user's profile Send private message
ryao
Developer
Developer


Joined: 27 Feb 2012
Posts: 123

PostPosted: Sun Jul 29, 2012 11:10 pm    Post subject: Re: gentoo-sources-3.4.0 errors out doesn't compile Reply with quote

NuMPTy wrote:
ryao wrote:
ryao wrote:
cld71 wrote:
Code:
*  CC [M]  drivers/net/wireless/rtl818x/rtl8180/grf5101.o
*  CC [M]  drivers/scsi/lpfc/lpfc_scsi.o
*  LD [M]  drivers/net/wireless/rtl818x/rtl8180/rtl8180.o
*  CC [M]  drivers/net/wireless/rtl818x/rtl8187/dev.o
*drivers/scsi/lpfc/lpfc_scsi.c: In function ‘lpfc_bg_setup_bpl’:
*drivers/scsi/lpfc/lpfc_scsi.c:1900:11: error: unused variable ‘rc’ [-Werror=unused-variable]
*drivers/scsi/lpfc/lpfc_scsi.c: In function ‘lpfc_bg_setup_bpl_prot’:
*drivers/scsi/lpfc/lpfc_scsi.c:2037:11: error: unused variable ‘rc’ [-Werror=unused-variable]
*drivers/scsi/lpfc/lpfc_scsi.c: In function ‘lpfc_bg_setup_sgl’:
*drivers/scsi/lpfc/lpfc_scsi.c:2256:11: error: unused variable ‘rc’ [-Werror=unused-variable]
*drivers/scsi/lpfc/lpfc_scsi.c: In function ‘lpfc_bg_setup_sgl_prot’:
*drivers/scsi/lpfc/lpfc_scsi.c:2386:11: error: unused variable ‘rc’ [-Werror=unused-variable]
*cc1: all warnings being treated as errors
*make[3]: *** [drivers/scsi/lpfc/lpfc_scsi.o] Error 1
*make[2]: *** [drivers/scsi/lpfc] Error 2
*make[1]: *** [drivers/scsi] Error 2
*--


This is a bug in the kernel. Open /usr/src/linux-3.4.0/drivers/scsi/lpfc/lpfc_scsi.c in your favorite text editor and delete lines 2386, 2256, 2037 and 1900 in that order. Save the file and recompile. This issue should disappear.


Here is a patch that does this:

https://gist.github.com/2886793


I know I'm late to the party, but this fixed my issue on a custom build of 3.4,6 - thanks :)

Any word on if your patch is being integrated?


The LKML didn't like my patch and opted for a different solution that was apparently never merged. Please file a bug report about this. We can patch it in gentoo-sources.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Goto page Previous  1, 2, 3
Page 3 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum