Re: Smalltalk mailing list & compilation

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: Smalltalk mailing list & compilation

Paolo Bonzini
L. Rotger wrote:
> Hi,
>
> I've become interested in Smalltalk and I was glad to find a GNU
> implementation but I've had some difficulties installing it. I had to
> #define LONG_LONG_MAX by myself because at libffi/include/ffi.h it was
> not being detected.
>
> If I compile a little program by hand to see what's defined, __GNUC__
> is defined but __LONG_LONG_MAX__ is not (in my g++ at least). What gives?
What is the version of your G++?
> Another question, where do people discuss about Smalltalk? I
> subscribed to "help-smalltalk" and "bug-gnu-smalltalk" but they are
> either very low-volume or not used at all, I still hacen't seen any
> message. Can you tell me where to go to ask questions?
Unsubscribed people's messages to help-smalltalk are moderated.  
bug-gnu-smalltalk is not used, help-smalltalk is low volume but used.

Paolo


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: Smalltalk mailing list & compilation

lrotger
Hi,

Paolo Bonzini wrote:

> L. Rotger wrote:
>> Hi,
>>
>> I've become interested in Smalltalk and I was glad to find a GNU
>> implementation but I've had some difficulties installing it. I had to
>> #define LONG_LONG_MAX by myself because at libffi/include/ffi.h it was
>> not being detected.
>>
>> If I compile a little program by hand to see what's defined, __GNUC__
>> is defined but __LONG_LONG_MAX__ is not (in my g++ at least). What gives?
> What is the version of your G++?

2.95.4 20011002

Thanks
Lucia


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: Smalltalk mailing list & compilation

Paolo Bonzini

> 2.95.4 20011002
Uhm, a bit old. :-P   I thought LONG_LONG_MAX and the other values were
there forever, but apparently they were introduced by GCC 3.0.

IIRC that version of GCC (and the early 3.x versions too) also took eons
to compile interp.c, so you may want to upgrade anyway.  But I can
modify the libffi configure script to provide __LONG_LONG_MAX__ if it is
not provided by the compiler.

Thanks,

Paolo


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: Smalltalk mailing list & compilation

lrotger
Hi,

Paolo Bonzini wrote:
> to compile interp.c, so you may want to upgrade anyway.  But I can
> modify the libffi configure script to provide __LONG_LONG_MAX__ if it is
> not provided by the compiler.

Thanks, you may save some people some time :)

Now, here goes the newbie questions, please bear with me: I am new to
Smalltalk and have looked at the manual page at
http://www.gnu.org/software/smalltalk/gst-manual/gst.html and I can't
make the examples work. I've run the test suite and all test pass but
when I try to run Blox as stated in 3.7.1 (gst -qK blox/Run.st) these
files don't exist, I think it's equivalent to run

gst -qK browser/Run.st

but the I get this:

$ gst -qK browser/Run.st
"Scavenging... 89% reclaimed, done"
"Scavenging... 89% reclaimed, done"
"Scavenging... 87% reclaimed, done"
"Scavenging... 89% reclaimed, done"
"Scavenging... 88% reclaimed, done"
Loading package BloxTK
Object: DLD error: requested module blox-tk was not found
Smalltalk.DLD class(Smalltalk.Object)>>#primError:
SystemExceptions.CInterfaceError(Smalltalk.Exception)>>#defaultAction
optimized [] in Smalltalk.Exception class>>#coreException
SystemExceptions.CInterfaceError(Smalltalk.Signal)>>#activateHandler:
SystemExceptions.CInterfaceError(Smalltalk.Exception)>>#signal
SystemExceptions.CInterfaceError class(Smalltalk.Exception class)>>#signal:
Smalltalk.DLD class>>#addModule:
optimized [] in Smalltalk.Package>>#fileIn
Smalltalk.Set(Smalltalk.HashedCollection)>>#do:
Smalltalk.Package>>#fileIn
optimized [] in Smalltalk.PackageLoader class>>#fileInPackages:
Smalltalk.OrderedCollection(Smalltalk.SequenceableCollection)>>#do:
Smalltalk.PackageLoader class>>#fileInPackages:
Smalltalk.PackageLoader class>>#fileInPackage:
Smalltalk.UndefinedObject>>#executeStatements
/usr/local/share/smalltalk/browser/Run.st:44: invalid scope resolution

I have a directory named blox-tk and I'm sure I'm missing something but
how can I correct this? How does Smalltalk look for packages, how does
it know 'Browser' corresponds to browser-tk? The manual does not explain
this or I haven't found it.

Another problem is I seem unable to type examples at the st> prompt. If
I type

x := Array new: 20 !

I get

stdin:1: assignment to undeclared variable x

but I thought you don't have to declare anything in Smalltalk!?

Thanks for your help and sorry for the long message but I'm totally new
to this.

Thanks
Lucia


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: Smalltalk mailing list & compilation

Paolo Bonzini

> Thanks, you may save some people some time :)
I think not many people are running 2.95.x at this time.
> Now, here goes the newbie questions, please bear with me: I am new to
> Smalltalk and have looked at the manual page at
> http://www.gnu.org/software/smalltalk/gst-manual/gst.html and I can't
> make the examples work. I've run the test suite and all test pass but
> when I try to run Blox as stated in 3.7.1 (gst -qK blox/Run.st) these
> files don't exist, I think it's equivalent to run
>
> gst -qK browser/Run.st
Yes, that should be fixed.  The online manual has not been updated for a
long time.  You can do "make pdf" after installing and get nice manuals
in pdf format (or also "make html").
> /usr/local/share/smalltalk/browser/Run.st:44: invalid scope resolution
>
> I have a directory named blox-tk and I'm sure I'm missing something
> but how can I correct this? How does Smalltalk look for packages, how
> does it know 'Browser' corresponds to browser-tk?
The browser is cross platform, it works equally for Tk and Gtk (but the
latter is experimental).  But you probably don't have the Tcl/Tk
development packages installed.  Look for tclConfig.sh in your disk, it
is probably not there.

> Another problem is I seem unable to type examples at the st> prompt.
> If I type
>
> x := Array new: 20 !
>
> I get
>
> stdin:1: assignment to undeclared variable x
>
> but I thought you don't have to declare anything in Smalltalk!?
No, you do have to declare temporary variables.

| x |
x := Array new: 20!

Note also that, after you end the "interaction" with the exclamation
mark, the "x" variable ceases to exist.

This is not true with the graphical browser, which has temporary
variable like these, but also permanent, workspace-visible variables.
> Thanks for your help and sorry for the long message but I'm totally
> new to this.
No problem, if there are any suggestions you can make I (and the few
other contributors) are all ears.

Paolo



_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: Smalltalk mailing list & compilation

lrotger
Hi,

> Yes, that should be fixed.  The online manual has not been updated for a
> long time.  You can do "make pdf" after installing and get nice manuals
> in pdf format (or also "make html").

I had no problem doing both after I updated my (aging) system. The
manuals are more up to date and I have started to play around with the
browser. It's very interesting.

> The browser is cross platform, it works equally for Tk and Gtk (but the
> latter is experimental).  But you probably don't have the Tcl/Tk
> development packages installed.  Look for tclConfig.sh in your disk, it
> is probably not there.

I loaded the development files for Tcl/Tk but I had to load also glib
2.0, I had glib 1.2 and configure complained about it but you have to
look carefully while it runs to notice that. Maybe I'd suggest you
repeat the problems at the end for the users who don't stare at
configure running?

>> but I thought you don't have to declare anything in Smalltalk!?
>
> No, you do have to declare temporary variables.

Okay, I thought I had some "interactive" environment there but the
browser does it.

> No problem, if there are any suggestions you can make I (and the few
> other contributors) are all ears.

Maybe if you group the problems configure encounters at the end it would
make things easier, or maybe something like "configure found problems.
Look at config.log" would suffice.

Thanks!
Lucia


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: Smalltalk mailing list & compilation

Paolo Bonzini

> I had no problem doing both after I updated my (aging) system. The
> manuals are more up to date and I have started to play around with the
> browser. It's very interesting.
Cool.
>> The browser is cross platform, it works equally for Tk and Gtk (but
>> the latter is experimental).  But you probably don't have the Tcl/Tk
>> development packages installed.  Look for tclConfig.sh in your disk,
>> it is probably not there.
> I loaded the development files for Tcl/Tk but I had to load also glib
> 2.0, I had glib 1.2 and configure complained about it but you have to
> look carefully while it runs to notice that. Maybe I'd suggest you
> repeat the problems at the end for the users who don't stare at
> configure running?
glib is only necessary for Gtk, not Tk.
> Maybe if you group the problems configure encounters at the end it
> would make things easier, or maybe something like "configure found
> problems. Look at config.log" would suffice.
Thanks for the hint.  I'll add something like: "the following modules
will be built/will not be built".

Paolo


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk