Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I cannot build it. #9

Open
sprvgt opened this issue May 6, 2015 · 2 comments
Open

I cannot build it. #9

sprvgt opened this issue May 6, 2015 · 2 comments

Comments

@sprvgt
Copy link

sprvgt commented May 6, 2015

Here is the error message:

xuzhan@markTwo:~/lab/distributedR/DistributedR-master$ make
make -C third_party -j8 all
make[1]: Entering directory '/home/xuzhan/lab/distributedR/DistributedR-master/third_party'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/xuzhan/lab/distributedR/DistributedR-master/third_party'
mkdir -p /home/xuzhan/lab/distributedR/DistributedR-master/lib
g++ platform/common/ArrayData.o platform/common/WorkerInfo.o platform/common/DistDataFrame.o platform/common/TransferServer.o platform/common/common.o platform/common/MasterClient.o platform/common/DistList.o -std=c++0x -g -O2 -fopenmp -finline-limit=10000 -DNDEBUG -DBOOST_LOG_DYN_LINK -DCSTACK_DEFNS -DHAVE_NETINET_IN_H -DHAVE_INTTYPES_H -I /home/xuzhan/lab/distributedR/DistributedR-master/third_party/install/include -I /home/xuzhan/lab/distributedR/DistributedR-master/platform/messaging/gen-cpp -I /home/xuzhan/lab/distributedR/DistributedR-master/third_party/boost_threadpool/threadpool -I /home/xuzhan/lab/distributedR/DistributedR-master/third_party/atomicio -I platform/common /usr/lib/R/bin/R CMD config --cppflags Rscript -e "Rcpp:::CxxFlags()" Rscript -e "RInside:::CxxFlags()" -lm -rdynamic -L /home/xuzhan/lab/distributedR/DistributedR-master/lib -Wl,-rpath,/home/xuzhan/lab/distributedR/DistributedR-master/lib /usr/lib/R/bin/R CMD config --ldflags -lpthread -L/home/xuzhan/lab/distributedR/DistributedR-master/third_party/install/lib -Wl,-rpath,/home/xuzhan/lab/distributedR/DistributedR-master/third_party/install/lib -lboost_thread -lboost_system -lboost_log -lboost_log_setup -lboost_chrono -lboost_filesystem -lboost_date_time -L /home/xuzhan/lab/distributedR/DistributedR-master/third_party/atomicio -Wl,-rpath,/home/xuzhan/lab/distributedR/DistributedR-master/third_party/atomicio -latomicio Rscript -e "Rcpp:::LdFlags()" Rscript -e "RInside:::LdFlags()" -lrt -Wno-deprecated-declarations -DSTRICT_R_HEADERS -fPIC -shared -o /home/xuzhan/lab/distributedR/DistributedR-master/lib/libR-common.so /home/xuzhan/lab/distributedR/DistributedR-master/third_party/install/lib/libprotobuf.a -lR-proto /home/xuzhan/lab/distributedR/DistributedR-master/third_party/install/lib/libzmq.a /home/xuzhan/lab/distributedR/DistributedR-master/third_party/install/lib/libuuid.a
platform/common/DistDataFrame.o:(.bss+0x0): multiple definition of R_running_as_main_program' platform/common/ArrayData.o:(.bss+0x10): first defined here platform/common/DistList.o:(.bss+0x0): multiple definition ofR_running_as_main_program'
platform/common/ArrayData.o:/home/xuzhan/lab/distributedR/DistributedR-master/platform/common/ArrayData.cpp:452: first defined here
collect2: error: ld returned 1 exit status
build.mk:41: recipe for target '/home/xuzhan/lab/distributedR/DistributedR-master/lib/libR-common.so' failed
make: *** [/home/xuzhan/lab/distributedR/DistributedR-master/lib/libR-common.so] Error 1

@sprvgt
Copy link
Author

sprvgt commented May 6, 2015

I'm using Debian:

here is my uname -a info:

Linux markTwo 3.16-3-amd64 #1 SMP Debian 3.16.5-1 (2014-10-10) x86_64 GNU/Linux

And my compiler is:

gcc --version
gcc (Debian 4.9.2-10) 4.9.2
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

@fun-indra
Copy link
Contributor

What version of R are you using? If you are using R 3.2, can you try with R 3.1 or R 3.0?
We have not tested the code with R 3.2 since it was released only last month.

@VinXu123 VinXu123 assigned VinXu123 and unassigned VinXu123 Jun 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants