CrayLabs / SmartSim-workshops

Material used during workshops
GNU General Public License v3.0
1 stars 0 forks source link

Building on Swan fails #1

Closed dev-zero closed 1 year ago

dev-zero commented 1 year ago
muellert@swan:~> source /home/users/arigazzi/smartsim/bin/activate
(smartsim) muellert@swan:~> export SMARTREDIS_LIBRARY=/lus/scratch/arigazzi/smartsim-dev/SmartRedis/install
(smartsim) muellert@swan:~> cd lrz-workshop/SmartSim-workshops/20230215/src/c
(smartsim) muellert@swan:~/lrz-workshop/SmartSim-workshops/20230215/src/c> source make_app_swan.sh
-- The C compiler identification is GNU 9.3.0
-- The CXX compiler identification is GNU 9.3.0
-- Cray Programming Environment 2.7.15 C
-- Check for working C compiler: /opt/cray/pe/craype/2.7.15/bin/cc
-- Check for working C compiler: /opt/cray/pe/craype/2.7.15/bin/cc - works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Cray Programming Environment 2.7.15 CXX
-- Check for working CXX compiler: /opt/cray/pe/craype/2.7.15/bin/CC
-- Check for working CXX compiler: /opt/cray/pe/craype/2.7.15/bin/CC - works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
SMARTREDIS_LIBRARY
    linked by target "heat_steady" in directory /home/users/muellert/lrz-workshop/SmartSim-workshops/20230215/src/c

-- Generating done
CMake Generate step failed.  Build files cannot be regenerated correctly.
Scanning dependencies of target heat_steady
[ 33%] Building C object CMakeFiles/heat_steady.dir/fd2d_heat_steady_test.c.o
/home/users/muellert/lrz-workshop/SmartSim-workshops/20230215/src/c/fd2d_heat_steady_test.c:7:11: fatal error: c_client.h: No such file or directory
    7 | # include "c_client.h"
      |           ^~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/heat_steady.dir/build.make:80: CMakeFiles/heat_steady.dir/fd2d_heat_steady_test.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:93: CMakeFiles/heat_steady.dir/all] Error 2
make: *** [Makefile:101: all] Error 2
dev-zero commented 1 year ago

fixed in ec99f06