New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #33989 (new defect)

Opened 13 months ago

Last modified 9 months ago

VTK: error: 'strcmp' was not declared in this scope

Reported by: beany_kelly@… Owned by: css@…
Priority: Normal Milestone:
Component: ports Version: 2.0.4
Keywords: Cc:
Port: vtk44

Description (last modified by ryandesign@…) (diff)

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.

Attachments

main.log (724.8 KB) - added by beany_kelly@… 13 months ago.

Change History

Changed 13 months ago by beany_kelly@…

comment:1 Changed 13 months ago by beany_kelly@…

  • Cc beany_kelly@… added

Cc Me!

comment:2 Changed 13 months ago by ryandesign@…

  • Description modified (diff)
  • Cc beany_kelly@… removed
  • Summary changed from VTK port installation fails due to "-no-cpp-precomp" compiler option? to VTK: error: 'strcmp' was not declared in this scope
  • Owner changed from macports-tickets@… to css@…
  • Keywords vtk removed
  • Port changed from vtk to VTK

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.

comment:3 Changed 13 months ago 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)

comment:4 Changed 9 months ago by jmr@…

  • Port changed from VTK to vtk44
Note: See TracTickets for help on using tickets.