Opened 13 years ago
Last modified 8 years ago
#33989 closed defect
VTK: error: 'strcmp' was not declared in this scope — at Version 2
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 (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.
Change History (3)
Changed 13 years ago by beany_kelly@…
comment:1 Changed 13 years ago by beany_kelly@…
Cc: | beany_kelly@… added |
---|
comment:2 Changed 13 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.
Note: See
TracTickets for help on using
tickets.
Cc Me!