Opened 12 years ago
Last modified 12 years ago
#35546 closed defect
Pinfo will not build with Clang — at Version 1
Reported by: | greeneg (Gary Greene) | Owned by: | master@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.1.2 |
Keywords: | clang mountainlion haspatch | Cc: | ryandesign@… |
Port: | pinfo |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
On Mountain Lion and Xcode 4.4 (4F250)'s version of clang, pinfo will not build. If you add the following snippet to the Portfile, it will however:
if {${configure.compiler} == "clang"} { configure.compiler llvm-gcc-4.2 }
Attached is my updated version of the Portfile. Thanks.
Change History (4)
Changed 12 years ago by greeneg (Gary Greene)
comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | ryandesign@… added |
---|---|
Description: | modified (diff) |
Keywords: | clang haspatch added |
Owner: | changed from macports-tickets@… to master@… |
Simpler: just add this line:
compiler.blacklist clang
Instead of a complete new Portfile, you should provide a unified diff of your changes so that they are easier to review. I'll attach this.
When you report that a port will not build, you should attach the main.log file so that we can see how it failed. I'll attach this too. The error it shows is:
:info:build Undefined symbols for architecture x86_64: :info:build "_buildcommand", referenced from: :info:build _openinfo in pinfo-filehandling_functions.o :info:build "_builddircommand", referenced from: :info:build _opendirfile in pinfo-filehandling_functions.o :info:build ld: symbol(s) not found for architecture x86_64
Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Attachment: | pinfo-0.6.9.main.log added |
---|
Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Attachment: | pinfo.diff added |
---|
Note: See
TracTickets for help on using
tickets.
Updated version of pinfo's Portfile to use LLVM compiler