List Info

Thread: -static build for gst




-static build for gst
country flaguser name
United States
2007-11-27 04:26:18
Issue status update for 
http://smalltalk.gn
u.org/node/131
Post a follow up: 
htt
p://smalltalk.gnu.org/project/comments/add/131

 Project:      GNU Smalltalk
 Version:      <none>
 Component:    VM
 Category:     bug reports
 Priority:     normal
 Assigned to:  Unassigned
 Reported by:  ildar.mulyukov
 Updated by:   ildar.mulyukov
 Status:       active

In Makefile.am we can see:
gst_LDFLAGS = -export-dynamic -static

The reason for -static is not clear to me. We have libgst.so
and we can
link dynamically.

But upon linking dynamically, gst becomes less stable, at
least when
working with FFI.

Anyone care to explain? Thanks




_______________________________________________
help-smalltalk mailing list
help-smalltalkgnu.org

http://lists.gnu.org/mailman/listinfo/help-smalltalk

-static build for gst
country flaguser name
United States
2007-11-27 14:32:56
Issue status update for 
http://sma
lltalk.gnu.org/project/issue/131
Post a follow up: 
htt
p://smalltalk.gnu.org/project/comments/add/131

 Project:      GNU Smalltalk
 Version:      <none>
 Component:    VM
 Category:     bug reports
 Priority:     normal
 Assigned to:  Unassigned
 Reported by:  ildar.mulyukov
 Updated by:   bonzinip
 Status:       active

I wanted to change this before rc2, but...

> But upon linking dynamically, gst becomes less stable,
at 
> least when working with FFI.

... can you expand on this?




_______________________________________________
help-smalltalk mailing list
help-smalltalkgnu.org

http://lists.gnu.org/mailman/listinfo/help-smalltalk

-static build for gst
country flaguser name
United States
2007-11-29 06:04:41
Issue status update for 
http://sma
lltalk.gnu.org/project/issue/131
Post a follow up: 
htt
p://smalltalk.gnu.org/project/comments/add/131

 Project:      GNU Smalltalk
 Version:      <none>
 Component:    VM
 Category:     bug reports
 Priority:     normal
-Assigned to:  Unassigned
+Assigned to:  bonzinip
 Reported by:  ildar.mulyukov
 Updated by:   bonzinip
 Status:       active

I can reproduce it.




_______________________________________________
help-smalltalk mailing list
help-smalltalkgnu.org

http://lists.gnu.org/mailman/listinfo/help-smalltalk

-static build for gst
country flaguser name
United States
2007-12-10 02:11:59
Issue status update for 
http://sma
lltalk.gnu.org/project/issue/131
Post a follow up: 
htt
p://smalltalk.gnu.org/project/comments/add/131

 Project:      GNU Smalltalk
 Version:      <none>
 Component:    VM
 Category:     bug reports
-Priority:     normal
+Priority:     critical
 Assigned to:  bonzinip
 Reported by:  ildar.mulyukov
 Updated by:   bonzinip
 Status:       active

Reduced test case (from arrays.st)

SortedCollection extend [
    SortedCollection class >> bug2 [
        ^##(#(8 6 9 10) asSortedCollection)
    ]

    bug: a [
        self sortFrom: lastOrdered + 1 to: lastIndex.
        ^(lastOrdered + 1 to: lastIndex) collect: [:each |
a].
    ]
]

^SortedCollection bug2 bug: 5




_______________________________________________
help-smalltalk mailing list
help-smalltalkgnu.org

http://lists.gnu.org/mailman/listinfo/help-smalltalk

-static build for gst
country flaguser name
United States
2007-12-10 03:23:16
Issue status update for 
http://sma
lltalk.gnu.org/project/issue/131
Post a follow up: 
htt
p://smalltalk.gnu.org/project/comments/add/131

 Project:      GNU Smalltalk
 Version:      <none>
 Component:    VM
 Category:     bug reports
 Priority:     critical
 Assigned to:  bonzinip
 Reported by:  ildar.mulyukov
 Updated by:   bonzinip
-Status:       active
+Status:       fixed

Fixed with this simple patch:

--- orig/libgst/md-config.h
+++ mod/libgst/md-config.h
 -87,13
+87,7 
 # define REG_AVAILABILITY 0
 # define __DECL_REG1 __asm("%esi")
 # define __DECL_REG2 __asm("%edi")
-# if defined __APPLE__
-#  define __DECL_REG3 /* bug on Apple GCC? */
-# elif defined __PIC__ || defined __pic__
-#  define __DECL_REG3 __asm("%edx")   /* Don't
conflict with GOT
pointer... */
-# else
-#  define __DECL_REG3 __asm("%ebx")   /* ...but
prefer a callee-save
reg.  */
-# endif
+# define __DECL_REG3 /* no more caller-save regs if PIC is
in use!  */
 #endif
 
 #if !defined(__DECL_REG1) && defined(PPC) ||
defined(_POWER) ||
defined(_IBMR2)

I have not yet removed the flag though.




_______________________________________________
help-smalltalk mailing list
help-smalltalkgnu.org

http://lists.gnu.org/mailman/listinfo/help-smalltalk

-static build for gst
country flaguser name
United States
2007-12-10 11:05:39
Issue status update for 
http://sma
lltalk.gnu.org/project/issue/131
Post a follow up: 
htt
p://smalltalk.gnu.org/project/comments/add/131

 Project:      GNU Smalltalk
 Version:      <none>
 Component:    VM
 Category:     bug reports
-Priority:     critical
+Priority:     normal
 Assigned to:  bonzinip
 Reported by:  ildar.mulyukov
 Updated by:   bonzinip
-Status:       fixed
+Status:       active

I see what you mean with "FFI is less stable". 
GDBM tests fails, and on
x86-64 actually I cannot even build gst.  I think for 3.0
I'll go with
static linking.




_______________________________________________
help-smalltalk mailing list
help-smalltalkgnu.org

http://lists.gnu.org/mailman/listinfo/help-smalltalk

-static build for gst
country flaguser name
United States
2007-12-10 12:31:33
Issue status update for 
http://sma
lltalk.gnu.org/project/issue/131
Post a follow up: 
htt
p://smalltalk.gnu.org/project/comments/add/131

 Project:      GNU Smalltalk
 Version:      <none>
 Component:    VM
 Category:     bug reports
 Priority:     normal
 Assigned to:  bonzinip
 Reported by:  ildar.mulyukov
 Updated by:   bonzinip
 Status:       active

Doh, I know what's happening.  It's enough to define
NO_MALLOC_OVERRIDE
to fix it...  and a lot of code just becomes dead...




_______________________________________________
help-smalltalk mailing list
help-smalltalkgnu.org

http://lists.gnu.org/mailman/listinfo/help-smalltalk

-static build for gst
country flaguser name
United States
2007-12-11 03:47:04
Issue status update for 
http://sma
lltalk.gnu.org/project/issue/131
Post a follow up: 
htt
p://smalltalk.gnu.org/project/comments/add/131

 Project:      GNU Smalltalk
 Version:      <none>
 Component:    VM
 Category:     bug reports
 Priority:     normal
 Assigned to:  bonzinip
 Reported by:  ildar.mulyukov
 Updated by:   bonzinip
-Status:       active
+Status:       fixed

fixed in 2.95g




_______________________________________________
help-smalltalk mailing list
help-smalltalkgnu.org

http://lists.gnu.org/mailman/listinfo/help-smalltalk

[1-8]

about | contact  Other archives ( Real Estate discussion Medical topics )