Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 549668 - sys-kernel/gentoo-sources-4.0.3 fails to build -- internal compiler error or driver syntax problem
Summary: sys-kernel/gentoo-sources-4.0.3 fails to build -- internal compiler error or ...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-16 20:10 UTC by Timothy Miller
Modified: 2015-11-16 00:12 UTC (History)
0 users

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


Attachments
kernel build log (genkernel.log,166.20 KB, text/plain)
2015-05-16 20:12 UTC, Timothy Miller
Details
kernel config (kernel-config-x86_64-4.0.3-gentoo,109.30 KB, text/plain)
2015-05-16 20:12 UTC, Timothy Miller
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Timothy Miller 2015-05-16 20:10:15 UTC
I'm trying to build gentoo-sources-4.0.3, but it doesn't compile.  When it dies, I see a failure to compile some module.  But when I look in the log, I don't see any mention of that at all.  Instead, I see an internal compiler error.  What?  

So the problems are:
- The compiler is crashing, which means nobody has tried compiling this configuration of 4.0.3 with gcc 4.8.4.
- A build failure is occurring that is not being recorded in the log file.
- The kernel contains code that doesn't compile.


Here's what prints to the screen:

* ERROR: Failed to compile the "modules" target...
* 
* -- Grepping log... --
* 
*  CC [M]  drivers/net/ethernet/chelsio/cxgb3/aq100x.o
*  CC [M]  drivers/net/fddi/defxx.o
*  CC [M]  net/llc/llc_output.o
*  LD [M]  drivers/net/ethernet/chelsio/cxgb3/cxgb3.o
*drivers/net/fddi/defxx.c: In function ‘dfx_pci_register’:
*drivers/net/fddi/defxx.c:583:10: warning: ‘bar_len’ may be used uninitialized in this function [-Wmaybe-uninitialized]
*   region = request_mem_region(bar_start[0], bar_len[0],
*          ^
*drivers/net/fddi/defxx.c:537:18: note: ‘bar_len’ was declared here
*  resource_size_t bar_len[3];  /* resource length */
*                  ^
*drivers/net/fddi/defxx.c:583:10: warning: ‘bar_start’ may be used uninitialized in this function [-Wmaybe-uninitialized]
*--
*  resource_size_t bar_start[3];  /* pointers to ports */
*                  ^
*  CC [M]  drivers/net/ethernet/dlink/dl2k.o
*  CC [M]  net/ipv6/exthdrs.o
*drivers/net/fddi/defxx.c: In function ‘dfx_pci_unregister’:
*drivers/net/fddi/defxx.c:3720:5: warning: ‘*((void *)&bar_start+16)’ may be used uninitialized in this function [-Wmaybe-uninitialized]
*--
*  resource_size_t bar_start[3];  /* pointers to ports */
*                  ^
*In file included from include/linux/device.h:16:0,
*                 from include/linux/dma-mapping.h:5,
*                 from drivers/net/fddi/defxx.c:206:
*include/linux/ioport.h:198:49: warning: ‘*((void *)&bar_len+16)’ may be used uninitialized in this function [-Wmaybe-uninitialized]
*--
*  resource_size_t bar_len[3];  /* resource lengths */
*                  ^
*In file included from include/linux/device.h:16:0,
*                 from include/linux/dma-mapping.h:5,
*                 from drivers/net/fddi/defxx.c:206:
*include/linux/ioport.h:200:53: warning: ‘bar_start’ may be used uninitialized in this function [-Wmaybe-uninitialized]
*--
*  resource_size_t bar_start[3];  /* pointers to ports */
*                  ^
*In file included from include/linux/device.h:16:0,
*                 from include/linux/dma-mapping.h:5,
*                 from drivers/net/fddi/defxx.c:206:
*include/linux/ioport.h:200:53: warning: ‘bar_len’ may be used uninitialized in this function [-Wmaybe-uninitialized]
*--
*                 from include/net/net_namespace.h:22,
*                 from include/linux/netdevice.h:44,
*                 from drivers/net/fddi/skfp/h/targetos.h:47,
*                 from drivers/net/fddi/skfp/h/smc.h:50,
*                 from drivers/net/fddi/skfp/srf.c:24:
*include/linux/netfilter.h:88:1: internal compiler error: Segmentation fault
* };
* ^
*Please submit a full bug report,
*with preprocessed source if appropriate.
*See <https://bugs.gentoo.org/> for instructions.
*scripts/Makefile.build:258: recipe for target 'drivers/net/fddi/skfp/srf.o' failed
*make[4]: *** [drivers/net/fddi/skfp/srf.o] Error 1
*make[4]: *** Waiting for unfinished jobs....
*  CC [M]  drivers/net/ethernet/intel/e1000/e1000_main.o
*  CC [M]  net/ipv6/xfrm6_policy.o
*  CC [M]  drivers/net/ethernet/intel/e1000e/82571.o
*scripts/Makefile.build:403: recipe for target 'drivers/net/fddi/skfp' failed
*make[3]: *** [drivers/net/fddi/skfp] Error 2
*scripts/Makefile.build:403: recipe for target 'drivers/net/fddi' failed
*make[2]: *** [drivers/net/fddi] Error 2
*--
*  CC [M]  net/sctp/outqueue.o
*  CC [M]  net/sched/sch_prio.o
*  CC [M]  net/sunrpc/addr.o
*  CC [M]  drivers/scsi/scsi_transport_spi.o
*  CC [M]  net/sched/sch_atm.o
*scripts/Makefile.build:403: recipe for target 'drivers/net' failed
*make[1]: *** [drivers/net] Error 2
*--
*  CC [M]  drivers/scsi/iscsi_boot_sysfs.o
*  CC [M]  net/sched/em_text.o
*  CC [M]  net/sctp/auth.o
*  CC [M]  net/sunrpc/xprtrdma/transport.o
*  CC [M]  drivers/scsi/advansys.o
*drivers/scsi/advansys.c:71:2: warning: #warning this driver is still not properly converted to the DMA API [-Wcpp]
* #warning this driver is still not properly converted to the DMA API
*--
*  CC [M]  drivers/scsi/aic7xxx/aic7xxx_core.o
*  CC [M]  drivers/scsi/aic94xx/aic94xx_sds.o
*  CC [M]  drivers/scsi/aacraid/sa.o
*  CC [M]  drivers/scsi/libsas/sas_phy.o
*drivers/scsi/aic94xx/aic94xx_sds.c: In function ‘asd_process_ctrl_a_user’:
*drivers/scsi/aic94xx/aic94xx_sds.c:597:21: warning: ‘offs’ may be used uninitialized in this function [-Wmaybe-uninitialized]
*--
*  CC [M]  drivers/scsi/qla2xxx/qla_mr.o
*  CC [M]  drivers/scsi/qla2xxx/qla_nx2.o
*  CC [M]  drivers/scsi/qla2xxx/qla_target.o
*  CC [M]  drivers/scsi/qla2xxx/qla_tmpl.o
*  LD [M]  drivers/scsi/qla2xxx/qla2xxx.o
*Makefile:947: recipe for target 'drivers' failed
*make: *** [drivers] Error 2
*--
* Running with options: all
* Using genkernel.conf from /etc/genkernel.conf
* Sourcing arch-specific config.sh from /usr/share/genkernel/arch/x86_64/config.sh ..
* Sourcing arch-specific modules_load from /usr/share/genkernel/arch/x86_64/modules_load ..
*
* ERROR: Failed to compile the "modules" target...
* 
* -- End log... --


This doesn't appear anywhere in the log.  Instead I see this:

  CC [M]  drivers/net/fddi/skfp/hwt.o
In file included from include/net/netns/netfilter.h:5:0,
                 from include/net/net_namespace.h:22,
                 from include/linux/netdevice.h:44,
                 from drivers/net/fddi/skfp/h/targetos.h:47,
                 from drivers/net/fddi/skfp/h/smc.h:50,
                 from drivers/net/fddi/skfp/srf.c:24:
include/linux/netfilter.h:88:1: internal compiler error: Segmentation fault
 };
 ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://bugs.gentoo.org/> for instructions.
scripts/Makefile.build:258: recipe for target 'drivers/net/fddi/skfp/srf.o' failed
make[4]: *** [drivers/net/fddi/skfp/srf.o] Error 1
make[4]: *** Waiting for unfinished jobs....
  CC [M]  drivers/net/ethernet/intel/e1000/e1000_main.o
  CC [M]  net/ipv6/xfrm6_policy.o
  CC [M]  drivers/net/ethernet/intel/e1000e/82571.o
scripts/Makefile.build:403: recipe for target 'drivers/net/fddi/skfp' failed
make[3]: *** [drivers/net/fddi/skfp] Error 2
scripts/Makefile.build:403: recipe for target 'drivers/net/fddi' failed
make[2]: *** [drivers/net/fddi] Error 2
make[2]: *** Waiting for unfinished jobs....

And this:

  CC [M]  net/sched/sch_atm.o
scripts/Makefile.build:403: recipe for target 'drivers/net' failed
make[1]: *** [drivers/net] Error 2
make[1]: *** Waiting for unfinished jobs....
Comment 1 Timothy Miller 2015-05-16 20:12:17 UTC
Created attachment 403432 [details]
kernel build log
Comment 2 Timothy Miller 2015-05-16 20:12:31 UTC
Created attachment 403434 [details]
kernel config
Comment 3 Timothy Miller 2015-05-16 20:13:04 UTC
Note that the compiler crash happens every time, so this isn't some kind of intermittent hardware problem.
Comment 4 Mike Pagano gentoo-dev 2015-06-08 23:56:56 UTC
Please attach the output of emerge --info