conda-forge / f2c-feedstock

A conda-smithy repository for f2c.
BSD 3-Clause "New" or "Revised" License
2 stars 8 forks source link

linker reports macOS-arm64 binaries are built for macOS-x86_64 #19

Closed Areustle closed 2 years ago

Areustle commented 2 years ago

Solution to issue cannot be found in the documentation.

Issue

This is possibly idiosyncratic, and I will investigate further, but...

When attempting to link against the shared and static libf2c libraries on macos-arm-64 I get the following warning message(s) from ld:

ld: warning: ignoring file /[...full conda path...]/lib/libf2c.a, building for macOS-arm64 but attempting to link with file built for macOS-x86_64 and ld: warning: ignoring file /[... full conda path...]/lib/libf2c.so, building for macOS-arm64 but attempting to link with file built for macOS-x86_64

Must determine the source of these warnings, since the CI has confirmed that the code was built on the apple arm azure platform, and no cross-compiling shenanigans were performed.

Installed packages

conda list
# packages in environment at /Users/areustle/.pyenv/versions/miniconda3-latest/envs/f2c-dev:
#
# Name                    Version                   Build  Channel
f2c                       20210323183018    h1c322ee_1007    conda-forge

Environment info

conda info

     active environment : f2c-dev
    active env location : /Users/areustle/.pyenv/versions/miniconda3-latest/envs/f2c-dev
            shell level : 1
       user config file : /Users/areustle/.condarc
 populated config files :
          conda version : 4.12.0
    conda-build version : 3.21.8
         python version : 3.8.11.final.0
       virtual packages : __osx=12.3.1=0
                          __unix=0=0
                          __archspec=1=arm64
       base environment : /Users/areustle/.pyenv/versions/miniconda3-latest  (writable)
      conda av data dir : /Users/areustle/.pyenv/versions/miniconda3-latest/etc/conda
  conda av metadata url : None
           channel URLs : https://repo.anaconda.com/pkgs/main/osx-arm64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/osx-arm64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /Users/areustle/.pyenv/versions/miniconda3-latest/pkgs
                          /Users/areustle/.conda/pkgs
       envs directories : /Users/areustle/.pyenv/versions/miniconda3-latest/envs
                          /Users/areustle/.conda/envs
               platform : osx-arm64
             user-agent : conda/4.12.0 requests/2.25.1 CPython/3.8.11 Darwin/21.4.0 OSX/12.3.1
                UID:GID : 501:20
             netrc file : None
           offline mode : False