[From nobody Sat Aug 11 12:29:46 2012
Received: from mail-wi0-f171.google.com ([209.85.212.171])
	by stackless.com with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72)
	(envelope-from &lt;jiangrzh@gmail.com&gt;) id 1SvmC4-0001wC-N4
	for stackless-checkins@stackless.com; Mon, 30 Jul 2012 11:23:16 +0200
Received: by wibhq4 with SMTP id hq4so1233970wib.12
	for &lt;stackless-checkins@stackless.com&gt;;
	Mon, 30 Jul 2012 02:23:11 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:date:message-id:subject:from:to:content-type
	:content-transfer-encoding;
	bh=A0TVSAdYyx86C+UF1OUtr17Xa2/M8jyA3La1vSigvNg=;
	b=KV87QYGOoMfFyCkulY3vxBz30fBX4JxrKOB0cW4s+Fv8poL3ZgGvY+5ch/CczXEM23
	n6cQ9HW+zr/GOZOM4tK7ABVHiAUSefpqT3hOlIBFeXrjmEufle/udF+38IX+hvCx2u2C
	ploTeOAuX2nV+JQJYgcGh5HQtE51pJzDhr+zR9LnKk8/dOQ8wzW4X0vamzWhbS66Z4mK
	vgGLlmJSAQjiZpOoiP3wJlnYjv9pZP/jVmYZFk0T7o+3HIrxBtWUFZhmZebP/9sIeYgR
	TdBMQwxxjat+VX5kethmo9D9ollSAPLqsypKO0xqq3Xj/3pK+8zl1MLSp3idfEY1VUcx
	SwJg==
MIME-Version: 1.0
Received: by 10.180.81.66 with SMTP id y2mr23867577wix.22.1343629787675; Sun,
	29 Jul 2012 23:29:47 -0700 (PDT)
Received: by 10.223.172.65 with HTTP; Sun, 29 Jul 2012 23:29:47 -0700 (PDT)
Date: Mon, 30 Jul 2012 14:29:47 +0800
Message-ID: &lt;CAAQS7wo2QLTz=moO2RdJBGhkAFboi71gdwjYSckrvs2i9zY58g@mail.gmail.com&gt;
Subject: how to build Stackless on solaris 10 sparcv9
From: J Rz &lt;jiangrzh@gmail.com&gt;
To: stackless-checkins@stackless.com
Content-Type: text/plain; charset=GB2312
Content-Transfer-Encoding: quoted-printable

Hello,
    On Solars 10 sparcv9 with Gcc 3.4.3, It's success to make,but will
crash when running:
   CFLAGS=&quot;-m64 -mptr64&quot; CPPFLAGS=&quot;-m64 -mptr64&quot; LDFLAGS=&quot;-m64 -mptr64
-lumem -lthread&quot; ./configure
--prefix=/export/home/mysqlc/python_stackless/

make test:
¡­¡­
running build_scripts
find ./Lib -name '*.py[co]' -print | xargs rm -f
./python -Wd -3 -E -tt  ./Lib/test/regrtest.py -l
== CPython 2.7.2 Stackless 3.1b3 060516 (default, Jul 30 2012,
13:50:06) [GCC 3.4.3 (csl-sol210-3_4-branch+sol_rpath)]
==   Solaris-2.10-sun4v-sparc-64bit-ELF big-endian
==   /export/home/mysqlc/open_source/stackless-272-export/build/test_python_25106
Testing with flags: sys.flags(debug=0, py3k_warning=1,
division_warning=1, division_new=0, inspect=0, interactive=0,
optimize=0, dont_write_bytecode=0, no_user_site=0, no_site=0,
ignore_environment=1, tabcheck=2, verbose=0, unicode=0,
bytes_warning=0)
test_grammar
test_opcodes
test_dict
test_builtin
make: *** [test] Segmentation Fault (core dumped)
./python -Wd -3 -E -tt  ./Lib/test/regrtest.py -l
== CPython 2.7.2 Stackless 3.1b3 060516 (default, Jul 30 2012,
13:50:06) [GCC 3.4.3 (csl-sol210-3_4-branch+sol_rpath)]
==   Solaris-2.10-sun4v-sparc-64bit-ELF big-endian
==   /export/home/mysqlc/open_source/stackless-272-export/build/test_python_25111
Testing with flags: sys.flags(debug=0, py3k_warning=1,
division_warning=1, division_new=0, inspect=0, interactive=0,
optimize=0, dont_write_bytecode=0, no_user_site=0, no_site=0,
ignore_environment=1, tabcheck=2, verbose=0, unicode=0,
bytes_warning=0)
test_grammar
test_opcodes
test_dict
test_builtin
make: *** [test] Segmentation Fault (core dumped)

dbx£º
t@1 (l@1) program terminated by signal SEGV (no mapping at the fault address)
0xffffffffffffffff:     &lt;bad address 0xffffffffffffffff&gt;
Current function is climb_stack_and_eval_frame
  298           if (stackref &gt; ts-&gt;st.cstack_base)
(dbx) where
current thread: t@1
  [1] 0x74b4b8(0x10074a930, 0x10030c800, 0x100000000, 0x1, 0x30c800,
0x0), at 0x74b4b8
=&gt;[2] climb_stack_and_eval_frame(f = 0x10074a930), line 298 in &quot;stacklesseval.c&quot;
  [3] slp_eval_frame(f = 0x10074a930), line 299 in &quot;stacklesseval.c&quot;
  [4] PyEval_EvalCodeEx(co = 0x10076ff30, globals = (nil), locals =
0x1002b9868, args = (nil), argcount = 0, kws = (nil), kwcount = 0,
defs = (nil), defcount = 0, closure = (nil)), line 3559 in &quot;ceval.c&quot;
  [5] PyEval_EvalCode(co = 0x10076ff30, globals = 0x1005ed230, locals
= 0x1005ed230), line 669 in &quot;ceval.c&quot;
  [6] PyRun_FileExFlags(fp = (nil), filename = 0xffffffff7ffffb97
&quot;./Lib/test/regrtest.py&quot;, start = 3195904, globals = 0x1005ed230,
locals = 0x1005ed230, closeit = 7798576, flags = 0xffffffff7ffff87c),
line 1378 in &quot;pythonrun.c&quot;
  [7] PyRun_SimpleFileExFlags(fp = 0x100310d20, filename =
0xffffffff7ffffb97 &quot;./Lib/test/regrtest.py&quot;, closeit = 1, flags =
0xffffffff7ffff87c), line 954 in &quot;pythonrun.c&quot;
  [8] Py_Main(argc = -1, argv = 0xffffffff7ffff9c8), line 599 in &quot;main.c&quot;

but it's works under 32bit.

when i use Sun Studio 12 to build:
CC='/export/home/mysqlc/sunstudio/SUNWspro/bin/cc -D__GNUC__'
CXX='/export/home/mysqlc/sunstudio/SUNWspro/bin/CC -D__GNUC__'
CFLAGS=&quot;-m64 -mptr64&quot; CPPFLAGS=&quot;-m64 -mptr64&quot; LDFLAGS=&quot;-m64 -mptr64
-mt -lumem -lthread&quot; ./configure
--prefix=/export/home/mysqlc/python_stackless/

i got:
&quot;Objects/classobject.c&quot;, line 263: operands have incompatible types:
         pointer to function(pointer to struct _object {long
ob_refcnt, pointer to struct _typeobject {..} ob_type}, pointer to
struct _object {long ob_refcnt, pointer to struct _typeobject {..}
ob_type}, pointer to struct _object {long ob_refcnt, pointer to struct
_typeobject {..} ob_type}) returning pointer to struct _object {long
ob_refcnt, pointer to struct _typeobject {..} ob_type} &quot;:&quot; pointer to
void
&quot;Objects/classobject.c&quot;, line 743: operands have incompatible types:
         pointer to function(pointer to struct _object {long
ob_refcnt, pointer to struct _typeobject {..} ob_type}, pointer to
struct _object {long ob_refcnt, pointer to struct _typeobject {..}
ob_type}, pointer to struct _object {long ob_refcnt, pointer to struct
_typeobject {..} ob_type}) returning pointer to struct _object {long
ob_refcnt, pointer to struct _typeobject {..} ob_type} &quot;:&quot; pointer to
void
&quot;Objects/classobject.c&quot;, line 2297: warning: initialization type mismatch
&quot;Objects/classobject.c&quot;, line 2317: operands have incompatible types:
         pointer to function(pointer to struct _object {long
ob_refcnt, pointer to struct _typeobject {..} ob_type}, pointer to
struct _object {long ob_refcnt, pointer to struct _typeobject {..}
ob_type}, pointer to struct _object {long ob_refcnt, pointer to struct
_typeobject {..} ob_type}) returning pointer to struct _object {long
ob_refcnt, pointer to struct _typeobject {..} ob_type} &quot;:&quot; pointer to
void
cc: acomp failed for Objects/classobject.c
make: *** [Objects/classobject.o] Error 2

how can i build it on solaris 10 sparcv9 ?

]