Bug 37930 - internal compiler error: in output_constructor_regular_field
Summary: internal compiler error: in output_constructor_regular_field
Status: NEW
Alias: None
Product: Sisyphus
Classification: Development
Component: gcc9-c++ (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Gleb F-Malinovskiy
QA Contact: qa-sisyphus
URL: https://gcc.gnu.org/bugzilla/show_bug...
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-26 00:27 MSK by Vitaly Lipatov
Modified: 2020-01-28 16:22 MSK (History)
1 user (show)

See Also:


Attachments
Вывод препроцессора (c++ /E) (168.87 KB, application/x-bzip)
2020-01-27 02:00 MSK, Vitaly Lipatov
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vitaly Lipatov 2020-01-26 00:27:50 MSK
При сборке на aarch64 и ppc64le получаю
...
The CXX compiler identification is GNU 9.2.1
...
[ 74%] Building CXX object test/view/CMakeFiles/view.set_union.dir/set_union.cpp.o
/usr/src/RPM/BUILD/range-v3-0.10.0/test/view/set_union.cpp:315:1: internal compiler error: in output_constructor_regular_field, at varasm.c:5207
  315 | }
      | ^
libbacktrace could not find executable to open
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugzilla.altlinux.org> for instructions.

http://git.altlinux.org/tasks/245045/build/40/aarch64/log

gcc9-c++-9.2.1-alt2
Comment 1 Vitaly Lipatov 2020-01-26 01:30:28 MSK
Сокращённый код такой:

#include <range/v3/view/iota.hpp>
#include <range/v3/view/stride.hpp>

int main()
{
    using namespace ranges;

    auto i1_infinite = views::ints | views::stride(3);
}

$ c++ -I/usr/src/RPM/BUILD/range-v3-0.10.0/include -c test.cpp 
during RTL pass: final
set_union-p1.cpp: In function 'int main()':
set_union-p1.cpp:39:1: internal compiler error: in output_constructor_regular_field, at varasm.c:5207
   39 | }
      | ^
Comment 2 Vitaly Lipatov 2020-01-26 02:22:24 MSK
В p9 собирается без проблем, там
gcc8-c++-8.3.1-alt5
Comment 3 Vitaly Lipatov 2020-01-27 02:00:48 MSK
Created attachment 8540 [details]
Вывод препроцессора (c++ /E)
Comment 4 Dmitry V. Levin 2020-01-27 03:00:10 MSK
(In reply to Vitaly Lipatov from comment #2)
> В p9 собирается без проблем, там
> gcc8-c++-8.3.1-alt5

Попробуйте gcc9-c++-9.2.1-alt3.
Comment 5 Vitaly Lipatov 2020-01-27 03:17:16 MSK
(Ответ для Dmitry V. Levin на комментарий #4)
> (In reply to Vitaly Lipatov from comment #2)
> > В p9 собирается без проблем, там
> > gcc8-c++-8.3.1-alt5
> 
> Попробуйте gcc9-c++-9.2.1-alt3.
[builder@localhost .in]$ c++ z.cpp 
during RTL pass: final
test.cpp: In function 'int main()':
test.cpp:30:1: internal compiler error: in output_constructor_regular_field, at varasm.c:5214


[builder@localhost .in]$ gcc -v
Using built-in specs.
COLLECT_GCC=aarch64-alt-linux-gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/aarch64-alt-linux/9/lto-wrapper
Target: aarch64-alt-linux
Configured with: ../configure --host=aarch64-alt-linux --build=aarch64-alt-linux --target=aarch64-alt-linux --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var/lib --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --disable-dependency-tracking --disable-silent-rules --without-included-gettext --enable-shared --program-suffix=-9 --with-slibdir=/lib64 --with-bugurl=http://bugzilla.altlinux.org --enable-__cxa_atexit --enable-threads=posix --enable-checking=release --with-system-zlib --without-included-gettext --enable-multilib --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --with-gcc-major-version-only --enable-bootstrap --enable-languages=c,c++,fortran,objc,obj-c++,d,lto --enable-plugin
Thread model: posix
gcc version 9.2.1 20200123 (ALT Sisyphus 9.2.1-alt3) (GCC)
Comment 6 Vitaly Lipatov 2020-01-27 03:19:16 MSK
[builder@localhost .out]$ cat >z2.cpp
#include <range/v3/view/iota.hpp>
#include <range/v3/view/stride.hpp>

int main()
{
    using namespace ranges;

    auto i1_infinite = views::ints | views::stride(3);
}
[builder@localhost .out]$ c++ z2.cpp 
during RTL pass: final
z2.cpp: In function 'int main()':
z2.cpp:9:1: internal compiler error: in output_constructor_regular_field, at varasm.c:5214
    9 | }
      | ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugzilla.altlinux.org> for instructions.