#51280 closed defect (fixed)
rust does not build on os X El Capitan (10.11.4)
Reported by: | dgsb (David Bariod) | Owned by: | g5pw (Aljaž Srebrnič) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.3.4 |
Keywords: | Cc: | ghlecl (Ghyslain Leclerc) | |
Port: | rust |
Description
It seems that the clang version is incorrectly detected as too old by the configure script on rust-stage0. Here an extract on output when running manually the configure script:
configure: configure: on OS X >=10.9, forcing use of clang configure: configure: CFG_ENABLE_CLANG := 1 configure: CFG_USING_CLANG := 1 configure: error: bad APPLE CLANG version: 7.3.0, need >=7.0
Attachments (2)
Change History (13)
comment:1 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)
Owner: | changed from macports-tickets@… to g5pw@… |
---|
comment:2 follow-up: 3 Changed 9 years ago by g5pw (Aljaž Srebrnič)
Status: | new → assigned |
---|
Changed 9 years ago by dgsb (David Bariod)
comment:3 Changed 9 years ago by dgsb (David Bariod)
comment:4 Changed 8 years ago by ghlecl (Ghyslain Leclerc)
Probably not so useful (doubt it's related to OS version), but same here on El Capitan 10.11.5.
comment:6 Changed 8 years ago by g5pw (Aljaž Srebrnič)
Interesting. I can't reproduce it on my machine. :/
Changed 8 years ago by ghlecl (Ghyslain Leclerc)
Attachment: | ghleclerc_main.log added |
---|
Log file for rust installation attempt
comment:7 Changed 8 years ago by ghlecl (Ghyslain Leclerc)
Just did
sudo port clean rust
And then
sudo port -s -t install rust
I still have the error. Attached the main.log file.
comment:8 Changed 8 years ago by ghlecl (Ghyslain Leclerc)
I did some poking around. Turns out that in the 1.8 release of Rust, which Macports fetches, the compiler version check in the configure script of Rust has this line in it :
(7.0* | 7.1* | 7.2*)
which will not work with the latest XCode (7.3.1) since clang reports version 7.3... for this XCode version.
I have looked at the source in the rust 1.9 release and it is fixed to
(7.0* | 7.1* | 7.2* | 7.3*)
which does work. I have manually patched my version in Macports and successfully compiled version 1.8.
I don't know what is the plan for the Rust port. Probably updating the port to 1.9 will fix the problem and that might be simpler than patching the 1.8 version. I just don't know enough about Macports system to create the patch. It is simple enough (one line (1034) in the configure script), but might still be more complicated than updating the version.
Hope this helps.
comment:9 Changed 8 years ago by g5pw (Aljaž Srebrnič)
Thanks, I'm in the midst of updating it to 1.9 anyway. I'll close this when I commit the update port.
comment:10 follow-up: 11 Changed 8 years ago by g5pw (Aljaž Srebrnič)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Rust is updated to 1.9.0 in 149111. I'm closing the ticket, feel free to reopen if the issue persists.
comment:11 Changed 8 years ago by dgsb (David Bariod)
Replying to g5pw@…:
Rust is updated to 1.9.0 in 149111. I'm closing the ticket, feel free to reopen if the issue persists.
It works perfectly, thanks a lot.
Thanks for the report. Could you attach the full
main.log
?