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 )
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
Source RPM: gcc 10.3.0 => gcc-10.3.0-1.mga8.src.rpm
please test with gcc-10.3.0-2.mga8 in Core Updates Testing
Component: Backports => RPM Packages
CC: (none) => lewyssmith
(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
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) => FIXEDStatus: NEW => RESOLVED
Great reporting and packaging, but hey... We have not released it from testing yet :)
Resolution: FIXED => (none)CC: (none) => friStatus: RESOLVED => REOPENED
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.
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_updateAssignee: bugsquad => qa-bugsWhiteboard: (none) => MGA8-64-OK, MGA8-32-OKCC: (none) => sysadmin-bugs
An update for this issue has been pushed to the Mageia Updates repository. https://advisories.mageia.org/MGAA-2021-0183.html
Status: REOPENED => RESOLVEDResolution: (none) => FIXED