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

[package] glib/2.72.0: os.version not applied on MacOS #10281

Closed
bkarasm opened this issue Apr 13, 2022 · 3 comments
Closed

[package] glib/2.72.0: os.version not applied on MacOS #10281

bkarasm opened this issue Apr 13, 2022 · 3 comments
Labels
invalid Indicates that an issue or pull request is no longer relevant

Comments

@bkarasm
Copy link

bkarasm commented Apr 13, 2022

Package and Environment Details

  • Package Name/Version: glib/2.72.0 (also tried with 2.70.1)
  • Operating System+version: MacOS 12.2.1
  • Compiler+version: apple-clang 12.0.0
  • Conan version: conan 1.45.0
  • Python version: Python 3.9.8

Conan profile (output of conan profile show default or conan profile show <profile> if custom profile is in use)

[settings]
os=Macos
os_build=Macos
arch=x86_64
arch_build=x86_64
compiler=apple-clang
compiler.version=12.0
compiler.libcxx=libc++
build_type=Release
[options]
[conf]
[build_requires]
[env]

Steps to reproduce (Include if Applicable)

conan install glib/2.72.0@ -s os.version=10.12 -o glib:shared=True --build missing

Details

By setting os.version on MacOS I would expect that by running otool on any glib library, e.g. otool -l libglib-2.0.0.dylib, I'd see an information that given library is supported from the desired version (10.12 in this case).

Actual output:

...
Load command 9
      cmd LC_BUILD_VERSION
  cmdsize 32
 platform 1
    minos 11.1
      sdk 11.1
   ntools 1
     tool 3
  version 609.8
...

I verified that -mmacosx-version-min=10.12 flag is added to build.ninja so I'm not sure what's going wrong here.

@bkarasm bkarasm added the bug Something isn't working label Apr 13, 2022
@uilianries uilianries added invalid Indicates that an issue or pull request is no longer relevant and removed bug Something isn't working labels Apr 13, 2022
@uilianries
Copy link
Member

The setting os.version is not used by Conan Center.

@battlmonstr
Copy link

@uilianries What's the correct approach of passing -mmacosx-version-min then?

battlmonstr added a commit to erigontech/silkworm that referenced this issue Jun 12, 2024
fixes:
ld: warning: object file (.../lib/libboost_iostreams.a[6](zlib.o)) was built for newer 'macOS' version (14.0) than being linked (13.3)
ld: warning: object file (.../lib/libboost_thread.a[2](thread.o)) was built for newer 'macOS' version (14.0) than being linked (13.3)
ld: warning: object file (.../lib/libboost_thread.a[3](once.o)) was built for newer 'macOS' version (14.0) than being linked (13.3)

see:
conan-io/conan-center-index#12328
conan-io/conan-center-index#20492
conan-io/conan-center-index#10281
@uilianries
Copy link
Member

uilianries commented Jun 12, 2024

@battlmonstr Hello, I commented how to inject compiler flags here: #20492 (comment)

It will not change your package ID. To change the package ID when using tools.build:cxxflags, you can add the follow configuration too:

-c tools.info.package_id:confs='["tools.build:cxxflags"]'

Still, you can add os.version to you settings.yml: https://docs.conan.io/2/examples/config_files/settings/settings_user.html

battlmonstr added a commit to erigontech/silkworm that referenced this issue Jun 12, 2024
fixes:
ld: warning: object file (.../lib/libboost_iostreams.a[6](zlib.o)) was built for newer 'macOS' version (14.0) than being linked (13.3)
ld: warning: object file (.../lib/libboost_thread.a[2](thread.o)) was built for newer 'macOS' version (14.0) than being linked (13.3)
ld: warning: object file (.../lib/libboost_thread.a[3](once.o)) was built for newer 'macOS' version (14.0) than being linked (13.3)

see:
conan-io/conan-center-index#12328
conan-io/conan-center-index#20492
conan-io/conan-center-index#10281
battlmonstr added a commit to erigontech/silkworm that referenced this issue Jun 14, 2024
fixes:
ld: warning: object file (.../lib/libboost_iostreams.a[6](zlib.o)) was built for newer 'macOS' version (14.0) than being linked (13.3)
ld: warning: object file (.../lib/libboost_thread.a[2](thread.o)) was built for newer 'macOS' version (14.0) than being linked (13.3)
ld: warning: object file (.../lib/libboost_thread.a[3](once.o)) was built for newer 'macOS' version (14.0) than being linked (13.3)

see:
conan-io/conan-center-index#12328
conan-io/conan-center-index#20492
conan-io/conan-center-index#10281
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid Indicates that an issue or pull request is no longer relevant
Projects
None yet
Development

No branches or pull requests

3 participants