Opened 9 months ago

Last modified 9 months ago

#69355 assigned defect

py310-InsightToolkit @5.3.0: ld: warning: directory not found for option '-L/opt/local/lib/lib'

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: stromnov (Andrey Stromnov)
Priority: Normal Milestone:
Component: ports Version: 2.9.1
Keywords: Cc: nilason (Nicklas Larsson)
Port: py310-InsightToolkit

Description

In the build log for py310-InsightToolkit I see this line:

ld: warning: directory not found for option '-L/opt/local/lib/lib'

Clearly something has gone awry with a path somewhere.

Change History (2)

comment:1 Changed 9 months ago by nilason (Nicklas Larsson)

I don't think the -L/opt/local/lib/lib is the real issue here. The problem is apparently SWIG related, extracted relevant log bits:

cd /opt/local/var/macports/build/_Users_me_ports_graphics_InsightToolkit4/py311-InsightToolkit4/work/build/Wrapping/Modules/ITKLabelMap
&&
/opt/local/Library/Frameworks/Python.framework/Versions/3.11/bin/python3.11
/opt/local/var/macports/build/_Users_me_ports_graphics_InsightToolkit4/py311-InsightToolkit4/work/InsightToolkit-4.13.3/Wrapping/Generators/SwigInterface/igenerator.py
--mdx /opt/local/var/macports/build/_Users_me_ports_graphics_InsightToolkit4/py311-InsightToolkit4/work/build/Wrapping/Typedefs/ITKLabelMap.mdx
--mdx /opt/local/var/macports/build/_Users_me_ports_graphics_InsightToolkit4/py311-InsightToolkit4/work/build/Wrapping/Typedefs/ITKStatistics.mdx
--mdx /opt/local/var/macports/build/_Users_me_ports_graphics_InsightToolkit4/py311-InsightToolkit4/work/build/Wrapping/Typedefs/ITKTransform.mdx
-w1 -w3 -w51 -w52 -w53 -w54
-A protected -A private 
-p /opt/local/var/macports/build/_Users_me_ports_graphics_InsightToolkit4/py311-InsightToolkit4/work/InsightToolkit-4.13.3/CMake/../Modules/ThirdParty/pygccxml/src
-g /opt/local/bin/castxml
--interface-output-dir /opt/local/var/macports/build/_Users_me_ports_graphics_InsightToolkit4/py311-InsightToolkit4/work/build/Wrapping/Typedefs
--library-output-dir /opt/local/var/macports/build/_Users_me_ports_graphics_InsightToolkit4/py311-InsightToolkit4/work/build/Wrapping
--submodule-order "itkLabelObjectLine;itkLabelObject;itkShapeLabelObject;itkStatisticsLabelObject;ITKLabelMapBase;itkLabelMapFilter;itkInPlaceLabelMapFilter;itkChangeRegionLabelMapFilter;itkAggregateLabelMapFilter;itkAutoCropLabelMapFilter;itkBinaryFillholeImageFilter;itkBinaryGrindPeakImageFilter;itkBinaryImageToLabelMapFilter;itkBinaryImageToShapeLabelMapFilter;itkBinaryImageToStatisticsLabelMapFilter;itkBinaryNotImageFilter;itkBinaryReconstructionByDilationImageFilter;itkBinaryReconstructionByErosionImageFilter;itkBinaryShapeKeepNObjectsImageFilter;itkBinaryShapeOpeningImageFilter;itkBinaryStatisticsKeepNObjectsImageFilter;itkBinaryStatisticsOpeningImageFilter;itkChangeLabelLabelMapFilter;itkCropLabelMapFilter;itkLabelImageToLabelMapFilter;itkLabelImageToShapeLabelMapFilter;itkLabelImageToStatisticsLabelMapFilter;itkLabelMapMaskImageFilter;itkLabelMapToBinaryImageFilter;itkLabelMapToLabelImageFilter;itkLabelSelectionLabelMapFilter;itkLabelShapeKeepNObjectsImageFilter;itkLabelShapeOpeningImageFilter;itkLabelStatisticsKeepNObjectsImageFilter;itkLabelStatisticsOpeningImageFilter;itkLabelUniqueLabelMapFilter;itkMergeLabelMapFilter;itkObjectByObjectLabelMapFilter;itkPadLabelMapFilter;itkRegionFromReferenceLabelMapFilter;itkRelabelLabelMapFilter;itkShapeKeepNObjectsLabelMapFilter;itkShapeLabelMapFilter;itkShapeOpeningLabelMapFilter;itkShapePositionLabelMapFilter;itkShapeRelabelImageFilter;itkShapeRelabelLabelMapFilter;itkShapeUniqueLabelMapFilter;itkShiftScaleLabelMapFilter;itkStatisticsKeepNObjectsLabelMapFilter;itkStatisticsLabelMapFilter;itkStatisticsOpeningLabelMapFilter;itkStatisticsPositionLabelMapFilter;itkStatisticsRelabelImageFilter;itkStatisticsRelabelLabelMapFilter;itkStatisticsUniqueLabelMapFilter"

...

itkStatisticsLabelMapFilter: warning(4): ITK type not wrapped, or currently not known: itk::ShapeLabelMapFilter< itk::LabelMap< itk::StatisticsLabelObject< unsigned long, 2 > >, itk::Image< unsigned long > >
itkStatisticsLabelMapFilter: warning(4): ITK type not wrapped, or currently not known: itk::ShapeLabelMapFilter< itk::LabelMap< itk::StatisticsLabelObject< unsigned long, 3 > >, itk::Image< unsigned long, 3 > >

...

[ 48%] Generating itkStatisticsLabelMapFilterPython.cpp, ../../../lib/itkStatisticsLabelMapFilterPython.py
cd /opt/local/var/macports/build/_Users_me_ports_graphics_InsightToolkit4/py311-InsightToolkit4/work/build/Wrapping/Typedefs/python && /opt/local/bin/swig -c++ -python -O -features autodoc=1 -Werror -w302 -w303 -w312 -w314 -w361 -w362 -w350 -w383 -w384 -w389 -w394 -w395 -w467 -w508 -w509 -o /opt/local/var/macports/build/_Users_me_ports_graphics_InsightToolkit4/py311-InsightToolkit4/work/build/Wrapping/Modules/ITKLabelMap/itkStatisticsLabelMapFilterPython.cpp -I/opt/local/var/macports/build/_Users_me_ports_graphics_InsightToolkit4/py311-InsightToolkit4/work/InsightToolkit-4.13.3/Wrapping/Generators -I/opt/local/var/macports/build/_Users_me_ports_graphics_InsightToolkit4/py311-InsightToolkit4/work/build/Wrapping/Typedefs/python -I/opt/local/var/macports/build/_Users_me_ports_graphics_InsightToolkit4/py311-InsightToolkit4/work/build/Wrapping/Typedefs -outdir /opt/local/var/macports/build/_Users_me_ports_graphics_InsightToolkit4/py311-InsightToolkit4/work/build/lib /opt/local/var/macports/build/_Users_me_ports_graphics_InsightToolkit4/py311-InsightToolkit4/work/build/Wrapping/Typedefs/itkStatisticsLabelMapFilter.i
/opt/local/var/macports/build/_Users_me_ports_graphics_InsightToolkit4/py311-InsightToolkit4/work/build/Wrapping/Typedefs/itkStatisticsLabelMapFilter.i:90: Warning 401: Nothing known about base class 'itk::ShapeLabelMapFilter< itk::LabelMap< itk::StatisticsLabelObject< unsigned long,2 > >,itk::Image< unsigned long > >'. Ignored.
/opt/local/var/macports/build/_Users_me_ports_graphics_InsightToolkit4/py311-InsightToolkit4/work/build/Wrapping/Typedefs/itkStatisticsLabelMapFilter.i:90: Warning 401: Maybe you forgot to instantiate 'itk::ShapeLabelMapFilter< itk::LabelMap< itk::StatisticsLabelObject< unsigned long,2 > >,itk::Image< unsigned long > >' using %template.
/opt/local/var/macports/build/_Users_me_ports_graphics_InsightToolkit4/py311-InsightToolkit4/work/build/Wrapping/Typedefs/itkStatisticsLabelMapFilter.i:142: Warning 401: Nothing known about base class 'itk::ShapeLabelMapFilter< itk::LabelMap< itk::StatisticsLabelObject< unsigned long,2 > >,itk::Image< unsigned long > >'. Ignored.
/opt/local/var/macports/build/_Users_me_ports_graphics_InsightToolkit4/py311-InsightToolkit4/work/build/Wrapping/Typedefs/itkStatisticsLabelMapFilter.i:142: Warning 401: Maybe you forgot to instantiate 'itk::ShapeLabelMapFilter< itk::LabelMap< itk::StatisticsLabelObject< unsigned long,2 > >,itk::Image< unsigned long > >' using %template.
/opt/local/var/macports/build/_Users_me_ports_graphics_InsightToolkit4/py311-InsightToolkit4/work/build/Wrapping/Typedefs/itkStatisticsLabelMapFilter.i:194: Warning 401: Nothing known about base class 'itk::ShapeLabelMapFilter< itk::LabelMap< itk::StatisticsLabelObject< unsigned long,2 > >,itk::Image< unsigned long > >'. Ignored.
/opt/local/var/macports/build/_Users_me_ports_graphics_InsightToolkit4/py311-InsightToolkit4/work/build/Wrapping/Typedefs/itkStatisticsLabelMapFilter.i:194: Warning 401: Maybe you forgot to instantiate 'itk::ShapeLabelMapFilter< itk::LabelMap< itk::StatisticsLabelObject< unsigned long,2 > >,itk::Image< unsigned long > >' using %template.
/opt/local/var/macports/build/_Users_me_ports_graphics_InsightToolkit4/py311-InsightToolkit4/work/build/Wrapping/Typedefs/itkStatisticsLabelMapFilter.i:246: Warning 401: Nothing known about base class 'itk::ShapeLabelMapFilter< itk::LabelMap< itk::StatisticsLabelObject< unsigned long,3 > >,itk::Image< unsigned long,3 > >'. Ignored.
/opt/local/var/macports/build/_Users_me_ports_graphics_InsightToolkit4/py311-InsightToolkit4/work/build/Wrapping/Typedefs/itkStatisticsLabelMapFilter.i:246: Warning 401: Maybe you forgot to instantiate 'itk::ShapeLabelMapFilter< itk::LabelMap< itk::StatisticsLabelObject< unsigned long,3 > >,itk::Image< unsigned long,3 > >' using %template.
/opt/local/var/macports/build/_Users_me_ports_graphics_InsightToolkit4/py311-InsightToolkit4/work/build/Wrapping/Typedefs/itkStatisticsLabelMapFilter.i:298: Warning 401: Nothing known about base class 'itk::ShapeLabelMapFilter< itk::LabelMap< itk::StatisticsLabelObject< unsigned long,3 > >,itk::Image< unsigned long,3 > >'. Ignored.
/opt/local/var/macports/build/_Users_me_ports_graphics_InsightToolkit4/py311-InsightToolkit4/work/build/Wrapping/Typedefs/itkStatisticsLabelMapFilter.i:298: Warning 401: Maybe you forgot to instantiate 'itk::ShapeLabelMapFilter< itk::LabelMap< itk::StatisticsLabelObject< unsigned long,3 > >,itk::Image< unsigned long,3 > >' using %template.
/opt/local/var/macports/build/_Users_me_ports_graphics_InsightToolkit4/py311-InsightToolkit4/work/build/Wrapping/Typedefs/itkStatisticsLabelMapFilter.i:350: Warning 401: Nothing known about base class 'itk::ShapeLabelMapFilter< itk::LabelMap< itk::StatisticsLabelObject< unsigned long,3 > >,itk::Image< unsigned long,3 > >'. Ignored.
/opt/local/var/macports/build/_Users_me_ports_graphics_InsightToolkit4/py311-InsightToolkit4/work/build/Wrapping/Typedefs/itkStatisticsLabelMapFilter.i:350: Warning 401: Maybe you forgot to instantiate 'itk::ShapeLabelMapFilter< itk::LabelMap< itk::StatisticsLabelObject< unsigned long,3 > >,itk::Image< unsigned long,3 > >' using %template.
make[2]: *** [Wrapping/Modules/ITKLabelMap/itkStatisticsLabelMapFilterPython.cpp] Error 1

I'm not sure what changed, this used to work.

comment:2 in reply to:  1 Changed 9 months ago by ryandesign (Ryan Carsten Schmidt)

Replying to nilason:

I don't think the -L/opt/local/lib/lib is the real issue here.

It is the issue I'm reporting in this ticket. There may be other issues as well, like the one you found.

Note: See TracTickets for help on using tickets.