Scheduled Downtime
On Tuesday 24 October 2023 @ 5pm MT the forums will be in read only mode in preparation for the downtime. On Wednesday 25 October 2023 @ 5am MT, this website will be down for maintenance and expected to return online later in the morning.
Normal Operations
The forums are back online with normal operations. If you notice any issues or errors related to the forums, please reach out to help@ucar.edu

building CAM on a ppc64-platform

Hi everyone,

I have trouble compiling CAM3.1 at MareNostrum (Barcelona), which is a ppc64 AIX platform.

When I try to compile the model, the gmake issues the following errors:

mpcc_r -q64 -c -O3 -qstrict -qspill=3000 -I/home/bsc29/bsc29637/CAM/cam1/models/utils/esmf -I/home/bsc29/bsc29637/CAM/cam1/models/utils/esmf/src/include -I/home/bsc29/bsc29637/CAM/cam1/models/utils/esmf/build/rs6000_64 -I/home/bsc29/bsc29637/CAM/cam1/models/utils/esmf/include -I/home/bsc29/bsc29637/CAM/cam1/models/utils/esmf/src/Infrastructure/mpiuni -D__SDIR__='"src/Infrastructure/BasicUtil/"' /home/bsc29/bsc29637/CAM/cam1/models/utils/esmf/src/Infrastructure/BasicUtil/ESMC_BasicUtil.c
gmake[7]: mpcc_r: Command not found
gmake[7]: *** [/gpfs/projects/bsc29/bsc29637/CAM/prueba_cam_mpi/bld/esmf/lib/libO/rs6000_64/libesmf.a(ESMC_BasicUtil.o)] Error 127
gmake[7]: Leaving directory `/gpfs/projects/bsc29/bsc29637/CAM/prueba_cam_mpi/bld/esmf/mod/modO/rs6000_64'
gmake[6]: *** [lib] Error 2
gmake[6]: Leaving directory `/gpfs/projects/bsc29/bsc29637/CAM/prueba_cam_mpi/bld/esmf/mod/modO/rs6000_64'
gmake[5]: *** [vpathlib] Error 2


I tried to specify the C-compiler in the Makefile, even the multi-threading C-compiler in the spmd=true line, but it doesn't work. Gmake is somehow still looking for the default AIX-compiler mpcc_r

from my makefile -->

CC := xlc_r
CPPDEF += -DAIX
ifeq ($(NESTED_OMP),TRUE)
CPPDEF += -DNESTED_PAR
endif
CFLAGS := $(cpp_path) -O2 $(CPPDEF) $(QCMP)

ifeq ($(SPMD),TRUE)
FC := mpif90
else
FC := mpif90
CC := mpicc
FFLAGS += -WF,-DHIDE_MPI
endif


Any ideas??

Thanks a lot
 
Top