[Gems-users] Ruby compilation problem with Fedora Core 5


Date: Sat, 20 Oct 2007 12:29:35 +0530 (IST)
From: anup_m@xxxxxxxxxxxxxxxxxxx
Subject: [Gems-users] Ruby compilation problem with Fedora Core 5
I am trying to compile ruby on Fedora Core 5 (gcc version 4.1.0).
I changed the path for g++ in Makefile.common in common dir. While
compiling I am getting following error:-

*****Errors *********
.
..
...
generated/parser.h:47: error: expected identifier before ?void?
generated/parser.h:47: error: expected `}' before ?void?
generated/parser.h:47: error: expected unqualified-id before ?=? token
generated/parser.h:92: error: expected declaration before ?}? token
make[2]: *** [x86-linux/obj/lexer.o] Error 1
make[2]: Leaving directory `/home/anup/workspace/gems-2.0/slicc'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/anup/workspace/gems-2.0/slicc'
make: *** [all] Error 2
[anup@shani ruby]$

***************************

Is it that I need to install gcc-3.4.1 ?


Regards,
Anup Mandvariya





---------------------------- Original Message ----------------------------
Subject: Re: [Gems-users] Ruby compilation problem with Fedora Core 6
From:    "Dan Gibson" <degibson@xxxxxxxx>
Date:    Sat, October 20, 2007 1:26 am
To:      "Gems Users" <gems-users@xxxxxxxxxxx>
--------------------------------------------------------------------------

You mentioned that you had installed gcc for 'x86-linux' -- that raised
red flags for me.
I would expect you could find an 'amd64-linux' target for GCC via GNU,
or better yet, via a fresh install of linux (usually more
stable/usable/happy than a re-install of GCC).

Regards,
Dan

Lide Duan wrote:
> Thank you, Dan.
>
> Do you mean the gcc I installed does not support 64-bit system?
> Emm...that might be right since I didn't make a change when
> configuring the gcc as I installed it on 32-bit SuSE.  What would you
> suggest about the the options and targets when configuring gcc on this
> 64-bit Fedora Core 6 system?
>
> Thanks,
> Lide
>
> On 10/19/07, *Dan Gibson* <degibson@xxxxxxxx
> <mailto:degibson@xxxxxxxx>> wrote:
>
>     We also use 8-core intel machines, which still identify as
>     amd64-linux -- no problem there.
>     Did you install a 32-bit compiler (x86-linux)? That could be
>     problematic...
>     The problem looks like its arising when dealing with <string>,
>     which to me suggests a compiler issue.
>
>     Regards,
>     Dan
>
>     Lide Duan wrote:
>>     Hello,
>>
>>     I have been using GEMS for some days. All the related research
>>     was on SuSE 10 with GEMS1.4 and Simics2.2.19, and everything
>>     worked fine. Now I need to install GEMS1.4 on an Intel 8-core
>>     server which runs Fedora Core 6 system (64bit). I followed the
>>     steps I previously performed on SuSE, including installation of
>>     gcc3.4.1 and Simics2.2.19 for x86-linux. However, when I tried to
>>     make the MOESI_CMP_directory, I got the following errors:
>>
>>     Writing C files...
>>     terminate called after throwing an instance of 'std::length_error'
>>       what():  basic_string::_S_create
>>     make[1]: *** [generated/MOESI_CMP_directory/generated] Aborted
>>     make[1]: Leaving directory `/home/duan/GEMS1.4_copy/ruby'
>>     make: *** [all] Error 2
>>
>>     Is it a problem due to using the server system? I also noticed
>>     that in common/Makefile.common GEMS treats the HOST_TYPE as
>>     amd64-linux, but it's definitely an Intel machine. Anybody has
>>     some idea?
>>
>>     Thank you.
>>
>>     Lide
>>     ------------------------------------------------------------------------
>>
>>     _______________________________________________
>>     Gems-users mailing list
>>     Gems-users@xxxxxxxxxxx <mailto: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/
>>      <https://lists.cs.wisc.edu/archive/gems-users/>" to your search.
>>
>>
>
>     _______________________________________________
>     Gems-users mailing list
>     Gems-users@xxxxxxxxxxx <mailto: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.
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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.
>
>

_______________________________________________
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→]
  • [Gems-users] Ruby compilation problem with Fedora Core 5, anup_m <=