Opened 11 years ago

Closed 11 years ago

#40583 closed defect (wontfix)

nco @4.3.5_1: fails to build with +openmpi variant

Reported by: petrrr Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: tenomoto (Takeshi Enomoto)
Port: nco

Description

nco builds fine if without variants, but fails to build if +openmpi variant is active with the following error (a complete main.log attached):

/usr/bin/clang -DHAVE_CONFIG_H -I. -I../..   -I/opt/local/include -I/opt/local/include -DNDEBUG -I/opt/local/include -I/usr/include/malloc -I/opt/local/include/udunits2 -I/opt/local/include -DENABLE_NETCDF4 -I/opt/local/include -I/opt/local/include -I/opt/local/include -I/opt/local/include/udunits2  -fno-common -pipe -Os -arch x86_64 -std=c99 -D_BSD_SOURCE  -c mpncbo.c
mpncbo.c:200:3: error: unknown type name 'lmt_all_sct'; did you mean 'lmt_msa_sct'?
  lmt_all_sct **lmt_all_lst=NULL_CEWI; /* List of *lmt_all structures */
  ^~~~~~~~~~~
  lmt_msa_sct
./nco.h:705:5: note: 'lmt_msa_sct' declared here
  } lmt_msa_sct;
    ^
mpncbo.c:586:16: error: use of undeclared identifier 'lmt_all_sct'; did you mean 'lmt_all_lst'?
  lmt_all_lst=(lmt_all_sct **)nco_malloc(nbr_dmn_fl_1*sizeof(lmt_all_sct *));
               ^~~~~~~~~~~
               lmt_all_lst
mpncbo.c:200:17: note: 'lmt_all_lst' declared here
  lmt_all_sct **lmt_all_lst=NULL_CEWI; /* List of *lmt_all structures */
                ^
mpncbo.c:586:30: error: expected expression
  lmt_all_lst=(lmt_all_sct **)nco_malloc(nbr_dmn_fl_1*sizeof(lmt_all_sct *));
                             ^
3 errors generated.
make[3]: *** [mpncbo.o] Error 1

Attachments (1)

nco+openmpi.log (113.0 KB) - added by petrrr 11 years ago.
main.log with +openmpi activated

Download all attachments as: .zip

Change History (2)

Changed 11 years ago by petrrr

Attachment: nco+openmpi.log added

main.log with +openmpi activated

comment:1 Changed 11 years ago by tenomoto (Takeshi Enomoto)

Resolution: wontfix
Status: newclosed

Thanks for pointing this out. lmt_all_sct used to be defined in nco.h, but it is removed in 4.3x. I made openmpi and mpich variants to do nothing in r111668 since MPI is not supported:

$ configure --help
 
 --enable-mpi            Build NCO for Message Passing Interface (NB: Do not
                          use, this is not yet supported) [[default=no]]
Note: See TracTickets for help on using tickets.