Opened 12 years ago

Closed 7 years ago

#33989 closed defect (invalid)

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

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

Description (last modified by ryandesign (Ryan Carsten Schmidt))

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 (1)

main.log (724.8 KB) - added by beany_kelly@… 12 years ago.

Download all attachments as: .zip

Change History (6)

Changed 12 years ago by beany_kelly@…

Attachment: main.log added

comment:1 Changed 12 years ago by beany_kelly@…

Cc: beany_kelly@… added

Cc Me!

comment:2 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

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

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 12 years 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 12 years ago by jmroot (Joshua Root)

Port: vtk44 added; VTK removed

comment:5 Changed 7 years ago by kurthindenburg (Kurt Hindenburg)

Resolution: invalid
Status: newclosed

port replaced by vtk

Note: See TracTickets for help on using tickets.