gcc openmp target nvptx: LTO_tags out of range

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I am trying to compile a C++ code using quite a lot of template with OpenMP 4 
for an nvptx target using gcc 9.1.0.

My gcc is able to compile a simpler C example and it runs on my GPU (very 
slowly, but maybe sm_35 is not well supported).

The C++ code does compile, but the linker step says:
-----------
lto1: fatal error: LTO_tags out of range: Range is 0 to 420, value is 
1006632960
compilation terminated.
mkoffload: fatal error: /home/kelling/checkout/spack/spack/opt/spack/linux-
ubuntu18.04-x86_64/gcc-7.3.0/gcc-9.1.0-pm7tbe6qnpyngd73674kyj3z27ybidht/bin/
x86_64-pc-linux-gnu-accel-nvptx-none-gcc returned 1 exit status
compilation terminated.
lto-wrapper: fatal error: /home/kelling/checkout/spack/spack/opt/spack/linux-
ubuntu18.04-x86_64/gcc-7.3.0/gcc-9.1.0-pm7tbe6qnpyngd73674kyj3z27ybidht/
libexec/gcc/x86_64-pc-linux-gnu/9.1.0//accel/nvptx-none/mkoffload returned 1 
exit status
compilation terminated.
/usr/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
-----------

My invocation of g++ looks like this:
g++  -DDEFINES -Iincludes  \
-foffload=nvptx-none -foffload=-lm  -fopenmp \
-std=gnu++11 -o main main.cpp

Google did not find that error message. Does anyone have a hint what this is 
about?

Best Regards,

Jeffrey Kelling

-- 
Dr. Jeffrey Kelling

Computational Science Group (FWCC)
Department of Information Services and Computing (FWC)
Phone: +49 351 260 - 3680

Helmholtz-Zentrum Dresden-Rossendorf e.V.
http://www.hzdr.de

Vorstand: Prof. Dr. Dr. h. c. Roland Sauerbrey, Dr. Ulrich Breuer
Vereinsregister: VR 1693 beim Amtsgericht Dresden







[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux