Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 430238 - building hardened linux-libre kernel fails due to -Werror
Summary: building hardened linux-libre kernel fails due to -Werror
Status: RESOLVED DUPLICATE of bug 425816
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-06 21:47 UTC by Andrew Engelbrecht
Modified: 2012-08-07 02:22 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
genkernel.log (genkernel.log,347.51 KB, text/plain)
2012-08-06 21:47 UTC, Andrew Engelbrecht
Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***