Am I perhaps asking in the wrong place? I could really use some help here. I now have a complete Rust cross-compiler working and have set the various env vars and created a mozconfig file. But I'm getting this:
$ ../configure --target=sparcv9-sun-solaris ... checking for the target C compiler... /usr/bin/clang checking whether the target C compiler can be used... yes checking the target C compiler version... 9.0.0 checking the target C compiler works... yes checking for the target C++ compiler... /usr/bin/clang++ checking whether the target C++ compiler can be used... yes checking the target C++ compiler version... 9.0.0 checking the target C++ compiler works... yes checking for the host C compiler... /usr/bin/clang checking whether the host C compiler can be used... yes checking the host C compiler version... 9.0.0 checking the host C compiler works... yes checking for the host C++ compiler... /usr/bin/clang++ checking whether the host C++ compiler can be used... yes checking the host C++ compiler version... 9.0.0 checking the host C++ compiler works... yes ... checking for rustc... /home/michele/.cargo/bin/rustc checking for cargo... /home/michele/.cargo/bin/cargo Actually using '/home/michele/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc' Actually using '/home/michele/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/cargo' ... DEBUG: configure:4041: /usr/bin/clang -std=gnu99 --target=sparcv9-solaris2 -o conftest -Qunused-arguments conftest.c 1>&5 DEBUG: /usr/bin/ld: unrecognized option '-C' DEBUG: /usr/bin/ld: use the --help option for usage information DEBUG: clang: error: linker command failed with exit code 1 (use -v to see invocation) DEBUG: configure: failed program was: DEBUG: #line 4034 "configure" DEBUG: #include "confdefs.h" DEBUG: DEBUG: int main() { DEBUG: DEBUG: ; return 0; } DEBUG: configure: error: compiler is incompatible with sanitize options ERROR: old-configure failed It appears it's using the wrong target gcc and the wrong rustc too. Part of the problem may be this (confusing) statement in the cross-compiling guide: "The main thing to remember is that when --target=${xtarget_arch} is passed to configure, configure expects to find the compiler toolchain as ${xtarget_arch}-TOOL where TOOL is gcc, g++, ranlib, etc." So if my target is "sparcv9-sun-solaris", then it's going to look for "sparcv9-sun-solaris-gcc"? Where? That's not a complete file specification. FWIW, mine is here: /usr/sparcv9-solaris/solaris/cross/sparcv9-solaris2.11/bin/sparcv9-solaris2.11-gcc Any help would be most appreciated. _______________________________________________ dev-builds mailing list dev-builds@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-builds