在使用 --fast 标志编译时,我 运行 遇到一个我不确定的错误

While compiling with --fast flag, I ran into a error I am not sure of

我第一次使用 --fast 标志时遇到了这个错误

warning: --specialize was set, but CHPL_TARGET_CPU is 'unknown'. 
If you want any specialization to occur please set CHPL_TARGET_CPU to a proper value.

所以我输入了这个指令

export CHPL_TARGET_CPU=aarch64

因为它是我的 Jetson Nano 开发板的架构

然后我得到这个错误:

/home/chico/chapel-1.20.0/third-party/gasnet/Makefile.setup:6: /home/chico/chapel-1.20.0/third-party/gasnet/install/linux64-gnu-aarch64-none/substrate-udp/seg-everything/nodbg/include/udp-
conduit/udp-par.mak: No such file or directory
make: *** No rule to make target '/home/chico/chapel-1.20.0/third-party/gasnet/install/linux64-gnu-aarch64-none/substrate-udp/seg-everything/nodbg/include/udp-conduit/udp-par.mak'. Stop
.error: compiling generated source

我在尝试编译我的代码后没有得到可执行文件。

此错误是一个(不好的)迹象,表明尚未为您当前的 CHPL_* 配置构建 Chapel 运行时,在这种情况下,对 CHPL_TARGET_CPU 的更改是问题所在。如果您在 CHPL_TARGET_CPU 仍然设置时执行 cd $CHPL_HOME && make(或 gmake),运行时将根据您的当前设置重建,并且在重新编译 Chapel 程序时,错误应该消失。

请注意,Chapel 的多个版本可以通过不同的 CHPL_TARGET_CPU 设置同时共存。