Opened 3 years ago

Last modified 3 years ago

#63517 assigned defect

Failed to configure netcdf

Reported by: massonseb Owned by: tenomoto (Takeshi Enomoto)
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: Cc:
Port: netcdf

Description

I cannot upgrade from netcdf 4.7.4_2 to 4.8.1_0 because of an error during the configure. There is the command I use:

sudo port install netcdf +cdf5 +dap +gcc9 +mpich +netcdf4

I have multiple errors in the CMakeError.log file:

...
ld: unknown option: --no-undefined
...
gcc-mp-9: error: unrecognized command line option '-Wshorten-64-to-32'
...
Undefined symbols for architecture x86_64:
  "_H5Pset_fapl_ros3", referenced from:
      _main in CheckFunctionExists.c.o
ld: symbol(s) not found for architecture x86_64

I attache the complete CMakeError.log file in the ticket.

Attachments (1)

CMakeError.log (6.3 KB) - added by massonseb 3 years ago.

Download all attachments as: .zip

Change History (3)

Changed 3 years ago by massonseb

Attachment: CMakeError.log added

comment:1 Changed 3 years ago by jmroot (Joshua Root)

Owner: set to tenomoto
Status: newassigned

comment:2 Changed 3 years ago by massonseb

I finally managed to compile this package using mpich-default+gcc11

Note: See TracTickets for help on using tickets.