[MacPorts] #33989: VTK port installation fails due to "-no-cpp-precomp" compiler option?
#33989: VTK port installation fails due to "-no-cpp-precomp" compiler option? -----------------------------------+---------------------------------------- Reporter: beany_kelly@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: vtk | Port: vtk -----------------------------------+---------------------------------------- Hi. I just tried an installation of VTK (the default, 4.4.2), which failed, apparently with the following error: :info:build c++: unrecognized option '-no-cpp-precomp' I'm on a Macbook Pro running 10.6.8, with an up-to-date MacPorts installation, and gcc 4.5.3 as my default compiler collection. I'm attaching the install log. -- Ticket URL: <https://trac.macports.org/ticket/33989> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33989: VTK: error: 'strcmp' was not declared in this scope -----------------------------------+---------------------------------------- Reporter: beany_kelly@… | Owner: css@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: VTK -----------------------------------+---------------------------------------- Changes (by ryandesign@…): * cc: beany_kelly@… (removed) * keywords: vtk => * owner: macports-tickets@… => css@… * port: vtk => VTK Old description:
Hi. I just tried an installation of VTK (the default, 4.4.2), which failed, apparently with the following error:
:info:build c++: unrecognized option '-no-cpp-precomp'
I'm on a Macbook Pro running 10.6.8, with an up-to-date MacPorts installation, and gcc 4.5.3 as my default compiler collection.
I'm attaching the install log.
New description: Hi. I just tried an installation of VTK (the default, 4.4.2), which failed, apparently with the following error: {{{ :info:build c++: unrecognized option '-no-cpp-precomp' }}} I'm on a Macbook Pro running 10.6.8, with an up-to-date MacPorts installation, and gcc 4.5.3 as my default compiler collection. I'm attaching the install log. -- Comment: MacPorts does not use your default compiler collection. On Snow Leopard with Xcode 3.x it will use gcc-4.2; with Xcode 4.0 or 4.1 it will use llvm-gcc-4.2; and with Xcode 4.2 it will use clang. What version of Xcode do you have? At least, that is what's supposed to happen, but we see in the log it's actually using /opt/local/bin/gcc. That's a bug in the port; the port needs to ensure it's UsingTheRightCompiler. -- Ticket URL: <https://trac.macports.org/ticket/33989#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33989: VTK: error: 'strcmp' was not declared in this scope -----------------------------------+---------------------------------------- Reporter: beany_kelly@… | Owner: css@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: VTK -----------------------------------+---------------------------------------- Comment(by beany_kelly@…): Hi. The Xcode on my system is 3.2.6 . So you suspect the port isn't checking for the Xcode compiler and is using my gcc45 instead? Presumably if I port-selected gcc42, then VTK as currently released *might* install successfully ... (no, I don't want to have to do this) -- Ticket URL: <https://trac.macports.org/ticket/33989#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33989: VTK: error: 'strcmp' was not declared in this scope -----------------------------------+---------------------------------------- Reporter: beany_kelly@… | Owner: css@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: vtk44 -----------------------------------+---------------------------------------- Changes (by jmr@…): * port: VTK => vtk44 -- Ticket URL: <https://trac.macports.org/ticket/33989#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts