[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Help-smalltalk] Windows build

From: freddie.akeroyd
Subject: RE: [Help-smalltalk] Windows build
Date: Wed, 9 Dec 2009 17:55:36 -0000


I tried building with cygwin myself and get a similar problem with
default C compiler optimisation:

Latest git 

    ./configure --disable-generational-gc

stopped at

    ./gst.exe --no-user-files --kernel-dir="./kernel" -iQ
          7 [main] gst 3604 _cygtls::handle_exceptions: Error while
dumping state (probably corrupted stack)
    make[2]: *** [] Segmentation fault (core dumped)

$ gdb ./gst.exe
GNU gdb (cygwin-special) Copyright (C) 2008 Free
Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show
and "show warranty" for details.
This GDB was configured as "i686-pc-cygwin"...
(no debugging symbols found)
No symbol table is loaded.  Use the "file" command.
Make breakpoint pending on future shared library load? (y or [n])
[answered N; input not from terminal]
(gdb) r --no-user-files --kernel-dir="./kernel" -iQ
/dev/null Starting program: /cygdrive/c/cygwin_local/smalltalk/gst.exe
--no-user-files --kernel-dir="./kernel" -iQ /dev/null
[New thread 2672.0xb64] (no debugging symbols found)  (no debugging
symbols found) (no debugging symbols found) [New thread 2672.0xa48] (no
debugging symbols found)  (no debugging symbols found) [New thread
      7 [main] gst 2672 _cygtls::handle_exceptions: Exception:
   2634 [main] gst 2672 open_stackdumpfile: Dumping stack trace to
gst.exe.stack dump
   9722 [main] gst 2672 _cygtls::handle_exceptions: Exception:
  12405 [main] gst 2672 _cygtls::handle_exceptions: Error while dumping
state (probably corrupted stack)

Program exited with code 0105400.

However rebuilding without C compiler optimisation

    env CFLAGS="-g -O0" ./configure --disable-generational-gc

runs through OK and builds both gst.exe and a image; however
running the tests results in a hang loading SUnit

make check
Making check in tests
make[1]: Entering directory `/cygdrive/c/cygwin_local/smalltalk/tests'
make[2]: Entering directory `/cygdrive/c/cygwin_local/smalltalk/tests'
echo "PackageLoader fileInPackage: #SUnit. ObjectMemory snapshot:
''" | ./gst --image=../ - "Global garbage collection...
Loading package SUnit
"Global garbage collection... done"
cd . && /cygdrive/c/cygwin_local/smalltalk/tests/gst -S
Object: StarPackage new "<0x18f9fe68>" error: did not understand
#isDisabled MessageNotUnderstood(Exception)>>signal (
Kernel.StarPackage(Object)>>doesNotUnderstand: #isDisabled
( optimized [] in
Kernel.PackageDirectory>>refreshPackageList ( [] in
LookupTable(Dictionary)>>reject: ( [] in
LookupTable>>associationsDo: (
LookupTable>>keysAndValuesDo: (
LookupTable>>associationsDo: (
LookupTable(Dictionary)>>reject: (
Kernel.PackageDirectory>>refreshPackageList (
Kernel.PackageDirectory>>refresh: ( [] in
Kernel.PackageDirectories>>refresh: (
OrderedCollection(SequenceableCollection)>>do: (
Kernel.PackageDirectories>>refresh: (
PackageLoader"Global garbage collection... done"
 class>>refresh (
PackageLoader class>>fileInPackages: ( PackageLoader
class>>fileInPackage: (
UndefinedObject>>executeStatements (
"Global garbage collection... done, heap grown"
"Global garbage collection... done"
"Global garbage collection... done"
make[2]: Leaving directory `/cygdrive/c/cygwin_local/smalltalk/tests'
make  check-local
make[2]: Entering directory `/cygdrive/c/cygwin_local/smalltalk/tests'
/bin/sh './testsuite'
## ----------------------------- ##
## GNU Smalltalk 3.1 test suite. ##
## ----------------------------- ##

Regression tests.

  1:                                       ok
  2:                                      ok
  3:                                       ok
  4:                                         ok
  5:                                   ok
  6:                                      ok
  7:                                    ok
  8:                                        ok
  9:                                      ok
 10:                                      ok
 11:                                        ok
 12:                                      ok
 13:                                     ok
 14:                                     ok
 15:                                     ok
 16:                                      ok
 17:                                       ok
 18:                                    ok
 19:                                       ok
 20:                                         ok
 21:                                        ok

Other simple tests.

 22:                                    ok
 23:                                         ok
 24:                                       ok
 25:                                         ok
 26:                                         ok
 27:                                        ok
 28:                                     ok
 29:                                        ok
 30:                                       ok
 31:                                       ok
 32:                                       ok
 33:                                     ok
 34:                                   ok
 35:                                      ok
 36:                                     ok
 37:                                 ok
 38:                                        ok
 39:                                       ok

Basic packages.

 40: SUnit

Pressing "ctrl-c" at this point results in an "ok" for SUnit and then
the others tests continue with a few failures and further hangs at
Magritte, Sport and Swazoo which are also bypassed by pressing Ctrl-C. I
enclose the final "testsuite.log" file



> -----Original Message-----
> From: address@hidden
> [mailto:address@hidden On
> Behalf Of Paolo Bonzini
> Sent: 09 December 2009 14:25
> To: Ang Beepeng
> Cc: address@hidden
> Subject: Re: [Help-smalltalk] Windows build
> > Thank you so so much for all the helps. I hope you don't mind, but
> it's
> > possible, can I have one with debugging info? So that I can debug
> learn
> > from it. Just forget about it if it is troublesome to you.
> Sure, of course.  I'll compile it with CFLAGS=-g and
> --disable-generational-gc (just one less things that gets in the way).
> Paolo
> _______________________________________________
> help-smalltalk mailing list
> address@hidden

Scanned by iCritical.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]