Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 430238

Summary: building hardened linux-libre kernel fails due to -Werror
Product: Gentoo Linux Reporter: Andrew Engelbrecht <sudoman>
Component: [OLD] Core systemAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal CC: gokturk
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: genkernel.log

Description Andrew Engelbrecht 2012-08-06 21:47:33 UTC
Created attachment 320590 [details]
genkernel.log

After downloading and auto-deblobbing the hardened-sources package and running "genkernel all", i get this error:

  CC [M]  drivers/scsi/lpfc/lpfc_scsi.o
cc1: warnings being treated as errors
drivers/scsi/lpfc/lpfc_scsi.c: In function 'lpfc_bg_setup_bpl':
drivers/scsi/lpfc/lpfc_scsi.c:1900:11: error: unused variable 'rc'
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'
drivers/scsi/lpfc/lpfc_scsi.c: In function 'lpfc_bg_setup_sgl':
drivers/scsi/lpfc/lpfc_scsi.c:2256:11: error: unused variable 'rc'
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'
make[3]: *** [drivers/scsi/lpfc/lpfc_scsi.o] Error 1
make[2]: *** [drivers/scsi/lpfc] Error 2

I tried compiling again, with "-Wno-error=unused-variable" added to CFLAGS. Unfortunately, that still failed.

I've attached the genkernel.log
Comment 1 Göktürk Yüksek archtester gentoo-dev 2012-08-06 21:51:42 UTC
Duplicate of Bug 425816
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2012-08-07 02:22:46 UTC

*** This bug has been marked as a duplicate of bug 425816 ***