Bug 90341 - pcsx2-git: "At global scope: cc1plus: internal compiler error: Segmentation fault"
Summary: pcsx2-git: "At global scope: cc1plus: internal compiler error: Segmentation f...
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 9.1.1
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: needs-reduction
Depends on:
Blocks:
 
Reported: 2019-05-04 10:58 UTC by Kyle De'Vir
Modified: 2021-12-08 18:41 UTC (History)
2 users (show)

See Also:
Host:
Target: x86_64-*-*
Build:
Known to work: 8.3.0
Known to fail: 9.1.1
Last reconfirmed: 2021-12-08 00:00:00


Attachments
command line and error output (12.10 KB, application/x-xz)
2019-05-04 10:58 UTC, Kyle De'Vir
Details
Required preprocessed files (402.98 KB, application/x-xz)
2019-05-04 11:00 UTC, Kyle De'Vir
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kyle De'Vir 2019-05-04 10:58:27 UTC
Created attachment 46285 [details]
command line and error output

gcc -v output:

COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/9.1.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /run/media/valmar/Data/Packages/AUR/IndependentGit/gcc-git/src/gcc/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --with-system-zlib --with-isl --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu --enable-gnu-indirect-function --enable-multilib --disable-werror --enable-checking=release --enable-default-pie --enable-default-ssp --enable-cet=auto
Thread model: posix
gcc version 9.1.1 20190503 (GCC)
Comment 1 Kyle De'Vir 2019-05-04 11:00:05 UTC
Created attachment 46286 [details]
Required preprocessed files
Comment 2 Kyle De'Vir 2019-05-04 11:01:08 UTC
I hope this amount of info is sufficient to debug the issue. :)
Comment 3 Richard Biener 2019-05-06 08:16:10 UTC
You are missing to have -v on the command-line which means I have to guess
what -march=native expands to.  Tried some but still get errors:

In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/9.1.1/include/immintrin.h:47,
                 from ../plugins/GSdx/./stdafx.h:308,
                 from ../plugins/GSdx/PSX/GPURendererSW.cpp:22:
/usr/lib/gcc/x86_64-pc-linux-gnu/9.1.1/include/xsavesintrin.h: In function ‘void _xsaves(void*, long long int)’:
/usr/lib/gcc/x86_64-pc-linux-gnu/9.1.1/include/xsavesintrin.h:41:3: error: ‘__builtin_ia32_xsaves’ was not declared in this scope; did you mean ‘__builtin_ia32_xsave’?
...
Comment 4 Kyle De'Vir 2019-05-06 08:32:52 UTC
Here's what `-march=native` expands to:

COLLECT_GCC_OPTIONS='-march=native'
 /usr/lib/gcc/x86_64-pc-linux-gnu/9.1.1/cc1 -quiet - "-march=znver1" -mmmx -mno-3dnow -msse -msse2 -msse3 -mssse3 -msse4a -mcx16 -msahf -mmovbe -maes -msha -mpclmul -mpopcnt -mabm -mno-lwp -mfma -mno-fma4 -mno-xop -mbmi -mno-sgx -mbmi2 -mno-pconfig -mno-wbnoinvd -mno-tbm -mavx -mavx2 -msse4.2 -msse4.1 -mlzcnt -mno-rtm -mno-hle -mrdrnd -mf16c -mfsgsbase -mrdseed -mprfchw -madx -mfxsr -mxsave -mxsaveopt -mno-avx512f -mno-avx512er -mno-avx512cd -mno-avx512pf -mno-prefetchwt1 -mclflushopt -mxsavec -mxsaves -mno-avx512dq -mno-avx512bw -mno-avx512vl -mno-avx512ifma -mno-avx512vbmi -mno-avx5124fmaps -mno-avx5124vnniw -mno-clwb -mmwaitx -mclzero -mno-pku -mno-rdpid -mno-gfni -mno-shstk -mno-avx512vbmi2 -mno-avx512vnni -mno-vaes -mno-vpclmulqdq -mno-avx512bitalg -mno-movdiri -mno-movdir64b -mno-waitpkg -mno-cldemote -mno-ptwrite --param "l1-cache-size=32" --param "l1-cache-line-size=64" --param "l2-cache-size=512" "-mtune=znver1" -quiet -dumpbase - -auxbase - -o /tmp/ccfG19H9.s
COLLECT_GCC_OPTIONS='-march=native'
 as --64 -o /tmp/ccFUIPM3.o /tmp/ccfG19H9.s
COMPILER_PATH=/usr/lib/gcc/x86_64-pc-linux-gnu/9.1.1/:/usr/lib/gcc/x86_64-pc-linux-gnu/9.1.1/:/usr/lib/gcc/x86_64-pc-linux-gnu/:/usr/lib/gcc/x86_64-pc-linux-gnu/9.1.1/:/usr/lib/gcc/x86_64-pc-linux-gnu/
LIBRARY_PATH=/usr/lib/gcc/x86_64-pc-linux-gnu/9.1.1/:/usr/lib/gcc/x86_64-pc-linux-gnu/9.1.1/../../../../lib/:/lib/../lib/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-pc-linux-gnu/9.1.1/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-march=native'
 /usr/lib/gcc/x86_64-pc-linux-gnu/9.1.1/collect2 -plugin /usr/lib/gcc/x86_64-pc-linux-gnu/9.1.1/liblto_plugin.so "-plugin-opt=/usr/lib/gcc/x86_64-pc-linux-gnu/9.1.1/lto-wrapper" "-plugin-opt=-fresolution=/tmp/ccToAwRX.res" "-plugin-opt=-pass-through=-lgcc" "-plugin-opt=-pass-through=-lgcc_s" "-plugin-opt=-pass-through=-lc" "-plugin-opt=-pass-through=-lgcc" "-plugin-opt=-pass-through=-lgcc_s" --build-id --eh-frame-hdr "--hash-style=gnu" -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -pie /usr/lib/gcc/x86_64-pc-linux-gnu/9.1.1/../../../../lib/Scrt1.o /usr/lib/gcc/x86_64-pc-linux-gnu/9.1.1/../../../../lib/crti.o /usr/lib/gcc/x86_64-pc-linux-gnu/9.1.1/crtbeginS.o -L/usr/lib/gcc/x86_64-pc-linux-gnu/9.1.1 -L/usr/lib/gcc/x86_64-pc-linux-gnu/9.1.1/../../../../lib -L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-pc-linux-gnu/9.1.1/../../.. /tmp/ccFUIPM3.o -lgcc --push-state --as-needed -lgcc_s --pop-state -lc -lgcc --push-state --as-needed -lgcc_s --pop-state /usr/lib/gcc/x86_64-pc-linux-gnu/9.1.1/crtendS.o /usr/lib/gcc/x86_64-pc-linux-gnu/9.1.1/../../../../lib/crtn.o
COLLECT_GCC_OPTIONS='-march=native'
Comment 5 Martin Liška 2021-12-08 13:35:13 UTC
Can you please provide pre-processed files with latest GCC release 11.* ?
Comment 6 Kyle De'Vir 2021-12-08 15:36:52 UTC
I haven't been able to reproduce this for a long time now.

Would new pre-processed files be of any worth?
Comment 7 Kyle De'Vir 2021-12-08 15:37:11 UTC
I haven't been able to reproduce this for a long time now.

Would new pre-processed files be of any worth?
Comment 8 Martin Liška 2021-12-08 18:41:45 UTC
Let's close this as fixed.