Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#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)

main.log (32.0 KB) - added by dgsb (David Bariod) 8 years ago.
ghleclerc_main.log (51.1 KB) - added by ghlecl (Ghyslain Leclerc) 8 years ago.
Log file for rust installation attempt

Download all attachments as: .zip

Change History (13)

comment:1 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to g5pw@…

comment:2 Changed 8 years ago by g5pw (Aljaž Srebrnič)

Status: newassigned

Thanks for the report. Could you attach the full main.log?

Changed 8 years ago by dgsb (David Bariod)

Attachment: main.log added

comment:3 in reply to:  2 Changed 8 years ago by dgsb (David Bariod)

Replying to g5pw@…:

Thanks for the report. Could you attach the full main.log?

Done.

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:5 Changed 8 years ago by ghlecl (Ghyslain Leclerc)

Cc: ghleclerc@… added

Cc Me!

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 Changed 8 years ago by g5pw (Aljaž Srebrnič)

Resolution: fixed
Status: assignedclosed

Rust is updated to 1.9.0 in 149111. I'm closing the ticket, feel free to reopen if the issue persists.

comment:11 in reply to:  10 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.

Note: See TracTickets for help on using tickets.