Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 736780 - www-client/chromium-84.0.4147.105: gcc internal compiler error
Summary: www-client/chromium-84.0.4147.105: gcc internal compiler error
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Chromium Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-11 18:47 UTC by maxi_kroeg
Modified: 2020-08-17 11:38 UTC (History)
4 users (show)

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


Attachments
emerge info output (emerge-info.txt,17.18 KB, text/plain)
2020-08-11 18:48 UTC, maxi_kroeg
Details
www-client/chromium-84.0.4147.105 build log (www-client:chromium-84.0.4147.105:20200810-210822.log.xz,473.96 KB, application/x-xz)
2020-08-11 18:49 UTC, maxi_kroeg
Details
ninja -v -j6 -l6 -C out/Release v8_context_snapshot_generator (www-client:chromium-84.0.4147.105:20200810-210822-continued.log.xz,99.92 KB, application/x-xz)
2020-08-11 22:57 UTC, maxi_kroeg
Details
intermediate result *.ii part1 (table_layout_algorithm_fixed.ii.1.xz,670.54 KB, application/x-xz)
2020-08-12 18:25 UTC, maxi_kroeg
Details
intermediate result *.ii part2 (table_layout_algorithm_fixed.ii.2.xz,632.07 KB, application/x-xz)
2020-08-12 18:27 UTC, maxi_kroeg
Details
intermediate result *.s (table_layout_algorithm_fixed.s,93.24 KB, text/plain)
2020-08-12 18:27 UTC, maxi_kroeg
Details
emerge --info '=www-client/chromium-85.0.4183.59::gentoo (emerge-info_porcupine,7.70 KB, text/plain)
2020-08-13 18:07 UTC, Porcupine of the Moon
Details
/var/tmp/portage/www-client/chromium-85.0.4183.59/temp/build.log (build-log-porcupine.tar.bz2,921.82 KB, text/plain)
2020-08-13 18:23 UTC, Porcupine of the Moon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description maxi_kroeg 2020-08-11 18:47:19 UTC
Chromium compilation is aborted by an internal compiler error on my machine.
The last version that compiled successfully was www-client/chromium-83.0.4103.116

I tried gcc 8.4, 9.3, and 10.2 with the current version.

The build log and emerge info are attached below.
Please tell me if something is missing.

Any help would be appreciated.
Comment 1 maxi_kroeg 2020-08-11 18:48:08 UTC
Created attachment 654168 [details]
emerge info output
Comment 2 maxi_kroeg 2020-08-11 18:49:46 UTC
Created attachment 654170 [details]
www-client/chromium-84.0.4147.105 build log
Comment 3 Stephan Hartmann (RETIRED) gentoo-dev 2020-08-11 19:41:33 UTC
Does it abort at exactly the same position?
You have set EMERGE_DEFAULT_OPTS="--jobs=3". Do you run other merges in parallel with chromium build? Also MAKEOPTS is not set in make.conf. In this case build system uses number of cores for number of parallel compile jobs.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-08-11 20:12:59 UTC
Please follow https://wiki.gentoo.org/wiki/Gcc-ICE-reporting-guide.
Comment 5 maxi_kroeg 2020-08-11 20:57:12 UTC
Thanks for your help.

- it does not seem to stop at the same spot
- I do have MAKEOPTS="-j6 -l6" set
- I do run emerges in parallel to chromium sometimes because it takes so long

I running the following commands to continue, which does look like it is continuing. It crashed at [15540/21340]

# cd /var/tmp/portage/www-client/chromium-84.0.4147.105/work/chromium-84.0.4147.105
# ninja -v -j6 -l6 -C out/Release v8_context_snapshot_generator failed
ninja: Entering directory `out/Release'
[1/6326] touch obj/third_party/blink/renderer/bindings/modules/v8/generate_mojo_bindings.stamp
... 
still running
Comment 6 Sergei Trofimovich (RETIRED) gentoo-dev 2020-08-11 21:24:28 UTC
Can you also extract -march=native expansion for your system described in https://wiki.gentoo.org/wiki/Gcc-ICE-reporting-guide#Expand_-march.3Dnative.2C_exact_gcc_version_and_other_system-specific_options ?
Comment 7 maxi_kroeg 2020-08-11 21:47:33 UTC
This produces no output:
arch=amdfam10; for t in param target; do cmd="gcc -Q -O2 -march=$arch --help=$t"; diff -U0 <(LANG=C $cmd) <(LANG=C $cmd -march=native); done

Not sure what to expect as output ...


# cat /proc/cpuinfo
processor	: 0
vendor_id	: AuthenticAMD
cpu family	: 16
model	        : 10
model name	: AMD Phenom(tm) II X6 1100T Processor
stepping	: 0
microcode	: 0x10000bf
cpu MHz	: 3310.890
cache size	: 512 KB
physical id	: 0
siblings	: 6
core id	: 0
cpu cores	: 6
apicid	        : 0
initial apicid	: 0
fpu	        : yes
fpu_exception	: yes
cpuid level	: 6
wp	        : yes
flags	        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt nodeid_msr cpb hw_pstate vmmcall npt lbrv svm_lock nrip_save pausefilter
bugs	        : tlb_mmatch fxsave_leak sysret_ss_attrs null_seg spectre_v1 spectre_v2
bogomips	: 6621.79
TLB size	: 1024 4K pages
clflush size	: 64
cache_alignment: 64
address sizes	: 48 bits physical, 48 bits virtual
power management: ts ttp tm stc 100mhzsteps hwpstate cpb

processor	: 1
vendor_id	: AuthenticAMD
cpu family	: 16
model	        : 10
model name	: AMD Phenom(tm) II X6 1100T Processor
stepping	: 0
microcode	: 0x10000bf
cpu MHz	: 3310.896
cache size	: 512 KB
physical id	: 0
siblings	: 6
core id	: 1
cpu cores	: 6
apicid	        : 1
initial apicid	: 1
fpu	        : yes
fpu_exception	: yes
cpuid level	: 6
wp	        : yes
flags	        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt nodeid_msr cpb hw_pstate vmmcall npt lbrv svm_lock nrip_save pausefilter
bugs	        : tlb_mmatch fxsave_leak sysret_ss_attrs null_seg spectre_v1 spectre_v2
bogomips	: 6621.79
TLB size	: 1024 4K pages
clflush size	: 64
cache_alignment: 64
address sizes	: 48 bits physical, 48 bits virtual
power management: ts ttp tm stc 100mhzsteps hwpstate cpb

processor	: 2
vendor_id	: AuthenticAMD
cpu family	: 16
model	        : 10
model name	: AMD Phenom(tm) II X6 1100T Processor
stepping	: 0
microcode	: 0x10000bf
cpu MHz	: 3310.895
cache size	: 512 KB
physical id	: 0
siblings	: 6
core id	: 2
cpu cores	: 6
apicid	        : 2
initial apicid	: 2
fpu	        : yes
fpu_exception	: yes
cpuid level	: 6
wp	        : yes
flags	        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt nodeid_msr cpb hw_pstate vmmcall npt lbrv svm_lock nrip_save pausefilter
bugs	        : tlb_mmatch fxsave_leak sysret_ss_attrs null_seg spectre_v1 spectre_v2
bogomips	: 6621.79
TLB size	: 1024 4K pages
clflush size	: 64
cache_alignment: 64
address sizes	: 48 bits physical, 48 bits virtual
power management: ts ttp tm stc 100mhzsteps hwpstate cpb

processor	: 3
vendor_id	: AuthenticAMD
cpu family	: 16
model	        : 10
model name	: AMD Phenom(tm) II X6 1100T Processor
stepping	: 0
microcode	: 0x10000bf
cpu MHz	: 3310.902
cache size	: 512 KB
physical id	: 0
siblings	: 6
core id	: 3
cpu cores	: 6
apicid	        : 3
initial apicid	: 3
fpu	        : yes
fpu_exception	: yes
cpuid level	: 6
wp	        : yes
flags	        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt nodeid_msr cpb hw_pstate vmmcall npt lbrv svm_lock nrip_save pausefilter
bugs	        : tlb_mmatch fxsave_leak sysret_ss_attrs null_seg spectre_v1 spectre_v2
bogomips	: 6621.79
TLB size	: 1024 4K pages
clflush size	: 64
cache_alignment: 64
address sizes	: 48 bits physical, 48 bits virtual
power management: ts ttp tm stc 100mhzsteps hwpstate cpb

processor	: 4
vendor_id	: AuthenticAMD
cpu family	: 16
model	        : 10
model name	: AMD Phenom(tm) II X6 1100T Processor
stepping	: 0
microcode	: 0x10000bf
cpu MHz	: 3310.916
cache size	: 512 KB
physical id	: 0
siblings	: 6
core id	: 4
cpu cores	: 6
apicid	        : 4
initial apicid	: 4
fpu	        : yes
fpu_exception	: yes
cpuid level	: 6
wp	        : yes
flags	        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt nodeid_msr cpb hw_pstate vmmcall npt lbrv svm_lock nrip_save pausefilter
bugs	        : tlb_mmatch fxsave_leak sysret_ss_attrs null_seg spectre_v1 spectre_v2
bogomips	: 6621.79
TLB size	: 1024 4K pages
clflush size	: 64
cache_alignment: 64
address sizes	: 48 bits physical, 48 bits virtual
power management: ts ttp tm stc 100mhzsteps hwpstate cpb

processor	: 5
vendor_id	: AuthenticAMD
cpu family	: 16
model	        : 10
model name	: AMD Phenom(tm) II X6 1100T Processor
stepping	: 0
microcode	: 0x10000bf
cpu MHz	: 3310.912
cache size	: 512 KB
physical id	: 0
siblings	: 6
core id	: 5
cpu cores	: 6
apicid	        : 5
initial apicid	: 5
fpu	        : yes
fpu_exception	: yes
cpuid level	: 6
wp	        : yes
flags	        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt nodeid_msr cpb hw_pstate vmmcall npt lbrv svm_lock nrip_save pausefilter
bugs	        : tlb_mmatch fxsave_leak sysret_ss_attrs null_seg spectre_v1 spectre_v2
bogomips	: 6621.79
TLB size	: 1024 4K pages
clflush size	: 64
cache_alignment: 64
address sizes	: 48 bits physical, 48 bits virtual
power management: ts ttp tm stc 100mhzsteps hwpstate cpb
Comment 8 Sergei Trofimovich (RETIRED) gentoo-dev 2020-08-11 22:45:09 UTC
(In reply to maxi_kroeg from comment #7)
> This produces no output:
> arch=amdfam10; for t in param target; do cmd="gcc -Q -O2 -march=$arch
> --help=$t"; diff -U0 <(LANG=C $cmd) <(LANG=C $cmd -march=native); done

Thank you!

> Not sure what to expect as output ...

I think that means that -march=native is translated exactly to -march=amdfam10 on your system.
Comment 9 maxi_kroeg 2020-08-11 22:57:24 UTC
Created attachment 654234 [details]
ninja -v -j6 -l6 -C out/Release v8_context_snapshot_generator

Continued build crashed again.
Comment 10 Sergei Trofimovich (RETIRED) gentoo-dev 2020-08-12 06:32:34 UTC
(In reply to maxi_kroeg from comment #9)
> Created attachment 654234 [details]
> ninja -v -j6 -l6 -C out/Release v8_context_snapshot_generator
> 
> Continued build crashed again.

The build log reports exact g++ command that failed:

"""
...
FAILED: obj/third_party/blink/renderer/core/html/html/lazy_load_image_observer.o
x86_64-pc-linux-gnu-g++ ... -o obj/third_party/blink/renderer/core/html/html/lazy_load_image_observer.o
...
"""

You need to rerun that command to check if it consistently crashes and extract preprocessed file from it.
Comment 11 maxi_kroeg 2020-08-12 18:25:53 UTC
Created attachment 654362 [details]
intermediate result *.ii part1

This latest crash is at this command:

FAILED: obj/third_party/blink/renderer/core/layout/layout/table_layout_algorithm_fixed.o
x86_64-pc-linux-gnu-g++ -MMD -MF obj/third_party/blink/renderer/core/layout/layout/table_layout_algorithm_fixed.o.d -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_X11=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DBLINK_CORE_IMPLEMENTATION=1 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_40 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_40 -DVK_USE_PLATFORM_XCB_KHR -DGL_GLEXT_PROTOTYPES -DUSE_GLX -DUSE_EGL -DBLINK_IMPLEMENTATION=1 -DINSIDE_BLINK -DUSING_SYSTEM_ICU=1 -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC -DUCHAR_TYPE=uint16_t -DU_IMPORT=U_EXPORT -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -DHAVE_PTHREAD -DWEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS=0 -DWEBRTC_CHROMIUM_BUILD -DWEBRTC_POSIX -DWEBRTC_LINUX -DABSL_ALLOCATOR_NOTHROW=1 -DWEBRTC_USE_BUILTIN_ISAC_FIX=0 -DWEBRTC_USE_BUILTIN_ISAC_FLOAT=1 -DWEBRTC_USE_X11 -DHAVE_SCTP -DNO_MAIN_THREAD_WRAPPING -DSK_CODEC_DECODES_PNG -DSK_CODEC_DECODES_WEBP -DSK_ENCODE_PNG -DSK_ENCODE_WEBP -DSK_USER_CONFIG_HEADER=\"../../skia/config/SkUserConfig.h\" -DSK_GL -DSK_CODEC_DECODES_JPEG -DSK_ENCODE_JPEG -DSK_USE_LIBGIFCODEC -DSK_VULKAN_HEADER=\"../../skia/config/SkVulkanConfig.h\" -DSK_VULKAN=1 -DSK_SUPPORT_GPU=1 -DSK_GPU_WORKAROUNDS_HEADER=\"gpu/config/gpu_driver_bug_workaround_autogen.h\" -DVK_USE_PLATFORM_XCB_KHR -DV8_COMPRESS_POINTERS -DV8_31BIT_SMIS_ON_64BIT_ARCH -DV8_DEPRECATION_WARNINGS -DCRASHPAD_ZLIB_SOURCE_EXTERNAL -DUSE_SYSTEM_ZLIB=1 -DLEVELDB_PLATFORM_CHROMIUM=1 -DLEVELDB_PLATFORM_CHROMIUM=1 -DSUPPORT_WEBGL2_COMPUTE_CONTEXT=1 -DWTF_USE_WEBAUDIO_PFFFT=1 -DUSE_SYSTEM_LIBJPEG -DV8_COMPRESS_POINTERS -DV8_31BIT_SMIS_ON_64BIT_ARCH -DV8_DEPRECATION_WARNINGS -I../.. -Igen -Igen/shim_headers/zlib_shim -Igen/shim_headers/icui18n_shim -Igen/shim_headers/icuuc_shim -I../../third_party/perfetto/include -Igen/third_party/perfetto/build_config -Igen/third_party/perfetto -I../../third_party/libyuv/include -I../../third_party/jsoncpp/source/include -I../../third_party/jsoncpp/generated -Igen/shim_headers/opus_shim -Igen/shim_headers/ffmpeg_shim -Igen/shim_headers/openh264_shim -Igen/shim_headers/libpng_shim -Igen/shim_headers/libwebp_shim -I../../third_party/vulkan_headers/include -Igen/shim_headers/re2_shim -Igen/shim_headers/snappy_shim -I../../third_party/khronos -I../../gpu -Igen/third_party/dawn/src/include -I../../third_party/dawn/src/include -I../../third_party/boringssl/src/include -I../../third_party/ced/src -I../../third_party/protobuf/src -I../../third_party/protobuf/src -Igen/protoc_out -I../../third_party/webrtc_overrides -I../../third_party/webrtc -Igen/third_party/webrtc -I../../third_party/abseil-cpp -I../../third_party/skia -I../../third_party/libgifcodec -I../../third_party/vulkan/include -I../../third_party/vulkan_headers/include -I../../third_party/angle/include -I../../third_party/angle/src/common/third_party/base -Igen/angle -I../../third_party/angle/include -I../../v8/include -Igen/v8/include -I../../third_party/crashpad/crashpad -I../../third_party/crashpad/crashpad/compat/non_mac -I../../third_party/crashpad/crashpad/compat/linux -I../../third_party/crashpad/crashpad/compat/non_win -I../../third_party/libwebm/source -I../../third_party/leveldatabase -I../../third_party/leveldatabase/src -I../../third_party/leveldatabase/src/include -I../../third_party/mesa_headers -I../../third_party/iccjpeg -I../../third_party/ots/include -I../../v8/include -Igen/v8/include -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -funwind-tables -fPIC -pipe -pthread -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-deprecated-declarations -Wno-comments -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-unused-parameter -fno-omit-frame-pointer -fvisibility=hidden -I/usr/lib64/libffi/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/nss -I/usr/include/nspr -I/usr/include/libpng16 -I/usr/include/libxml2 -I/usr/include/libxml2 -std=gnu++14 -Wno-narrowing -Wno-class-memaccess -fno-exceptions -fno-rtti -fvisibility-inlines-hidden -Wno-deprecated-declarations -O2 -pipe -march=native -c ../../third_party/blink/renderer/core/layout/table_layout_algorithm_fixed.cc -o obj/third_party/blink/renderer/core/layout/layout/table_layout_algorithm_fixed.o
Comment 12 maxi_kroeg 2020-08-12 18:27:14 UTC
Created attachment 654364 [details]
intermediate result *.ii part2

Was larger than 1000KB so i split it in two parts
Comment 13 maxi_kroeg 2020-08-12 18:27:53 UTC
Created attachment 654366 [details]
intermediate result *.s
Comment 14 maxi_kroeg 2020-08-12 18:29:44 UTC
It did compiled the file without error when I ran it manually.
Comment 15 maxi_kroeg 2020-08-12 18:31:59 UTC
This is the command I executed (prepended LANG=C and appended -save-temps):

LANG=C x86_64-pc-linux-gnu-g++ -MMD -MF obj/third_party/blink/renderer/core/layout/layout/table_layout_algorithm_fixed.o.d -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_X11=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DBLINK_CORE_IMPLEMENTATION=1 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_40 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_40 -DVK_USE_PLATFORM_XCB_KHR -DGL_GLEXT_PROTOTYPES -DUSE_GLX -DUSE_EGL -DBLINK_IMPLEMENTATION=1 -DINSIDE_BLINK -DUSING_SYSTEM_ICU=1 -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC -DUCHAR_TYPE=uint16_t -DU_IMPORT=U_EXPORT -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -DHAVE_PTHREAD -DWEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS=0 -DWEBRTC_CHROMIUM_BUILD -DWEBRTC_POSIX -DWEBRTC_LINUX -DABSL_ALLOCATOR_NOTHROW=1 -DWEBRTC_USE_BUILTIN_ISAC_FIX=0 -DWEBRTC_USE_BUILTIN_ISAC_FLOAT=1 -DWEBRTC_USE_X11 -DHAVE_SCTP -DNO_MAIN_THREAD_WRAPPING -DSK_CODEC_DECODES_PNG -DSK_CODEC_DECODES_WEBP -DSK_ENCODE_PNG -DSK_ENCODE_WEBP -DSK_USER_CONFIG_HEADER=\"../../skia/config/SkUserConfig.h\" -DSK_GL -DSK_CODEC_DECODES_JPEG -DSK_ENCODE_JPEG -DSK_USE_LIBGIFCODEC -DSK_VULKAN_HEADER=\"../../skia/config/SkVulkanConfig.h\" -DSK_VULKAN=1 -DSK_SUPPORT_GPU=1 -DSK_GPU_WORKAROUNDS_HEADER=\"gpu/config/gpu_driver_bug_workaround_autogen.h\" -DVK_USE_PLATFORM_XCB_KHR -DV8_COMPRESS_POINTERS -DV8_31BIT_SMIS_ON_64BIT_ARCH -DV8_DEPRECATION_WARNINGS -DCRASHPAD_ZLIB_SOURCE_EXTERNAL -DUSE_SYSTEM_ZLIB=1 -DLEVELDB_PLATFORM_CHROMIUM=1 -DLEVELDB_PLATFORM_CHROMIUM=1 -DSUPPORT_WEBGL2_COMPUTE_CONTEXT=1 -DWTF_USE_WEBAUDIO_PFFFT=1 -DUSE_SYSTEM_LIBJPEG -DV8_COMPRESS_POINTERS -DV8_31BIT_SMIS_ON_64BIT_ARCH -DV8_DEPRECATION_WARNINGS -I../.. -Igen -Igen/shim_headers/zlib_shim -Igen/shim_headers/icui18n_shim -Igen/shim_headers/icuuc_shim -I../../third_party/perfetto/include -Igen/third_party/perfetto/build_config -Igen/third_party/perfetto -I../../third_party/libyuv/include -I../../third_party/jsoncpp/source/include -I../../third_party/jsoncpp/generated -Igen/shim_headers/opus_shim -Igen/shim_headers/ffmpeg_shim -Igen/shim_headers/openh264_shim -Igen/shim_headers/libpng_shim -Igen/shim_headers/libwebp_shim -I../../third_party/vulkan_headers/include -Igen/shim_headers/re2_shim -Igen/shim_headers/snappy_shim -I../../third_party/khronos -I../../gpu -Igen/third_party/dawn/src/include -I../../third_party/dawn/src/include -I../../third_party/boringssl/src/include -I../../third_party/ced/src -I../../third_party/protobuf/src -I../../third_party/protobuf/src -Igen/protoc_out -I../../third_party/webrtc_overrides -I../../third_party/webrtc -Igen/third_party/webrtc -I../../third_party/abseil-cpp -I../../third_party/skia -I../../third_party/libgifcodec -I../../third_party/vulkan/include -I../../third_party/vulkan_headers/include -I../../third_party/angle/include -I../../third_party/angle/src/common/third_party/base -Igen/angle -I../../third_party/angle/include -I../../v8/include -Igen/v8/include -I../../third_party/crashpad/crashpad -I../../third_party/crashpad/crashpad/compat/non_mac -I../../third_party/crashpad/crashpad/compat/linux -I../../third_party/crashpad/crashpad/compat/non_win -I../../third_party/libwebm/source -I../../third_party/leveldatabase -I../../third_party/leveldatabase/src -I../../third_party/leveldatabase/src/include -I../../third_party/mesa_headers -I../../third_party/iccjpeg -I../../third_party/ots/include -I../../v8/include -Igen/v8/include -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -funwind-tables -fPIC -pipe -pthread -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-deprecated-declarations -Wno-comments -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-unused-parameter -fno-omit-frame-pointer -fvisibility=hidden -I/usr/lib64/libffi/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/nss -I/usr/include/nspr -I/usr/include/libpng16 -I/usr/include/libxml2 -I/usr/include/libxml2 -std=gnu++14 -Wno-narrowing -Wno-class-memaccess -fno-exceptions -fno-rtti -fvisibility-inlines-hidden -Wno-deprecated-declarations -O2 -pipe -march=native -c ../../third_party/blink/renderer/core/layout/table_layout_algorithm_fixed.cc -o obj/third_party/blink/renderer/core/layout/layout/table_layout_algorithm_fixed.o -save-temps
Comment 16 Sergei Trofimovich (RETIRED) gentoo-dev 2020-08-12 21:16:20 UTC
(In reply to maxi_kroeg from comment #14)
> It did compiled the file without error when I ran it manually.

It's not clear what fails for you: only 'ninja' run? Or running gcc command as is cavains .cc (ont .ii) files fails as well?
Comment 17 maxi_kroeg 2020-08-12 21:29:18 UTC
The ninja run failed with the compiler error, but running the above gcc command for the reported file worked without error.
Comment 18 Sergei Trofimovich (RETIRED) gentoo-dev 2020-08-12 21:34:10 UTC
(In reply to maxi_kroeg from comment #17)
> The ninja run failed with the compiler error, but running the above gcc
> command for the reported file worked without error.

Non-deterministic behaviour is worrying. Might be hardware problem or RAM exhaustion.

1. Does 'dmesg' report anything else? Perhaps, OOM condition.
2. I also suggest running memtest just in case to get some confidence it's not an outright bad RAM.
3. Try to run the priginal g++ command in a loop (say, 100 times) to see if it could fail non-deterministically.
Comment 19 maxi_kroeg 2020-08-12 21:43:54 UTC
There's no oom logged in dmesg.
I already tried running the gcc command in a loop, did 100 time x2, no error reported.
I will try running memtest tomorrow.
Comment 20 Porcupine of the Moon 2020-08-13 18:04:39 UTC
I can confirm this bug. I tried to build various versions of chromium and it also fails at random positions with an internal compiler error and segmenation fault.

E.g.:

emerge -pqv:
[ebuild  N    ] www-client/chromium-85.0.4183.59  USE="cups hangouts js-type-check (pic) proprietary-codecs pulseaudio system-ffmpeg system-icu tcmalloc widevine (-component-build) -custom-cflags (-headless) -kerberos -ozone (-selinux) -suid (-system-libvpx) -wayland" L10N="de -am -ar -bg -bn -ca -cs -da -el -en-GB -es -es-419 -et -fa -fi -fil -fr -gu -he -hi -hr -hu -id -it -ja -kn -ko -lt -lv -ml -mr -ms -nb -nl -pl -pt-BR -pt-PT -ro -ru -sk -sl -sr -sv -sw -ta -te -th -tr -uk -vi -zh-CN -zh-TW"

results in

../../third_party/blink/renderer/platform/heap/member.h:249:3: internal compiler error: Segmentation fault

and 

 * ERROR: www-client/chromium-85.0.4183.59::gentoo failed (compile phase):
 *   ninja -v -j2 -l0 -C out/Release v8_context_snapshot_generator failed

Please see my further attachments with _porcupine to distinguish it from the output of maxi_kreog.
Comment 21 Porcupine of the Moon 2020-08-13 18:07:22 UTC
Created attachment 654474 [details]
emerge --info '=www-client/chromium-85.0.4183.59::gentoo

emerge --info '=www-client/chromium-85.0.4183.59::gentoo
Comment 22 Porcupine of the Moon 2020-08-13 18:23:19 UTC
Created attachment 654476 [details]
/var/tmp/portage/www-client/chromium-85.0.4183.59/temp/build.log

/var/tmp/portage/www-client/chromium-85.0.4183.59/temp/build.log
Comment 23 Sergei Trofimovich (RETIRED) gentoo-dev 2020-08-13 18:54:25 UTC
(In reply to Porcupine of the Moon from comment #20)
> I can confirm this bug. I tried to build various versions of chromium and it
> also fails at random positions with an internal compiler error and
> segmenation fault.

Non-deterministic failures might be a sign of bad hardware.

Please follow https://wiki.gentoo.org/wiki/Gcc-ICE-reporting-guide and extract a few things:
1. expand -march=native value for your CPU
2. extract preprocessed file that crashes with some probablility when ran against expanded -march= value
3. check your hardware with sys-apps/memtest86+ to have some confidence it's not an outright hardware problem
Comment 24 maxi_kroeg 2020-08-13 19:58:29 UTC
Running memtest86+ today did reveal some bad memory locations.
Might have been due to accumulated dust ...
Will report back tomorrow whether it compiles successfully.
Comment 25 maxi_kroeg 2020-08-15 17:54:17 UTC
Peak temperature dropped by ~40°C, memtest86+ no longer reports errors and www-client/chromium-84.0.4147.125 compiled successfully.

Thanks everyone for your help.
Comment 26 Mike Gilbert gentoo-dev 2020-08-15 19:40:28 UTC
Closing per comment 25.
Comment 27 Porcupine of the Moon 2020-08-15 21:02:51 UTC
(In reply to Sergei Trofimovich from comment #23)
> 1. expand -march=native value for your CPU


arch=sandybridge; for t in param target; do cmd="gcc -Q -O2 -march=$arch --help=$t"; diff -U0 <(LANG=C $cmd) <(LANG=C $cmd -march=native); done
--- /dev/fd/61	2020-08-15 22:52:14.410809210 +0200
+++ /dev/fd/60	2020-08-15 22:52:14.410809210 +0200
@@ -16 +16 @@
-  -maes                       		[disabled]
+  -maes                       		[enabled]


> 2. extract preprocessed file that crashes with some probablility when ran
> against expanded -march= value

I don't understand it or I can't because of missing reproducibility.

First, after running 

ninja -v -j2 -l0 -C out/Release mksnapshot

the ICE was reproducibly.

Then, I run

x86_64-pc-linux-gnu-g++ -MMD -MF obj/v8/torque_generated_initializers/internal-coverage-tq-csa.o.d -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_X11=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DV8_TYPED_ARRAY_MAX_SIZE_IN_HEAP=64 -DENABLE_MINOR_MC -DV8_INTL_SUPPORT -DV8_USE_EXTERNAL_STARTUP_DATA -DV8_CONCURRENT_MARKING -DV8_ARRAY_BUFFER_EXTENSION -DV8_ENABLE_LAZY_SOURCE_POSITIONS -DV8_WIN64_UNWINDING_INFO -DV8_ENABLE_REGEXP_INTERPRETER_THREADED_DISPATCH -DV8_SNAPSHOT_COMPRESSION -DV8_COMPRESS_POINTERS -DV8_31BIT_SMIS_ON_64BIT_ARCH -DV8_DEPRECATION_WARNINGS -DV8_TARGET_ARCH_X64 -DV8_HAVE_TARGET_OS -DV8_TARGET_OS_LINUX -DDISABLE_UNTRUSTED_CODE_MITIGATIONS -DV8_COMPRESS_POINTERS -DV8_31BIT_SMIS_ON_64BIT_ARCH -DV8_DEPRECATION_WARNINGS -DUSING_SYSTEM_ICU=1 -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC -DUCHAR_TYPE=uint16_t -DU_IMPORT=U_EXPORT -I../.. -Igen -I../../v8 -I../../v8/include -Igen/v8 -Igen/shim_headers/icui18n_shim -Igen/shim_headers/icuuc_shim -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -funwind-tables -fPIC -pipe -pthread -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-deprecated-declarations -Wno-comments -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-unused-parameter -fno-omit-frame-pointer -fvisibility=hidden -Wno-strict-overflow -Wno-return-type -std=gnu++14 -Wno-narrowing -Wno-class-memaccess -fno-exceptions -fno-rtti -fvisibility-inlines-hidden -march=native -mtune=native -O2 -pipe -c gen/v8/torque-generated/src/builtins/internal-coverage-tq-csa.cc -o obj/v8/torque_generated_initializers/internal-coverage-tq-csa.o

and it completed without errors.

Then, I run 

ninja -v -j2 -l0 -C out/Release mksnapshot

again and it continued without running directly into the ICE. (I aborted it after a while.)

Can you please tell me in more details what I'm supposed to do. (I'm not a programmer / software developer.) 


> 3. check your hardware with sys-apps/memtest86+ to have some confidence it's
> not an outright hardware problem

memtest86+ is unfortunately not working on my system. It freezes after about 1s.
However, I compiled a lot recently including large builds like qtwebkit without ICEs, so I wouldn't bet on defective memory. But I can't tell for sure. 


Maybe another hint: I also tried to rebuild the dependencies of chromium and during the rebuild I run several times into another ICE with
net-libs/nodejs

After rebuild all other dependencies, I could also successfully rebuild nodejs. But no luck with chromium so far.
Comment 28 Sergei Trofimovich (RETIRED) gentoo-dev 2020-08-15 22:11:49 UTC
(In reply to Porcupine of the Moon from comment #27)
> I don't understand it or I can't because of missing reproducibility.
> 
> First, after running 
> 
> ninja -v -j2 -l0 -C out/Release mksnapshot
> 
> the ICE was reproducibly.
>
> Then, I run
> 
> x86_64-pc-linux-gnu-g++ -MMD -MF
> obj/v8/torque_generated_initializers/internal-coverage-tq-csa.o.d -DUSE_UDEV
> -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_X11=1
> -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
> -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DNDEBUG -DNVALGRIND
> -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DV8_TYPED_ARRAY_MAX_SIZE_IN_HEAP=64
> -DENABLE_MINOR_MC -DV8_INTL_SUPPORT -DV8_USE_EXTERNAL_STARTUP_DATA
> -DV8_CONCURRENT_MARKING -DV8_ARRAY_BUFFER_EXTENSION
> -DV8_ENABLE_LAZY_SOURCE_POSITIONS -DV8_WIN64_UNWINDING_INFO
> -DV8_ENABLE_REGEXP_INTERPRETER_THREADED_DISPATCH -DV8_SNAPSHOT_COMPRESSION
> -DV8_COMPRESS_POINTERS -DV8_31BIT_SMIS_ON_64BIT_ARCH
> -DV8_DEPRECATION_WARNINGS -DV8_TARGET_ARCH_X64 -DV8_HAVE_TARGET_OS
> -DV8_TARGET_OS_LINUX -DDISABLE_UNTRUSTED_CODE_MITIGATIONS
> -DV8_COMPRESS_POINTERS -DV8_31BIT_SMIS_ON_64BIT_ARCH
> -DV8_DEPRECATION_WARNINGS -DUSING_SYSTEM_ICU=1
> -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC -DUCHAR_TYPE=uint16_t
> -DU_IMPORT=U_EXPORT -I../.. -Igen -I../../v8 -I../../v8/include -Igen/v8
> -Igen/shim_headers/icui18n_shim -Igen/shim_headers/icuuc_shim
> -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector
> -funwind-tables -fPIC -pipe -pthread -Wno-builtin-macro-redefined
> -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -Wno-unused-local-typedefs
> -Wno-maybe-uninitialized -Wno-deprecated-declarations -Wno-comments
> -Wno-packed-not-aligned -Wno-missing-field-initializers
> -Wno-unused-parameter -fno-omit-frame-pointer -fvisibility=hidden
> -Wno-strict-overflow -Wno-return-type -std=gnu++14 -Wno-narrowing
> -Wno-class-memaccess -fno-exceptions -fno-rtti -fvisibility-inlines-hidden
> -march=native -mtune=native -O2 -pipe -c
> gen/v8/torque-generated/src/builtins/internal-coverage-tq-csa.cc -o
> obj/v8/torque_generated_initializers/internal-coverage-tq-csa.o
> 
> and it completed without errors.
> 
> Then, I run 
> 
> ninja -v -j2 -l0 -C out/Release mksnapshot
> 
> again and it continued without running directly into the ICE. (I aborted it
> after a while.)
> 
> Can you please tell me in more details what I'm supposed to do. (I'm not a
> programmer / software developer.) 

You did fine. It looks like a non-deterministic crash. Those are quite hard to isolate and require extensive debugging. But frequently they are also a sign of bad hardware.

You can also try to run individual ICE-ing g++ command in a loop (of say, 100 iterations) to see if it fails at least occasionally.

TO make the environment slightly less chaotic you can also try MAKEOPTS=-j1 to see if build failure happens in environment without concurrency.

> > 3. check your hardware with sys-apps/memtest86+ to have some confidence it's
> > not an outright hardware problem
> 
> memtest86+ is unfortunately not working on my system. It freezes after about
> 1s.

Worth filing a separate bug to make it work. It is a valuable signal to have some confidence that hardware is reasonably well behaving.
Comment 29 Porcupine of the Moon 2020-08-17 11:35:49 UTC
(In reply to Sergei Trofimovich from comment #28)

> TO make the environment slightly less chaotic you can also try MAKEOPTS=-j1
> to see if build failure happens in environment without concurrency.
> 

MAKEOPTS=-j1 alone did not work for me.
However, I managed to build chromium-84.0.4147.125 successfully with 
MAKEOPTS=-j1
and
CFLAGS="-march=native -O1 -pipe"

instead of 
MAKEOPTS=-j2
CFLAGS="-march=native -mtune=native -O2 -pipe"

However, this resulted in a ridiculous long build time of about two full days on my system.

> > > 3. check your hardware with sys-apps/memtest86+ to have some confidence it's
> > > not an outright hardware problem
> > 
> > memtest86+ is unfortunately not working on my system. It freezes after about
> > 1s.
> 
> Worth filing a separate bug to make it work. It is a valuable signal to have
> some confidence that hardware is reasonably well behaving.

I was researching this already elsewhere. This seems to be a known bug related to BIOS.