(dear admin: please move this to right place, if this isn't.)
This a spring-compilation-newbie question about a specific problem during compilation/linking with v0.87 on Ubuntu 10.04.
I just wanted to get my feet a little bit more wet and tried to compile spring myself. So I downloaded the "last stable release" from git via
Code: Select all
git clone -b master git://github.com/spring/spring
So after creating a build directory and running
Code: Select all
cmake $path_to_cmakelists.txt
make
Code: Select all
CMakeFiles/engine-default.dir/__/__/System/Object.cpp.o: In function `Threading::AtomicCounterInt64::operator++()':
~/spring/rts/System/Platform/Threading.h:111: undefined reference to `__sync_fetch_and_add_8'
~/spring/rts/System/Platform/Threading.h:111: undefined reference to `__sync_fetch_and_add_8'
I checked the file Threading.h and was slightly surprised that this function doesn't exist; the name is different. The line reads
Code: Select all
111 return __sync_fetch_and_add(&num, boost::int64_t(1));
After some research (google, forum, dev pages) without fruition I thought I might ask here. What's going wrong and how can I fix it?
The system is more or less vanilla Ubuntu 10.04.4 (gcc 4.4.3-4ubuntu5, boost1.40, etc.).
Anybody an idea?