-
Notifications
You must be signed in to change notification settings - Fork 232
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
cross-compiling on conda-forge is trying to compile a wrong file #560
Comments
Hm, we select the assembly based on the platform here: Lines 109 to 113 in 5d04542
Lines 34 to 40 in 5d04542
Bazel documentation suggests that you might need to pass |
I forget to say I am have |
With the continued caveat that I don't closely follow bazel targets/cross-compilation, the docs make it look to me like Bazel Starlark does have a |
Over at conda-forge/ray-packages-feedstock#158 I am trying to get ray which is using bazel5.4 to build for macos. The build machine available in CI is x86_64. When the target is x86_64 everything works. Bug when the target is arm64 (using a
--crosstool_top
bazel directive), I am seeing the build tries to compileboost/libs/context/src/asm/jump_x86_64_sysv_macho_gas.S
which of course cannot succeed since the assembly in that file is for x86_64, not arm64. Conda-forge is a framework that sets up the CI environment, downloads the source code of the project, then runs a script to call the project's build system, in this case ray's source code and usingpython setup.py
which calls bazel to build the project. Here is where this project comes into play:which is then loaded as
boost_deps
, and then boost is used in other places in the bazel build script, for instance hereAny hints as to what might be going on? Do I need to define something to convey the target CPU to boost? I see the the conda-forge boost feedstock uses
ARCHITECTURE=arm
in theb2
call, is there something like that needed here?The text was updated successfully, but these errors were encountered: