Skip to content

build issue for homme standalone on Perlmutter / NERSC #586

@whannah1

Description

@whannah1

When trying to build homme_tool on Perlmutter I hit hundreds of lines of linker errors. After some trial and error I confirmed that adding -lstdc++ to the linker line fixed the problem.

Commands I used to clone master and reproduce the linker error:

e3sm_root=${SCRATCH}/e3sm_scratch/tmp_clone

mkdir -p ${e3sm_root}
cd ${e3sm_root}
git clone -b jayeshkrishna/homme/port_to_scorpio_1.6.2 git@github.com:E3SM-Project/E3SM.git ./
git submodule sync ; git submodule update --init --recursive

cd ${e3sm_root}/components/homme
eval $(${e3sm_root}/cime/CIME/Tools/get_case_env)

mach_file=${e3sm_root}/components/homme/cmake/machineFiles/perlmutter-gnu.cmake

cmake -C ${mach_file} \
-DBUILD_HOMME_WITHOUT_PIOLIBRARY=FALSE \
-DHOMME_ENABLE_COMPOSE=FALSE \
-DBUILD_HOMME_THETA_KOKKOS=FALSE \
-DBUILD_HOMME_PREQX_KOKKOS=FALSE \
-DHOMME_BUILD_EXECS=FALSE \
-DBUILD_HOMME_TOOL=TRUE \
${e3sm_root}/components/homme

make -j4 homme_tool

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions