使用COMPS构建C / C ++应用程序时出错:硬编码路径

时间:2016-07-25 12:26:07

标签: distributed-computing hpc compss

我正在尝试构建使用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!

1 个答案:

答案 0 :(得分:3)

这是从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