[MacPorts] #40583: nco @4.3.5_1: fails to build with +openmpi variant

MacPorts noreply at macports.org
Wed Sep 25 11:57:35 PDT 2013


#40583: nco @4.3.5_1: fails to build with +openmpi variant
-----------------------------+--------------------------------
 Reporter:  Peter.Danecek@…  |      Owner:  macports-tickets@…
     Type:  defect           |     Status:  new
 Priority:  Normal           |  Milestone:
Component:  ports            |    Version:
 Keywords:                   |       Port:  nco
-----------------------------+--------------------------------
 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
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/40583>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list