On Tue, 2023-07-18 at 07:24 +0000, Sisak, Janos Mihaly via Gcc-help wrote: > 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. This is not an error. This is just some autoconf magic to detect the compiler version. The real error is: configure:3752: checking whether the C compiler works configure:3774: /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 -g -O2 conftest.c >&5 error resolving libg.a collect2: error: ld returned 1 exit status configure:3778: $? = 1 configure:3816: result: no I've no idea about why this happens though. libg.a is just an empty library on most GCC targets. -- Xi Ruoyao <xry111@xxxxxxxxxxx> School of Aerospace Science and Technology, Xidian University