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

[bug] boost/1.75.0: ERROR on macOS #17152

Open
BZandi opened this issue Oct 11, 2024 · 1 comment
Open

[bug] boost/1.75.0: ERROR on macOS #17152

BZandi opened this issue Oct 11, 2024 · 1 comment
Assignees

Comments

@BZandi
Copy link

BZandi commented Oct 11, 2024

Describe the bug

I received the following error:

boost/1.75.0: ERROR: 
Package '6ccaf280d98af4efc6867514dba1f34ccc554e46' build failed
boost/1.75.0: WARN: Build folder /Users/papillonmacpro/.conan2/p/b/boost94c771922edfc/b/build-release
ERROR: boost/1.75.0: Error in build() method, line 1165
        self.run(full_command)
        ConanException: Error 1 while executing

I used the following conanfile.py:

import os
from conan import ConanFile


class CompresstoolsConan(ConanFile):
    settings = "os", "compiler", "build_type", "arch"
    generators = "CMakeToolchain", "CMakeDeps"

    def requirements(self):
        self.requires("pybind11/2.13.6", force=True)
        self.requires("boost/1.75.0", force=True)
        self.requires("eigen/3.3.9", force=True)
        self.requires("ceres-solver/2.0.0", force=True)
        self.requires("opencv/4.5.1", force=True)
        self.requires("zlib/1.2.13", force=True)
        self.requires("libwebp/1.3.2", force=True)

    def build_requirements(self):
        if self.settings.os != "Windows":
            self.tool_requires("cmake/3.30.5")

    def configure(self):
        if self.settings.compiler == "apple-clang":
            self.settings.compiler.cppstd = "14"

    def layout(self):
        # We make the assumption that if the compiler is msvc the
        # CMake generator is multi-config
        multi = True if self.settings.get_safe("compiler") == "msvc" else False
        if multi:
            self.folders.generators = os.path.join("build", "generators")
            self.folders.build = "build"
        else:
            self.folders.generators = os.path.join(
                "build", str(self.settings.build_type), "generators")
            self.folders.build = os.path.join(
                "build", str(self.settings.build_type))

Here are my setting:

Conan version 2.8.0
macOS: 15.0.1 
Chip: Apple M3 Max

======== Input profiles ========
Profile host:
[settings]
arch=armv8
build_type=Release
compiler=apple-clang
compiler.cppstd=gnu17
compiler.libcxx=libc++
compiler.version=16
os=Macos

Profile build:
[settings]
arch=armv8
build_type=Release
compiler=apple-clang
compiler.cppstd=gnu17
compiler.libcxx=libc++
compiler.version=16
os=Macos

How to reproduce it

conan profile detect --force
conan install . --output-folder=build --build=missing

@BZandi BZandi changed the title [bug] boost/1.75.0: ERROR [bug] boost/1.75.0: ERROR on macOS Oct 11, 2024
@memsharded memsharded self-assigned this Oct 11, 2024
@memsharded
Copy link
Member

Hi @BZandi

Thanks for your report. This might be more a recipe issue than a bug in the Conan client.
I am missing the actual build error, you are only posting the very last lines, but the actual build error is not there.

It is possible that boost/1.75 didn't have support to built with latest clang-armv8 (m3) in OSX.
I'd recommend to try the latest boost/1.86 (or at least a very recent version), and try again, in isolation (conan install --requires=boost/1.86 ...)

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

No branches or pull requests

2 participants