Skip to content

Commit

Permalink
Troubleshooting suggestion for Mac dynamic_lookup/
Browse files Browse the repository at this point in the history
chained fixups linker warning and subsequent “symbol not found in flat namespace” crash.
Thanks to Ronald Oussoren (python/cpython#97524 (comment)).

This works and seems needed on my ARM M1 MacOS 12.7 21G816, when compiling with either Apple clang-1400.0.29.202
or Homebrew clang version 16.0.5.  The discussion there suggests that the Clang in Xcode 14.3 might fix this, but that
won’t run on my MacOS.

I’m not submitting my change to the CMake file (7c642778),
since it presumably isn’t affecting most users and might be a performance hit.  Feel free to pull it if you disagree.
  • Loading branch information
FlashSheridan committed Oct 18, 2023
1 parent b567fe0 commit eeb3155
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,14 @@ If you want to use this functionality, you will need to manually start
and stop, as appropriate, a Redis server instance on localhost. Alive2
should be the only user of this server.

Troubleshooting
--------
Some combinations of Clang and MacOS versions may give link warnings
“-undefined dynamic_lookup may not work with chained fixups,” and
runtime errors with “symbol not found in flat namespace.” Setting
[CMAKE_OSX_DEPLOYMENT_TARGET](https://cmake.org/cmake/help/latest/variable/CMAKE_OSX_DEPLOYMENT_TARGET.html) as a cache entry to 11.0
or less at the beginning of CMakeLists.txt may work around this.

LLVM Bugs Found by Alive2
--------

Expand Down

0 comments on commit eeb3155

Please sign in to comment.