Skip to content

Could not compile conftest.f, error: identifier "choke" is undefined #449

@wannh2

Description

@wannh2

I'm trying to install netcdf-fortran 4.6.1, but met the error "Could not compile conftest.f", after find the config.log, I found "error: identifier "choke" is undefined", here is the command I use for netcdf-fortran
export CC=pgcc
export FC=pgfortran
export CXX=c++

LD_LIBRARY_PATH=/mnt/work/wannh/build_megan/library/netcdf_pg/Build_WRF/LIBRARIES/netcdf/lib:$LD_LIBRARY_PATH
CPPFLAGS=-I/mnt/work/wannh/build_megan/library/netcdf_pg/Build_WRF/LIBRARIES/netcdf/include
LDFLAGS=-L/mnt/work/wannh/build_megan/library/netcdf_pg/Build_WRF/LIBRARIES/netcdf/netcdf/lib
./configure --disable-shared --prefix=/mnt/work/wannh/build_megan/library/netcdf_pg/Build_WRF/LIBRARIES/netcdf/

for netcdf-c, the command is:
CPPFLAGS=-I/mnt/work/wannh/build_megan/library/netcdf_pg/Build_WRF/LIBRARIES/hdf5/include
LDFLAGS=-L/mnt/work/wannh/build_megan/library/netcdf_pg/Build_WRF/LIBRARIES/hdf5/lib
./configure --prefix=/mnt/work/wannh/build_megan/library/netcdf_pg/Build_WRF/LIBRARIES/netcdf/ --disable-dap --disable-shared

system inf:
Ubuntu 18.04.6 LTS (GNU/Linux 4.15.0-197-generic x86_64)
zlib 1.2.11
hdf5 1.15.4-3
netcdf-c 4.9.2

any suggestion for this error? Thank you in advance

config.log

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