https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122582
--- Comment #4 from Andrew Stubbs <ams at gcc dot gnu.org> --- (In reply to Robin Dapp from comment #3) > And what's the preferred way of building a cross compiler? Do I need extra > packages? For PR122583 that might be sufficient. The full instructions are at https://gcc.gnu.org/wiki/Offloading#For_AMD_GCN: To just build enough of the compiler to test the code gen (skipping building libraries, etc.), this is probably enough: cp -a llvm-ar /path/to/install/amdgcn-amdhsa/bin/ar cp -a llvm-ar /path/to/install/amdgcn-amdhsa/bin/ranlib cp -a llvm-mc /path/to/install/amdgcn-amdhsa/bin/as cp -a llvm-nm /path/to/install/amdgcn-amdhsa/bin/nm cp -a llvm-objdump /path/to/install/amdgcn-amdhsa/bin/objdump cp -a lld /path/to/install/amdgcn-amdhsa/bin/ld configure --target=amdgcn-amdhsa --disable-multilib --enable-languages=c --disable-libgomp --prefix=/path/to/install --with-multilib make make install I probably missed a whole lot of --disable-* for the various features that don't work unless it finds newlib in the expected place.
