Re: [Gems-users] Ruby compilation error (GEMS patched & SIMICS4)


Date: Sun, 10 Apr 2011 14:57:03 -0500
From: Robert Smolinski <rsmolin2@xxxxxxxxxxxx>
Subject: Re: [Gems-users] Ruby compilation error (GEMS patched & SIMICS4)
Hi Santos,

Try using a newer version of gcc. I think I had the same problem with 4.1.2 because slicc has a "define" with the same name as an internal STL variable.

Rob.

On 04/10/2011 02:49 PM, Santos G. González T. wrote:
Hi, what could be happening? When I try to compile ruby I get:

********************error code**********************
[user@host ruby]$ make PROTOCOL=MOSI_SMP_bcast DESTINATION=MOSI_SMP_bcast
ls: generated/MOSI_SMP_bcast/*.C: No such file or directory
Ruby: Building protocol: MOSI_SMP_bcast
Ruby: Making slicc
cd ../slicc; make
make[1]: Entering directory `/home/user/gems-2.1.1/slicc'
SLICC: Running flex and bison
make generated/generated
make[2]: Entering directory `/home/user/gems-2.1.1/slicc'
make[2]: `generated/generated' is up to date.
make[2]: Leaving directory `/home/user/gems-2.1.1/slicc'
SLICC: Building slicc executable
make amd64-linux/bin/slicc.exec
make[2]: Entering directory `/home/user/gems-2.1.1/slicc'
/usr/bin/g++ -o amd64-linux/obj/parser.o -c generated/parser.c -DYY_NO_UNPUT -Wall -W -Wwrite-strings -Woverloaded-virtual -Wno-unused   -m64 -march=opteron -fPIC -O2 -finline-functions -DNO_VECTOR_BOUNDS_CHECKS -DMULTIFACET_NO_OPT_WARN  -I. -I../common -Igenerated -Isymbols -Igenerator -Iast
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/tr1/hashtable:71: error: expected identifier before numeric constant
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/tr1/hashtable:71: error: expected unqualified-id before numeric constant
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/tr1/hashtable:74: error: expected identifier before numeric constant
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/tr1/hashtable:74: error: expected unqualified-id before numeric constant
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/tr1/hashtable:78: error: expected identifier before numeric constant
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/tr1/hashtable:78: error: expected unqualified-id before numeric constant
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/tr1/hashtable:165: error: expected nested-name-specifier before numeric constant
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/tr1/hashtable:165: error: expected unqualified-id before numeric constant
...
..
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/tr1/hashtable:691: error: base operand of ‘->’ has non-pointer type ‘Internal::hashtable_iterator<std::pair<Event* const, int>, false, false>’
make[2]: *** [amd64-linux/obj/parser.o] Error 1
make[2]: Leaving directory `/home/user/gems-2.1.1/slicc'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/user/gems-2.1.1/slicc'
make: *** [all] Error 2
********************end of error code**********************

Thanks in advance.


_______________________________________________ Gems-users mailing list Gems-users@xxxxxxxxxxx https://lists.cs.wisc.edu/mailman/listinfo/gems-users Use Google to search the GEMS Users mailing list by adding "site:https://lists.cs.wisc.edu/archive/gems-users/" to your search.

[← Prev in Thread] Current Thread [Next in Thread→]