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

Bug 687888

Summary: sys-kernel/gentoo-sources-4.19.37 - fs/xfs/xfs_trace.h: In function ‘trace_xfs_agfl_free_defer_enabled’: fs/xfs/xfs_trace.h:2320:18: internal compiler error: Segmentation fault
Product: Gentoo Linux Reporter: forsrs <forsrs>
Component: Current packagesAssignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers <kernel>
Status: RESOLVED NEEDINFO    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description forsrs@gmail.com 2019-06-11 20:18:38 UTC
I enabled IOMMU related configurations in linux-4.19.37-gentoo

Get the following message on compile.

Please submit a full bug report,
with preprocessed source if appropriate.
See <https://bugs.gentoo.org/> for instructions.
make[2]: *** [scripts/Makefile.build:303: fs/xfs/xfs_quotaops.o] Error 1
make[2]: *** Waiting for unfinished jobs....
  AR      net/built-in.a
make[1]: *** [scripts/Makefile.build:544: fs/xfs] Error 2
make: *** [Makefile:1051: fs] Error 2
Comment 1 forsrs@gmail.com 2019-06-11 20:24:27 UTC
Compile message preceding to the previous error reported is as follows.

In file included from fs/xfs/xfs_trace.h:12,
                 from fs/xfs/xfs_quotaops.c:14:
fs/xfs/xfs_trace.h: In function ‘trace_xfs_agfl_free_defer_enabled’:
fs/xfs/xfs_trace.h:2320:18: internal compiler error: Segmentation fault
  TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, \
                  ^~~~~~~~~
./include/linux/tracepoint.h:270:46: note: in definition of macro ‘__DECLARE_TRACE’
  check_trace_callback_type_##name(void (*cb)(data_proto)) \
                                              ^~~~~~~~~~
./include/linux/tracepoint.h:400:4: note: in expansion of macro ‘PARAMS’
    PARAMS(void *__data, proto),   \
    ^~~~~~
./include/linux/tracepoint.h:523:2: note: in expansion of macro ‘DECLARE_TRACE’
  DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
  ^~~~~~~~~~~~~
./include/linux/tracepoint.h:523:22: note: in expansion of macro ‘PARAMS’
  DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
                      ^~~~~~
fs/xfs/xfs_trace.h:2319:1: note: in expansion of macro ‘DEFINE_EVENT’
 DEFINE_EVENT(xfs_phys_extent_deferred_class, name, \
 ^~~~~~~~~~~~
fs/xfs/xfs_trace.h:2320:2: note: in expansion of macro ‘TP_PROTO’
  TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, \
  ^~~~~~~~
fs/xfs/xfs_trace.h:2395:41: note: in expansion of macro ‘DEFINE_PHYS_EXTENT_DEFERRED_EVENT’
 #define DEFINE_BMAP_FREE_DEFERRED_EVENT DEFINE_PHYS_EXTENT_DEFERRED_EVENT
                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fs/xfs/xfs_trace.h:2398:1: note: in expansion of macro ‘DEFINE_BMAP_FREE_DEFERRED_EVENT’
 DEFINE_BMAP_FREE_DEFERRED_EVENT(xfs_agfl_free_defer);
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://bugs.gentoo.org/> for instructions.
make[2]: *** [scripts/Makefile.build:303: fs/xfs/xfs_quotaops.o] Error 1
make[2]: *** Waiting for unfinished jobs....
  AR      net/built-in.a
make[1]: *** [scripts/Makefile.build:544: fs/xfs] Error 2
make: *** [Makefile:1051: fs] Error 2
Comment 2 forsrs@gmail.com 2019-06-11 20:32:21 UTC
Further next round of compile in the same machine I get the following message.


  CC [M]  drivers/net/wireless/ti/wlcore/boot.o
  LD [M]  drivers/gpu/drm/nouveau/nouveau.o
make[2]: *** [scripts/Makefile.build:544: drivers/gpu/drm] Error 2
make[1]: *** [scripts/Makefile.build:544: drivers/gpu] Error 2
make[1]: *** Waiting for unfinished jobs....
  CC [M]  drivers/net/veth.o
  CC [M]  drivers/net/wireless/ti/wlcore/init.o
  CC [M]  drivers/net/virtio_net.o
  CC [M]  drivers/net/wireless/intel/iwlwifi/mvm/d3.o
  CC [M]  drivers/net/wireless/ralink/rt2x00/rt2800usb.o
  CC [M]  drivers/net/wireless/ti/wlcore/debugfs.o
  CC [M]  drivers/net/wireless/ti/wlcore/sysfs.o
  CC [M]  drivers/net/wireless/ti/wlcore/scan.o
  CC [M]  drivers/net/vxlan.o
  LD [M]  drivers/net/wireless/intel/iwlwifi/iwlwifi.o
  CC [M]  drivers/net/wireless/ti/wlcore/vendor_cmd.o
  CC [M]  drivers/net/sungem_phy.o
  LD [M]  drivers/net/wireless/intel/iwlwifi/mvm/iwlmvm.o
  CC [M]  drivers/net/net_failover.o
  LD [M]  drivers/net/wireless/ralink/rt2x00/rt2x00lib.o
  LD [M]  drivers/net/wireless/ti/wlcore/wlcore.o
  AR      drivers/net/built-in.a
make: *** [Makefile:1051: drivers] Error 2




also the message leading to the above error is as follow

  CC [M]  drivers/isdn/divert/divert_init.o
  CC [M]  drivers/gpu/drm/ttm/ttm_module.o
In file included from ./arch/x86/include/asm/realmode.h:15,
                 from ./arch/x86/include/asm/acpi.h:33,
                 from ./arch/x86/include/asm/fixmap.h:29,
                 from ./arch/x86/include/asm/apic.h:10,
                 from ./arch/x86/include/asm/smp.h:13,
                 from ./include/linux/smp.h:64,
                 from ./include/linux/topology.h:33,
                 from ./include/linux/gfp.h:9,
                 from ./include/linux/umh.h:4,
                 from ./include/linux/kmod.h:22,
                 from ./include/linux/module.h:13,
                 from drivers/gpu/drm/ttm/ttm_module.c:32:
./arch/x86/include/asm/io.h:69:1: internal compiler error: Segmentation fault
 build_mmio_write(__writeb, "b", unsigned char, "q", )
 ^~~~~~~~~~~~~~~~
  CC [M]  drivers/gpu/drm/i915/intel_engine_cs.o

Seems to be error due to segmentation fault.
Comment 3 forsrs@gmail.com 2019-06-11 20:39:57 UTC
Finally compiled successfully changing the MAKEOPTS="-j9"
to MAKEOPTS="-j1" and running this during the compile as follows.

cd /usr/src/linux && sudo make -j1 && sudo make modules_install && sudo make install
Comment 4 Mike Pagano gentoo-dev 2019-06-13 16:29:06 UTC
Please paste the output of 'emerge --info' into this bug