Public bug reported:
Here is the full build command + exception log:
```
g++-7 -DHAVE_MALLOC_USABLE_SIZE=1 -DHAVE_MMAP=1 -DHAVE_SHM_OPEN=1
-DHAVE_SHM_UNLINK=1 -DIDEEP_USE_MKL -DMINIZ_DISABLE_ZIP_READER_CRC32_CHECKS
-DNDEBUG -DONNXIFI_ENABLE_EXT=1 -DONNX_ML=1 -DONNX_NAMESPACE=onnx_torch
-DTH_BLAS_MKL -DUSE_EXTERNAL_MZCRC -DUSE_TENSILE_HOST -D_FILE_OFFSET_BITS=64
-D__HIP_PLATFORM_HCC__=1 -D__HIP_ROCclr__=1
-I/var/lib/jenkins/workspace/build/aten/src
-I/var/lib/jenkins/workspace/aten/src -I/var/lib/jenkins/workspace/build
-I/var/lib/jenkins/workspace -I/opt/rocm-3.9.0/miopen/include
-I/var/lib/jenkins/workspace/cmake/../third_party/benchmark/include
-I/var/lib/jenkins/workspace/build/caffe2/contrib/aten
-I/var/lib/jenkins/workspace/third_party/onnx
-I/var/lib/jenkins/workspace/build/third_party/onnx
-I/var/lib/jenkins/workspace/third_party/foxi
-I/var/lib/jenkins/workspace/build/third_party/foxi
-I/var/lib/jenkins/workspace/build/caffe2/../aten/src
-I/var/lib/jenkins/workspace/build/caffe2/../aten/src/ATen
-I/var/lib/jenkins/workspace/torch/csrc/api
-I/var/lib/jenkins/workspace/torch/csrc/api/include
-I/var/lib/jenkins/workspace/c10/..
-I/var/lib/jenkins/workspace/build/third_party/ideep/mkl-dnn/include
-I/var/lib/jenkins/workspace/third_party/ideep/mkl-dnn/src/../include
-I/var/lib/jenkins/workspace/c10/hip/../..
-I/var/lib/jenkins/workspace/build/third_party/gloo/hip -isystem
/var/lib/jenkins/workspace/build/third_party/gloo -isystem
/var/lib/jenkins/workspace/cmake/../third_party/gloo -isystem
/var/lib/jenkins/workspace/cmake/../third_party/googletest/googlemock/include
-isystem
/var/lib/jenkins/workspace/cmake/../third_party/googletest/googletest/include
-isystem /var/lib/jenkins/workspace/third_party/protobuf/src -isystem
/opt/conda/include -isystem /var/lib/jenkins/workspace/third_party/gemmlowp
-isystem /var/lib/jenkins/workspace/third_party/neon2sse -isystem
/var/lib/jenkins/workspace/third_party/XNNPACK/include -isystem
/var/lib/jenkins/workspace/third_party -isystem
/var/lib/jenkins/workspace/cmake/../third_party/eigen -isystem
/opt/conda/include/python3.6m -isystem
/opt/conda/lib/python3.6/site-packages/numpy/core/include -isystem
/var/lib/jenkins/workspace/cmake/../third_party/pybind11/include -isystem
/opt/rocm/hip/include -isystem /opt/rocm/rocblas/include -isystem
/opt/rocm/rocfft/include -isystem /opt/rocm/hipsparse/include -isystem
/opt/rocm/hiprand/include -isystem /opt/rocm/rocrand/include -isystem
/opt/rocm/include -isystem
/var/lib/jenkins/workspace/third_party/ideep/mkl-dnn/include -isystem
/var/lib/jenkins/workspace/third_party/ideep/include -isystem
/opt/rocm-3.9.0/include -isystem /opt/rocm-3.9.0/hip/include -isystem
/var/lib/jenkins/workspace/third_party/googletest/googletest/include -isystem
/var/lib/jenkins/workspace/third_party/googletest/googletest -Wno-deprecated
-fvisibility-inlines-hidden -DUSE_PTHREADPOOL -fopenmp -DNDEBUG -DUSE_FBGEMM
-DUSE_QNNPACK -DUSE_PYTORCH_QNNPACK -DUSE_XNNPACK -O2 -fPIC -Wno-narrowing
-Wall -Wextra -Werror=return-type -Wno-missing-field-initializers
-Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wno-sign-compare
-Wno-unused-parameter -Wno-unused-variable -Wno-unused-function
-Wno-unused-result -Wno-unused-local-typedefs -Wno-strict-overflow
-Wno-strict-aliasing -Wno-error=deprecated-declarations -Wno-stringop-overflow
-Wno-psabi -Wno-error=pedantic -Wno-error=redundant-decls
-Wno-error=old-style-cast -fdiagnostics-color=always -faligned-new
-Wno-unused-but-set-variable -Wno-maybe-uninitialized -fno-math-errno
-fno-trapping-math -Werror=format -Wno-stringop-overflow
-DHAVE_AVX_CPU_DEFINITION -DHAVE_AVX2_CPU_DEFINITION -O3 -DNDEBUG -DNDEBUG
-fPIE -DCAFFE2_USE_GLOO -DHAVE_GCC_GET_CPUID -DUSE_AVX -DUSE_AVX2
-DTH_HAVE_THREAD -Wno-maybe-uninitialized -Wno-unused-but-set-parameter
-pthread -fPIC -D__HIP_PLATFORM_HCC__=1 -DCUDA_HAS_FP16=1
-D__HIP_NO_HALF_OPERATORS__=1 -D__HIP_NO_HALF_CONVERSIONS__=1
-Wno-macro-redefined -Wno-inconsistent-missing-override -Wno-exceptions
-Wno-shift-count-negative -Wno-shift-count-overflow
-Wno-unused-command-line-argument -Wno-duplicate-decl-specifier
-Wno-implicit-int-float-conversion -DCAFFE2_USE_MIOPEN
-DTHRUST_DEVICE_SYSTEM=THRUST_DEVICE_SYSTEM_HIP -std=c++14
-L/opt/rocm/llvm/lib/clang/12.0.0/include/../lib/linux
-lclang_rt.builtins-x86_64 -DHIP_VERSION=3 -DUSE_MIOPEN -std=gnu++14 -o
CMakeFiles/test_api.dir/integration.cpp.o -c
/var/lib/jenkins/workspace/test/cpp/api/integration.cpp
cc1plus: warning: command line option ‘-Wno-duplicate-decl-specifier’ is valid
for C/ObjC but not for C++
In file included from
/var/lib/jenkins/workspace/torch/csrc/api/include/torch/nn/modules.h:20:0,
from
/var/lib/jenkins/workspace/torch/csrc/api/include/torch/nn.h:7,
from
/var/lib/jenkins/workspace/torch/csrc/api/include/torch/all.h:13,
from
/var/lib/jenkins/workspace/torch/csrc/api/include/torch/torch.h:3,
from /var/lib/jenkins/workspace/test/cpp/api/integration.cpp:3:
/var/lib/jenkins/workspace/torch/csrc/api/include/torch/nn/modules/conv.h: In
member function ‘void torch::nn::ConvNdImpl<D, Derived>::reset() [with long
unsigned int D = 2; Derived = torch::nn::Conv2dImpl]’:
/var/lib/jenkins/workspace/torch/csrc/api/include/torch/nn/modules/conv.h:28:8:
internal compiler error: in equal_mem_array_ref_p, at
tree-ssa-scopedtables.c:429
void reset() override {
^~~~~
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-7/README.Bugs> for instructions.
```
Can be reproduced with the attach preprocessed source by invoking:
```
/usr/bin/g++-7 -fopenmp -O2 -faligned-new -c integration.E.cpp
```
Removing either of the above 3 flags avoids the ICE. Using g++-8 helps as well
** Affects: gcc-7 (Ubuntu)
Importance: Undecided
Status: New
** Attachment added: "Preprocessed file that reproduces the problem"
https://bugs.launchpad.net/bugs/1917830/+attachment/5473207/+files/integration.E.cpp
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1917830
Title:
g++-7 7.5.0-3ubuntu1 hits nternal compiler error: in
equal_mem_array_ref_p
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-7/+bug/1917830/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs