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

enable OSX ARM64 #73

Closed
wants to merge 3 commits into from
Closed

enable OSX ARM64 #73

wants to merge 3 commits into from

Conversation

jcarpent
Copy link
Contributor

@jcarpent jcarpent commented Aug 22, 2021

Checklist

  • Used a personal fork of the feedstock to propose changes
  • Bumped the build number (if the version is unchanged)
  • Reset the build number to 0 (if the version changed)
  • Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
  • Ensured the license file is being packaged.

@conda-forge-linter
Copy link

Hi! This is the friendly automated conda-forge-linting service.

I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

@jcarpent
Copy link
Contributor Author

@Tobias-Fischer
Copy link
Contributor

Tobias-Fischer commented Feb 15, 2022

After applying this patch, the build process itself goes through (native), but then the packaging process fails.

Patch:

diff --git a/recipe/Makefile.conda.SEQ b/recipe/Makefile.conda.SEQ
index 1143b4a..3a32d51 100755
--- a/recipe/Makefile.conda.SEQ
+++ b/recipe/Makefile.conda.SEQ
@@ -32,7 +32,7 @@ RM = /bin/rm -f
 CC ?= gcc
 CC := $(CC) -fPIC $(CFLAGS)
 FC ?= gfortran
-FC := $(FC) -fPIC $(FFLAGS)
+FC := $(FC) -fPIC $(FFLAGS) -fallow-argument-mismatch
 FL := $(FC) $(LDFLAGS)
 AR = ar vr #
 RANLIB = ranlib

Error:

number of files: 17
[cctools-port]: generating fake signature for '/Users/fischert/mambaforge/conda-bld/mumps_1644904958373/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/lib/libmpiseq_seq-5.2.1.dylib'

[cctools-port]: generating fake signature for '/Users/fischert/mambaforge/conda-bld/mumps_1644904958373/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/lib/libmpiseq_seq-5.2.1.dylib'

[cctools-port]: generating fake signature for '/Users/fischert/mambaforge/conda-bld/mumps_1644904958373/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/lib/libmpiseq_seq-5.2.1.dylib'

[cctools-port]: generating fake signature for '/Users/fischert/mambaforge/conda-bld/mumps_1644904958373/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/lib/libmumps_common_seq-5.2.1.dylib'

[cctools-port]: generating fake signature for '/Users/fischert/mambaforge/conda-bld/mumps_1644904958373/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/lib/libmumps_common_seq-5.2.1.dylib'

[cctools-port]: generating fake signature for '/Users/fischert/mambaforge/conda-bld/mumps_1644904958373/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/lib/libmumps_common_seq-5.2.1.dylib'

[cctools-port]: generating fake signature for '/Users/fischert/mambaforge/conda-bld/mumps_1644904958373/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/lib/libcmumps_seq-5.2.1.dylib'

[cctools-port]: generating fake signature for '/Users/fischert/mambaforge/conda-bld/mumps_1644904958373/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/lib/libcmumps_seq-5.2.1.dylib'

[cctools-port]: generating fake signature for '/Users/fischert/mambaforge/conda-bld/mumps_1644904958373/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/lib/libcmumps_seq-5.2.1.dylib'

[cctools-port]: generating fake signature for '/Users/fischert/mambaforge/conda-bld/mumps_1644904958373/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/lib/libzmumps_seq-5.2.1.dylib'

[cctools-port]: generating fake signature for '/Users/fischert/mambaforge/conda-bld/mumps_1644904958373/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/lib/libzmumps_seq-5.2.1.dylib'

[cctools-port]: generating fake signature for '/Users/fischert/mambaforge/conda-bld/mumps_1644904958373/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/lib/libzmumps_seq-5.2.1.dylib'

[cctools-port]: generating fake signature for '/Users/fischert/mambaforge/conda-bld/mumps_1644904958373/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/lib/libdmumps_seq-5.2.1.dylib'

[cctools-port]: generating fake signature for '/Users/fischert/mambaforge/conda-bld/mumps_1644904958373/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/lib/libdmumps_seq-5.2.1.dylib'

[cctools-port]: generating fake signature for '/Users/fischert/mambaforge/conda-bld/mumps_1644904958373/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/lib/libdmumps_seq-5.2.1.dylib'

[cctools-port]: generating fake signature for '/Users/fischert/mambaforge/conda-bld/mumps_1644904958373/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/lib/libpord_seq-5.2.1.dylib'
libc++abi: terminating with uncaught exception of type std::runtime_error: codesign_failed: 0


Traceback (most recent call last):
  File "/Users/fischert/mambaforge/bin/conda-mambabuild", line 10, in <module>
    sys.exit(main())
  File "/Users/fischert/mambaforge/lib/python3.9/site-packages/boa/cli/mambabuild.py", line 239, in main
    call_conda_build(action, config)
  File "/Users/fischert/mambaforge/lib/python3.9/site-packages/boa/cli/mambabuild.py", line 211, in call_conda_build
    result = api.build(
  File "/Users/fischert/mambaforge/lib/python3.9/site-packages/conda_build/api.py", line 186, in build
    return build_tree(
  File "/Users/fischert/mambaforge/lib/python3.9/site-packages/conda_build/build.py", line 3088, in build_tree
    packages_from_this = build(metadata, stats,
  File "/Users/fischert/mambaforge/lib/python3.9/site-packages/conda_build/build.py", line 2371, in build
    newly_built_packages = bundlers[pkg_type](output_d, m, env, stats)
  File "/Users/fischert/mambaforge/lib/python3.9/site-packages/conda_build/build.py", line 1664, in bundle_conda
    files = post_process_files(metadata, initial_files)
  File "/Users/fischert/mambaforge/lib/python3.9/site-packages/conda_build/build.py", line 1510, in post_process_files
    post_build(m, new_files, build_python=python)
  File "/Users/fischert/mambaforge/lib/python3.9/site-packages/conda_build/post.py", line 1317, in post_build
    post_process_shared_lib(m, f, prefix_files, host_prefix)
  File "/Users/fischert/mambaforge/lib/python3.9/site-packages/conda_build/post.py", line 1265, in post_process_shared_lib
    mk_relative_osx(path, host_prefix, m, files=files, rpaths=rpaths)
  File "/Users/fischert/mambaforge/lib/python3.9/site-packages/conda_build/post.py", line 423, in mk_relative_osx
    macho.delete_rpath(path, existing_rpath, build_prefix=prefix, verbose=True)
  File "/Users/fischert/mambaforge/lib/python3.9/site-packages/conda_build/os_utils/macho.py", line 285, in delete_rpath
    raise RuntimeError("install_name_tool failed with exit status %d"
RuntimeError: install_name_tool failed with exit status -9

@Tobias-Fischer
Copy link
Contributor

Hi @isuruf - sorry to bother you, but could you please have a look at this? If you have any hint where the issue could be this would be great. Thanks!

@isuruf
Copy link
Member

isuruf commented Feb 15, 2022

What's the error?

@Tobias-Fischer
Copy link
Contributor

The error is that RuntimeError: install_name_tool failed with exit status -9 which happens when conda-build tries to delete the rpath ( File "/Users/fischert/mambaforge/lib/python3.9/site-packages/conda_build/post.py", line 423, in mk_relative_osx macho.delete_rpath(path, existing_rpath, build_prefix=prefix, verbose=True)).

I found in #75 that when I change export SONAME="-Wl,-install_name,@rpath/" to export SONAME="-Wl,-install_name," in the build-seq.sh, the build works fine, however obviously the examples fail to compile as the library cannot be found anymore.

@isuruf
Copy link
Member

isuruf commented Feb 15, 2022

@conda-forge-admin, rerender

@isuruf
Copy link
Member

isuruf commented Feb 15, 2022

This fails with a solve error.

@dalcinl dalcinl mentioned this pull request Mar 10, 2022
5 tasks
@Tobias-Fischer
Copy link
Contributor

See #75 instead

@minrk minrk closed this Mar 11, 2022
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.

5 participants