#35546: Pinfo will not build with Clang ------------------------------------+--------------------------------------- Reporter: greeneg@… | Owner: master@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: clang haspatch | Port: pinfo ------------------------------------+--------------------------------------- Changes (by ryandesign@…): * cc: ryandesign@… (added) * owner: macports-tickets@… => master@… * keywords: => clang haspatch Old description:
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.
New description: 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. -- Comment: 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 }}} -- Ticket URL: <https://trac.macports.org/ticket/35546#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS