Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
ld: warning: /usr/lib/libpthread.dylib, ignoring unexpected dylib file #7933
Original bug ID: 7933
This could happen whenever you compile with '-complete-output-obj' and have lwt in your deps, ultimately using threads.
Steps to reproduce
I thought this could only happen with some built-in libs, but I have a suspicion that having any relevant
Here I'm feeding Zarith LDFLAGS with gmp -Lpath from a non-standard path. Having done that, I'll get the following warning as well:
Comment author: @rauanmayemir
Here's the full dune build output with -verbose flag.
I also created a repro case with instructions here: https://github.com/rauanmayemir/repro7933
Comment author: @nojb
It may be that we are passing shared libraries to the linker when "partially" linking ("ld -r"). We may have been relying on ld to silently ignore these arguments before.
Those flags probably come from C options embedded in OCaml archives, so not sure what we can do if this is the case.