https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71054

            Bug ID: 71054
           Summary: internal compiler error: in expand_expr_real_2, at
                    expr.c:8097
           Product: gcc
           Version: 6.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: john.ettedgui at gmail dot com
  Target Milestone: ---

Hello,

Compiling the latest rpcs3 code from git, I get an internal compiler error.
This is my first time getting that so I'm not quite sure how to report it.

I am using gcc 6.1.1, on Arch Linux x64, Linux 4.5.3.
My CPU is an Intel i7-4790K, so Haswell Refresh.

gcc's options for building:

# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48565
  CFLAGS=${CFLAGS/-pipe/}
  CXXFLAGS=${CXXFLAGS/-pipe/}

  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 --enable-libmpx \
      --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

  make

  # make documentation
  make -C $CHOST/libstdc++-v3/doc doc-man-doxygen


g++ -v 
Using built-in specs.
COLLECT_GCC=/usr/bin/g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/6.1.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /build/gcc-multilib/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 --enable-libmpx --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
Thread model: posix
gcc version 6.1.1 20160501 (GCC)


The command line that triggers the bug:
/usr/lib/ccache/bin/c++   -DCMAKE_BUILD -DGLX_GLXEXT_PROTOTYPES
-DGL_GLEXT_PROTOTYPES -DWXUSINGDLL -D_FILE_OFFSET_BITS=64 -D__WXGTK__ -DwxGUI
-isystem /usr/lib/wx/include/gtk2-unicode-3.0 -isystem /usr/include/wx-3.0
-I/usr/include/AL -Irpcs3-git/src/rpcs3/rpcs3/../3rdparty/pugixml/src
-Irpcs3-git/src/rpcs3/rpcs3 -Irpcs3-git/src/rpcs3/rpcs3/Loader
-Irpcs3-git/src/rpcs3/rpcs3/Crypto -Irpcs3-git/src/rpcs3/rpcs3/..
-Irpcs3-git/src/rpcs3/rpcs3/../Utilities/yaml-cpp/include
-Irpcs3-git/src/rpcs3/rpcs3/../asmjit/src/asmjit
-Irpcs3-git/src/rpcs3/rpcs3/../3rdparty/GSL/include
-Irpcs3-git/src/rpcs3/rpcs3/../rsx_program_decompiler/rsx_decompiler
-Irpcs3-git/src/rpcs3/rpcs3/../rsx_program_decompiler/shader_code
-Irpcs3-git/src/rpcs3/rpcs3/../Vulkan/Vulkan-LoaderAndValidationLayers/include
-Irpcs3-git/src/rpcs3/rpcs3/../Vulkan/glslang/glslang/Public
-Irpcs3-git/src/rpcs3/rpcs3/../3rdparty/GL
-Irpcs3-git/src/rpcs3/rpcs3/../3rdparty/stblib  -fno-pie -fno-lto -std=c++14
-fexceptions -pthread -g   -Wno-attributes -Wno-enum-compare
-Wno-invalid-offsetof -msse -msse2 -mcx16 -mssse3  -Winvalid-pch -include
"rpcs3-git/src/rpcs3/build/rpcs3/cotire/rpcs3_CXX_prefix.hxx"  -o
CMakeFiles/rpcs3.dir/Emu/Cell/SPUASMJITRecompiler.cpp.o -c
rpcs3-git/src/rpcs3/rpcs3/Emu/Cell/SPUASMJITRecompiler.cpp


The output:
In file included from
rpcs3-git/src/rpcs3/rpcs3/Emu/Cell/SPUASMJITRecompiler.cpp:6:0:
rpcs3-git/src/rpcs3/rpcs3/Emu/Cell/SPUThread.h:380:31: warning: ignoring
attributes on template argument ‘__m128 {aka __vector(4) float}’
[-Wignored-attributes]
   std::array<__m128, 155 + 174> m_data;
                               ^
c++: internal compiler error: Segmentation fault (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://bugs.archlinux.org/> for instructions.
rpcs3/CMakeFiles/rpcs3.dir/build.make:5021: recipe for target
'rpcs3/CMakeFiles/rpcs3.dir/Emu/Cell/SPUASMJITRecompiler.cpp.o' failed
make[2]: *** [rpcs3/CMakeFiles/rpcs3.dir/Emu/Cell/SPUASMJITRecompiler.cpp.o]
Error 4


I hope that's enough information, please ask for anything I may have forgotten.

Thank you!
John

Reply via email to