Skip to content

ld: invalid use of ADRP in 'boost::python::to_python_converter for 3.8.1 release build #497

@chenrui333

Description

@chenrui333

👋 trying to build the latest release, but run into some build issue. The error log is as below:

error build log
[100%] Linking CXX shared module hppfcl/hppfcl.cpython-312-darwin.so
  cd /tmp/hpp-fcl-20240825-19576-ncusro/hpp-fcl-2.4.5/build/python && /opt/homebrew/Cellar/cmake/3.30.2/bin/cmake -E cmake_link_script CMakeFiles/hppfcl.dir/link.txt --verbose=1
  /opt/homebrew/Library/Homebrew/shims/mac/super/clang++ -pedantic -Wno-long-long -Wall -Wextra -Wcast-align -Wcast-qual -Wformat -Wwrite-strings -Wconversion  -O3 -DNDEBUG -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -bundle -Wl,-headerpad_max_install_names -Xlinker -undefined -Xlinker dynamic_lookup -o hppfcl/hppfcl.cpython-312-darwin.so CMakeFiles/hppfcl.dir/version.cc.o CMakeFiles/hppfcl.dir/math.cc.o "CMakeFiles/hppfcl.dir/collision-geometries.cc.o" CMakeFiles/hppfcl.dir/collision.cc.o CMakeFiles/hppfcl.dir/distance.cc.o CMakeFiles/hppfcl.dir/fcl.cc.o CMakeFiles/hppfcl.dir/gjk.cc.o CMakeFiles/hppfcl.dir/broadphase/broadphase.cc.o CMakeFiles/hppfcl.dir/octree.cc.o  -Wl,-rpath,/tmp/hpp-fcl-20240825-19576-ncusro/hpp-fcl-2.4.5/build/src /opt/homebrew/lib/libboost_python312-mt.dylib ../src/libhpp-fcl.dylib /opt/homebrew/lib/libeigenpy.dylib /opt/homebrew/lib/libboost_system-mt.dylib /opt/homebrew/lib/libboost_serialization-mt.dylib /opt/homebrew/lib/libboost_chrono-mt.dylib /opt/homebrew/lib/libboost_filesystem-mt.dylib /opt/homebrew/lib/liboctomap.1.10.0.dylib /opt/homebrew/lib/liboctomath.1.10.0.dylib /opt/homebrew/lib/libboost_python312-mt.dylib
  ld: invalid use of ADRP in 'boost::python::to_python_converter<Eigen::Matrix<double, 3, 3, 0, 3, 3>, eigenpy::EigenToPy<Eigen::Matrix<double, 3, 3, 0, 3, 3>, double>, true>::get_pytype_impl()' to '_EIGENPY_ARRAY_API'
  final section layout:
      __TEXT               addr=0x00000000, size=0x0015c000, fileOffset=0x00000000
          __text           addr=0x00007338, size=0x001012a8, fileOffset=0x00007338
          __stubs          addr=0x001085e0, size=0x00000b64, fileOffset=0x001085e0
          __stub_helper    addr=0x00109144, size=0x00000a8c, fileOffset=0x00109144
          __init_offsets   addr=0x00109bd0, size=0x000004cc, fileOffset=0x00109bd0
          __gcc_except_tab addr=0x0010a09c, size=0x000190b8, fileOffset=0x0010a09c
          __cstring        addr=0x00123154, size=0x0000215c, fileOffset=0x00123154
          __const          addr=0x001252b0, size=0x00028720, fileOffset=0x001252b0
          __unwind_info    addr=0x0014d9d0, size=0x0000e628, fileOffset=0x0014d9d0
      __DATA_CONST         addr=0x0015c000, size=0x0001c000, fileOffset=0x0015c000
          __got            addr=0x0015c000, size=0x00007ca8, fileOffset=0x0015c000
          __const          addr=0x00163ca8, size=0x0001[357](https://github.com/Homebrew/homebrew-core/actions/runs/10549564645/job/29224781457#step:3:358)0, fileOffset=0x00163ca8
      __DATA               addr=0x00178000, size=0x00014000, fileOffset=0x00178000
          __la_symbol_ptr  addr=0x00178000, size=0x000006f8, fileOffset=0x00178000
          __data           addr=0x001786f8, size=0x0000f840, fileOffset=0x001786f8
          __bss            addr=0x00187f40, size=0x00000245, fileOffset=0x00000000
      __LINKEDIT           addr=0x0018c000, size=0x003a4000, fileOffset=0x00188000
  clang: error: linker command failed with exit code 1 (use -v to see invocation)
  make[2]: *** [python/hppfcl/hppfcl.cpython-312-darwin.so] Error 1
  make[1]: *** [python/CMakeFiles/hppfcl.dir/all] Error 2
  make: *** [all] Error 2

full build log, https://github.com/Homebrew/homebrew-core/actions/runs/10549564645/job/29224781457
relates to Homebrew/homebrew-core#182455

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions