Closed hoangyenan closed 9 years ago
Thanks - I can repro, on it.
Sorry, actually cannot repro (only the warnings, that I just fixed).
Can you try install gcc-4.9? I followed instructions here, and it was very easy: https://wiki.helsinki.fi/display/HUGG/Installing+the+GNU+compilers+on+Mac+OS+X#InstallingtheGNUcompilersonMacOSX-InstructionsforMacOS10.10(Yosemite)withXcode6
You might also have a mismatch with your library/header paths.
Hi Akyrola,
I tried to install the gcc-4.9 using the instructions given by you. But I got new error when run the "make" again:
g++ -g -O3 -I/usr/local/include/ -I./src/ -fopenmp -Wall -Wno-strict-aliasing -Iexample_apps/ example_apps/connectedcomponents.cpp -o bin/example_apps/connectedcomponents -lz example_apps/connectedcomponents.cpp:47:17: fatal error: cmath: No such file or directory
^
compilation terminated. make: *\ [example_apps/connectedcomponents] Error 1
Can you please advise. Thanks
Hi, that is a issue with basic C++ compilation. Please google the problem :).
Hi all,
I tried to install the Graphchi-cpp on my Macbook (Yosemite). Even though I followed all the steps given for MacOS, i.e installed apple-gcc42, modifying the Makefile as CPP = g++-4.2, I still got error and cannot install the Graphchi-cpp The error is below:
An-Vo:graphchi-cpp-master DANIEL_VO$ make g++-4.2 -g -O3 -I/usr/local/include/ -I./src/ -fopenmp -Wall -Wno-strict-aliasing -Iexample_apps/ example_apps/connectedcomponents.cpp -o bin/example_apps/connectedcomponents -lz couldn't understand kern.osversion `14.0.0' In file included from ./src/metrics/metrics.hpp:40, from ./src/io/stripedio.hpp:48, from ./src/api/vertex_aggregator.hpp:42, from ./src/graphchi_basic_includes.hpp:43, from example_apps/connectedcomponents.cpp:50: ./src/util/pthread_tools.hpp: In constructor ‘graphchi::semaphore::semaphore()’: ./src/util/pthread_tools.hpp:161: warning: ‘sem_init’ is deprecated (declared at /usr/include/sys/semaphore.h:55) ./src/util/pthread_tools.hpp:161: warning: ‘sem_init’ is deprecated (declared at /usr/include/sys/semaphore.h:55) ./src/util/pthread_tools.hpp: In destructor ‘graphchi::semaphore::~semaphore()’: ./src/util/pthread_tools.hpp:173: warning: ‘sem_destroy’ is deprecated (declared at /usr/include/sys/semaphore.h:53) ./src/util/pthread_tools.hpp:173: warning: ‘sem_destroy’ is deprecated (declared at /usr/include/sys/semaphore.h:53) ./src/api/chifilenames.hpp: At global scope: ./src/api/chifilenames.hpp: In instantiation of ‘std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char, _Traits = std::char_traits, _Alloc = std::allocator]’:
./src/api/chifilenames.hpp:79: instantiated from here
./src/api/chifilenames.hpp:79: error: explicit instantiation of ‘std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char, _Traits = std::char_traits, _Alloc = std::allocator]’ but no definition available
./src/api/chifilenames.hpp: In instantiation of ‘std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char, _Traits = std::char_traits, _Alloc = std::allocator]’:
./src/api/chifilenames.hpp:79: instantiated from here
./src/api/chifilenames.hpp:79: error: explicit instantiation of ‘std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char, _Traits = std::char_traits, _Alloc = std::allocator]’ but no definition available
./src/api/chifilenames.hpp: In instantiation of ‘std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char, _Traits = std::char_traits, _Alloc = std::allocator]’:
./src/api/chifilenames.hpp:79: instantiated from here
./src/api/chifilenames.hpp:79: error: explicit instantiation of ‘std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char, _Traits = std::char_traits, _Alloc = std::allocator]’ but no definition available
./src/api/chifilenames.hpp: In instantiation of ‘std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char, _Traits = std::char_traits, _Alloc = std::allocator]’:
./src/api/chifilenames.hpp:79: instantiated from here
./src/api/chifilenames.hpp:79: error: explicit instantiation of ‘std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char, _Traits = std::char_traits, _Alloc = std::allocator]’ but no definition available
make: *\ [example_apps/connectedcomponents] Error 1
It shows some error in the file ./src/api/chifilenames.hpp, but I could not find the error there. Please kindly advise.
Bests, An Vo