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

dcmtk: bump deps #21985

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

dcmtk: bump deps #21985

wants to merge 6 commits into from

Conversation

mayeut
Copy link
Contributor

@mayeut mayeut commented Dec 27, 2023

Specify library name and version: dcmtk/all


@conan-center-bot

This comment has been minimized.

Requires rosetta & `tools.build.cross_building:can_run=True`
Comment on lines 121 to 123
if hasattr(self, "settings_build") and cross_building(self) and \
self.settings.os == "Macos" and self.settings.arch == "x86_64" and not can_run(self):
raise ConanInvalidConfiguration("Cross building to macOS x86_64 is only supported from macOS arm64 using rosetta with 'tools.build.cross_building:can_run=True'")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With the new macOS builders in CI using an arm64 build profile to build for x86_64 host, this recipe will now raise a ConanInvalidConfiguration exception.

Will the config be updated with tools.build.cross_building:can_run=True ?
If not, is there a simple workaround recommended ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@uilianries @danimtb Tagging you as you were the most visibly involved with the M2 upgrade.

Can the M2 machines run both armv8 and x86_64 executables? And even if they can run both, should we still probably try to use the armv8 versions of the executables?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And even if they can run both, should we still probably try to use the armv8 versions of the executables?

In this specific instance, there's no armv8 version of the executable as it only there to allow some try_run calls in the CMake file.
Having tools.build.cross_building:can_run=True would also mean that tests could run entirely which is not the case anymore for macOS x86_64 builds.

I could add a specific _can_run property to the recipe in order not to require tools.build.cross_building:can_run=True if rosetta is available.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can the M2 machines run both armv8 and x86_64 executables? And even if they can run both, should we still probably try to use the armv8 versions of the executables?

Yes, M2 can build and run both amrv8 and x86_64. As M2 can run anything, there is no favorite target when running, when a Mac machine is available, it will run tests or build binaries as needed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it will run tests

it won't run any executable built by the tests and protected with if can_run(self): while it could. That's what I meant by "tests could run entirely which is not the case anymore for macOS x86_64 builds".

@conan-center-bot

This comment has been minimized.

Copy link
Contributor

Hooks produced the following warnings for commit a5cc508
dcmtk/3.6.7@#8c982f28ffe05bda5c49f269005c82c4
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libdcmtkcharls.so' links to system library 'nsl' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libdcmtract.so' links to system library 'nsl' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libdcmjpls.so' links to system library 'nsl' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libdcmpstat.so' links to system library 'nsl' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libdcmect.so' links to system library 'nsl' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libdcmpmap.so' links to system library 'nsl' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libdcmfg.so' links to system library 'nsl' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libdcmjpeg.so' links to system library 'nsl' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/liboflog.so' links to system library 'nsl' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libdcmiod.so' links to system library 'nsl' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libdcmqrdb.so' links to system library 'nsl' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libdcmimage.so' links to system library 'nsl' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libdcmsr.so' links to system library 'nsl' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libofstd.so' links to system library 'nsl' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libdcmseg.so' links to system library 'nsl' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libcmr.so' links to system library 'nsl' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libdcmnet.so' links to system library 'nsl' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libdcmrt.so' links to system library 'nsl' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libdcmimgle.so' links to system library 'nsl' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libdcmtls.so' links to system library 'nsl' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libdcmdsig.so' links to system library 'nsl' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libdcmdata.so' links to system library 'nsl' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libdcmwlm.so' links to system library 'nsl' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libi2d.so' links to system library 'nsl' but it is not in cpp_info.system_libs.

@ghost ghost mentioned this pull request Jan 1, 2024
3 tasks
@AbrilRBS AbrilRBS self-assigned this Jan 6, 2024
@ghost ghost mentioned this pull request Jan 7, 2024
@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

danimtb
danimtb previously approved these changes Apr 10, 2024
@mayeut
Copy link
Contributor Author

mayeut commented Apr 13, 2024

The check rosetta support commit seems useless on CCI Jenkins.
I guess the configuration validity is not checked on macOS M1 ?
That would mean the only option to get macOS x86_64 builds on CCI would be to have tools.build.cross_building:can_run=True in the profile ?

@conan-center-bot
Copy link
Collaborator

Conan v1 pipeline ✔️

All green in build 3 (858991d02b48899766a216d42c63a71346fd017c):

  • dcmtk/3.6.8:
    All packages built successfully! (All logs)

  • dcmtk/3.6.7:
    All packages built successfully! (All logs)


Conan v2 pipeline ✔️

Note: Conan v2 builds are now mandatory. Please read our discussion about it.

All green in build 3 (858991d02b48899766a216d42c63a71346fd017c):

  • dcmtk/3.6.7:
    All packages built successfully! (All logs)

  • dcmtk/3.6.8:
    All packages built successfully! (All logs)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants