Skip to content

BUG: Compiler gfortran cannot compile program #158

@ljlamarche

Description

@ljlamarche

Describe the bug

Attempting pip install apexpy, meson build fails will the error message Compiler gfortran cannot compile program

To Reproduce

pip install apexpy --no-cache

Expected behavior

Successful Installation

Computer

  • OS: macOS 14.7.4
  • Python version: 3.9
  • Compiler with version: gfortran 12.2.0
  • Apexpy version/branch: 2.1.0/main

Additional context

Add any other context about the problem here.

Error Message

Collecting apexpy==2.1.0
  Downloading apexpy-2.1.0.tar.gz (341 kB)
     |████████████████████████████████| 341 kB 1.4 MB/s
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... error
    ERROR: Command errored out with exit status 1:
     command: /Users/emirizio/opt/anaconda3/bin/python /Users/emirizio/opt/anaconda3/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py prepare_metadata_for_build_wheel /var/folders/_c/2ktd85pn6mx_5cskz5ljyzbm0000gq/T/tmp2t6_gk2s
         cwd: /private/var/folders/_c/2ktd85pn6mx_5cskz5ljyzbm0000gq/T/pip-install-u_2u8fsu/apexpy_e2e3cdca225d4e96bd5ef09b5e649554
    Complete output (16 lines):
    + meson setup /private/var/folders/_c/2ktd85pn6mx_5cskz5ljyzbm0000gq/T/pip-install-u_2u8fsu/apexpy_e2e3cdca225d4e96bd5ef09b5e649554 /private/var/folders/_c/2ktd85pn6mx_5cskz5ljyzbm0000gq/T/pip-install-u_2u8fsu/apexpy_e2e3cdca225d4e96bd5ef09b5e649554/.mesonpy-za28nibp -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=/private/var/folders/_c/2ktd85pn6mx_5cskz5ljyzbm0000gq/T/pip-install-u_2u8fsu/apexpy_e2e3cdca225d4e96bd5ef09b5e649554/.mesonpy-za28nibp/meson-python-native-file.ini
    The Meson build system
    Version: 1.9.1
    Source dir: /private/var/folders/_c/2ktd85pn6mx_5cskz5ljyzbm0000gq/T/pip-install-u_2u8fsu/apexpy_e2e3cdca225d4e96bd5ef09b5e649554
    Build dir: /private/var/folders/_c/2ktd85pn6mx_5cskz5ljyzbm0000gq/T/pip-install-u_2u8fsu/apexpy_e2e3cdca225d4e96bd5ef09b5e649554/.mesonpy-za28nibp
    Build type: native build
    Project name: apexpy
    Project version: 2.1.0
    C compiler for the host machine: cc (clang 16.0.0 "Apple clang version 16.0.0 (clang-1600.0.26.6)")
    C linker for the host machine: cc ld64 1115.7.3
    Host machine cpu family: x86_64
    Host machine cpu: x86_64
    
    ../meson.build:17:0: ERROR: Compiler gfortran cannot compile programs.
    
    A full log can be found at /private/var/folders/_c/2ktd85pn6mx_5cskz5ljyzbm0000gq/T/pip-install-u_2u8fsu/apexpy_e2e3cdca225d4e96bd5ef09b5e649554/.mesonpy-za28nibp/meson-logs/meson-log.txt
    ----------------------------------------
WARNING: Discarding [https://files.pythonhosted.org/packages/b9/03/3b9f9b2af6eb77e4e227a5bce913daa72cd53ec40556fcd027ec4…](https://files.pythonhosted.org/packages/b9/03/3b9f9b2af6eb77e4e227a5bce913daa72cd53ec40556fcd027ec4bd61fea/apexpy-2.1.0.tar.gz#sha256=166d38987468ef671ab989a19178c56b6185c62179769fe23287a6b2322dda6c) (from https://pypi.org/simple/apexpy/) (requires-python:>=3.9). Command errored out with exit status 1: /Users/emirizio/opt/anaconda3/bin/python /Users/emirizio/opt/anaconda3/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py prepare_metadata_for_build_wheel /var/folders/_c/2ktd85pn6mx_5cskz5ljyzbm0000gq/T/tmp2t6_gk2s Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement apexpy==2.1.0 (from versions: 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.1.0, 2.0.0, 2.0.1, 2.0.2, 2.1.0)
ERROR: No matching distribution found for apexpy==2.1.0

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions