-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Rust doesn't build on Ubuntu 12.04 #14023
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Instructions for installing newer g++ on Ubuntu 12.04 http://charette.no-ip.com:81/programming/2011-12-24_GCCv47/ |
There may not be much we can do here besides pointing to the manual g++ install instructions, and asking Rust CI to either do that or upgrade Ubuntu. |
Rust CI operates on Travis CI servers, which use Ubuntu 12.04. The actual problem there is more that the PPA (also by hansjorg) won’t build for precise. If it were built there, then Rust CI would cease to have problems in that department. |
Can this be closed? This seems like a Rust-ci specific issue, and most people aren't even using the PPA anyway. |
Instead of using gcc I decided to try clang:
http://stackoverflow.com/questions/20587228/clang-error-stddef-file-not-found looks similar, but is about 13.10 (and isn't about cstddef). With verbose mode I can see this is the command:
Any thoughts? Edit: or is there any significant environment variable of the form C_INCLUDE_* ? |
Got time to look at this again now.
So an arg rust gives to clang++ is hiding cstddef? |
"It doesn't have g++ > 4.7, which LLVM needs." Right, just actually read the issue. So this is a lost cause I guess :( Edit: I'm just going to install ppa:ubuntu-toolchain-r, so problem solved from my point of view. |
FWIW I just ran into this issue on a new Ubuntu 14.04.1 LTS desktop installation. I configured HEAD (cc19e33) |
Hi. I'm having this issue as well, on Linux Manjaro (not ubuntu) with (newer than 4.7) gcc == 4.9.2
This is my gcc version 4.9.2:
Trying to compile latest rust from master with something like this:
I'll let you know if I fix it. |
tl;dr: fixed by passing --------longer read: (tested to work as specified) I also found this text, afterwards, to be related (from file: GettingStarted.rst): When you build Clang, you will need to give *it* access to modern C++11
standard library in order to use it as your new host in part of a bootstrap.
There are two easy ways to do this, either build (and install) libc++ along
with Clang and then use it with the ``-stdlib=libc++`` compile and link flag,
or install Clang into the same prefix (``$HOME/toolchains`` above) as GCC.
Clang will look within its own prefix for libstdc++ and use it if found. You
can also add an explicit prefix for Clang to look in for a GCC toolchain with
the ``--gcc-toolchain=/opt/my/gcc/prefix`` flag, passing it to both compile and
link commands when using your just-built-Clang to bootstrap.
|
It seems like this is taken care of now, or at least, as much as it's going to be. |
fix: config substitution failing extension activation Closes rust-lang/rust-analyzer#14022 Not sure how a function can appear there, but there is also no reason for us to care about it anyways.
…lt` (rust-lang#14024) Receivers which are references to `Option` and `Result`, or who implement `Deref` to one of those types, will be linted as well. changelog: [`unnecessary_map_or`]: work with ref and `Deref` to `Option` and `Result` as well Fixes rust-lang#14023 **Note:** this patch must be merged after rust-lang#13998 – only the second commit must be reviewed, the first one repeats the patch in rust-lang#13998 for mergeability reasons.
It doesn't have g++ > 4.7, which LLVM needs. This is apparently breaking http://rust-ci.org/.
The text was updated successfully, but these errors were encountered: