iree: Linux portability: Missing deps on `dl` for `threading` and `dynamic_library`

Some Linux systems need to link against -ldl explicitly for these two libraries in iree/base/internal (I’ve encountered this sporadically on weird systems but most recently on NVidia Jetson).

Just adding -ldl to the DEPS of both makes it work. The right answer is to wrap the in a generator expression which activates only on Linux. However, these files are bazel_to_cmake controlled. Should I just add this in the CMake specific section as a target_link_libraries? Bazel really lacks configurability and I don’t care about making it work on the non mainline systems.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 18 (3 by maintainers)

Commits related to this issue

Most upvoted comments

Also +1 on build bot, and I think this one would be a good one to add: aarch64, pegged to old LTS release that we don’t want to regress on, important embedded platform – hits all of the weird (for Linux). I think I know how to dockerize it so that we can build/test it on regular build systems.