digego / extempore

A cyber-physical programming environment
1.4k stars 127 forks source link

Building on Ubuntu 14.04.3 fails #231

Closed mrmagooey closed 8 years ago

mrmagooey commented 8 years ago
[100%] Building CXX object CMakeFiles/extempore.dir/src/UNIV.cpp.o
Linking CXX executable extempore
CMakeFiles/extempore.dir/src/EXTLLVM.cpp.o: In function `extemp::EXTLLVM::initLLVM()':
EXTLLVM.cpp:(.text+0x5564): undefined reference to `std::regex_iterator<__gnu_cxx::__normal_iterator<char const*, std::string>, char, std::regex_traits<char> >::regex_iterator(__gnu_cxx::__normal_iterator<char const*, std::string>, __gnu_cxx::__normal_iterator<char const*, std::string>, std::basic_regex<char, std::regex_traits<char> > const&, std::bitset<11ul>)'
EXTLLVM.cpp:(.text+0x556c): undefined reference to `std::regex_iterator<__gnu_cxx::__normal_iterator<char const*, std::string>, char, std::regex_traits<char> >::regex_iterator()'
EXTLLVM.cpp:(.text+0x5577): undefined reference to `std::regex_iterator<__gnu_cxx::__normal_iterator<char const*, std::string>, char, std::regex_traits<char> >::regex_iterator(std::regex_iterator<__gnu_cxx::__normal_iterator<char const*, std::string>, char, std::regex_traits<char> > const&)'
EXTLLVM.cpp:(.text+0x55a7): undefined reference to `std::regex_iterator<__gnu_cxx::__normal_iterator<char const*, std::string>, char, std::regex_traits<char> >::operator!=(std::regex_iterator<__gnu_cxx::__normal_iterator<char const*, std::string>, char, std::regex_traits<char> > const&)'
EXTLLVM.cpp:(.text+0x55b7): undefined reference to `std::regex_iterator<__gnu_cxx::__normal_iterator<char const*, std::string>, char, std::regex_traits<char> >::operator*()'
EXTLLVM.cpp:(.text+0x5791): undefined reference to `std::regex_iterator<__gnu_cxx::__normal_iterator<char const*, std::string>, char, std::regex_traits<char> >::operator++()'
collect2: error: ld returned 1 exit status
make[2]: *** [extempore] Error 1
make[1]: *** [CMakeFiles/extempore.dir/all] Error 2
make: *** [all] Error 2

g++ --version

➜  cmake-build git:(master) g++ --version
g++ (Ubuntu 4.8.4-2ubuntu1~14.04) 4.8.4
Copyright (C) 2013 Free Software Foundation, Inc.
munshkr commented 8 years ago

So I had the same problem, and it seems LLVM needs gcc 4.9+. See this thread. Also, these steps worked for me.

benswift commented 8 years ago

Yep, that's right. Like I said, I have a patch here which removes the need for 4.9, but I haven't had the time to merge it in with the big changes which landed last week. Sorry about that. Will try and get it up asap.

Cheers, Ben

Damián Silvani notifications@github.com writes:

So I had the same problem, and it seems LLVM needs gcc 4.9+. See this thread. Also, these steps worked for me.


Reply to this email directly or view it on GitHub: https://github.com/digego/extempore/issues/231#issuecomment-173762845

munshkr commented 8 years ago

@benswift Thank you! I've just tried it on a different computer (still Ubuntu 14.04) which had the same gcc 4.8.4 and I confirm it compiles without problems :) Still having this issue though, but I guess it's something else.

benswift commented 8 years ago

No worries mate.

Damián Silvani notifications@github.com writes:

@benswift Thank you! I've just tried it on a different computer (still Ubuntu 14.04) which had the same gcc 4.8.4 and I confirm it compiles without problems :) Still having this issue though, but I guess it's something else.


Reply to this email directly or view it on GitHub: https://github.com/digego/extempore/issues/231#issuecomment-173992527

digego commented 8 years ago

should now be fixed in head.