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

New otool output is not tested directly. #137

Open
HexDecimal opened this issue Jan 1, 2022 · 3 comments · May be fixed by #230
Open

New otool output is not tested directly. #137

HexDecimal opened this issue Jan 1, 2022 · 3 comments · May be fixed by #230
Assignees
Labels
help wanted An issue that could be handled by anyone, even new members of the community.

Comments

@HexDecimal
Copy link
Collaborator

Issue #78 involved a breaking change in the output of otool. This was fixed in #130 but I couldn't reproduce this output on the any of the GitHub Runners, and I don't know how to upgrade the tools to test the newer output.

Any new information on this would be helpful such as which versions of otool/macOS made this change to the output.

For example, a universal2 object has this style of output from the older tools:

❯ otool -L foo.so
foo.so:
	/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 905.6.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1292.100.5)

And this output from the newer tools:

❯ otool -L foo.so
foo.so (architecture x86_64):
	/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 905.6.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1292.100.5)
foo.so (architecture arm64):
	/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 905.6.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1292.100.5)
@HexDecimal HexDecimal added the help wanted An issue that could be handled by anyone, even new members of the community. label Jan 1, 2022
@matthew-brett
Copy link
Owner

Draft at #140

@mayeut
Copy link
Contributor

mayeut commented Jan 2, 2022

The GHA runners provide (today) 7 versions of Xcode installed on macOS-11 and 13 versions installed on macOS-10.15:
https://github.com/mayeut/delocate/runs/4681900037?check_suite_focus=true

It might be good to check on a regular basis that new versions (and there will be as runners are updated) that delocate can work with all of them ?
Maybe as a way to generate a subset of the data used by the mock being drafted in #140 (in addition to other data received in #78) ?

@HexDecimal
Copy link
Collaborator Author

The inconsistent behavior between otool versions seems to come from a missing -arch all flag in the main call to otool. I think adding this flag will resolve this issue.

@HexDecimal HexDecimal self-assigned this Oct 15, 2024
@HexDecimal HexDecimal linked a pull request Oct 15, 2024 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted An issue that could be handled by anyone, even new members of the community.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants