[Bug c++/100240] Compiler crashes with segmentation fault on a chrono library using nvcc
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100240 Peter Taraba changed: What|Removed |Added Resolution|--- |DUPLICATE Status|WAITING |RESOLVED --- Comment #10 from Peter Taraba --- yes, you are correct - i am closing this as it is already filed: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100102 for some reason I did not find it during my search. *** This bug has been marked as a duplicate of bug 100102 ***
[Bug c++/100102] [8/9/10/11/12 Regression] ICE in tsubst, at cp/pt.c:15310
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100102 Peter Taraba changed: What|Removed |Added CC||taraba.peter at mail dot com --- Comment #9 from Peter Taraba --- *** Bug 100240 has been marked as a duplicate of this bug. ***
[Bug c++/100240] Compiler crashes with segmentation fault on a chrono library using nvcc
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100240 --- Comment #8 from Peter Taraba --- So, this is happening also with gcc11: pepe@pepe-MS-7C90:~/code/DeeperThought$ ./compile.sh /usr/include/c++/10/chrono: In substitution of ‘template template using __is_harmonic = std::__bool_constant<(std::ratio<((_Period2::num / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::num, _Period::num)) * (_Period::den / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::den, _Period::den))), ((_Period2::den / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::den, _Period::den)) * (_Period::num / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::num, _Period::num)))>::den == 1)> [with _Period2 = _Period2; _Rep = _Rep; _Period = _Period]’: /usr/include/c++/10/chrono:473:154: required from here /usr/include/c++/10/chrono:428:27: internal compiler error: Segmentation fault 428 | _S_gcd(intmax_t __m, intmax_t __n) noexcept | ^~ Please submit a full bug report, with preprocessed source if appropriate. See for instructions. pepe@pepe-MS-7C90:~/code/DeeperThought$ gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/11/lto-wrapper OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu 11-20210417-1ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-11/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-11 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --enable-cet --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-11-pzZXCn/gcc-11-11-20210417/debian/tmp-nvptx/usr,amdgcn-amdhsa=/build/gcc-11-pzZXCn/gcc-11-11-20210417/debian/tmp-gcn/usr --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-serialization=2 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 11.0.1 20210417 (experimental) [master revision c1c86ab96c2:b6fb0ccbb48:8ae884c09fbba91e9cec391290ee4a2859e7ff41] (Ubuntu 11-20210417-1ubuntu1)
[Bug c++/100240] Compiler crashes with segmentation fault on a chrono library using nvcc
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100240 --- Comment #7 from Peter Taraba --- Created attachment 50682 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50682=edit *.i files zipped crashes on DNNLayerMatrix (attaching .i* files zipped).
[Bug c++/100240] Compiler crashes with segmentation fault on a chrono library using nvcc
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100240 --- Comment #5 from Peter Taraba --- Also, not sure if this info helps, but this bug does not seem to appear with gcc 10.2 (I tried it on Manjaro KDE Plasma linux). So it's probably some new code which came after 10.2. Cheers.
[Bug c++/100240] Compiler crashes with segmentation fault on a chrono library using nvcc
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100240 --- Comment #4 from Peter Taraba --- Actually this works: nvcc -o dt ./DeeperThought/*.cu -save-temps But files it creates even if zipped are above 1MB (which is not allowed to be attached).
[Bug c++/100240] Compiler crashes with segmentation fault on a chrono library using nvcc
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100240 --- Comment #3 from Peter Taraba --- unfortunately this is using nvcc, which calls probably gcc internally, so adding option "-save-temps to the complete compilation command" is not going to provide what you want. also, I have no clue what "spam" you are mentioning. Provided URLs are legit websites.
[Bug c++/100240] Compiler crashes with segmentation fault on a chrono library using nvcc
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100240 Peter Taraba changed: What|Removed |Added CC||taraba.peter at mail dot com --- Comment #1 from Peter Taraba --- It used to work on Ubuntu 19.04 & 20.04 just fine: [https://www.frisky.world/2019/04/testing-ubuntu-1904.html]
[Bug c++/100240] New: Compiler crashes with segmentation fault on a chrono library using nvcc
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100240 Bug ID: 100240 Summary: Compiler crashes with segmentation fault on a chrono library using nvcc Product: gcc Version: 10.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: taraba.peter at mail dot com Target Milestone: --- Repro steps: 1. Install Ubuntu 21.04 (with third party libraries install enabled) 2. sudo apt install nvidia-cuda-toolkit 3. git clone https://github.com/pepe78/DeeperThought 4. cd DeeperThought 5. ./compile.sh [ https://www.frisky.world/2021/04/testing-ubuntu-2104.html ] Output from compilation: pepe@pepe-MS-7C90:~/code/DeeperThought$ ./compile.sh /usr/include/c++/10/chrono: In substitution of ‘template template using __is_harmonic = std::__bool_constant<(std::ratio<((_Period2::num / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::num, _Period::num)) * (_Period::den / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::den, _Period::den))), ((_Period2::den / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::den, _Period::den)) * (_Period::num / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::num, _Period::num)))>::den == 1)> [with _Period2 = _Period2; _Rep = _Rep; _Period = _Period]’: /usr/include/c++/10/chrono:473:154: required from here /usr/include/c++/10/chrono:428:27: internal compiler error: Segmentation fault 428 | _S_gcd(intmax_t __m, intmax_t __n) noexcept | ^~ Please submit a full bug report, with preprocessed source if appropriate. See for instructions. pepe@pepe-MS-7C90:~/code/DeeperThought$ cat compile.sh nvcc -o dt ./DeeperThought/*.cu Version of gcc: pepe@pepe-MS-7C90:~/code/DeeperThought$ gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/10/lto-wrapper OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa:hsa OFFLOAD_TARGET_DEFAULT=1 Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu 10.3.0-1ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-10/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-10 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-10-gDeRY6/gcc-10-10.3.0/debian/tmp-nvptx/usr,amdgcn-amdhsa=/build/gcc-10-gDeRY6/gcc-10-10.3.0/debian/tmp-gcn/usr,hsa --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-mutex Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 10.3.0 (Ubuntu 10.3.0-1ubuntu1) pepe@pepe-MS-7C90:~/code/DeeperThought$