При сборке на 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
Сокращённый код такой: #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 | } | ^
В p9 собирается без проблем, там gcc8-c++-8.3.1-alt5
Created attachment 8540 [details] Вывод препроцессора (c++ /E)
(In reply to Vitaly Lipatov from comment #2) > В p9 собирается без проблем, там > gcc8-c++-8.3.1-alt5 Попробуйте gcc9-c++-9.2.1-alt3.
(Ответ для 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)
[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.