Hi, I'm using x.py to build the compiler but it's failing on
int_endianness.h with the error message "Unable to determine endian". This error shows up on a freshly cloned repo and a fresh build. I'm running this on a RHEL 5.3 machine and this is the command I used to start the build:
5.3, also termed Update 3, January 20, 2009; 10 years ago (kernel 2.6.18-128)
That's... pretty old.
See also https://github.com/rust-lang/rust/issues/62516. @cuviper would know more, perhaps?
@Bhargav Voleti what C compiler are you using? RHEL5's gcc is too old for LLVM. you may see rust/src/ci/docker/dist-x86_64-linux to see what we do to get sufficient toolchains on that centos:5 image
Yeah I think it's related to that @Philipp Hansch pointed out that it could be a compiler version issue. And I think it's GCC 4.4.6 Trying to update the version of GCC sort of borked the install. I'm just going to use my laptop running osx to build rustc.
Got the build working. I had to build the latest GCC from scratch and override the default
cc symlink, but it works!
I celebrated prematurely. Looks like building LLVM requires an ancient version of GLIBCXX
Docker might also work if you don't need binaries for CentOS or RHEL 5
If you just need a working toolchain, the official binaries should be compatible with RHEL 5.
If you're trying to modify the compiler, then I would choose a newer platform for development