[MacPorts] #69355: py310-InsightToolkit @5.3.0: ld: warning: directory not found for option '-L/opt/local/lib/lib'

MacPorts noreply at macports.org
Thu Feb 22 12:24:56 UTC 2024


#69355: py310-InsightToolkit @5.3.0: ld: warning: directory not found for option
'-L/opt/local/lib/lib'
-----------------------------------+----------------------
  Reporter:  ryandesign            |      Owner:  stromnov
      Type:  defect                |     Status:  assigned
  Priority:  Normal                |  Milestone:
 Component:  ports                 |    Version:  2.9.1
Resolution:                        |   Keywords:
      Port:  py310-InsightToolkit  |
-----------------------------------+----------------------

Comment (by nilason):

 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.

-- 
Ticket URL: <https://trac.macports.org/ticket/69355#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list