"For Solaris, it should still be possible to cross-compile Firefox to SPARC from x86."
And Oracle is sending out FF 68 in their Solaris 11.4 updates, so it should indeed be possible. The question is, how? Can anyone give me some pointers on how to do this, more along the lines of the first link above rather than the second? It would be nice if I could just say "./mach build --target=solaris-sparc" but something tells me that's not how it works. Thanks!
mde...@gmail.com
unread,
Feb 29, 2020, 3:04:06 PM2/29/20
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
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: