Public bug reported: > lsb_release -rd Description: Ubuntu 20.04.1 LTS Release: 20.04
>apt-cache policy gcc-10 gcc-10: Installed: 10.3.0-1ubuntu1~20.04 Candidate: 10.3.0-1ubuntu1~20.04 Version table: *** 10.3.0-1ubuntu1~20.04 500 500 http://fr.archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages 500 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages 100 /var/lib/dpkg/status 10-20200411-0ubuntu1 500 500 http://fr.archive.ubuntu.com/ubuntu focal/universe amd64 Packages I expect to be able to compile CUDA code with gcc-10. It was working with gcc 10.2 and failed with gcc-10.3 When compiling CUDA code g++-10.3 failed with following error message /usr/include/c++/10/chrono: In substitution of ‘template<class _Rep, class _Period> template<class _Period2> 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 | ^~~~~~ This bug has been corrected in gcc-10.4 : https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100102 Could it be possible to make Ubuntu 20.04 gcc-10 package use gcc-10.4 instead of 10.3 ? ** Affects: gcc-10 (Ubuntu) Importance: Undecided Status: New ** Tags: cuda upgrade-software-version ** Description changed: > lsb_release -rd Description: Ubuntu 20.04.1 LTS Release: 20.04 >apt-cache policy gcc-10 gcc-10: - Installed: 10.3.0-1ubuntu1~20.04 - Candidate: 10.3.0-1ubuntu1~20.04 - Version table: - *** 10.3.0-1ubuntu1~20.04 500 - 500 http://fr.archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages - 500 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages - 100 /var/lib/dpkg/status - 10-20200411-0ubuntu1 500 - 500 http://fr.archive.ubuntu.com/ubuntu focal/universe amd64 Packages + Installed: 10.3.0-1ubuntu1~20.04 + Candidate: 10.3.0-1ubuntu1~20.04 + Version table: + *** 10.3.0-1ubuntu1~20.04 500 + 500 http://fr.archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages + 500 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages + 100 /var/lib/dpkg/status + 10-20200411-0ubuntu1 500 + 500 http://fr.archive.ubuntu.com/ubuntu focal/universe amd64 Packages I expect to be able to compile CUDA code with gcc-10. It was working with gcc 10.2 and failed with gcc-10.3 When compiling CUDA code g++-10.3 failed with following error message /usr/include/c++/10/chrono: In substitution of ‘template<class _Rep, class _Period> template<class _Period2> 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 - | ^~~~~~ - + 428 | _S_gcd(intmax_t __m, intmax_t __n) noexcept + | ^~~~~~ This bug has been corrected in gcc-10.4 : https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100102 - Could it be possible to make Ubuntu gcc-10 package use gcc-10.4 instead - of 10.3 ? + Could it be possible to make Ubuntu 20.04 gcc-10 package use gcc-10.4 + instead of 10.3 ? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1944777 Title: g++10.3 Segmentation fault when compiling CUDA code To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gcc-10/+bug/1944777/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
