Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MacOS wheel building is flaky #66

Closed
yngve-sk opened this issue Nov 6, 2023 · 1 comment
Closed

MacOS wheel building is flaky #66

yngve-sk opened this issue Nov 6, 2023 · 1 comment

Comments

@yngve-sk
Copy link

yngve-sk commented Nov 6, 2023

Edit: Might be related (maybe also resolved) by explicitly passing DYLD_LIBRARY_PATH when calling delocate (ref: pypa/cibuildwheel#816)

The MacOS Carolina wheel building often fails due to delocate not finding packages, shows up with empty search path, even though it is correctly set. Solution for now is to just re-run until success, which is fine because we only need to build each wheel once and upload to pypi. This is a bit fragile and should be fixed in the long term.

Steps to reproduce:
Go to actions, and run the workflow 🏎️ Make & Test Wheels 🏎️ (until it fails) with an error like:

@rpath/libdakota_util.dylib not found:
  Needed by: /private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/tmpvs6qtn4f/carolina.cpython-39-darwin.so
  Search path:
    

@rpath/libdakota_surrogates.dylib not found:
  Needed by: /private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/tmpvs6qtn4f/carolina.cpython-39-darwin.so
  Search path:
    

@rpath/libdakota_src.dylib not found:
  Needed by: /private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/tmpvs6qtn4f/carolina.cpython-39-darwin.so
  Search path:
    

@rpath/libdakota_src_fortran.dylib not found:
  Needed by: /private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/tmpvs6qtn4f/carolina.cpython-39-darwin.so
  Search path:
    

@rpath/libnidr.dylib not found:
  Needed by: /private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/tmpvs6qtn4f/carolina.cpython-39-darwin.so
  Search path:
    

@rpath/libteuchosremainder.13.dylib not found:
  Needed by: /private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/tmpvs6qtn4f/carolina.cpython-39-darwin.so
  Search path:

Note the empty search paths, and the otool output is also given above, which indicates that the wheel does have things set to the rpath

@yngve-sk yngve-sk added this to SCOUT Nov 6, 2023
@yngve-sk yngve-sk moved this to Todo in SCOUT Nov 6, 2023
@yngve-sk yngve-sk moved this from Todo to Backlog in SCOUT Nov 6, 2023
@yngve-sk
Copy link
Author

Resolved by b691753

@github-project-automation github-project-automation bot moved this from Backlog to Done in SCOUT Nov 27, 2023
@eivindjahren eivindjahren moved this from Done to Done-Done in SCOUT Dec 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

1 participant