使用 COMPS 构建 C/C++ 应用程序时出错:硬编码路径
Error building a C/C++ application with COMPSs: Hardcoded path
我正在尝试构建一个使用 C/C++ 绑定开发的 COMPS 应用程序。当我构建应用程序时,出现以下错误。您知道我该如何解决这个问题吗?
xxxx:~/xxx/c/increment> buildapp increment
*---------------------------------------------------------------------*
* *
* BSC - Barcelona Supercomputing Center *
* COMP Superscalar *
* *
* C/C++ Applications - BUILD SCRIPT *
* *
* *
* More information at COMP Superscalar Website: http://compss.bsc.es *
* *
* Support: support-compss@bsc.es *
* *
* Dependencies: csh (sudo apt-get install csh) *
* *
*---------------------------------------------------------------------*
ARCH: amd64
SUBFLDR: server
Cleaning intermediate files...
rm -f *.o
Building application for master...
g++ -DCOMPSS_MASTER -std=c++11 -g -I. -I/opt/COMPSs/Bindings/c/include -I/opt/COMPSs/Bindings/bindings-common/include -c example.cc
ar rvs libmaster.a example.o
ar: creating libmaster.a
a - example.o
ranlib libmaster.a
Building application for workers...
g++ -DCOMPSS_WORKER -std=c++11 -g -I. -I/opt/COMPSs/Bindings/c/include -I/opt/COMPSs/Bindings/bindings-common/include -c example.cc
ar rvs libworker.a example.o
ar: creating libworker.a
a - example.o
ranlib libworker.a
Deploying lib files...
/home/jorgee/margarita_svn/bar/tutorial_apps/c/increment
Building all:
Building Master...
The master directory already exists from a previous build. Removing.
/usr/bin/cp: cannot stat ‘/home/cramonco/svn/compss/framework/tags/1.4/builders/specs/rpm/compss-c-binding/tmp/BUILDROOT/compss-c-binding-1.4-1.x86_64/opt/COMPSs/Bindings/c/share/compsuperscalar/build/c/master/Makefile.am’: No such file or directory
ERROR: Command exited with status 1.
Building binding failed, please check errors above!
这是从 deb 或 rpm 包安装时出现的问题。一些脚本已经安装了编译路径。要解决它,您有两个选择:
从源重新安装 1.4 补丁版本:
wget http://compss.bsc.es/releases/compss/1.4/patches/COMPSs_1.4_07_update.tgz
tar zxvf COMPSs_1.4_07_update.tgz
cd 1.4_07/builders
sudo -E ./buildlocal
或者执行以下命令
sudo sed -i "s|$HOME/svn/compss/framework/tags/1.4/builders/specs/rpm/compss-c-binding/tmp/BUILDROOT/compss-c-binding-1.4-1.x86_64||g" /opt/COMPSs/Bindings/c/bin/gsbuild
我正在尝试构建一个使用 C/C++ 绑定开发的 COMPS 应用程序。当我构建应用程序时,出现以下错误。您知道我该如何解决这个问题吗?
xxxx:~/xxx/c/increment> buildapp increment
*---------------------------------------------------------------------*
* *
* BSC - Barcelona Supercomputing Center *
* COMP Superscalar *
* *
* C/C++ Applications - BUILD SCRIPT *
* *
* *
* More information at COMP Superscalar Website: http://compss.bsc.es *
* *
* Support: support-compss@bsc.es *
* *
* Dependencies: csh (sudo apt-get install csh) *
* *
*---------------------------------------------------------------------*
ARCH: amd64
SUBFLDR: server
Cleaning intermediate files...
rm -f *.o
Building application for master...
g++ -DCOMPSS_MASTER -std=c++11 -g -I. -I/opt/COMPSs/Bindings/c/include -I/opt/COMPSs/Bindings/bindings-common/include -c example.cc
ar rvs libmaster.a example.o
ar: creating libmaster.a
a - example.o
ranlib libmaster.a
Building application for workers...
g++ -DCOMPSS_WORKER -std=c++11 -g -I. -I/opt/COMPSs/Bindings/c/include -I/opt/COMPSs/Bindings/bindings-common/include -c example.cc
ar rvs libworker.a example.o
ar: creating libworker.a
a - example.o
ranlib libworker.a
Deploying lib files...
/home/jorgee/margarita_svn/bar/tutorial_apps/c/increment
Building all:
Building Master...
The master directory already exists from a previous build. Removing.
/usr/bin/cp: cannot stat ‘/home/cramonco/svn/compss/framework/tags/1.4/builders/specs/rpm/compss-c-binding/tmp/BUILDROOT/compss-c-binding-1.4-1.x86_64/opt/COMPSs/Bindings/c/share/compsuperscalar/build/c/master/Makefile.am’: No such file or directory
ERROR: Command exited with status 1.
Building binding failed, please check errors above!
这是从 deb 或 rpm 包安装时出现的问题。一些脚本已经安装了编译路径。要解决它,您有两个选择:
从源重新安装 1.4 补丁版本:
wget http://compss.bsc.es/releases/compss/1.4/patches/COMPSs_1.4_07_update.tgz
tar zxvf COMPSs_1.4_07_update.tgz
cd 1.4_07/builders
sudo -E ./buildlocal
或者执行以下命令
sudo sed -i "s|$HOME/svn/compss/framework/tags/1.4/builders/specs/rpm/compss-c-binding/tmp/BUILDROOT/compss-c-binding-1.4-1.x86_64||g" /opt/COMPSs/Bindings/c/bin/gsbuild