Skip to content

mac gfortran needs and cannot find cc1 #112

@minrk

Description

@minrk

CMake runs:

$FC --help -v

to determine certain flag support (-isysroot came up in conda-forge/netcdf-fortran-feedstock#28). However, running this with the conda gfortran on mac fails with:

cc1 -quiet -v ...
x86_64-apple-darwin13.4.0-gfortran: error trying to exec 'cc1': execvp: No such file or directory

causing cmake to misconfigure the gfortran compiler (omitting -isysroot in the above case).

Googling around suggests that this command should succeed, which it does on linux:

$ x86_64-conda_cos6-linux-gnu-gcc -print-prog-name=cc1
/opt/conda/bin/../libexec/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/cc1

but on mac, it doesn't find cc1:

$ x86_64-apple-darwin13.4.0-gfortran -print-prog-name=cc1
cc1

I'm not sure if there's a missing file, dependency, patch, or environment variable needed for finding cc1, but something appears to be missing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions