The default version of Solaris does not include the GNU getopt library.
You can either install the getopt library, or just statically compile the
getopt code into Ruby (which is what we do for Solaris).
I copied getopt.h and getopt.C to our download directory in case you want to
go with the latter approach.
http://www.cs.wisc.edu/gems/distribute/getopt.h
http://www.cs.wisc.edu/gems/distribute/getopt.C
You can put these in $GEMS/ruby/tester. Add getopt.C to the
$GEMS/ruby/Makefile list of files and remove the -lgetopt from the linker
command. I'll probably reinclude these files in a future release of GEMS (I
initially pulled them because, at one point, we weren't sure if we were
gonna release GEMS as GPL).
--Mike
> -----Original Message-----
> From: gems-users-bounces@xxxxxxxxxxx
> [mailto:gems-users-bounces@xxxxxxxxxxx] On Behalf Of Rishi Jain
> Sent: Sunday, March 05, 2006 7:07 PM
> To: Gems Users
> Subject: Re: [Gems-users] gems setup
>
>
> Thanks for the response, Mike.
> But i am facing another problem now.
>
> the command line i am using is:
> make PROTOCOL=MOESI_CMP_token DESTINATION=MOESI_CMP_token
>
> And it fails with the following message:
>
> g++ -I/s/getopt-0/include -o v9-sol8-64/bin/slicc.exec -m64 -mcpu=v9
> -DUSE_DIRENT -g -ggdb -g3 -O0 -w -m64 -L/s/getopt-0/lib
> -lgetopt -lz v9-sol8-64/obj/parser.o v9-sol8-64/obj/lexer.o
> v9-sol8-64/obj/main.o <snip> v9-sol8-64/obj/OutPortDeclAST.o
> v9-sol8-64/obj/TransitionDeclAST.o
> v9-sol8-64/obj/TypeDeclAST.o v9-sol8-64/obj/TypeFieldAST.o
> v9-sol8-64/obj/ChipComponentAccessAST.o
> /usr/pubsw/bin/ld: cannot find -lgetopt
>
> I am using simics 2.2 and gems 1.2 on a solaris machine
>
> thanks for your help
> rishi
>
> On Sun, 5 Mar 2006, Mike Marty wrote:
>
> >
> > If you are using the default, system gcc, these steps shouldn't be
> > necessary.
> >
> > --Mike
> >
> >
> > > i am trying to set up gems on a solaris machine but the setup
> > > instructions
> http://www.cs.wisc.edu/gems/doc/wiki/moin.cgi/Setup are
> > > for x86-linux. Step 6 asks for copying two library files :
> > > libstdc++.so.5 and libgcc_s.so.1
> > >
> > > I could find libstdC.so.5, but nothing analogous to libgcc_s.
> > >
> > > any suggestions?
> > >
> > >
> > >
> > > thanks
> > > rishi
>
> _______________________________________________
> Gems-users mailing list
> Gems-users@xxxxxxxxxxx
> https://lists.cs.wisc.edu/mailman/listinfo/gems-users
>
|