Trying to build SFM, stuck

101 views
Skip to first unread message

Thom

unread,
Dec 13, 2011, 10:21:43 PM12/13/11
to SuperFastMatch
Hi all,

I'm a little bit new to compiling with C++, and I'm trying to get SFM
running on Ubuntu 11.04. The bootstrap script worked, and then I did
"sudo ldconfig." Then I did "make check" and it gave me this:

-------------------
thom@thom-desktop:~/opt/superfastmatch$ make check
g++ -Isrc -Itests -I/usr/local/ -Itests/utils/ -c -Wall -Wextra -
funsigned-char -m64 -mtune=native -O3 -g src/worker.cc -o src/worker.o
In file included from /usr/include/c++/4.5/bits/stl_tree.h:62:0,
from /usr/include/c++/4.5/map:60,
from src/worker.h:4,
from src/worker.cc:1:
/usr/include/c++/4.5/bits/stl_algobase.h:60:28: fatal error: bits/c+
+config.h: No such file or directory
compilation terminated.
make: *** [src/worker.o] Error 1
--------------------

Any idea what I'm doing wrong? I get the same thing with these:

make check -I/usr/include/c++/4.5/i486-linux-gnu/
make check -I/usr/include/c++/4.5/i686-linux-gnu/

There's a bits/c++config.h in each of those folders. Spidey senses
tell me I'm missing something basic...

Thanks!

Thom

Donovan Hide

unread,
Dec 13, 2011, 11:16:34 PM12/13/11
to superfa...@googlegroups.com
Hi Thom,

thanks for trying out Superfastmatch! Looks like you might have
stumbled on this issue with GCC 4.5:

https://bugs.launchpad.net/ubuntu/+source/gcc-4.5/+bug/793411
http://stackoverflow.com/questions/4643197/missing-include-bits-cconfig-h-when-cross-compiling-64-bit-program-on-32-bit

Are you running a 32-bit version of Ubuntu 11.04? SFM is mainly
intended (well at least tested!) for 64-bit OS's due to its memory
requirements.

If you could paste the results of running:

uname -a

That would be really helpful. Also looks like the above bug was fixed,
so maybe give:

sudo apt-get update && sudo apt-get upgrade

a try too and run make check again

Cheers,
Donny.

Thom Neale

unread,
Dec 14, 2011, 9:36:31 PM12/14/11
to superfa...@googlegroups.com
Hi Donny, thanks for your response. Yes, I'm running 32-bit Ubuntu. This is probably the inducement I need to switch to 64. I almost switched for mongo a few months ago, but I never ended up creating a local database larger than 2 gigs. Time to switch! I'll post again if I hit any snags. Thanks for your help,

Thom

ps - uname -u output:

"Linux thom-desktop 2.6.38-13-generic-pae #52-Ubuntu SMP Tue Nov 8 17:50:45 UTC 2011 i686 i686 i386 GNU/Linux"
Reply all
Reply to author
Forward
0 new messages