bsc-pm / nanox

Nanos++ is a runtime designed to serve as runtime support in parallel environments. It is mainly used to support OmpSs, a extension to OpenMP developed at BSC.

Home Page:https://pm.bsc.es/nanox

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

build fails when chapel is set

Alessandro-Barbieri opened this issue · comments

  CC       chapel/libnanox_chpl_init_a-chpl_init.o
In file included from chapel/chpl_init.c:20:
../../src/core/nanos-int.h:166:1: error: unknown type name ‘namespace’
 namespace nanos {
 ^~~~~~~~~
../../src/core/nanos-int.h:166:17: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
 namespace nanos {
                 ^
../../src/core/nanos-int.h:170:14: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token
 typedef nanos::DataAccess nanos_data_access_t;
              ^
../../src/core/nanos-int.h:171:14: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token
 typedef nanos::CopyData nanos_copy_data_t;
              ^
In file included from chapel/chpl_nanos.h:42,
                 from chapel/chpl_init.c:21:
/opt/chapel/runtime/include/chpltypes.h:142:10: fatal error: chpl-locale-model.h: File o directory non esistente
 #include "chpl-locale-model.h"
          ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[3]: *** [Makefile:1457: chapel/libnanox_chpl_init_a-chpl_init.o] Error 1

you can found chpl-locale-model.h in the subdirectories localeModels/xxx
even configuring with

CFLAGS="-I/opt/chapel/runtime/include/Locale/Models/flat" CXXFLAGS="-I/opt/chapel/runtime/include/Locale/Models/flat" CC="gcc -I/opt/chapel/runtime/include/Locale/Models/flat" CXX="g++ -I/opt/chapel/runtime/include/Locale/Models/flat"

didn't work

The Chapel port of the runtime was discontinued several years ago. Creating an issue on the original repository to clean up all these files.