SCons cannot find neither Boost nor TR1 on gcc 4.2.4 / Ubuntu 8.04
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MCT |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I have downloaded MCT 1.1.1 and tried installing it.
I have also installed the boost library.
However on running scons (sudo scons install) I get the following error:
Checking for C++ type std::hash <int>... (cached) no
Checking for C++ type std::tr1::hash <int>... (cached) no
Checking for C++ type boost::hash <int>... (cached) no if not hash_header:
raise Exit ("*** error ***: no known hash function provider found")
*** error ***: no known hash function provider found
I also ran with cache-disable option for scons but it did not help.
However, when I comment these following 2 lines in SConstruct , it just goes fine
if not hash_header:
raise Exit ("*** error ***: no known hash function provider found")
Can you please attach 'config.log' file after running SCons?
Note that G++ 4.2 has a TR1 implementation that should be enough. E.g. here (Debian unstable) I have 4.1 and it works fine:
$ CXX=g++-4.1 scons
scons: Reading SConscript files ...
Checking for C++ type std::hash <int>... no
Checking for C++ type std::tr1::hash <int>... yes
And from 'config.log' I see it really uses 4.1:
... temp/conftest_ 1.o -c -pedantic -Wno-long-long -Wall -Wno-unused -I. .sconf_ temp/conftest_ 1.cpp temp/conftest_ 1 .sconf_ temp/conftest_ 1.o
g++-4.1 -o .sconf_
g++-4.1 -o .sconf_
scons: Configure: yes