Skip to content

Cannot build grappa applications #278

@rfvander

Description

@rfvander

I downloaded the latest version of grappa and am trying to build it using the instructions in build.md, but I am experiencing trouble. My environment is listed below.
[rfvander@esgmonster grappa-source]$ ruby -v
ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-linux]
[rfvander@esgmonster grappa-source]$ cmake -version
cmake version 2.8.12.2
[rfvander@esgmonster grappa-source]$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/opt/gcc/4.9.2/libexec/gcc/x86_64-unknown-linux-gnu/4.9.2/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: /home/jrhammon/Work/GCC/gcc-4.9.2/configure --disable-multilib --enable-threads=posix --enable-checking=release --enable-__cxa_atexit --enable-languages=c,c++,fortran --with-tune=native --enable-bootstrap --enable-lto --prefix=/opt/gcc/4.9.2 --with-isl --with-cloog
Thread model: posix
gcc version 4.9.2 (GCC)
[rfvander@esgmonster Synch_p2p]$ g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/opt/gcc/4.9.2/libexec/gcc/x86_64-unknown-linux-gnu/4.9.2/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: /home/jrhammon/Work/GCC/gcc-4.9.2/configure --disable-multilib --enable-threads=posix --enable-checking=release --enable-__cxa_atexit --enable-languages=c,c++,fortran --with-tune=native --enable-bootstrap --enable-lto --prefix=/opt/gcc/4.9.2 --with-isl --with-cloog
Thread model: posix
gcc version 4.9.2 (GCC)
[rfvander@esgmonster grappa-source]$ mpicc -v
mpigcc for the Intel(R) MPI Library 5.1.2 for Linux*
Copyright(C) 2003-2015, Intel Corporation. All rights reserved.
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/opt/gcc/4.9.2/libexec/gcc/x86_64-unknown-linux-gnu/4.9.2/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: /home/jrhammon/Work/GCC/gcc-4.9.2/configure --disable-multilib --enable-threads=posix --enable-checking=release --enable-__cxa_atexit --enable-languages=c,c++,fortran --with-tune=native --enable-bootstrap --enable-lto --prefix=/opt/gcc/4.9.2 --with-isl --with-cloog
Thread model: posix
gcc version 4.9.2 (GCC)
[rfvander@esgmonster grappa-source]$ mpicxx -v
mpigxx for the Intel(R) MPI Library 5.1.2 for Linux*
Copyright(C) 2003-2015, Intel Corporation. All rights reserved.
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/opt/gcc/4.9.2/libexec/gcc/x86_64-unknown-linux-gnu/4.9.2/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: /home/jrhammon/Work/GCC/gcc-4.9.2/configure --disable-multilib --enable-threads=posix --enable-checking=release --enable-__cxa_atexit --enable-languages=c,c++,fortran --with-tune=native --enable-bootstrap --enable-lto --prefix=/opt/gcc/4.9.2 --with-isl --with-cloog
Thread model: posix
gcc version 4.9.2 (GCC)

When I now follow your instructions and try to build grappa, this is what happens (no errors reported when building grappa itself)
\rm -rf build
./configure --prefix=~/grappa --cc=gcc --cxx=g++
cd build/Make+Release/
make
make install
source /home/rfvander/grappa/bin/settings.sh
cd ~/esg-prk-devel/GRAPPA/Synch_p2p
[rfvander@esgmonster Synch_p2p]$ make p2p
/opt/gcc/4.9.2/bin/g++ -O3 -std=c99 -DGRAPPA -DENABLE_RDMA_AGGREGATOR -std=c++11 -Winline -Wno-inline -mno-red-zone -O3 -g -DNDEBUG -I/home/rfvander/grappa/include -I/home/rfvander/grappa/include/Grappa -I/home/rfvander/grappa/include/Grappa/tasks -I/opt/intel/compilers_and_libraries_2016.1.150/linux/mpi/intel64/include -I/usr/local/include -I../../include -c p2p.cpp
cc1plus: warning: command line option ‘-std=c99’ is valid for C/ObjC but not for C++
/opt/gcc/4.9.2/bin/g++ -o p2p -L/home/rfvander/grappa/lib -L/usr/local/lib -L/opt/intel/compilers_and_libraries_2016.1.150/linux/mpi/intel64/lib -L/opt/intel/compilers_and_libraries_2016.1.150/linux/mpi/intel64/lib/release_mt -L/usr/lib64 -O3 -std=c99 -DGRAPPA p2p.o -Wl,-Bstatic -lGrappa -lglog -lgflags -lgraph500-generator -lboost_system -lboost_filesystem -Wl,-Bdynamic -lmpicxx -lmpifort -lmpi -lmpigi -ldl -lrt -lpthread
/home/rfvander/grappa/lib/libglog.a(libglog_la-utilities.o): In function google::GetStackTrace(void**, int, int)': utilities.cc:(.text+0x70a): undefined reference to_Ux86_64_getcontext'
utilities.cc:(.text+0x723): undefined reference to _ULx86_64_init_local' utilities.cc:(.text+0x776): undefined reference to_ULx86_64_get_reg'
utilities.cc:(.text+0x7c6): undefined reference to `_ULx86_64_step'
collect2: error: ld returned 1 exit status
make: *** [p2p] Error 1

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions