Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Need SimpleScalar GCC Compiler

242 views
Skip to first unread message

TastyWheat

unread,
Oct 31, 2006, 9:29:15 PM10/31/06
to
My partner and I are doing a project involving SimpleScalar. We need
to make a program of our own to use with sim-cache. I'm under the
impression it's a simple matter of creating an executable with
"ssbig-na-sstrix-gcc". However, I have no idea where to get this
compiler. It's not in simplesim, simpletools, or simpleutils (as far
as we know).

How and where can we get this compiler?

shaolin.xie

unread,
Nov 1, 2006, 7:47:54 PM11/1/06
to
Visit www.simplescalar.com
download the gcc-2.7.2.3.ss.tgz
compile and install .
That's all

Bernd Paysan

unread,
Nov 1, 2006, 4:07:45 PM11/1/06
to
TastyWheat wrote:

> My partner and I are doing a project involving SimpleScalar. We need
> to make a program of our own to use with sim-cache. I'm under the
> impression it's a simple matter of creating an executable with
> "ssbig-na-sstrix-gcc". However, I have no idea where to get this
> compiler. It's not in simplesim, simpletools, or simpleutils (as far
> as we know).

According to www.simplescaler.com (Download Tools section) it must be in
simpletools. However, the page seems quite dated, as it calls GCC 2.7.2 "a
newer version of GNU GCC". It's ten years old, released June 29, 1996.

--
Bernd Paysan
"If you want it done right, you have to do it yourself"
http://www.jwdt.com/~paysan/

Thor Lancelot Simon

unread,
Nov 2, 2006, 4:28:46 PM11/2/06
to
In article <1162428474....@f16g2000cwb.googlegroups.com>,

shaolin.xie <shaol...@hotmail.com> wrote:
>Visit www.simplescalar.com
>download the gcc-2.7.2.3.ss.tgz
>compile and install .

You'll have a hell of a time compiling GCC 2.7 with a modern GCC.

--
Thor Lancelot Simon t...@rek.tjls.com

"We cannot usually in social life pursue a single value or a single moral
aim, untroubled by the need to compromise with others." - H.L.A. Hart

TastyWheat

unread,
Nov 2, 2006, 6:31:02 PM11/2/06
to
Okay, thanks for the help, but it's not compiling. I'm trying to
compile it on an i686 linux machine (ubuntu I think). I would've
compiled it on a solaris machine but I couldn't get simplescalar to
compile on solaris.

I'm getting errors on "insn-output.c". The first error is a missing
double-quote character and almost all of the others are stray '\'
errors. Well, the extra back-slash errors are all on the same line but
it spits it out like 50 times.

shaolin.xie

unread,
Nov 3, 2006, 10:18:51 AM11/3/06
to
Paste your exact error message please ,I have encountered similar error
previously when I tried to compile it on saloris. Because I lack the
administrating privelge to update lex tool,I finally give up and
compile it on an AMD64 Redhat Linux instead.

TastyWheat

unread,
Nov 7, 2006, 9:16:34 PM11/7/06
to
shaolin.xie wrote:
> Paste your exact error message please ,I have encountered similar error
> previously when I tried to compile it on saloris. Because I lack the
> administrating privelge to update lex tool,I finally give up and
> compile it on an AMD64 Redhat Linux instead.

Well, I got rid of all of the stray '\' errors. I found another
resource that said I need to get rid of them and make one big line. So
it got passed that and then we got the error:

./xgcc -B./ -DCROSS_COMPILE -DIN_GCC -g -I./include -c dummy.c
as: unrecognized option `-EL'
make: *** [libgcc1.null] Error 1

It's probably because we didn't compile binutils (simpleutils). We had
problems compiling that too. We get the error:

ldlex.l:589: error: 'yy_current_buffer' undeclared

We're compiling these on linux (ubuntu) since we've had slightly more
success with it.

TastyWheat

unread,
Nov 7, 2006, 10:32:03 PM11/7/06
to
Well, we've gotten over another hump but ran into another wall. We're
using the school computers so we don't have full permissions to install
things (">make install" does not work). So far "simpleutils-990811"
and "simplesim" have compiled just fine. So the libraries or whatever
should be there, they're just not in the right place. Can I compile
the gcc without performing the "make install" commands?

shaolin.xie

unread,
Nov 8, 2006, 9:13:23 AM11/8/06
to
well ,I havn't tried that ,but I thought it would very tricky ....
"TastyWheat 写道:

Thor Lancelot Simon

unread,
Nov 8, 2006, 10:41:57 AM11/8/06
to
In article <1162956723.6...@e3g2000cwe.googlegroups.com>,

You need to configure gcc and binutils so that they will install into
locations you can write. This is easy to do by applying appropriate
options to the configure script in each case.

map_geez

unread,
Nov 19, 2006, 3:06:02 AM11/19/06
to
Hello

I am a new user and trying to compile simple scalar on ubuntu dapper
drake.

I am getting these errors which you were also getting.

ldlex.l: In function 'yy_input':
ldlex.l:589: error: 'yy_current_buffer' undeclared (first use in
this function)
ldlex.l:589: error: (Each undeclared identifier is reported only once
ldlex.l:589: error: for each function it appears in.)
make[3]: *** [ldlex.o] Error 1
make[3]: Leaving directory
`/home/vaibhav/Desktop/simplescalar/untardir/simpleutils-990811/ld'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/home/vaibhav/Desktop/simplescalar/untardir/simpleutils-990811/ld'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory
`/home/vaibhav/Desktop/simplescalar/untardir/simpleutils-990811/ld'
make: *** [all-ld] Error 2

I would be grateful to you if you can help me to get rid of this error.

Thanks in advance

Vaibhav Mittal

On Nov 7, 9:16 pm, "TastyWheat" <m.k...@sbcglobal.net> wrote:
> shaolin.xie wrote:
> > Paste your exact error message please ,I have encountered similar error
> > previously when I tried to compile it on saloris. Because I lack the
> > administrating privelge to update lex tool,I finally give up and

> > compile it on an AMD64 Redhat Linux instead.Well, I got rid of all of the stray '\' errors. I found another

TastyWheat

unread,
Nov 19, 2006, 2:02:06 PM11/19/06
to
map_geez wrote:
> I am a new user and trying to compile simple scalar on ubuntu dapper
> drake.
>
> I am getting these errors which you were also getting.
>
> ldlex.l: In function 'yy_input':
> ldlex.l:589: error: 'yy_current_buffer' undeclared (first use in
> this function)

One suggestion was to switch to an older version of lex, but luckily we
didn't have to go there. Change 'yy_current_buffer' to
'YY_CURRENT_BUFFER'. That should fix the error, but there'll probably
be more down the road. I'll help you with as many as I can.

If you're doing all of this without root access I wish you the best of
luck. My partner and I couldn't get it working without switching to a
personal computer (to have root access).

map_geez

unread,
Nov 30, 2006, 1:33:09 PM11/30/06
to
Hi

I am stuck with one more error while compiling simple scalar on
linux(ubuntu)

make[1]: Entering directory
`/home/vaibhav/Desktop/simplescalar/untardir/gcc-2.7.2.3/objc'
/home/vaibhav/Desktop/simplescalar/untardir/gcc- 2.7.2.3/xgcc
-B/home/vaibhav/Desktop/simplescalar/untardir/gcc-2.7.2.3/ -O \
-c -DCROSS_COMPILE -DIN_GCC -g -I./include -I. -I..
-I/home/vaibhav/Desktop/simplescalar/untardir/gcc- 2.7.2.3
-I/home/vaibhav/Desktop/simplescalar/untardir/gcc-2.7.2.3/config hash.c
as: unrecognized option `-EL'
make[1]: *** [ hash.o] Error 1
make[1]: Leaving directory
`/home/vaibhav/Desktop/simplescalar/untardir/gcc-2.7.2.3/objc'
make: *** [libobjc.a] Error 2

I am following these instructions

http://www.comp.nus.edu.sg/%7Epanyu/simplesim.htm

and i made the following modifications:-

1. In insn-output.c, delete all the line breaks ('\'s) that cause
problem.
2. Cover the original cdefs.h (under
$IDIR/sslittle-na-sstrix/include/sys) with patched one under "patched"
directory (which redefined __NORETURN);
3. In objc/sendmsg.c, add "#define STRUCT_VALUE 0" at line 35;
4. In protoize.c, replace "#include <varargs.h>" at line 60 with
"#include <stdarg.h>".)

Your valuable suggestion will be highly appreciated.

Rgds

Vaibhav Mittal


On Nov 19, 2:02 pm, "TastyWheat" <m.k...@sbcglobal.net> wrote:
> map_geez wrote:
> > I am a new user and trying to compile simple scalar on ubuntu dapper
> > drake.
>
> > I am getting these errors which you were also getting.
>
> > ldlex.l: In function 'yy_input':
> > ldlex.l:589: error: 'yy_current_buffer' undeclared (first use in

> > this function)One suggestion was to switch to an older version of lex, but luckily we

0 new messages