scv-1.0p2-sysc2.2 compilation error

Guest
Got this error while in make step of building SCV.
Any help is appreciated:

Linux debian 2.6.22.18-co-0.7.3 #1 PREEMPT Sat May 24 22:27:30 UTC
2008 i686 GNU/Linux
gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)

While tring to make SCV
make all-recursive
make[1]: Entering directory `/Home_2/scv-1.0p2-sysc2.2/objdir'
....
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/
backward/backwar
d_warning.h:32:2: warning: #warning This file includes at least one
deprecated o
r antiquated header. Please consider using one of the 32 headers found
in sectio
n 17.4.1.2 of the C++ standard. Examples include substituting the <X>
header for
the <X.h> header for C++ includes, or <iostream> instead of the
deprecated head
er <iostream.h>. To disable this warning use -Wno-deprecated.
.../../../src/scv/_scv_associative_array.h:273: error: specialization
of 'templat
e<class _Key> struct __gnu_cxx::hash' in different namespace
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/ext/
hash_fun.h:7
1: error: from definition of 'template<class _Key> struct
__gnu_cxx::hash'
.../../../src/scv/_scv_associative_array.h:280: error: specialization
of 'templat
e<class _Key> struct __gnu_cxx::hash' in different namespace
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/ext/
hash_fun.h:7
1: error: from definition of 'template<class _Key> struct
__gnu_cxx::hash'
make[3]: *** [scv_constraint.o] Error 1
make[3]: Leaving directory `/Home_2/scv-1.0p2-sysc2.2/objdir/src/scv'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/Home_2/scv-1.0p2-sysc2.2/objdir/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/Home_2/scv-1.0p2-sysc2.2/objdir'
make: *** [all] Error 2
 
On Sun, 22 Mar 2009 13:09:58 -0700 (PDT), beky4kr@gmail.com wrote:

Got this error while in make step of building SCV.
Any help is appreciated:
Did you try the SystemC Forum?
http://www.systemc.org/Discussion_Forums
Lots of experts hang out there, including some
colleagues of mine who really understand
this stuff (I don't!).
--
Jonathan Bromley, Consultant

DOULOS - Developing Design Know-how
VHDL * Verilog * SystemC * e * Perl * Tcl/Tk * Project Services

Doulos Ltd., 22 Market Place, Ringwood, BH24 1AW, UK
jonathan.bromley@MYCOMPANY.com
http://www.MYCOMPANY.com

The contents of this message may contain personal views which
are not the views of Doulos Ltd., unless specifically stated.
 
On Sunday, March 22, 2009 at 10:09:58 PM UTC+2, bek...@gmail.com wrote:
Got this error while in make step of building SCV.
Any help is appreciated:

Linux debian 2.6.22.18-co-0.7.3 #1 PREEMPT Sat May 24 22:27:30 UTC
2008 i686 GNU/Linux
gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)

While tring to make SCV
make all-recursive
make[1]: Entering directory `/Home_2/scv-1.0p2-sysc2.2/objdir'
...
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/
backward/backwar
d_warning.h:32:2: warning: #warning This file includes at least one
deprecated o
r antiquated header. Please consider using one of the 32 headers found
in sectio
n 17.4.1.2 of the C++ standard. Examples include substituting the <X
header for
the <X.h> header for C++ includes, or <iostream> instead of the
deprecated head
er <iostream.h>. To disable this warning use -Wno-deprecated.
../../../src/scv/_scv_associative_array.h:273: error: specialization
of 'templat
e<class _Key> struct __gnu_cxx::hash' in different namespace
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/ext/
hash_fun.h:7
1: error: from definition of 'template<class _Key> struct
__gnu_cxx::hash'
../../../src/scv/_scv_associative_array.h:280: error: specialization
of 'templat
e<class _Key> struct __gnu_cxx::hash' in different namespace
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/ext/
hash_fun.h:7
1: error: from definition of 'template<class _Key> struct
__gnu_cxx::hash'
make[3]: *** [scv_constraint.o] Error 1
make[3]: Leaving directory `/Home_2/scv-1.0p2-sysc2.2/objdir/src/scv'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/Home_2/scv-1.0p2-sysc2.2/objdir/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/Home_2/scv-1.0p2-sysc2.2/objdir'
make: *** [all] Error 2

I have seen some errors too in compilation SCV example:
The example has this complex constraint:
SCV_CONSTRAINT_CTOR(my_constraint) {
SCV_CONSTRAINT ( a() * a() + b() * b() == c() * c());
SCV_CONSTRAINT( a() > 0 && b() > 0 );
}

After some struggle, I added, to the example, a single line and got it to work.

//Pini - This file is linked later.
void _scv_pop_constraint();

Please see the example and code and makefile at
http://bknpk.ddns.net/my_web/SystemC_MyFirst/scv_cmp_err_pop_constraint.html
 

Welcome to EDABoard.com

Sponsor

Back
Top