Shedskin extension module compilation failure

103 views
Skip to first unread message

Tony Veijalainen

unread,
Jan 1, 2013, 5:23:32 PM1/1/13
to shedskin-discuss
I can compile this helper for pylab data generation to work as standalone (speedup test for MITx 6.00x course), but it fails to compile with -e flag.


The calling routine:

Mark Dufour

unread,
Jan 1, 2013, 7:24:31 PM1/1/13
to shedskin...@googlegroups.com
On Tue, Jan 1, 2013 at 11:23 PM, Tony Veijalainen <tony.vei...@gmail.com> wrote:
I can compile this helper for pylab data generation to work as standalone (speedup test for MITx 6.00x course), but it fails to compile with -e flag.

thanks tony! it seems to work here (ubuntu). I will try again later this week using a colleague's pc.

mark.
--
http://www.youtube.com/watch?v=E6LsfnBmdnk

Tony Veijalainen

unread,
Jan 2, 2013, 2:06:32 AM1/2/13
to shedskin-discuss
Here is the output in Windows:

Microsoft Windows [versio 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Kaikki oikeudet pidätetään.

C:\Users\Veijalainen\Downloads\shedskin-0.9.2\shedskin>shedskin -e ps8_help.py
*** SHED SKIN Python-to-C++ Compiler 0.9.2 ***
Copyright 2005-2011 Mark Dufour; License GNU GPL version 3 (See LICENSE)

[analyzing types..]
********************************100%
[generating c++ code..]
*WARNING* 'NoChildException' class not exported (inherits from Exception)
*WARNING* ps8_help.py:62: function (class SimpleVirus, 'reproduce') not called!
*WARNING* ps8_help.py:141: function (class Patient, '_try_reproduce') not called
!
[elapsed time: 4.40 seconds]

C:\Users\Veijalainen\Downloads\shedskin-0.9.2\shedskin>make
g++  -O2 -march=native -Wno-deprecated -Wl,--enable-auto-import  -I. -IC:/Users/
Veijalainen/Downloads/shedskin-0.9.2/shedskin/shedskin/lib -Ic:/python27/include
 -D__SS_BIND ps8_help.cpp C:/Users/Veijalainen/Downloads/shedskin-0.9.2/shedskin
/shedskin/lib/time.cpp C:/Users/Veijalainen/Downloads/shedskin-0.9.2/shedskin/sh
edskin/lib/re.cpp C:/Users/Veijalainen/Downloads/shedskin-0.9.2/shedskin/shedski
n/lib/random.cpp C:/Users/Veijalainen/Downloads/shedskin-0.9.2/shedskin/shedskin
/lib/math.cpp C:/Users/Veijalainen/Downloads/shedskin-0.9.2/shedskin/shedskin/li
b/copy.cpp C:/Users/Veijalainen/Downloads/shedskin-0.9.2/shedskin/shedskin/lib/b
uiltin.cpp -lgc -lpcre  -shared -Lc:/python27/libs -lpython27 -o ps8_help.pyd
C:\Users\VEIJAL~1\AppData\Local\Temp\cclAAXE9.o:ps8_help.cpp:(.text+0x45d): unde
fined reference to `_imp___Py_NoneStruct'
C:\Users\VEIJAL~1\AppData\Local\Temp\cclAAXE9.o:ps8_help.cpp:(.text+0xbbd): unde
fined reference to `_imp___Py_NoneStruct'
C:\Users\VEIJAL~1\AppData\Local\Temp\cclAAXE9.o:ps8_help.cpp:(.text+0xcdd): unde
fined reference to `_imp___Py_NoneStruct'
C:\Users\VEIJAL~1\AppData\Local\Temp\cclAAXE9.o:ps8_help.cpp:(.text+0xdfd): unde
fined reference to `_imp___Py_NoneStruct'
C:\Users\VEIJAL~1\AppData\Local\Temp\cclAAXE9.o:ps8_help.cpp:(.text+0xf1d): unde
fined reference to `_imp___Py_NoneStruct'
C:\Users\VEIJAL~1\AppData\Local\Temp\cclAAXE9.o:ps8_help.cpp:(.text+0x1820): mor
e undefined references to `_imp___Py_NoneStruct' follow
C:\Users\VEIJAL~1\AppData\Local\Temp\cclAAXE9.o:ps8_help.cpp:(.text$_ZN12__sheds
kin__9Exception9__to_py__Ev[__shedskin__::Exception::__to_py__()]+0x2): undefine
d reference to `_imp__PyExc_Exception'
C:\Users\VEIJAL~1\AppData\Local\Temp\cclAAXE9.o:ps8_help.cpp:(.text$_ZN12__sheds
kin__8KeyError9__to_py__Ev[__shedskin__::KeyError::__to_py__()]+0x2): undefined
reference to `_imp__PyExc_KeyError'
C:\Users\VEIJAL~1\AppData\Local\Temp\cclAAXE9.o:ps8_help.cpp:(.text$_ZN12__sheds
kin__9TypeError9__to_py__Ev[__shedskin__::TypeError::__to_py__()]+0x2): undefine
d reference to `_imp__PyExc_TypeError'
C:\Users\VEIJAL~1\AppData\Local\Temp\cclAAXE9.o:ps8_help.cpp:(.text$_ZN12__sheds
kin__7__to_ssIPNS_3strEEET_P7_object[__shedskin__::str* __shedskin__::__to_ss<__
shedskin__::str*>(_object*)]+0x14): undefined reference to `_imp___Py_NoneStruct
'
C:\Users\VEIJAL~1\AppData\Local\Temp\cclAAXE9.o:ps8_help.cpp:(.text$_ZN12__sheds
kin__7__to_pyIPNS_4listIdEEEEP7_objectT_[_object* __shedskin__::__to_py<__shedsk
in__::list<double>*>(__shedskin__::list<double>*)]+0x21): undefined reference to
 `_imp___Py_NoneStruct'
C:\Users\VEIJAL~1\AppData\Local\Temp\cclAAXE9.o:ps8_help.cpp:(.text$_ZN12__sheds
kin__7__to_pyIPNS_4listIPNS1_IdEEEEEEP7_objectT_[_object* __shedskin__::__to_py<
__shedskin__::list<__shedskin__::list<double>*>*>(__shedskin__::list<__shedskin_
_::list<double>*>*)]+0x21): undefined reference to `_imp___Py_NoneStruct'
C:\Users\VEIJAL~1\AppData\Local\Temp\cclAAXE9.o:ps8_help.cpp:(.text$_ZN12__sheds
kin__7__to_pyIPNS_6tuple2IPNS_4listIdEES4_EEEEP7_objectT_[_object* __shedskin__:
:__to_py<__shedskin__::tuple2<__shedskin__::list<double>*, __shedskin__::list<do
uble>*>*>(__shedskin__::tuple2<__shedskin__::list<double>*, __shedskin__::list<d
ouble>*>*)]+0x21): undefined reference to `_imp___Py_NoneStruct'
C:\Users\VEIJAL~1\AppData\Local\Temp\cclAAXE9.o:ps8_help.cpp:(.text$_ZN12__sheds
kin__7__to_ssIPNS_4listIPN12__ps8_help__14ResistantVirusEEEEET_P7_object[__sheds
kin__::list<__ps8_help__::ResistantVirus*>* __shedskin__::__to_ss<__shedskin__::
list<__ps8_help__::ResistantVirus*>*>(_object*)]+0x14): undefined reference to `
_imp___Py_NoneStruct'
C:\Users\VEIJAL~1\AppData\Local\Temp\cclAAXE9.o:ps8_help.cpp:(.text$_ZN12__sheds
kin__7__to_ssIPNS_4dictIPNS_3strENS_9__ss_boolEEEEET_P7_object[__shedskin__::dic
t<__shedskin__::str*, __shedskin__::__ss_bool>* __shedskin__::__to_ss<__shedskin
__::dict<__shedskin__::str*, __shedskin__::__ss_bool>*>(_object*)]+0x14): more u
ndefined references to `_imp___Py_NoneStruct' follow
C:\Users\VEIJAL~1\AppData\Local\Temp\cclAAXE9.o:ps8_help.cpp:(.text$_ZN12__sheds
kin__3setIPNS_3strEEC1EP7_object[__shedskin__::set<__shedskin__::str*>::set(_obj
ect*)]+0x4f): undefined reference to `_imp__PyFrozenSet_Type'
C:\Users\VEIJAL~1\AppData\Local\Temp\cclAAXE9.o:ps8_help.cpp:(.text$_ZN12__sheds
kin__3setIPNS_3strEEC1EP7_object[__shedskin__::set<__shedskin__::str*>::set(_obj
ect*)]+0x5b): undefined reference to `_imp__PySet_Type'
C:\Users\VEIJAL~1\AppData\Local\Temp\cclAAXE9.o:ps8_help.cpp:(.text$_ZN12__sheds
kin__7__to_ssIPNS_3setIPNS_3strEEEEET_P7_object[__shedskin__::set<__shedskin__::
str*>* __shedskin__::__to_ss<__shedskin__::set<__shedskin__::str*>*>(_object*)]+
0x14): undefined reference to `_imp___Py_NoneStruct'
C:\Users\VEIJAL~1\AppData\Local\Temp\cclAAXE9.o:ps8_help.cpp:(.text$_ZN12__sheds
kin__7__to_pyIPN12__ps8_help__14ResistantVirusEEEP7_objectT_[_object* __shedskin
__::__to_py<__ps8_help__::ResistantVirus*>(__ps8_help__::ResistantVirus*)]+0x21)
: undefined reference to `_imp___Py_NoneStruct'
C:\Users\VEIJAL~1\AppData\Local\Temp\cclAAXE9.o:ps8_help.cpp:(.text$_ZN12__sheds
kin__7__to_pyIPNS_4listIPN12__ps8_help__14ResistantVirusEEEEEP7_objectT_[_object
* __shedskin__::__to_py<__shedskin__::list<__ps8_help__::ResistantVirus*>*>(__sh
edskin__::list<__ps8_help__::ResistantVirus*>*)]+0x21): undefined reference to `
_imp___Py_NoneStruct'
C:\Users\VEIJAL~1\AppData\Local\Temp\cclAAXE9.o:ps8_help.cpp:(.text$_ZN12__sheds
kin__7__to_pyIPNS_3strEEEP7_objectT_[_object* __shedskin__::__to_py<__shedskin__
::str*>(__shedskin__::str*)]+0x21): undefined reference to `_imp___Py_NoneStruct
'
C:\Users\VEIJAL~1\AppData\Local\Temp\cclAAXE9.o:ps8_help.cpp:(.text$_ZN12__sheds
kin__7__to_pyIPNS_4dictIPNS_3strENS_9__ss_boolEEEEEP7_objectT_[_object* __shedsk
in__::__to_py<__shedskin__::dict<__shedskin__::str*, __shedskin__::__ss_bool>*>(
__shedskin__::dict<__shedskin__::str*, __shedskin__::__ss_bool>*)]+0x21): undefi
ned reference to `_imp___Py_NoneStruct'
C:\Users\VEIJAL~1\AppData\Local\Temp\cclAAXE9.o:ps8_help.cpp:(.text$_ZN12__sheds
kin__7__to_ssIPNS_4listIPNS_3strEEEEET_P7_object[__shedskin__::list<__shedskin__
::str*>* __shedskin__::__to_ss<__shedskin__::list<__shedskin__::str*>*>(_object*
)]+0x14): more undefined references to `_imp___Py_NoneStruct' follow
C:\Users\VEIJAL~1\AppData\Local\Temp\ccWBY0hp.o:time.cpp:(.text$_ZN12__shedskin_
_10ValueError9__to_py__Ev[__shedskin__::ValueError::__to_py__()]+0x2): undefined
 reference to `_imp__PyExc_ValueError'
C:\Users\VEIJAL~1\AppData\Local\Temp\cc418f39.o:re.cpp:(.text$_ZN6__re__5error9_
_to_py__Ev[__re__::error::__to_py__()]+0x2): undefined reference to `_imp__PyExc
_Exception'
C:\Users\VEIJAL~1\AppData\Local\Temp\ccJbmVyL.o:builtin.cpp:(.text+0x3812): unde
fined reference to `_imp___Py_NoneStruct'
C:\Users\VEIJAL~1\AppData\Local\Temp\ccJbmVyL.o:builtin.cpp:(.text+0x391d): unde
fined reference to `_imp__PyBool_Type'
C:\Users\VEIJAL~1\AppData\Local\Temp\ccJbmVyL.o:builtin.cpp:(.text+0x3995): unde
fined reference to `_imp___Py_TrueStruct'
C:\Users\VEIJAL~1\AppData\Local\Temp\ccJbmVyL.o:builtin.cpp:(.text+0x3a2a): unde
fined reference to `_imp__PyFloat_Type'
C:\Users\VEIJAL~1\AppData\Local\Temp\ccJbmVyL.o:builtin.cpp:(.text+0x3b29): unde
fined reference to `_imp___Py_NoneStruct'
C:\Users\VEIJAL~1\AppData\Local\Temp\ccJbmVyL.o:builtin.cpp:(.text$_ZN12__shedsk
in__8EOFError9__to_py__Ev[__shedskin__::EOFError::__to_py__()]+0x2): undefined r
eference to `_imp__PyExc_EOFError'
C:\Users\VEIJAL~1\AppData\Local\Temp\ccJbmVyL.o:builtin.cpp:(.text$_ZN12__shedsk
in__10IndexError9__to_py__Ev[__shedskin__::IndexError::__to_py__()]+0x2): undefi
ned reference to `_imp__PyExc_IndexError'
C:\Users\VEIJAL~1\AppData\Local\Temp\ccJbmVyL.o:builtin.cpp:(.text$_ZN12__shedsk
in__7IOError9__to_py__Ev[__shedskin__::IOError::__to_py__()]+0x2): undefined ref
erence to `_imp__PyExc_IOError'
C:\Users\VEIJAL~1\AppData\Local\Temp\ccJbmVyL.o:builtin.cpp:(.text$_ZN12__shedsk
in__7OSError9__to_py__Ev[__shedskin__::OSError::__to_py__()]+0x2): undefined ref
erence to `_imp__PyExc_OSError'
C:\Users\VEIJAL~1\AppData\Local\Temp\ccJbmVyL.o:builtin.cpp:(.text$_ZN12__shedsk
in__13OverflowError9__to_py__Ev[__shedskin__::OverflowError::__to_py__()]+0x2):
undefined reference to `_imp__PyExc_OverflowError'
C:\Users\VEIJAL~1\AppData\Local\Temp\ccJbmVyL.o:builtin.cpp:(.text$_ZN12__shedsk
in__12RuntimeError9__to_py__Ev[__shedskin__::RuntimeError::__to_py__()]+0x2): un
defined reference to `_imp__PyExc_RuntimeError'
collect2: ld returned 1 exit status
make: *** [ps8_help.pyd] Error 1

C:\Users\Veijalainen\Downloads\shedskin-0.9.2\shedskin>


2013/1/2 Mark Dufour <mark....@gmail.com>
--
http://www.youtube.com/watch?v=E6LsfnBmdnk

--
You received this message because you are subscribed to the Google Groups "shedskin-discuss" group.
To post to this group, send email to shedskin...@googlegroups.com.
To unsubscribe from this group, send email to shedskin-discu...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/shedskin-discuss?hl=en.

Tony Veijalainen

unread,
Jan 2, 2013, 3:09:31 PM1/2/13
to shedskin-discuss
Pypy does it in 8.7 seconds, shedskin in 20.65:

C:\Users\Veijalainen\Downloads\shedskin-0.9.2\shedskin>\PYPY\pypy-2.0-beta1\pypy
.exe ps8_help.py
0 10 20 30 40 50 60 70 80 90 8.70671681123 s
[103.77, 108.07, 111.32, 114.69, 118.08, 122.3, 125.76, 130.5, 135.02, 139.85, 1
44.04, 148.5, 153.08, 157.46, 162.49, 167.31, 172.8, 177.88, 182.23, 187.08, 193
.3, 197.95, 203.29, 208.47, 213.26, 219.22, 223.97, 229.55, 235.33, 241.13, 246.
3, 252.22, 257.16, 262.41, 268.34, 272.96, 278.35, 284.06, 288.8, 293.53, 298.4,
 304.64, 310.55, 316.41, 321.43, 326.92, 331.88, 336.6, 342.23, 347.16, 351.33,
356.3, 361.5, 365.75, 370.44, 375.0, 378.37, 381.56, 384.54, 388.02, 391.62, 394
.25, 398.59, 401.87, 404.91, 408.2, 411.15, 414.28, 417.72, 420.68, 423.59, 426.
01, 428.29, 429.43, 431.87, 433.27, 436.17, 438.36, 440.08, 442.34, 444.91, 447.
15, 449.05, 451.79, 452.89, 454.49, 456.12, 457.96, 459.34, 460.93, 461.26, 463.
11, 465.0, 464.96, 466.88, 468.04, 469.95, 471.58, 472.77, 474.48, 476.65, 477.5
4, 479.74, 480.27, 480.85, 481.62, 483.1, 484.73, 485.42, 485.79, 486.51, 488.13
, 489.17, 489.39, 489.99, 490.47, 491.97, 491.93, 492.1, 492.72, 492.15, 493.04,
 493.66, 493.9, 494.61, 494.26, 494.48, 495.42, 495.69, 496.16, 496.71, 496.55,
494.92, 494.01, 494.34, 494.84, 495.07, 495.0, 494.77, 495.56, 495.52, 496.33, 4
97.89, 496.74, 496.69, 496.57, 496.95, 496.32, 496.42, 497.47, 474.62, 451.96, 4
30.34, 409.72, 391.62, 372.75, 355.74, 339.45, 323.25, 308.0, 294.45, 280.85, 26
8.46, 257.77, 246.86, 235.93, 226.44, 216.87, 207.33, 199.07, 191.37, 183.52, 17
6.48, 169.94, 164.29, 158.05, 152.72, 148.03, 143.46, 139.13, 134.88, 131.08, 12
7.18, 124.0, 121.13, 118.49, 116.23, 114.04, 112.33, 110.71, 109.24, 108.6, 107.
47, 107.33, 106.31, 106.1, 105.88, 106.16, 106.41, 106.68, 107.06, 107.91, 108.4
8, 109.12, 110.22, 111.0, 111.81, 113.63, 114.64, 116.25, 118.45, 120.04, 122.67
, 124.85, 126.8, 129.07, 131.32, 134.06, 137.86, 141.15, 143.98, 146.89, 150.03,
 152.95, 156.39, 159.93, 163.84, 167.78, 171.48, 175.43, 179.15, 182.8, 186.51,
191.36, 195.75, 199.84, 203.62, 207.68, 211.52, 215.0, 219.36, 223.71, 227.89, 2
32.12, 237.24, 241.52, 246.35, 250.07, 253.64, 258.47, 261.65, 265.08, 270.08, 2
75.0, 279.26, 284.1, 288.72, 292.49, 295.93, 299.59, 303.66, 308.19, 312.31, 316
.39, 320.74, 324.84, 328.46, 333.47, 336.7, 340.53, 344.39, 347.3, 350.09, 353.9
5, 356.29, 360.71, 363.8, 366.79, 370.08, 373.64, 375.51, 378.04, 380.87, 383.93
, 386.55, 389.4, 391.36, 392.96, 394.38, 396.8, 398.38, 400.92, 403.71, 405.61,
409.22, 411.18, 412.8, 416.32, 418.21, 420.36]
[0.03, 0.12, 0.14, 0.2, 0.24, 0.29, 0.32, 0.39, 0.42, 0.47, 0.56, 0.63, 0.71, 0.
82, 0.86, 0.91, 0.96, 1.07, 1.2, 1.27, 1.38, 1.44, 1.62, 1.71, 1.83, 1.89, 1.99,
 2.2, 2.39, 2.62, 2.73, 2.83, 2.9, 3.11, 3.28, 3.35, 3.58, 3.73, 3.88, 4.15, 4.3
, 4.39, 4.66, 4.88, 4.98, 5.13, 5.45, 5.72, 5.94, 6.21, 6.26, 6.51, 6.81, 7.07,
7.43, 7.52, 7.59, 7.88, 8.17, 8.2, 8.32, 8.69, 8.9, 9.01, 9.24, 9.24, 9.5, 9.67,
 9.68, 9.99, 10.22, 10.33, 10.46, 10.52, 10.57, 10.69, 10.85, 10.72, 10.83, 11.0
8, 11.12, 11.2, 11.36, 11.48, 11.76, 11.98, 12.22, 12.3, 12.21, 12.31, 12.52, 12
.72, 13.01, 13.24, 13.51, 13.53, 13.55, 13.84, 13.75, 13.83, 13.9, 13.97, 13.87,
 14.0, 14.03, 14.12, 14.09, 14.13, 14.06, 14.31, 14.53, 14.71, 15.11, 15.46, 15.
71, 15.89, 16.21, 16.36, 16.37, 16.31, 16.32, 16.38, 16.69, 16.97, 17.19, 17.33,
 17.77, 17.87, 18.12, 18.16, 18.18, 18.35, 18.37, 18.45, 18.65, 18.37, 18.33, 18
.59, 18.76, 18.98, 19.13, 19.14, 19.64, 19.96, 20.24, 20.52, 20.84, 20.98, 21.03
, 21.26, 21.42, 21.07, 20.87, 20.97, 21.21, 21.29, 21.61, 22.02, 21.86, 22.05, 2
2.35, 22.43, 23.19, 24.09, 24.42, 25.02, 25.77, 26.13, 26.4, 26.84, 27.61, 28.3,
 29.31, 30.01, 31.15, 31.91, 32.95, 33.95, 35.11, 36.22, 37.07, 38.41, 39.35, 40
.5, 41.73, 42.98, 44.6, 45.75, 47.32, 48.95, 50.65, 52.7, 54.55, 56.88, 58.6, 60
.71, 62.79, 65.03, 67.33, 69.52, 71.64, 74.02, 76.05, 78.53, 81.3, 83.52, 85.62,
 88.57, 91.0, 93.61, 96.92, 99.58, 103.28, 106.57, 109.22, 112.42, 115.4, 118.8,
 123.34, 127.15, 130.65, 134.18, 137.89, 141.23, 145.24, 149.28, 153.78, 158.09,
 162.23, 166.63, 170.8, 174.89, 178.9, 184.1, 188.81, 193.11, 197.15, 201.47, 20
5.5, 209.28, 213.92, 218.44, 222.79, 227.16, 232.41, 236.83, 241.79, 245.62, 249
.39, 254.32, 257.6, 261.23, 266.34, 271.33, 275.61, 280.43, 285.21, 289.01, 292.
58, 296.39, 300.53, 305.06, 309.37, 313.49, 317.81, 321.92, 325.6, 330.56, 333.7
8, 337.61, 341.5, 344.39, 347.27, 351.17, 353.57, 358.1, 361.28, 364.33, 367.58,
 371.18, 373.04, 375.55, 378.39, 381.47, 384.11, 387.02, 388.98, 390.6, 391.94,
394.35, 395.95, 398.54, 401.34, 403.14, 406.71, 408.78, 410.43, 414.01, 415.87,
417.94]
C:\Users\Veijalainen\Downloads\shedskin-0.9.2\shedskin>ps8_help.exe
0 10 20 30 40 50 60 70 80 90 20.655 s
[103.77, 108.07, 111.32, 114.69, 118.08, 122.3, 125.76, 130.5, 135.02, 139.85, 1
44.04, 148.5, 153.08, 157.46, 162.49, 167.31, 172.8, 177.88, 182.23, 187.08, 193
.3, 197.95, 203.29, 208.47, 213.26, 219.22, 223.97, 229.55, 235.33, 241.13, 246.
3, 252.22, 257.16, 262.41, 268.34, 272.96, 278.35, 284.06, 288.8, 293.53, 298.4,
 304.64, 310.55, 316.41, 321.43, 326.92, 331.88, 336.6, 342.23, 347.16, 351.33,
356.3, 361.5, 365.75, 370.44, 375.0, 378.37, 381.56, 384.54, 388.02, 391.62, 394
.25, 398.59, 401.87, 404.91, 408.2, 411.15, 414.28, 417.72, 420.68, 423.59, 426.
01, 428.29, 429.43, 431.87, 433.27, 436.17, 438.36, 440.08, 442.34, 444.91, 447.
15, 449.05, 451.79, 452.89, 454.49, 456.12, 457.96, 459.34, 460.93, 461.26, 463.
11, 465.0, 464.96, 466.88, 468.04, 469.95, 471.58, 472.77, 474.48, 476.65, 477.5
4, 479.74, 480.27, 480.85, 481.62, 483.1, 484.73, 485.42, 485.79, 486.51, 488.13
, 489.17, 489.39, 489.99, 490.47, 491.97, 491.93, 492.1, 492.72, 492.15, 493.04,
 493.66, 493.9, 494.61, 494.26, 494.48, 495.42, 495.69, 496.16, 496.71, 496.55,
494.92, 494.01, 494.34, 494.84, 495.07, 495.0, 494.77, 495.56, 495.52, 496.33, 4
97.89, 496.74, 496.69, 496.57, 496.95, 496.32, 496.42, 497.47, 474.62, 451.96, 4
30.34, 409.72, 391.62, 372.75, 355.74, 339.45, 323.25, 308.0, 294.45, 280.85, 26
8.46, 257.77, 246.86, 235.93, 226.44, 216.87, 207.33, 199.07, 191.37, 183.52, 17
6.48, 169.94, 164.29, 158.05, 152.72, 148.03, 143.46, 139.13, 134.88, 131.08, 12
7.18, 124.0, 121.13, 118.49, 116.23, 114.04, 112.33, 110.71, 109.24, 108.6, 107.
47, 107.33, 106.31, 106.1, 105.88, 106.16, 106.41, 106.68, 107.06, 107.91, 108.4
8, 109.12, 110.22, 111.0, 111.81, 113.63, 114.64, 116.25, 118.45, 120.04, 122.67
, 124.85, 126.8, 129.07, 131.32, 134.06, 137.86, 141.15, 143.98, 146.89, 150.03,
 152.95, 156.39, 159.93, 163.84, 167.78, 171.48, 175.43, 179.15, 182.8, 186.51,
191.36, 195.75, 199.84, 203.62, 207.68, 211.52, 215.0, 219.36, 223.71, 227.89, 2
32.12, 237.24, 241.52, 246.35, 250.07, 253.64, 258.47, 261.65, 265.08, 270.08, 2
75.0, 279.26, 284.1, 288.72, 292.49, 295.93, 299.59, 303.66, 308.19, 312.31, 316
.39, 320.74, 324.84, 328.46, 333.47, 336.7, 340.53, 344.39, 347.3, 350.09, 353.9
5, 356.29, 360.71, 363.8, 366.79, 370.08, 373.64, 375.51, 378.04, 380.87, 383.93
, 386.55, 389.4, 391.36, 392.96, 394.38, 396.8, 398.38, 400.92, 403.71, 405.61,
409.22, 411.18, 412.8, 416.32, 418.21, 420.36]
[0.03, 0.12, 0.14, 0.2, 0.24, 0.29, 0.32, 0.39, 0.42, 0.47, 0.56, 0.63, 0.71, 0.
82, 0.86, 0.91, 0.96, 1.07, 1.2, 1.27, 1.38, 1.44, 1.62, 1.71, 1.83, 1.89, 1.99,
 2.2, 2.39, 2.62, 2.73, 2.83, 2.9, 3.11, 3.28, 3.35, 3.58, 3.73, 3.88, 4.15, 4.3
, 4.39, 4.66, 4.88, 4.98, 5.13, 5.45, 5.72, 5.94, 6.21, 6.26, 6.51, 6.81, 7.07,
7.43, 7.52, 7.59, 7.88, 8.17, 8.2, 8.32, 8.69, 8.9, 9.01, 9.24, 9.24, 9.5, 9.67,
 9.68, 9.99, 10.22, 10.33, 10.46, 10.52, 10.57, 10.69, 10.85, 10.72, 10.83, 11.0
8, 11.12, 11.2, 11.36, 11.48, 11.76, 11.98, 12.22, 12.3, 12.21, 12.31, 12.52, 12
.72, 13.01, 13.24, 13.51, 13.53, 13.55, 13.84, 13.75, 13.83, 13.9, 13.97, 13.87,
 14.0, 14.03, 14.12, 14.09, 14.13, 14.06, 14.31, 14.53, 14.71, 15.11, 15.46, 15.
71, 15.89, 16.21, 16.36, 16.37, 16.31, 16.32, 16.38, 16.69, 16.97, 17.19, 17.33,
 17.77, 17.87, 18.12, 18.16, 18.18, 18.35, 18.37, 18.45, 18.65, 18.37, 18.33, 18
.59, 18.76, 18.98, 19.13, 19.14, 19.64, 19.96, 20.24, 20.52, 20.84, 20.98, 21.03
, 21.26, 21.42, 21.07, 20.87, 20.97, 21.21, 21.29, 21.61, 22.02, 21.86, 22.05, 2
2.35, 22.43, 23.19, 24.09, 24.42, 25.02, 25.77, 26.13, 26.4, 26.84, 27.61, 28.3,
 29.31, 30.01, 31.15, 31.91, 32.95, 33.95, 35.11, 36.22, 37.07, 38.41, 39.35, 40
.5, 41.73, 42.98, 44.6, 45.75, 47.32, 48.95, 50.65, 52.7, 54.55, 56.88, 58.6, 60
.71, 62.79, 65.03, 67.33, 69.52, 71.64, 74.02, 76.05, 78.53, 81.3, 83.52, 85.62,
 88.57, 91.0, 93.61, 96.92, 99.58, 103.28, 106.57, 109.22, 112.42, 115.4, 118.8,
 123.34, 127.15, 130.65, 134.18, 137.89, 141.23, 145.24, 149.28, 153.78, 158.09,
 162.23, 166.63, 170.8, 174.89, 178.9, 184.1, 188.81, 193.11, 197.15, 201.47, 20
5.5, 209.28, 213.92, 218.44, 222.79, 227.16, 232.41, 236.83, 241.79, 245.62, 249
.39, 254.32, 257.6, 261.23, 266.34, 271.33, 275.61, 280.43, 285.21, 289.01, 292.
58, 296.39, 300.53, 305.06, 309.37, 313.49, 317.81, 321.92, 325.6, 330.56, 333.7
8, 337.61, 341.5, 344.39, 347.27, 351.17, 353.57, 358.1, 361.28, 364.33, 367.58,
 371.18, 373.04, 375.55, 378.39, 381.47, 384.11, 387.02, 388.98, 390.6, 391.94,
394.35, 395.95, 398.54, 401.34, 403.14, 406.71, 408.78, 410.43, 414.01, 415.87,
417.94]


2013/1/2 Tony Veijalainen <tony.vei...@gmail.com>

Mark Dufour

unread,
Jan 5, 2013, 7:01:55 PM1/5/13
to shedskin...@googlegroups.com
hi tony,

thanks! can you confirm that you are using a 64-bit python version..? for some reason, this does not seem to come with \Python2x\Libs\libpython2x.a, which is needed to build an extension module..

I'm thinking about adding a warning for this for 0.9.3, to be released in the next few days.

thanks for reminding me of this problem!
mark.
--
http://www.youtube.com/watch?v=E6LsfnBmdnk

Mark Dufour

unread,
Jan 5, 2013, 7:11:03 PM1/5/13
to shedskin...@googlegroups.com
I tried to add a warning for this in git.. could you perhaps pull from git to see if you get a warning now when using a 64-bit python in combination with shedskin -e, and no warning when using a 32-bit version..?

thanks!!
mark.
--
http://www.youtube.com/watch?v=E6LsfnBmdnk

Tony Veijalainen

unread,
Jan 6, 2013, 3:08:34 PM1/6/13
to shedskin-discuss
I copied the git mainline over the Shedskin 0.92 and it seemed to give more warnings, but result was same.

raitsIcESaIcEE (auto-import)
Info: resolving vtable for std::basic_stringbuf<char, std::char_traits<char>, st
d::allocator<char> > by linking to __imp___ZTVSt15basic_stringbufIcSt11char_trai
tsIcESaIcEE (auto-import)
Info: resolving std::basic_string<char, std::char_traits<char>, std::allocator<c
har> >::_Rep::_S_empty_rep_storage by linking to __imp___ZNSs4_Rep20_S_empty_rep
_storageE (auto-import)
Info: resolving vtable for std::basic_streambuf<char, std::char_traits<char> > b
y linking to __imp___ZTVSt15basic_streambufIcSt11char_traitsIcEE (auto-import)
Info: resolving vtable for std::basic_ios<char, std::char_traits<char> > by link
ing to __imp___ZTVSt9basic_iosIcSt11char_traitsIcEE (auto-import)
Info: resolving vtable for std::basic_stringstream<char, std::char_traits<char>,
 std::allocator<char> > by linking to __imp___ZTVSt18basic_stringstreamIcSt11cha
r_traitsIcESaIcEE (auto-import)
c:/users/veijalainen/downloads/shedskin-0.9.2/bin/../lib/gcc/mingw32/4.5.0/../..
/../../mingw32/bin/ld.exe: warning: auto-importing has been activated without --
enable-auto-import specified on the command line.
This should work unless it involves constant data structures referencing symbols
 from auto-imported DLLs.

C:\Users\Veijalainen\Downloads\shedskin-0.9.2\shedskin>test
hello, world!

C:\Users\Veijalainen\Downloads\shedskin-0.9.2\shedskin>shedskin ps8_help.py
*** SHED SKIN Python-to-C++ Compiler 0.9 ***

Copyright 2005-2011 Mark Dufour; License GNU GPL version 3 (See LICENSE)

[analyzing types..]
********************************100%
[generating c++ code..]
[elapsed time: 3.00 seconds]

*WARNING* ps8_help.py:62: function (class SimpleVirus, 'reproduce') not called!
*WARNING* ps8_help.py:141: function (class Patient, '_try_reproduce') not called
!

C:\Users\Veijalainen\Downloads\shedskin-0.9.2\shedskin>make
g++  -O2 -march=native -Wno-deprecated  -I. -IC:/Users/Veijalainen/Downloads/she
dskin-0.9.2/shedskin/shedskin/lib ps8_help.cpp C:/Users/Veijalainen/Downloads/sh
edskin-0.9.2/shedskin/shedskin/lib/time.cpp C:/Users/Veijalainen/Downloads/sheds
kin-0.9.2/shedskin/shedskin/lib/re.cpp C:/Users/Veijalainen/Downloads/shedskin-0
.9.2/shedskin/shedskin/lib/random.cpp C:/Users/Veijalainen/Downloads/shedskin-0.
9.2/shedskin/shedskin/lib/math.cpp C:/Users/Veijalainen/Downloads/shedskin-0.9.2
/shedskin/shedskin/lib/copy.cpp C:/Users/Veijalainen/Downloads/shedskin-0.9.2/sh
edskin/shedskin/lib/builtin.cpp -lgc -lpcre  -o ps8_help
Info: resolving vtable for __cxxabiv1::__si_class_type_info by linking to __imp_
__ZTVN10__cxxabiv120__si_class_type_infoE (auto-import)
Info: resolving vtable for __cxxabiv1::__pointer_type_info by linking to __imp__
_ZTVN10__cxxabiv119__pointer_type_infoE (auto-import)
Info: resolving vtable for __cxxabiv1::__class_type_info by linking to __imp___Z
TVN10__cxxabiv117__class_type_infoE (auto-import)
Info: resolving VTT for std::basic_stringstream<char, std::char_traits<char>, st
d::allocator<char> > by linking to __imp___ZTTSt18basic_stringstreamIcSt11char_t
raitsIcESaIcEE (auto-import)
Info: resolving vtable for std::basic_stringbuf<char, std::char_traits<char>, st
d::allocator<char> > by linking to __imp___ZTVSt15basic_stringbufIcSt11char_trai
tsIcESaIcEE (auto-import)
Info: resolving std::basic_string<char, std::char_traits<char>, std::allocator<c
har> >::_Rep::_S_empty_rep_storage by linking to __imp___ZNSs4_Rep20_S_empty_rep
_storageE (auto-import)
Info: resolving vtable for std::basic_streambuf<char, std::char_traits<char> > b
y linking to __imp___ZTVSt15basic_streambufIcSt11char_traitsIcEE (auto-import)
Info: resolving vtable for std::basic_ios<char, std::char_traits<char> > by link
ing to __imp___ZTVSt9basic_iosIcSt11char_traitsIcEE (auto-import)
Info: resolving vtable for std::basic_stringstream<char, std::char_traits<char>,
 std::allocator<char> > by linking to __imp___ZTVSt18basic_stringstreamIcSt11cha
r_traitsIcESaIcEE (auto-import)
c:/users/veijalainen/downloads/shedskin-0.9.2/bin/../lib/gcc/mingw32/4.5.0/../..
/../../mingw32/bin/ld.exe: warning: auto-importing has been activated without --
enable-auto-import specified on the command line.
This should work unless it involves constant data structures referencing symbols
 from auto-imported DLLs.


C:\Users\Veijalainen\Downloads\shedskin-0.9.2\shedskin>ps8_help.exe
0 10 20 30 40 50 60 70 80 90 20.389 s
C:\Users\Veijalainen\Downloads\shedskin-0.9.2\shedskin>shedskin -e ps8_help.py
*** SHED SKIN Python-to-C++ Compiler 0.9 ***

Copyright 2005-2011 Mark Dufour; License GNU GPL version 3 (See LICENSE)

[analyzing types..]
********************************100%
[generating c++ code..]
*WARNING* class not exported: NoChildException
[elapsed time: 2.98 seconds]

*WARNING* ps8_help.py:62: function (class SimpleVirus, 'reproduce') not called!
*WARNING* ps8_help.py:141: function (class Patient, '_try_reproduce') not called
!

C:\Users\Veijalainen\Downloads\shedskin-0.9.2\shedskin>make
g++  -O2 -march=native -Wno-deprecated  -I. -IC:/Users/Veijalainen/Downloads/she

dskin-0.9.2/shedskin/shedskin/lib -Ic:/python27/include -D__SS_BIND ps8_help.cpp
 C:/Users/Veijalainen/Downloads/shedskin-0.9.2/shedskin/shedskin/lib/time.cpp C:
/Users/Veijalainen/Downloads/shedskin-0.9.2/shedskin/shedskin/lib/re.cpp C:/User
s/Veijalainen/Downloads/shedskin-0.9.2/shedskin/shedskin/lib/random.cpp C:/Users
/Veijalainen/Downloads/shedskin-0.9.2/shedskin/shedskin/lib/math.cpp C:/Users/Ve
ijalainen/Downloads/shedskin-0.9.2/shedskin/shedskin/lib/copy.cpp C:/Users/Veija
lainen/Downloads/shedskin-0.9.2/shedskin/shedskin/lib/builtin.cpp -lgc -lpcre  -

shared -Lc:/python27/libs -lpython27 -o ps8_help.pyd
Info: resolving vtable for __cxxabiv1::__si_class_type_info by linking to __imp_
__ZTVN10__cxxabiv120__si_class_type_infoE (auto-import)
Info: resolving vtable for __cxxabiv1::__pointer_type_info by linking to __imp__
_ZTVN10__cxxabiv119__pointer_type_infoE (auto-import)
Info: resolving vtable for __cxxabiv1::__class_type_info by linking to __imp___Z
TVN10__cxxabiv117__class_type_infoE (auto-import)
Info: resolving VTT for std::basic_stringstream<char, std::char_traits<char>, st
d::allocator<char> > by linking to __imp___ZTTSt18basic_stringstreamIcSt11char_t
raitsIcESaIcEE (auto-import)
Info: resolving vtable for std::basic_stringbuf<char, std::char_traits<char>, st
d::allocator<char> > by linking to __imp___ZTVSt15basic_stringbufIcSt11char_trai
tsIcESaIcEE (auto-import)
Info: resolving std::basic_string<char, std::char_traits<char>, std::allocator<c
har> >::_Rep::_S_empty_rep_storage by linking to __imp___ZNSs4_Rep20_S_empty_rep
_storageE (auto-import)
Info: resolving vtable for std::basic_streambuf<char, std::char_traits<char> > b
y linking to __imp___ZTVSt15basic_streambufIcSt11char_traitsIcEE (auto-import)
Info: resolving vtable for std::basic_ios<char, std::char_traits<char> > by link
ing to __imp___ZTVSt9basic_iosIcSt11char_traitsIcEE (auto-import)
Info: resolving vtable for std::basic_stringstream<char, std::char_traits<char>,
 std::allocator<char> > by linking to __imp___ZTVSt18basic_stringstreamIcSt11cha
r_traitsIcESaIcEE (auto-import)
c:/users/veijalainen/downloads/shedskin-0.9.2/bin/../lib/gcc/mingw32/4.5.0/../..
/../../mingw32/bin/ld.exe: warning: auto-importing has been activated without --
enable-auto-import specified on the command line.
This should work unless it involves constant data structures referencing symbols
 from auto-imported DLLs.
C:\Users\VEIJAL~1\AppData\Local\Temp\ccBANfdA.o:ps8_help.cpp:(.text+0x45d): unde
fined reference to `_imp___Py_NoneStruct'
C:\Users\VEIJAL~1\AppData\Local\Temp\ccBANfdA.o:ps8_help.cpp:(.text+0xbbd): unde
fined reference to `_imp___Py_NoneStruct'
C:\Users\VEIJAL~1\AppData\Local\Temp\ccBANfdA.o:ps8_help.cpp:(.text+0xcdd): unde
fined reference to `_imp___Py_NoneStruct'
C:\Users\VEIJAL~1\AppData\Local\Temp\ccBANfdA.o:ps8_help.cpp:(.text+0xdfd): unde
fined reference to `_imp___Py_NoneStruct'
C:\Users\VEIJAL~1\AppData\Local\Temp\ccBANfdA.o:ps8_help.cpp:(.text+0xf1d): unde
fined reference to `_imp___Py_NoneStruct'
C:\Users\VEIJAL~1\AppData\Local\Temp\ccBANfdA.o:ps8_help.cpp:(.text+0x1820): mor

e undefined references to `_imp___Py_NoneStruct' follow
C:\Users\VEIJAL~1\AppData\Local\Temp\ccBANfdA.o:ps8_help.cpp:(.text$_ZN12__sheds

kin__9Exception9__to_py__Ev[__shedskin__::Exception::__to_py__()]+0x2): undefine
d reference to `_imp__PyExc_Exception'
C:\Users\VEIJAL~1\AppData\Local\Temp\ccBANfdA.o:ps8_help.cpp:(.text$_ZN12__sheds

kin__8KeyError9__to_py__Ev[__shedskin__::KeyError::__to_py__()]+0x2): undefined
reference to `_imp__PyExc_KeyError'
C:\Users\VEIJAL~1\AppData\Local\Temp\ccBANfdA.o:ps8_help.cpp:(.text$_ZN12__sheds

kin__9TypeError9__to_py__Ev[__shedskin__::TypeError::__to_py__()]+0x2): undefine
d reference to `_imp__PyExc_TypeError'
C:\Users\VEIJAL~1\AppData\Local\Temp\ccBANfdA.o:ps8_help.cpp:(.text$_ZN12__sheds

kin__7__to_ssIPNS_3strEEET_P7_object[__shedskin__::str* __shedskin__::__to_ss<__
shedskin__::str*>(_object*)]+0x14): undefined reference to `_imp___Py_NoneStruct
'
C:\Users\VEIJAL~1\AppData\Local\Temp\ccBANfdA.o:ps8_help.cpp:(.text$_ZN12__sheds

kin__7__to_pyIPNS_4listIdEEEEP7_objectT_[_object* __shedskin__::__to_py<__shedsk
in__::list<double>*>(__shedskin__::list<double>*)]+0x21): undefined reference to
 `_imp___Py_NoneStruct'
C:\Users\VEIJAL~1\AppData\Local\Temp\ccBANfdA.o:ps8_help.cpp:(.text$_ZN12__sheds

kin__7__to_pyIPNS_4listIPNS1_IdEEEEEEP7_objectT_[_object* __shedskin__::__to_py<
__shedskin__::list<__shedskin__::list<double>*>*>(__shedskin__::list<__shedskin_
_::list<double>*>*)]+0x21): undefined reference to `_imp___Py_NoneStruct'
C:\Users\VEIJAL~1\AppData\Local\Temp\ccBANfdA.o:ps8_help.cpp:(.text$_ZN12__sheds

kin__7__to_pyIPNS_6tuple2IPNS_4listIdEES4_EEEEP7_objectT_[_object* __shedskin__:
:__to_py<__shedskin__::tuple2<__shedskin__::list<double>*, __shedskin__::list<do
uble>*>*>(__shedskin__::tuple2<__shedskin__::list<double>*, __shedskin__::list<d
ouble>*>*)]+0x21): undefined reference to `_imp___Py_NoneStruct'
C:\Users\VEIJAL~1\AppData\Local\Temp\ccBANfdA.o:ps8_help.cpp:(.text$_ZN12__sheds

kin__7__to_ssIPNS_4listIPN12__ps8_help__14ResistantVirusEEEEET_P7_object[__sheds
kin__::list<__ps8_help__::ResistantVirus*>* __shedskin__::__to_ss<__shedskin__::
list<__ps8_help__::ResistantVirus*>*>(_object*)]+0x14): undefined reference to `
_imp___Py_NoneStruct'
C:\Users\VEIJAL~1\AppData\Local\Temp\ccBANfdA.o:ps8_help.cpp:(.text$_ZN12__sheds

kin__7__to_ssIPNS_4dictIPNS_3strENS_9__ss_boolEEEEET_P7_object[__shedskin__::dic
t<__shedskin__::str*, __shedskin__::__ss_bool>* __shedskin__::__to_ss<__shedskin
__::dict<__shedskin__::str*, __shedskin__::__ss_bool>*>(_object*)]+0x14): more u
ndefined references to `_imp___Py_NoneStruct' follow
C:\Users\VEIJAL~1\AppData\Local\Temp\ccBANfdA.o:ps8_help.cpp:(.text$_ZN12__sheds

kin__3setIPNS_3strEEC1EP7_object[__shedskin__::set<__shedskin__::str*>::set(_obj
ect*)]+0x4f): undefined reference to `_imp__PyFrozenSet_Type'
C:\Users\VEIJAL~1\AppData\Local\Temp\ccBANfdA.o:ps8_help.cpp:(.text$_ZN12__sheds

kin__3setIPNS_3strEEC1EP7_object[__shedskin__::set<__shedskin__::str*>::set(_obj
ect*)]+0x5b): undefined reference to `_imp__PySet_Type'
C:\Users\VEIJAL~1\AppData\Local\Temp\ccBANfdA.o:ps8_help.cpp:(.text$_ZN12__sheds

kin__7__to_ssIPNS_3setIPNS_3strEEEEET_P7_object[__shedskin__::set<__shedskin__::
str*>* __shedskin__::__to_ss<__shedskin__::set<__shedskin__::str*>*>(_object*)]+
0x14): undefined reference to `_imp___Py_NoneStruct'
C:\Users\VEIJAL~1\AppData\Local\Temp\ccBANfdA.o:ps8_help.cpp:(.text$_ZN12__sheds

kin__7__to_pyIPN12__ps8_help__14ResistantVirusEEEP7_objectT_[_object* __shedskin
__::__to_py<__ps8_help__::ResistantVirus*>(__ps8_help__::ResistantVirus*)]+0x21)
: undefined reference to `_imp___Py_NoneStruct'
C:\Users\VEIJAL~1\AppData\Local\Temp\ccBANfdA.o:ps8_help.cpp:(.text$_ZN12__sheds

kin__7__to_pyIPNS_4listIPN12__ps8_help__14ResistantVirusEEEEEP7_objectT_[_object
* __shedskin__::__to_py<__shedskin__::list<__ps8_help__::ResistantVirus*>*>(__sh
edskin__::list<__ps8_help__::ResistantVirus*>*)]+0x21): undefined reference to `
_imp___Py_NoneStruct'
C:\Users\VEIJAL~1\AppData\Local\Temp\ccBANfdA.o:ps8_help.cpp:(.text$_ZN12__sheds

kin__7__to_pyIPNS_3strEEEP7_objectT_[_object* __shedskin__::__to_py<__shedskin__
::str*>(__shedskin__::str*)]+0x21): undefined reference to `_imp___Py_NoneStruct
'
C:\Users\VEIJAL~1\AppData\Local\Temp\ccBANfdA.o:ps8_help.cpp:(.text$_ZN12__sheds

kin__7__to_pyIPNS_4dictIPNS_3strENS_9__ss_boolEEEEEP7_objectT_[_object* __shedsk
in__::__to_py<__shedskin__::dict<__shedskin__::str*, __shedskin__::__ss_bool>*>(
__shedskin__::dict<__shedskin__::str*, __shedskin__::__ss_bool>*)]+0x21): undefi
ned reference to `_imp___Py_NoneStruct'
C:\Users\VEIJAL~1\AppData\Local\Temp\ccBANfdA.o:ps8_help.cpp:(.text$_ZN12__sheds

kin__7__to_ssIPNS_4listIPNS_3strEEEEET_P7_object[__shedskin__::list<__shedskin__
::str*>* __shedskin__::__to_ss<__shedskin__::list<__shedskin__::str*>*>(_object*
)]+0x14): more undefined references to `_imp___Py_NoneStruct' follow
C:\Users\VEIJAL~1\AppData\Local\Temp\ccX1NXPN.o:time.cpp:(.text$_ZN12__shedskin_

_10ValueError9__to_py__Ev[__shedskin__::ValueError::__to_py__()]+0x2): undefined
 reference to `_imp__PyExc_ValueError'
C:\Users\VEIJAL~1\AppData\Local\Temp\ccykkuAr.o:re.cpp:(.text$_ZN6__re__5error9_

_to_py__Ev[__re__::error::__to_py__()]+0x2): undefined reference to `_imp__PyExc
_Exception'
C:\Users\VEIJAL~1\AppData\Local\Temp\cccq0iBy.o:builtin.cpp:(.text+0x3812): unde
fined reference to `_imp___Py_NoneStruct'
C:\Users\VEIJAL~1\AppData\Local\Temp\cccq0iBy.o:builtin.cpp:(.text+0x391d): unde
fined reference to `_imp__PyBool_Type'
C:\Users\VEIJAL~1\AppData\Local\Temp\cccq0iBy.o:builtin.cpp:(.text+0x3995): unde
fined reference to `_imp___Py_TrueStruct'
C:\Users\VEIJAL~1\AppData\Local\Temp\cccq0iBy.o:builtin.cpp:(.text+0x3a2a): unde
fined reference to `_imp__PyFloat_Type'
C:\Users\VEIJAL~1\AppData\Local\Temp\cccq0iBy.o:builtin.cpp:(.text+0x3b29): unde
fined reference to `_imp___Py_NoneStruct'
C:\Users\VEIJAL~1\AppData\Local\Temp\cccq0iBy.o:builtin.cpp:(.text$_ZN12__shedsk

in__8EOFError9__to_py__Ev[__shedskin__::EOFError::__to_py__()]+0x2): undefined r
eference to `_imp__PyExc_EOFError'
C:\Users\VEIJAL~1\AppData\Local\Temp\cccq0iBy.o:builtin.cpp:(.text$_ZN12__shedsk

in__10IndexError9__to_py__Ev[__shedskin__::IndexError::__to_py__()]+0x2): undefi
ned reference to `_imp__PyExc_IndexError'
C:\Users\VEIJAL~1\AppData\Local\Temp\cccq0iBy.o:builtin.cpp:(.text$_ZN12__shedsk

in__7IOError9__to_py__Ev[__shedskin__::IOError::__to_py__()]+0x2): undefined ref
erence to `_imp__PyExc_IOError'
C:\Users\VEIJAL~1\AppData\Local\Temp\cccq0iBy.o:builtin.cpp:(.text$_ZN12__shedsk

in__7OSError9__to_py__Ev[__shedskin__::OSError::__to_py__()]+0x2): undefined ref
erence to `_imp__PyExc_OSError'
C:\Users\VEIJAL~1\AppData\Local\Temp\cccq0iBy.o:builtin.cpp:(.text$_ZN12__shedsk

in__13OverflowError9__to_py__Ev[__shedskin__::OverflowError::__to_py__()]+0x2):
undefined reference to `_imp__PyExc_OverflowError'
C:\Users\VEIJAL~1\AppData\Local\Temp\cccq0iBy.o:builtin.cpp:(.text$_ZN12__shedsk

in__12RuntimeError9__to_py__Ev[__shedskin__::RuntimeError::__to_py__()]+0x2): un
defined reference to `_imp__PyExc_RuntimeError'
collect2: ld returned 1 exit status
make: *** [ps8_help.pyd] Error 1

C:\Users\Veijalainen\Downloads\shedskin-0.9.2\shedskin>


2013/1/6 Mark Dufour <mark....@gmail.com>

Mark Dufour

unread,
Jan 7, 2013, 4:16:11 PM1/7/13
to shedskin...@googlegroups.com
hi tony,

thanks for the output! it leads to two questions:

-which version of python do you have installed, and for example if it's 2.7 and you installed it on c:\, does the file c:\Python27\libs\libpython27.a exist?

-isn't it strange that shedskin prints 'shedskin 0.9'..? it should print 0.9.2 for 0.9.2 and 0.9.3 when using the git version.. ?

thanks again,
mark.

Tony Veijalainen

unread,
Jan 9, 2013, 4:40:15 AM1/9/13
to shedskin-discuss
I reran with your Windows installation for 0.9.3. I have not sorted it out, but here is log of session and short answer is that I have 32 bit Enthought Free version 2.7.3 in use  as it is one used for MITx 6.00x. It seems not to have that file in the directory. I have one 64 bit Python installed previously for this new computer.

Hand copying the file from old python installation from portable drive fixed the error. Maybe you could add check if this file exists in python during installation, same time you could build better init file with only existing paths for PATH. It would be a super simple Python script. You could of course ping the Enthought people of need for this file, and they maybe could fix their distribution.

C:\Users\Veijalainen\shedskin-0.9.3\shedskin>shedskin -e ps8_help.py
*** SHED SKIN Python-to-C++ Compiler 0.9.3 ***

Copyright 2005-2011 Mark Dufour; License GNU GPL version 3 (See LICENSE)

[analyzing types..]
********************************100%
[generating c++ code..]
*WARNING* 'NoChildException' class not exported (inherits from Exception)
*WARNING* ps8_help.py:62: function (class SimpleVirus, 'reproduce') not called!
*WARNING* ps8_help.py:141: function (class Patient, '_try_reproduce') not called!
[elapsed time: 4.06 seconds]

C:\Users\Veijalainen\shedskin-0.9.3\shedskin>make
g++  -O2 -march=native -Wno-deprecated -Wl,--enable-auto-import  -I. -IC:/Users/Veijalainen/shedskin-0.9.3/shedskin/shedskin/lib -Ic:/python27/include -D__SS_BI
ND ps8_help.cpp C:/Users/Veijalainen/shedskin-0.9.3/shedskin/shedskin/lib/time.cpp C:/Users/Veijalainen/shedskin-0.9.3/shedskin/shedskin/lib/re.cpp C:/Users/Vei
jalainen/shedskin-0.9.3/shedskin/shedskin/lib/random.cpp C:/Users/Veijalainen/shedskin-0.9.3/shedskin/shedskin/lib/math.cpp C:/Users/Veijalainen/shedskin-0.9.3/
shedskin/shedskin/lib/copy.cpp C:/Users/Veijalainen/shedskin-0.9.3/shedskin/shedskin/lib/builtin.cpp -lgc -lpcre  -shared -Lc:/python27/libs -lpython27 -o ps8_h
elp.pyd
C:\Users\VEIJAL~1\AppData\Local\Temp\ccaYHrOB.o:ps8_help.cpp:(.text+0x45d): undefined reference to `_imp___Py_NoneStruct'
C:\Users\VEIJAL~1\AppData\Local\Temp\ccaYHrOB.o:ps8_help.cpp:(.text+0xbbd): undefined reference to `_imp___Py_NoneStruct'
C:\Users\VEIJAL~1\AppData\Local\Temp\ccaYHrOB.o:ps8_help.cpp:(.text+0xcdd): undefined reference to `_imp___Py_NoneStruct'
C:\Users\VEIJAL~1\AppData\Local\Temp\ccaYHrOB.o:ps8_help.cpp:(.text+0xdfd): undefined reference to `_imp___Py_NoneStruct'
C:\Users\VEIJAL~1\AppData\Local\Temp\ccaYHrOB.o:ps8_help.cpp:(.text+0xf1d): undefined reference to `_imp___Py_NoneStruct'
C:\Users\VEIJAL~1\AppData\Local\Temp\ccaYHrOB.o:ps8_help.cpp:(.text+0x1820): more undefined references to `_imp___Py_NoneStruct' follow
C:\Users\VEIJAL~1\AppData\Local\Temp\ccaYHrOB.o:ps8_help.cpp:(.text$_ZN12__shedskin__9Exception9__to_py__Ev[__shedskin__::Exception::__to_py__()]+0x2): undefine
d reference to `_imp__PyExc_Exception'
C:\Users\VEIJAL~1\AppData\Local\Temp\ccaYHrOB.o:ps8_help.cpp:(.text$_ZN12__shedskin__8KeyError9__to_py__Ev[__shedskin__::KeyError::__to_py__()]+0x2): undefined
reference to `_imp__PyExc_KeyError'
C:\Users\VEIJAL~1\AppData\Local\Temp\ccaYHrOB.o:ps8_help.cpp:(.text$_ZN12__shedskin__9TypeError9__to_py__Ev[__shedskin__::TypeError::__to_py__()]+0x2): undefine
d reference to `_imp__PyExc_TypeError'
C:\Users\VEIJAL~1\AppData\Local\Temp\ccaYHrOB.o:ps8_help.cpp:(.text$_ZN12__shedskin__7__to_ssIPNS_3strEEET_P7_object[__shedskin__::str* __shedskin__::__to_ss<__

shedskin__::str*>(_object*)]+0x14): undefined reference to `_imp___Py_NoneStruct'
C:\Users\VEIJAL~1\AppData\Local\Temp\ccaYHrOB.o:ps8_help.cpp:(.text$_ZN12__shedskin__7__to_pyIPNS_4listIdEEEEP7_objectT_[_object* __shedskin__::__to_py<__shedsk

in__::list<double>*>(__shedskin__::list<double>*)]+0x21): undefined reference to `_imp___Py_NoneStruct'
C:\Users\VEIJAL~1\AppData\Local\Temp\ccaYHrOB.o:ps8_help.cpp:(.text$_ZN12__shedskin__7__to_pyIPNS_4listIPNS1_IdEEEEEEP7_objectT_[_object* __shedskin__::__to_py<
__shedskin__::list<__shedskin__::list<double>*>*>(__shedskin__::list<__shedskin__::list<double>*>*)]+0x21): undefined reference to `_imp___Py_NoneStruct'
C:\Users\VEIJAL~1\AppData\Local\Temp\ccaYHrOB.o:ps8_help.cpp:(.text$_ZN12__shedskin__7__to_pyIPNS_6tuple2IPNS_4listIdEES4_EEEEP7_objectT_[_object* __shedskin__:
:__to_py<__shedskin__::tuple2<__shedskin__::list<double>*, __shedskin__::list<double>*>*>(__shedskin__::tuple2<__shedskin__::list<double>*, __shedskin__::list<d

ouble>*>*)]+0x21): undefined reference to `_imp___Py_NoneStruct'
C:\Users\VEIJAL~1\AppData\Local\Temp\ccaYHrOB.o:ps8_help.cpp:(.text$_ZN12__shedskin__7__to_ssIPNS_4listIPN12__ps8_help__14ResistantVirusEEEEET_P7_object[__sheds

kin__::list<__ps8_help__::ResistantVirus*>* __shedskin__::__to_ss<__shedskin__::list<__ps8_help__::ResistantVirus*>*>(_object*)]+0x14): undefined reference to `
_imp___Py_NoneStruct'
C:\Users\VEIJAL~1\AppData\Local\Temp\ccaYHrOB.o:ps8_help.cpp:(.text$_ZN12__shedskin__7__to_ssIPNS_4dictIPNS_3strENS_9__ss_boolEEEEET_P7_object[__shedskin__::dic
t<__shedskin__::str*, __shedskin__::__ss_bool>* __shedskin__::__to_ss<__shedskin__::dict<__shedskin__::str*, __shedskin__::__ss_bool>*>(_object*)]+0x14): more u

ndefined references to `_imp___Py_NoneStruct' follow
C:\Users\VEIJAL~1\AppData\Local\Temp\ccaYHrOB.o:ps8_help.cpp:(.text$_ZN12__shedskin__3setIPNS_3strEEC1EP7_object[__shedskin__::set<__shedskin__::str*>::set(_obj

ect*)]+0x4f): undefined reference to `_imp__PyFrozenSet_Type'
C:\Users\VEIJAL~1\AppData\Local\Temp\ccaYHrOB.o:ps8_help.cpp:(.text$_ZN12__shedskin__3setIPNS_3strEEC1EP7_object[__shedskin__::set<__shedskin__::str*>::set(_obj

ect*)]+0x5b): undefined reference to `_imp__PySet_Type'
C:\Users\VEIJAL~1\AppData\Local\Temp\ccaYHrOB.o:ps8_help.cpp:(.text$_ZN12__shedskin__7__to_ssIPNS_3setIPNS_3strEEEEET_P7_object[__shedskin__::set<__shedskin__::
str*>* __shedskin__::__to_ss<__shedskin__::set<__shedskin__::str*>*>(_object*)]+0x14): undefined reference to `_imp___Py_NoneStruct'
C:\Users\VEIJAL~1\AppData\Local\Temp\ccaYHrOB.o:ps8_help.cpp:(.text$_ZN12__shedskin__7__to_pyIPN12__ps8_help__14ResistantVirusEEEP7_objectT_[_object* __shedskin

__::__to_py<__ps8_help__::ResistantVirus*>(__ps8_help__::ResistantVirus*)]+0x21): undefined reference to `_imp___Py_NoneStruct'
C:\Users\VEIJAL~1\AppData\Local\Temp\ccaYHrOB.o:ps8_help.cpp:(.text$_ZN12__shedskin__7__to_pyIPNS_4listIPN12__ps8_help__14ResistantVirusEEEEEP7_objectT_[_object
* __shedskin__::__to_py<__shedskin__::list<__ps8_help__::ResistantVirus*>*>(__shedskin__::list<__ps8_help__::ResistantVirus*>*)]+0x21): undefined reference to `
_imp___Py_NoneStruct'
C:\Users\VEIJAL~1\AppData\Local\Temp\ccaYHrOB.o:ps8_help.cpp:(.text$_ZN12__shedskin__7__to_pyIPNS_3strEEEP7_objectT_[_object* __shedskin__::__to_py<__shedskin__

::str*>(__shedskin__::str*)]+0x21): undefined reference to `_imp___Py_NoneStruct'
C:\Users\VEIJAL~1\AppData\Local\Temp\ccaYHrOB.o:ps8_help.cpp:(.text$_ZN12__shedskin__7__to_pyIPNS_4dictIPNS_3strENS_9__ss_boolEEEEEP7_objectT_[_object* __shedsk
in__::__to_py<__shedskin__::dict<__shedskin__::str*, __shedskin__::__ss_bool>*>(__shedskin__::dict<__shedskin__::str*, __shedskin__::__ss_bool>*)]+0x21): undefi
ned reference to `_imp___Py_NoneStruct'
C:\Users\VEIJAL~1\AppData\Local\Temp\ccaYHrOB.o:ps8_help.cpp:(.text$_ZN12__shedskin__7__to_ssIPNS_4listIPNS_3strEEEEET_P7_object[__shedskin__::list<__shedskin__
::str*>* __shedskin__::__to_ss<__shedskin__::list<__shedskin__::str*>*>(_object*)]+0x14): more undefined references to `_imp___Py_NoneStruct' follow
C:\Users\VEIJAL~1\AppData\Local\Temp\cc4LIs5y.o:time.cpp:(.text$_ZN12__shedskin__10ValueError9__to_py__Ev[__shedskin__::ValueError::__to_py__()]+0x2): undefined
 reference to `_imp__PyExc_ValueError'
C:\Users\VEIJAL~1\AppData\Local\Temp\ccqN31XR.o:re.cpp:(.text$_ZN6__re__5error9__to_py__Ev[__re__::error::__to_py__()]+0x2): undefined reference to `_imp__PyExc
_Exception'
C:\Users\VEIJAL~1\AppData\Local\Temp\ccsmFzAb.o:builtin.cpp:(.text+0x3842): undefined reference to `_imp___Py_NoneStruct'
C:\Users\VEIJAL~1\AppData\Local\Temp\ccsmFzAb.o:builtin.cpp:(.text+0x394d): undefined reference to `_imp__PyBool_Type'
C:\Users\VEIJAL~1\AppData\Local\Temp\ccsmFzAb.o:builtin.cpp:(.text+0x39c5): undefined reference to `_imp___Py_TrueStruct'
C:\Users\VEIJAL~1\AppData\Local\Temp\ccsmFzAb.o:builtin.cpp:(.text+0x3a5a): undefined reference to `_imp__PyFloat_Type'
C:\Users\VEIJAL~1\AppData\Local\Temp\ccsmFzAb.o:builtin.cpp:(.text+0x3b59): undefined reference to `_imp___Py_NoneStruct'
C:\Users\VEIJAL~1\AppData\Local\Temp\ccsmFzAb.o:builtin.cpp:(.text$_ZN12__shedskin__8EOFError9__to_py__Ev[__shedskin__::EOFError::__to_py__()]+0x2): undefined r
eference to `_imp__PyExc_EOFError'
C:\Users\VEIJAL~1\AppData\Local\Temp\ccsmFzAb.o:builtin.cpp:(.text$_ZN12__shedskin__10IndexError9__to_py__Ev[__shedskin__::IndexError::__to_py__()]+0x2): undefi
ned reference to `_imp__PyExc_IndexError'
C:\Users\VEIJAL~1\AppData\Local\Temp\ccsmFzAb.o:builtin.cpp:(.text$_ZN12__shedskin__7IOError9__to_py__Ev[__shedskin__::IOError::__to_py__()]+0x2): undefined ref
erence to `_imp__PyExc_IOError'
C:\Users\VEIJAL~1\AppData\Local\Temp\ccsmFzAb.o:builtin.cpp:(.text$_ZN12__shedskin__7OSError9__to_py__Ev[__shedskin__::OSError::__to_py__()]+0x2): undefined ref
erence to `_imp__PyExc_OSError'
C:\Users\VEIJAL~1\AppData\Local\Temp\ccsmFzAb.o:builtin.cpp:(.text$_ZN12__shedskin__13OverflowError9__to_py__Ev[__shedskin__::OverflowError::__to_py__()]+0x2):
undefined reference to `_imp__PyExc_OverflowError'
C:\Users\VEIJAL~1\AppData\Local\Temp\ccsmFzAb.o:builtin.cpp:(.text$_ZN12__shedskin__12RuntimeError9__to_py__Ev[__shedskin__::RuntimeError::__to_py__()]+0x2): un

defined reference to `_imp__PyExc_RuntimeError'
collect2: ld returned 1 exit status
make: *** [ps8_help.pyd] Error 1

C:\Users\Veijalainen\shedskin-0.9.3\shedskin>python
Enthought Python Distribution (EPD) free version -- www.enthought.com
Version: 7.3-2 (32-bit)
(type 'upgrade' or see www.enthought.com/epd/upgrade to get the full EPD)

Python 2.7.3 |EPD_free 7.3-2 (32-bit)| (default, Apr 12 2012, 14:30:37) [MSC v.1500 32 bit (Intel)] on win32
Type "credits", "demo" or "enthought" for more information.
>>>

C:\Users\Veijalainen\shedskin-0.9.3\shedskin>path
PATH=C:\Users\Veijalainen\shedskin-0.9.3\bin;C:\Users\Veijalainen\shedskin-0.9.3\msys\bin;c:\python27;c:\python26;c:\python25;c:\python24;c:\python23;C:\Users\V
eijalainen\shedskin-0.9.3\shedskin;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program
 Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\windows\system32;C:\win
dows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Inte
l\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Managem
ent Engine Components\IPT;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\Graphviz 2.28\bin;C:\Python27;C:\Python27\Scripts

C:\Users\Veijalainen\shedskin-0.9.3\shedskin>ls c:\Python27\libs\
Komentoa ls ei tunnistettu sisäiseksi tai ulkoiseksi komennoksi,
suoritettavaksi ohjelmaksi tai komentojonotiedostoksi.

C:\Users\Veijalainen\shedskin-0.9.3\shedskin>dir c:\Python27\libs\
 Aseman C nimi on WIN7
 Aseman sarjanumero on 4239-7F66

 Kansio c:\Python27\libs

20.11.2012  16:59    <KANSIO>       .
20.11.2012  16:59    <KANSIO>       ..
20.11.2012  16:59             1 646 bz2.lib
20.11.2012  16:59             1 714 pyexpat.lib
20.11.2012  16:59           231 778 python27.lib
20.11.2012  16:59             1 698 select.lib
20.11.2012  16:59             1 782 unicodedata.lib
20.11.2012  16:59             1 732 winsound.lib
20.11.2012  16:59             1 888 _bsddb.lib
20.11.2012  16:59             1 714 _ctypes.lib
20.11.2012  16:59            21 680 _ctypes_test.lib
20.11.2012  16:59             1 878 _elementtree.lib
20.11.2012  16:59             1 732 _hashlib.lib
20.11.2012  16:59             1 664 _msi.lib
20.11.2012  16:59             1 950 _multiprocessing.lib
20.11.2012  16:59             1 920 _socket.lib
20.11.2012  16:59             1 732 _sqlite3.lib
20.11.2012  16:59             1 664 _ssl.lib
20.11.2012  16:59             1 748 _testcapi.lib
20.11.2012  16:59             1 732 _tkinter.lib
              18 tiedosto(a)        281 652 tavua
               2 kansio(ta)  319 702 577 152 tavua vapaana

Tony Veijalainen

unread,
Jan 9, 2013, 4:44:05 AM1/9/13
to shedskin-discuss
But trying to use the module failed:

Traceback (most recent call last):
  File "C:\Users\Veijalainen\shedskin-0.9.3\shedskin\ps9.py", line 6, in <module>
    from ps8_help import *
ImportError: DLL load failed: Mõõritettyõ osaa ei l÷ydy.




2013/1/9 Tony Veijalainen <tony.vei...@gmail.com>

Mark Dufour

unread,
Jan 11, 2013, 1:58:43 PM1/11/13
to shedskin...@googlegroups.com
hi tony,

thanks. I saw this problem as well when testing the shedskin examples, but iirc only for pygasus.py, so I thought I'd look at the problem later. ps8_help seems to work fine all the time (fresh XP SP3 32-bit, python 2.7.3, shedskin 0.9.3).

I just played with pygasus.py a bit to find the problem, and the strange thing is that even after making pygasus.py completely empty, the problem still occurs.. even stranger, renaming it to test.py makes it work! in fact, any other name than pygasus seems to work. I have no idea what might be causing this.

I'd like to take the opportunity to urge all shedskin users and software developers in general to migrate from windows or osx to gnu/linux. it will give you the most pain-free shedskin experience, and you might be surprised how user friendly gnu/linux has become. give it a try!

thanks again,
mark.

--
You received this message because you are subscribed to the Google Groups "shedskin-discuss" group.
To post to this group, send email to shedskin...@googlegroups.com.
To unsubscribe from this group, send email to shedskin-discu...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/shedskin-discuss?hl=en.



--
http://www.youtube.com/watch?v=E6LsfnBmdnk

Mark Dufour

unread,
Jan 11, 2013, 2:01:20 PM1/11/13
to shedskin...@googlegroups.com
I'd like to take the opportunity to urge all shedskin users and software developers in general to migrate from windows or osx to gnu/linux. it will give you the most pain-free shedskin experience, and you might be surprised how user friendly gnu/linux has become. give it a try!

I forgot to recommend Ubuntu, which is probably the best gnu/linux distribution for beginning linux users.

mark.
--
http://www.youtube.com/watch?v=E6LsfnBmdnk
Reply all
Reply to author
Forward
0 new messages