Cross-compiling Rust on openSUSE

Hi! Has anyone successfully cross-compiled the Rust compiler on openSUSE? I'm currently trying to bisect a 32-bit PowerPC bug [1] in the Rust compiler and I'm using an openSUSE system for cross-compiling for powerpc-unknown-linux-gnu for the first time for this purpose now. I'm normally using Debian in that case where cross-compiling just works thanks to Multi-Arch. But it seems more tricky in openSUSE. The first issue I ran into are the vendor-specific GCC prefixes, so I had to tell Rust to use these: export CC_powerpc_unknown_linux_gnu=powerpc64-suse-linux-gcc export AR_powerpc_unknown_linux_gnu=powerpc64-suse-linux-ar export CXX_powerpc_unknown_linux_gnu=powerpc64-suse-linux-g++ However, after that I'm still running into the problem that GCC can't find its standard headers: running: "powerpc64-suse-linux-gcc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-ffunction-sections" "-fdata-sections" "-fPIC" "-fno-builtin" "-fvisibility=hidden" "-ffreestanding" "-DVISIBILITY_HIDDEN" "-o" "/data/home/glaubitz/rust/build/x86_64-unknown-linux-gnu/stage1-std/powerpc-unknown-linux-gnu/release/build/compiler_builtins-b0a5020552cfdf6e/out/int_util.o" "-c" "/data/home/glaubitz/rust/src/llvm-project/compiler-rt/lib/builtins/int_util.c" cargo:warning=/data/home/glaubitz/rust/src/llvm-project/compiler-rt/lib/builtins/int_util.c:57:10: fatal error: stdlib.h: No such file or directory cargo:warning= #include <stdlib.h> cargo:warning= ^~~~~~~~~~ cargo:warning=compilation terminated. Any idea how to pass the proper header search path to the build system for Rust? Thanks, Adrian
participants (1)
-
John Paul Adrian Glaubitz