Bug 29425 - GCC - NVCC - chrono:428 internal compiler error
Summary: GCC - NVCC - chrono:428 internal compiler error
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 8
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL: https://forums.mageia.org/en/viewtopi...
Whiteboard: MGA8-64-OK, MGA8-32-OK
Keywords: advisory, validated_update
Depends on:
Blocks:
 
Reported: 2021-08-29 12:44 CEST by Tóthpál István
Modified: 2021-09-04 19:03 CEST (History)
3 users (show)

See Also:
Source RPM: gcc-10.3.0-1.mga8.src.rpm
CVE:
Status comment:


Attachments

Description Tóthpál István 2021-08-29 12:44:57 CEST
Description of problem:
I've used XMrig with CUDA enabled on mga7, but since I've upgraded CUDA is disabled, because mga8 has newer cuda libraries, so I have to recompile this module, but it exits with error:

Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/xmrig-cu_generated_cuda_core.cu.o
/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: Szegmentálási hiba
  428 |  _S_gcd(intmax_t __m, intmax_t __n) noexcept
      |                           ^~~~~~
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://bugs.mageia.org/> for instructions.
CMake Error at xmrig-cu_generated_cuda_core.cu.o.Release.cmake:280 (message):
  Error generating file
  /mnt/home/Download/xmrig-cuda-6.12.0/CMakeFiles/xmrig-cu.dir/src/./xmrig-cu_generated_cuda_core.cu.o


make[2]: *** [CMakeFiles/xmrig-cu.dir/build.make:366: CMakeFiles/xmrig-cu.dir/src/xmrig-cu_generated_cuda_core.cu.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:123: CMakeFiles/xmrig-cu.dir/all] Error 2
make: *** [Makefile:103: all] Error 2

I found the same problem:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100102

Version-Release number of selected component (if applicable):
It effects gcc 10.3.0

How reproducible:
Steps to Reproduce:
1. download https://github.com/xmrig/xmrig-cuda
2. try to compile ( cmake ., make )
Comment 1 Tóthpál István 2021-08-29 12:46:15 CEST
Meanwhile:

I've downloaded the daily snapshot of gcc10.

I have compiled it as v10.3.1 and it can compile xmrig-cuda module without errors (just some warns).
https://forums.mageia.org/en/viewtopic.php?f=8&t=14309
Tóthpál István 2021-08-29 12:57:13 CEST

Source RPM: gcc 10.3.0 => gcc-10.3.0-1.mga8.src.rpm

Comment 2 Thomas Backlund 2021-08-29 19:14:49 CEST
please test with gcc-10.3.0-2.mga8 in Core Updates Testing
Thomas Backlund 2021-08-29 19:15:27 CEST

Component: Backports => RPM Packages

Lewis Smith 2021-08-29 20:58:09 CEST

CC: (none) => lewyssmith

Comment 3 Tóthpál István 2021-08-29 21:14:17 CEST
(In reply to Thomas Backlund from comment #2)
> please test with gcc-10.3.0-2.mga8 in Core Updates Testing

Tried and worked well.
Thanks
Comment 4 Lewis Smith 2021-08-29 22:14:36 CEST
Thank you Thomas for your advice about this; and Tóthpál for trying that.

(In reply to Tóthpál István from comment #3)
> > please test with gcc-10.3.0-2.mga8 in Core Updates Testing
> Tried and worked well.

So closing this fixed. You can re-open it if necessary.

Resolution: (none) => FIXED
Status: NEW => RESOLVED

Comment 5 Morgan Leijström 2021-08-30 02:27:36 CEST
Great reporting and packaging, but hey...
We have not released it from testing yet :)

Resolution: FIXED => (none)
CC: (none) => fri
Status: RESOLVED => REOPENED

Comment 6 Lewis Smith 2021-08-31 20:32:19 CEST
Thanks for spotting that! I should have taken proper account of 'Core Updates Testing'.
However, I cannot find the gcc update bug implied by comment 2. The interdependence of the two bugs should be noted for this one to get closed with the gcc one.
Comment 7 Thomas Backlund 2021-09-04 18:28:11 CEST
As confirmed in commenr 3 this is fixed, and the compiler still works and have been used in all updates and backports builds since it landed in testing I consider it tested and validated and flushing it out...


Advisory, added to svn:

type: bugfix
subject: Updated gcc packages fix ICE with NVCC
src:
  8:
   core:
     - gcc-10.3.0-2.mga8
description: |
  Updated gcc packages fix Internal Compiler Error crash when used with
  nVidia Cuda Compiler.
references:
 - https://bugs.mageia.org/show_bug.cgi?id=29425
 - https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100102

Keywords: (none) => advisory, validated_update
Assignee: bugsquad => qa-bugs
Whiteboard: (none) => MGA8-64-OK, MGA8-32-OK
CC: (none) => sysadmin-bugs

Comment 8 Mageia Robot 2021-09-04 19:03:24 CEST
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2021-0183.html

Status: REOPENED => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.