Good day everyone! I’ve been trying to compile GCC 13.1 with nvptx offloading but I’m having no success. The host machine is an Ubuntu 20.04.6 LTS, with GCC 11.1 from the repositories. I compile and install binutils, nvptx-tools then I try to configure and buil gcc with target=nvptx-none. It fails during libatomic or libbacktrace with this error: configure:3721: /home/uig13265/offload/wrk/build-gcc-nvptx/./gcc/xgcc -B/home/uig13265/offload/wrk/build-gcc-nvptx/./gcc/ -B/home/uig13265/offload/install/nvptx-none/bin/ -B/home/uig13265/offload/install/nvptx-none/lib/ -isystem /home/uig13265/offload/install/nvptx-none/include -isystem /home/uig13265/offload/install/nvptx-none/sys-include -V >&5 xgcc: error: unrecognized command-line option '-V' xgcc: fatal error: no input files compilation terminated. I tried to google the error and I found that maybe my newlib is wrong. I tried both the mentorgraphics repo (marked obsolete) and the Cygwin repo (release cygwin-3.4.7). No success. I attached the failing log, the script used for downloading the repos and the script used for compiling the sources. If you have five minutes and can help, please do, would be very much appreciated. Internal
Attachment:
build-gcc-acc.sh
Description: build-gcc-acc.sh
Attachment:
config.log
Description: config.log
Attachment:
dl-gcc-offload-nvptx.sh
Description: dl-gcc-offload-nvptx.sh