MCT

MCT build problems

Asked by Govind

Greetings,

I plan to use the cache part of MCT.

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")

I was not sure if it has been properly installed, any pointers will be appreciated.

Question information

Language:
English Edit question
Status:
Invalid
For:
MCT Edit question
Assignee:
No assignee Edit question
Solved by:
Paul Pogonyshev
Solved:
Last query:
Last reply:
Revision history for this message
Paul Pogonyshev (doublep) said :
#1

What platform i.e. OS and the C++ compiler do you use?

MCT can in principle be installed without any specific hash provider, but it will be quite useless (won't compile), unless you specify one at inclusion time. See 'Inclusion-Time Configuration' documentation section for details. Also see INSTALL file; since your compiler apparently doesn't provide TR1 standard hash function, you can use Boost Functional library.

Revision history for this message
Govind (sgovind) said :
#2

Hello,

Thanks for the response. Much appreciated.
I have solved it.
I am using gcc 4.2.4 (I guess starting with gcc 4.3 TR1 is
standardized), and I am running on Ubuntu 8.04 Hardy.

For some reason, the configuration script could not detect my boost library.
I have hard coded "hash_header" and "hash_namespace" to point to boost
library in the SConstruct file.

Thanks & Regards
Govind

On 10 July 2010 21:38, Paul Pogonyshev
<email address hidden> wrote:
> Your question #117273 on MCT changed:
> https://answers.launchpad.net/libmct/+question/117273
>
>    Status: Open => Needs information
>
> Paul Pogonyshev requested for more information:
> What platform i.e. OS and the C++ compiler do you use?
>
> MCT can in principle be installed without any specific hash provider,
> but it will be quite useless (won't compile), unless you specify one at
> inclusion time.  See 'Inclusion-Time Configuration' documentation
> section for details.  Also see INSTALL file; since your compiler
> apparently doesn't provide TR1 standard hash function, you can use Boost
> Functional library.
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/libmct/+question/117273
>
> You received this question notification because you are a direct
> subscriber of the question.
>

Revision history for this message
Paul Pogonyshev (doublep) said :
#3

Rejecting the question as it is rather a bug (see the linked one).