[Solved] GCC - NVCC - chrono:428 internal compiler error

This forum is dedicated to advanced help and support :

Ask here your questions about advanced usage of Mageia. For example you may post here all your questions about network and automated installs, complex server configurations, kernel tuning, creating your own Mageia mirrors, and all tasks likely to be touchy even for skilled users.

[Solved] GCC - NVCC - chrono:428 internal compiler error

Postby tis » Aug 28th, '21, 14:48

Hi,

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:

Code: Select all
[xmrig-cuda-6.12.0]$ make
[  6%] 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


Same error on older and newer module. I found similar error at:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100102

If I understand it right, I have to update gcc at least 10.4 because I'm using:
Code: Select all
 gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-mageia-linux-gnu/10/lto-wrapper
Target: x86_64-mageia-linux-gnu
Configured with: ../configure --prefix=/usr --libexecdir=/usr/lib --with-slibdir=/lib64 --with-pkgversion='Mageia 10.3.0-1.mga8' --with-bugurl=https://bugs.mageia.org/ --mandir=/usr/share/man --infodir=/usr/share/info --enable-checking=release --enable-languages=c,c++,ada,fortran,objc,obj-c++,d --enable-linker-build-id --build=x86_64-mageia-linux-gnu --host=x86_64-mageia-linux-gnu --with-cpu=generic --with-system-zlib --enable-threads=posix --with-linker-hash-style=gnu --enable-shared --enable-long-long --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --enable-ssp --disable-libssp --disable-libffi --disable-werror --with-isl --with-python-dir=/lib/python3.8/site-packages --enable-lto --with-gcc-major-version-only
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 10.3.0 (Mageia 10.3.0-1.mga8)


Is there a repo where the newer gcc packages available?
Last edited by tis on Aug 29th, '21, 22:22, edited 1 time in total.
tis
 
Posts: 148
Joined: Sep 30th, '19, 20:19

Re: GCC - NVCC - chrono:428 internal compiler error

Postby doktor5000 » Aug 28th, '21, 17:42

No, gcc 10.4 is not available for mga8. You could create a bugreport and maybe the fix for this can get backported to our gcc version.
https://wiki.mageia.org/en/How_to_report_a_bug_properly
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17630
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: GCC - NVCC - chrono:428 internal compiler error

Postby tis » Aug 28th, '21, 19:21

Ty, I found the same, so 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).

Code: Select all
[@localhost xmrig-cuda-6.12.0]# cmake .
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- The C compiler identification is GNU 10.3.1
-- The CXX compiler identification is GNU 10.3.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/local/bin/gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/local/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE 
-- Found CUDA: /usr (found suitable version "11.2", minimum required is "8.0")
-- Looking for __builtin___clear_cache
-- Looking for __builtin___clear_cache - found
-- Configuring done
-- Generating done
-- Build files have been written to: /mnt/home/Download/xmrig-cuda-6.12.0

[@localhost xmrig-cuda-6.12.0]# make
[  6%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/xmrig-cu_generated_cuda_extra.cu.o
/mnt/home/Download/xmrig-cuda-6.12.0/src/cuda_extra.cu: In function ‘void cryptonight_extra_cpu_prepare(nvid_ctx*, uint32_t, const xmrig_cuda::Algorithm&)’:
/mnt/home/Download/xmrig-cuda-6.12.0/src/cuda_extra.cu:415:170: warning: passing argument 5 to ‘restrict’-qualified parameter aliases with argument 6 [-Wrestrict]
  415 |         CUDA_CHECK_KERNEL(ctx->device_id, cryptonight_extra_gpu_prepare<Algorithm::CN_0><<<grid, block >>>(wsize, ctx->d_input, ctx->inputlen, startNonce,
      |                                                                                                                                                                          ^                           
/mnt/home/Download/xmrig-cuda-6.12.0/src/cuda_extra.cu: In function ‘int cuda_get_deviceinfo(nvid_ctx*)’:
/mnt/home/Download/xmrig-cuda-6.12.0/src/cuda_extra.cu:571:26: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const size_t’ {aka ‘const long unsigned int’} [-Wsign-compare]
  571 |         if (ctx->device_blocks > max_blocks) {
      |         ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
[ 12%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/AstroBWT/dero/xmrig-cu_generated_AstroBWT.cu.o
[ 18%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/KawPow/raven/xmrig-cu_generated_KawPow.cu.o
[ 25%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/RandomX/arqma/xmrig-cu_generated_randomx_arqma.cu.o
[ 31%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/RandomX/keva/xmrig-cu_generated_randomx_keva.cu.o
[ 37%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/RandomX/monero/xmrig-cu_generated_randomx_monero.cu.o
[ 43%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/RandomX/wownero/xmrig-cu_generated_randomx_wownero.cu.o
/mnt/home/Download/xmrig-cuda-6.12.0/src/RandomX/randomx_cuda.hpp(319): warning: pointless comparison of unsigned integer with zero

/mnt/home/Download/xmrig-cuda-6.12.0/src/RandomX/randomx_cuda.hpp(319): warning: pointless comparison of unsigned integer with zero

/mnt/home/Download/xmrig-cuda-6.12.0/src/RandomX/randomx_cuda.hpp(319): warning: pointless comparison of unsigned integer with zero

/mnt/home/Download/xmrig-cuda-6.12.0/src/RandomX/randomx_cuda.hpp(319): warning: pointless comparison of unsigned integer with zero

/mnt/home/Download/xmrig-cuda-6.12.0/src/RandomX/randomx_cuda.hpp(319): warning: pointless comparison of unsigned integer with zero

/mnt/home/Download/xmrig-cuda-6.12.0/src/RandomX/randomx_cuda.hpp(319): warning: pointless comparison of unsigned integer with zero

/mnt/home/Download/xmrig-cuda-6.12.0/src/RandomX/randomx_cuda.hpp(319): warning: pointless comparison of unsigned integer with zero

[ 50%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/RandomX/xmrig-cu_generated_randomx.cu.o
[ 56%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/xmrig-cu_generated_cuda_core.cu.o
Scanning dependencies of target xmrig-cu
[ 62%] Building CXX object CMakeFiles/xmrig-cu.dir/src/KawPow/raven/CudaKawPow_gen.cpp.o
[ 68%] Linking CXX static library libxmrig-cu.a
[ 68%] Built target xmrig-cu
Scanning dependencies of target xmrig-cuda
[ 75%] Building C object CMakeFiles/xmrig-cuda.dir/src/crypto/cn/c_blake256.c.o
[ 81%] Building CXX object CMakeFiles/xmrig-cuda.dir/src/crypto/common/Algorithm.cpp.o
[ 87%] Building CXX object CMakeFiles/xmrig-cuda.dir/src/xmrig-cuda.cpp.o
[ 93%] Building CXX object CMakeFiles/xmrig-cuda.dir/src/CudaCryptonightR_gen.cpp.o
[100%] Linking CXX shared library libxmrig-cuda.so
[100%] Built target xmrig-cuda
tis
 
Posts: 148
Joined: Sep 30th, '19, 20:19

Re: [Solved] GCC - NVCC - chrono:428 internal compiler error

Postby tis » Aug 29th, '21, 22:23

I've opened a bug:
https://bugs.mageia.org/show_bug.cgi?id=29425

There is a working test version of gcc-10, so I marked as solved.
Ty
tis
 
Posts: 148
Joined: Sep 30th, '19, 20:19


Return to Advanced support

Who is online

Users browsing this forum: No registered users and 1 guest

cron