It's getting worse on Ubuntu 21.04

$ gfortran -fopenmp matmul.f90 -o test.x
lto-wrapper: fatal error: could not find accel/amdgcn-amdhsa/mkoffload in 
/usr/lib/gcc/x86_64-linux-gnu/10/:/usr/lib/gcc/x86_64-linux-gnu/10/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/10/:/usr/lib/gcc/x86_64-linux-gnu/
 (consider using ‘-B’)
compilation terminated.
/usr/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status

I reported that before but someone has closed it.

$ gfortran -fopenmp -foffload=nvptx-none matmul.f90 -o test.x
/usr/bin/ld: /tmp/ccvGeRgU.crtoffloadtable.o: warning: relocation against 
`__offload_vars_end' in read-only section `.rodata'
/usr/bin/ld: warning: creating DT_TEXTREL in a PIE

$ gfortran -fopenmp -foffload=nvptx-none -no-pie matmul.f90 -o test.x
$ ./test.x
 dim1 = dim2 =            0
 MATMUL Time =    0.00000000    

libgomp: while loading libgomp-plugin-gcn.so.1: libgomp-plugin-gcn.so.1:
cannot open shared object file: No such file or directory

libgomp: Trying to map into device [0xf35dc0..0xf35dc0) object when
[0xf35da0..0xf35da0) is already mapped

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1907812

Title:
  Can't build simple OpenMP offloading programs (needs -no-pie)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-10/+bug/1907812/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to