Last active
August 29, 2015 14:02
-
-
Save koo5/393746b19624debb2472 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
building unipycation, 12th june 2014: | |
doesnt build on x86, see attached log | |
builds on amd64, runs, but examples dont work, next step probably would be trying to run tests. | |
built with 4gb of ram using zram (apt-get install zram-config, then edit /etc/init/zram-config.conf, service zram-config restart) (googling building pypy with low ram finds some other possible solutions) | |
#these might be useful: | |
apt-get install pypy-dev pypy python-pip mercurial git | |
#and these will be needed: | |
apt-get install libssl-dev libffi-dev libncurses-dev libexpat-dev libbz2-dev | |
#and: | |
pip install --user sh vcstools | |
#and this is for unipycation-examples: | |
apt-get install tk-dev | |
pip install --user pydot | |
there are two repos: | |
https://bitbucket.org/softdevteam/unipycation | |
and | |
https://bitbucket.org/softdevteam/unipycation-shared | |
unipycation contains bootstrap.py that will clone unipycation-shared and pyrologic. bootstrap.py in unipycation-shared will again clone unipycation, so start by cloning unipycation-shared: | |
$ git clone https://bitbucket.org/softdevteam/unipycation-shared.git | |
$ cd unipycation-shared | |
bootstrap.py will try to fetch the unipycation repo, but using private url, so either upload your key to bitbucket or: | |
-UNIPY_REPO = "ssh://[email protected]/softdevteam/unipycation" | |
+UNIPY_REPO = "https://bitbucket.org/softdevteam/unipycation" | |
and in unipycation/bootstrap.py, change pyrolog url to | |
https://bitbucket.org/cfbolz/pyrolog-unipycation | |
after building: | |
uni.py is a symlink in unipycation-shared/unipycation/lib_pypy | |
pointing to | |
../../unipycation/deps/unipycation-shared/unipycation_shared/uni.py | |
i had to change it to | |
../../unipycation_shared/uni.py | |
README says to source env.sh, env.sh is empty | |
now i can run it: | |
kook@kook-Lenovo-G550:~/unipy/unipycation/deps/unipycation-shared$ unipycation/pypy/goal/unipycation | |
Python 2.7.3 (9acc7b6ff23a, Jun 10 2014, 00:44:26) | |
[PyPy 2.3.0-alpha0 with GCC 4.8.2] on linux2 | |
Type "help", "copyright", "credits" or "license" for more information. | |
And now for something completely different: ``redefining yellow seems like a | |
better idea'' | |
>>>> import uni | |
but all examples decidedly die: | |
kook@kook-Lenovo-G550:~/unipy/unipycation/deps/unipycation-shared/unipycation/pypy/goal$ ./unipycation ~/unipy/unipycation-examples/connect4/gui.py 2 | |
RPython traceback: | |
File "pypy_goal_targetpypystandalone.c", line 2271, in entry_point | |
File "pypy_interpreter_pyframe.c", line 4377, in PyFrame_execute_frame | |
File "rpython_jit_metainterp_warmspot.c", line 1489, in ll_portal_runner__Unsigned_Bool_pypy_interpreter | |
File "pypy_module_pypyjit_interp_jit.c", line 289, in portal_4 | |
... | |
Fatal RPython error: OSError | |
Aborted (core dumped) | |
kook@kook-Lenovo-G550:~/unipy/unipycation/deps/unipycation-shared/unipycation/pypy/goal$ ./unipycation ~/unipy/unipycation-examples/connect4-inlined/connect4.py 2 | |
RPython traceback: | |
File "pypy_goal_targetpypystandalone.c", line 2271, in entry_point | |
File "pypy_interpreter_pyframe.c", line 4377, in PyFrame_execute_frame | |
File "rpython_jit_metainterp_warmspot.c", line 1489, in ll_portal_runner__Unsigned_Bool_pypy_interpreter | |
File "pypy_module_pypyjit_interp_jit.c", line 289, in portal_4 | |
... | |
Fatal RPython error: CatchableError | |
Aborted (core dumped) | |
ook@kook-Lenovo-G550:~/unipy/unipycation-examples/poker$ ~/unipy/unipycation/deps/unipycation-shared/unipycation/pypy/goal/unipycation gui.py | |
RPython traceback: | |
File "pypy_goal_targetpypystandalone.c", line 2271, in entry_point | |
File "pypy_interpreter_pyframe.c", line 4377, in PyFrame_execute_frame | |
File "rpython_jit_metainterp_warmspot.c", line 1489, in ll_portal_runner__Unsigned_Bool_pypy_interpreter | |
File "pypy_module_pypyjit_interp_jit.c", line 289, in portal_4 | |
... | |
Fatal RPython error: CatchableError | |
Aborted (core dumped) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kook@kook-ThinkPad-R61e:~/unipycation-shared$ arch | |
i686 | |
kook@kook-ThinkPad-R61e:~/unipycation-shared$ cat /etc/issue | |
Ubuntu 13.10 \n \l | |
kook@kook-ThinkPad-R61e:~/unipycation-shared$ python bootstrap.py all unipycation | |
------------------------------------------------------------------------ | |
Bootstrapping unipycation (target=all) | |
------------------------------------------------------------------------ | |
Updating existing unipycation to version: unipycation | |
pulling from https://bitbucket.org/softdevteam/unipycation | |
searching for changes | |
no changes found | |
0 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
Updating existing pyrolog to version: unipycation | |
pulling from https://bitbucket.org/cfbolz/pyrolog-unipycation | |
searching for changes | |
no changes found | |
0 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
Translating unipycation... | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
TRANSLATING PYPY USING /usr/bin/python | |
/usr/bin/python ../../rpython/bin/rpython --output unipycation -Ojit targetpypystandalone.py | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
[translation:info] 2.7.5+ (default, Feb 27 2014, 19:39:55) | |
[translation:info] [GCC 4.8.1] | |
[platform:msg] Set platform with 'host' cc=None, using cc='gcc' | |
[translation:info] Translating target as defined by targetpypystandalone | |
[platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-unipycation-3/gcctest.c -o /tmp/usession-unipycation-3/gcctest.o | |
[platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-unipycation-3/gcctest.c -o /tmp/usession-unipycation-3/gcctest.o | |
[platform:execute] gcc /tmp/usession-unipycation-3/gcctest.o -pthread -lrt -o /tmp/usession-unipycation-3/gcctest | |
[platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused -I/home/kook/unipycation-shared/unipycation/rpython/translator/c /tmp/usession-unipycation-3/platcheck_0.c -o /tmp/usession-unipycation-3/platcheck_0.o | |
[platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused -I/home/kook/unipycation-shared/unipycation/rpython/translator/c /home/kook/unipycation-shared/unipycation/rpython/translator/c/src/thread.c -o /tmp/usession-unipycation-3/rpython/translator/c/src/thread.o | |
[platform:execute] gcc /tmp/usession-unipycation-3/platcheck_0.o /tmp/usession-unipycation-3/rpython/translator/c/src/thread.o -pthread -Wl,--export-dynamic,--version-script=/tmp/usession-unipycation-3/dynamic-symbols-0 -lrt -o /tmp/usession-unipycation-3/platcheck_0 | |
[platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-unipycation-3/platcheck_1.c -o /tmp/usession-unipycation-3/platcheck_1.o | |
[platform:execute] gcc /tmp/usession-unipycation-3/platcheck_1.o -pthread -lrt -o /tmp/usession-unipycation-3/platcheck_1 | |
[platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-unipycation-3/platcheck_2.c -o /tmp/usession-unipycation-3/platcheck_2.o | |
[platform:execute] gcc /tmp/usession-unipycation-3/platcheck_2.o -pthread -lrt -o /tmp/usession-unipycation-3/platcheck_2 | |
[platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-unipycation-3/platcheck_3.c -o /tmp/usession-unipycation-3/platcheck_3.o | |
[platform:execute] gcc /tmp/usession-unipycation-3/platcheck_3.o -pthread -lrt -o /tmp/usession-unipycation-3/platcheck_3 | |
[platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-unipycation-3/platcheck_4.c -o /tmp/usession-unipycation-3/platcheck_4.o | |
[platform:execute] gcc /tmp/usession-unipycation-3/platcheck_4.o -pthread -lintl -lrt -o /tmp/usession-unipycation-3/platcheck_4 | |
[platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-unipycation-3/platcheck_5.c -o /tmp/usession-unipycation-3/platcheck_5.o | |
[platform:execute] gcc /tmp/usession-unipycation-3/platcheck_5.o -pthread -lrt -o /tmp/usession-unipycation-3/platcheck_5 | |
[platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-unipycation-3/platcheck_6.c -o /tmp/usession-unipycation-3/platcheck_6.o | |
[platform:execute] gcc /tmp/usession-unipycation-3/platcheck_6.o -pthread -lrt -o /tmp/usession-unipycation-3/platcheck_6 | |
[platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-unipycation-3/platcheck_7.c -o /tmp/usession-unipycation-3/platcheck_7.o | |
[platform:execute] gcc /tmp/usession-unipycation-3/platcheck_7.o -pthread -lrt -o /tmp/usession-unipycation-3/platcheck_7 | |
[platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-unipycation-3/platcheck_8.c -o /tmp/usession-unipycation-3/platcheck_8.o | |
[platform:execute] gcc /tmp/usession-unipycation-3/platcheck_8.o -pthread -lrt -o /tmp/usession-unipycation-3/platcheck_8 | |
[translation] PyPy config object: | |
[translation] [objspace] | |
[translation] honor__builtins__ = False | |
[translation] [std] | |
[translation] builtinshortcut = True | |
[translation] getattributeshortcut = True | |
[translation] optimized_list_getitem = True | |
[translation] withcelldict = True | |
[translation] withidentitydict = True | |
[translation] withmapdict = True | |
[translation] withmethodcache = True | |
[translation] withprebuiltchar = True | |
[translation] withrangelist = True | |
[translation] withspecialisedtuple = True | |
[translation] withtypeversion = True | |
[translation] [usemodules] | |
[translation] __pypy__ = True | |
[translation] _ast = True | |
[translation] _cffi_backend = True | |
[translation] _codecs = True | |
[translation] _collections = True | |
[translation] _continuation = True | |
[translation] _csv = True | |
[translation] _hashlib = True | |
[translation] _io = True | |
[translation] _locale = True | |
[translation] _lsprof = True | |
[translation] _md5 = True | |
[translation] _minimal_curses = True | |
[translation] _multibytecodec = True | |
[translation] _multiprocessing = True | |
[translation] _pickle_support = True | |
[translation] _pypyjson = True | |
[translation] _random = True | |
[translation] _rawffi = True | |
[translation] _sha = True | |
[translation] _socket = True | |
[translation] _sre = True | |
[translation] _ssl = True | |
[translation] _testing = True | |
[translation] _weakref = True | |
[translation] array = True | |
[translation] binascii = True | |
[translation] bz2 = True | |
[translation] cStringIO = True | |
[translation] cmath = True | |
[translation] cppyy = True | |
[translation] cpyext = True | |
[translation] crypt = True | |
[translation] errno = True | |
[translation] fcntl = True | |
[translation] gc = True | |
[translation] imp = True | |
[translation] itertools = True | |
[translation] marshal = True | |
[translation] math = True | |
[translation] micronumpy = True | |
[translation] mmap = True | |
[translation] operator = True | |
[translation] parser = True | |
[translation] pwd = True | |
[translation] pyexpat = True | |
[translation] pypyjit = True | |
[translation] rctime = True | |
[translation] select = True | |
[translation] signal = True | |
[translation] struct = True | |
[translation] symbol = True | |
[translation] termios = True | |
[translation] thread = True | |
[translation] token = True | |
[translation] unicodedata = True | |
[translation] unipycation = True | |
[translation] zipimport = True | |
[translation] zlib = True | |
Wrote /home/kook/unipycation-shared/unipycation/lib_pypy/ctypes_config_cache/_locale_32_.py. | |
Wrote /home/kook/unipycation-shared/unipycation/lib_pypy/ctypes_config_cache/_resource_32_.py. | |
[platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-unipycation-3/platcheck_9.c -o /tmp/usession-unipycation-3/platcheck_9.o | |
[platform:execute] gcc /tmp/usession-unipycation-3/platcheck_9.o -pthread -lrt -o /tmp/usession-unipycation-3/platcheck_9 | |
[platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-unipycation-3/platcheck_10.c -o /tmp/usession-unipycation-3/platcheck_10.o | |
[platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-unipycation-3/platcheck_11.c -o /tmp/usession-unipycation-3/platcheck_11.o | |
[platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-unipycation-3/platcheck_12.c -o /tmp/usession-unipycation-3/platcheck_12.o | |
[platform:execute] gcc /tmp/usession-unipycation-3/platcheck_12.o -pthread -lrt -o /tmp/usession-unipycation-3/platcheck_12 | |
[platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-unipycation-3/platcheck_13.c -o /tmp/usession-unipycation-3/platcheck_13.o | |
[platform:execute] gcc /tmp/usession-unipycation-3/platcheck_13.o -pthread -lrt -o /tmp/usession-unipycation-3/platcheck_13 | |
[platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-unipycation-3/platcheck_14.c -o /tmp/usession-unipycation-3/platcheck_14.o | |
[platform:execute] gcc /tmp/usession-unipycation-3/platcheck_14.o -pthread -lrt -o /tmp/usession-unipycation-3/platcheck_14 | |
[platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-unipycation-3/platcheck_15.c -o /tmp/usession-unipycation-3/platcheck_15.o | |
[platform:execute] gcc /tmp/usession-unipycation-3/platcheck_15.o -pthread -lrt -o /tmp/usession-unipycation-3/platcheck_15 | |
[platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-unipycation-3/platcheck_16.c -o /tmp/usession-unipycation-3/platcheck_16.o | |
[platform:execute] gcc /tmp/usession-unipycation-3/platcheck_16.o -pthread -lrt -o /tmp/usession-unipycation-3/platcheck_16 | |
[platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-unipycation-3/platcheck_17.c -o /tmp/usession-unipycation-3/platcheck_17.o | |
[platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-unipycation-3/platcheck_18.c -o /tmp/usession-unipycation-3/platcheck_18.o | |
[platform:execute] gcc /tmp/usession-unipycation-3/platcheck_18.o -pthread -lrt -o /tmp/usession-unipycation-3/platcheck_18 | |
[platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-unipycation-3/platcheck_19.c -o /tmp/usession-unipycation-3/platcheck_19.o | |
[platform:execute] gcc /tmp/usession-unipycation-3/platcheck_19.o -pthread -lrt -o /tmp/usession-unipycation-3/platcheck_19 | |
[platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-unipycation-3/platcheck_20.c -o /tmp/usession-unipycation-3/platcheck_20.o | |
[platform:execute] gcc /tmp/usession-unipycation-3/platcheck_20.o -pthread -lrt -o /tmp/usession-unipycation-3/platcheck_20 | |
[platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-unipycation-3/platcheck_21.c -o /tmp/usession-unipycation-3/platcheck_21.o | |
[platform:execute] gcc /tmp/usession-unipycation-3/platcheck_21.o -pthread -lrt -o /tmp/usession-unipycation-3/platcheck_21 | |
[platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-unipycation-3/platcheck_22.c -o /tmp/usession-unipycation-3/platcheck_22.o | |
[platform:execute] gcc /tmp/usession-unipycation-3/platcheck_22.o -pthread -lrt -lrt -o /tmp/usession-unipycation-3/platcheck_22 | |
[platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-unipycation-3/platcheck_23.c -o /tmp/usession-unipycation-3/platcheck_23.o | |
[platform:execute] gcc /tmp/usession-unipycation-3/platcheck_23.o -pthread -lrt -lrt -o /tmp/usession-unipycation-3/platcheck_23 | |
[platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-unipycation-3/platcheck_24.c -o /tmp/usession-unipycation-3/platcheck_24.o | |
[platform:execute] gcc /tmp/usession-unipycation-3/platcheck_24.o -pthread -lrt -lrt -o /tmp/usession-unipycation-3/platcheck_24 | |
[platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-unipycation-3/platcheck_26.c -o /tmp/usession-unipycation-3/platcheck_26.o | |
[platform:execute] gcc /tmp/usession-unipycation-3/platcheck_26.o -pthread -ldl -lrt -o /tmp/usession-unipycation-3/platcheck_26 | |
[platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-unipycation-3/platcheck_27.c -o /tmp/usession-unipycation-3/platcheck_27.o | |
[platform:execute] gcc /tmp/usession-unipycation-3/platcheck_27.o -pthread -lz -lssl -lcrypto -lrt -o /tmp/usession-unipycation-3/platcheck_27 | |
[platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-unipycation-3/platcheck_28.c -o /tmp/usession-unipycation-3/platcheck_28.o | |
[platform:execute] gcc /tmp/usession-unipycation-3/platcheck_28.o -pthread -lrt -o /tmp/usession-unipycation-3/platcheck_28 | |
[platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-unipycation-3/platcheck_29.c -o /tmp/usession-unipycation-3/platcheck_29.o | |
[platform:execute] gcc /tmp/usession-unipycation-3/platcheck_29.o -pthread -lz -lssl -lcrypto -lrt -o /tmp/usession-unipycation-3/platcheck_29 | |
[platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-unipycation-3/platcheck_30.c -o /tmp/usession-unipycation-3/platcheck_30.o | |
[platform:WARNING] /tmp/usession-unipycation-3/platcheck_30.c: In function ‘dump_section_SSLEAY_VERSION’: | |
[platform:WARNING] /tmp/usession-unipycation-3/platcheck_30.c:178:12: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default] | |
[platform:WARNING] char *p = SSLeay_version(SSLEAY_VERSION); | |
[platform:WARNING] ^ | |
[platform:execute] gcc /tmp/usession-unipycation-3/platcheck_30.o -pthread -lz -lssl -lcrypto -lrt -o /tmp/usession-unipycation-3/platcheck_30 | |
[platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused -I/usr/include/ncursesw /tmp/usession-unipycation-3/platcheck_31.c -o /tmp/usession-unipycation-3/platcheck_31.o | |
[platform:execute] gcc /tmp/usession-unipycation-3/platcheck_31.o -pthread -lncurses -lrt -o /tmp/usession-unipycation-3/platcheck_31 | |
[platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-unipycation-3/platcheck_32.c -o /tmp/usession-unipycation-3/platcheck_32.o | |
[platform:execute] gcc /tmp/usession-unipycation-3/platcheck_32.o -pthread -lrt -o /tmp/usession-unipycation-3/platcheck_32 | |
[platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-unipycation-3/platcheck_33.c -o /tmp/usession-unipycation-3/platcheck_33.o | |
[platform:execute] gcc /tmp/usession-unipycation-3/platcheck_33.o -pthread -lrt -o /tmp/usession-unipycation-3/platcheck_33 | |
[platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-unipycation-3/platcheck_34.c -o /tmp/usession-unipycation-3/platcheck_34.o | |
[platform:execute] gcc /tmp/usession-unipycation-3/platcheck_34.o -pthread -lrt -o /tmp/usession-unipycation-3/platcheck_34 | |
[platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-unipycation-3/platcheck_35.c -o /tmp/usession-unipycation-3/platcheck_35.o | |
[platform:execute] gcc /tmp/usession-unipycation-3/platcheck_35.o -pthread -lrt -o /tmp/usession-unipycation-3/platcheck_35 | |
[platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-unipycation-3/platcheck_36.c -o /tmp/usession-unipycation-3/platcheck_36.o | |
[platform:execute] gcc /tmp/usession-unipycation-3/platcheck_36.o -pthread -lffi -lrt -o /tmp/usession-unipycation-3/platcheck_36 | |
[platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused -DPy_BUILD_CORE -I/home/kook/unipycation-shared/unipycation/pypy/module/cpyext/include -I/home/kook/unipycation-shared/unipycation/rpython/translator/c -I/tmp/usession-unipycation-3 /tmp/usession-unipycation-3/platcheck_38.c -o /tmp/usession-unipycation-3/platcheck_38.o | |
[platform:execute] gcc /tmp/usession-unipycation-3/platcheck_38.o -pthread -lrt -o /tmp/usession-unipycation-3/platcheck_38 | |
[platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-unipycation-3/platcheck_39.c -o /tmp/usession-unipycation-3/platcheck_39.o | |
[platform:execute] gcc /tmp/usession-unipycation-3/platcheck_39.o -pthread -lrt -o /tmp/usession-unipycation-3/platcheck_39 | |
[platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused -DPy_BUILD_CORE -I/home/kook/unipycation-shared/unipycation/pypy/module/cpyext/include -I/home/kook/unipycation-shared/unipycation/rpython/translator/c -I/tmp/usession-unipycation-3 /tmp/usession-unipycation-3/platcheck_40.c -o /tmp/usession-unipycation-3/platcheck_40.o | |
[platform:execute] gcc /tmp/usession-unipycation-3/platcheck_40.o -pthread -lrt -o /tmp/usession-unipycation-3/platcheck_40 | |
[platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused -DPy_BUILD_CORE -I/home/kook/unipycation-shared/unipycation/pypy/module/cpyext/include -I/home/kook/unipycation-shared/unipycation/rpython/translator/c -I/tmp/usession-unipycation-3 /tmp/usession-unipycation-3/platcheck_41.c -o /tmp/usession-unipycation-3/platcheck_41.o | |
[platform:execute] gcc /tmp/usession-unipycation-3/platcheck_41.o -pthread -lrt -o /tmp/usession-unipycation-3/platcheck_41 | |
[platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-unipycation-3/platcheck_42.c -o /tmp/usession-unipycation-3/platcheck_42.o | |
[platform:execute] gcc /tmp/usession-unipycation-3/platcheck_42.o -pthread -lrt -o /tmp/usession-unipycation-3/platcheck_42 | |
[platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-unipycation-3/platcheck_43.c -o /tmp/usession-unipycation-3/platcheck_43.o | |
[platform:execute] gcc /tmp/usession-unipycation-3/platcheck_43.o -pthread -lrt -o /tmp/usession-unipycation-3/platcheck_43 | |
[platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-unipycation-3/platcheck_44.c -o /tmp/usession-unipycation-3/platcheck_44.o | |
[platform:execute] gcc /tmp/usession-unipycation-3/platcheck_44.o -pthread -lrt -o /tmp/usession-unipycation-3/platcheck_44 | |
[platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused -I/home/kook/unipycation-shared/unipycation/rpython/translator/c /tmp/usession-unipycation-3/platcheck_45.c -o /tmp/usession-unipycation-3/platcheck_45.o | |
[platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused -I/home/kook/unipycation-shared/unipycation/rpython/translator/c /home/kook/unipycation-shared/unipycation/rpython/translator/c/src/signals.c -o /tmp/usession-unipycation-3/rpython/translator/c/src/signals.o | |
[platform:execute] gcc /tmp/usession-unipycation-3/platcheck_45.o /tmp/usession-unipycation-3/rpython/translator/c/src/signals.o -pthread -Wl,--export-dynamic,--version-script=/tmp/usession-unipycation-3/dynamic-symbols-1 -lrt -o /tmp/usession-unipycation-3/platcheck_45 | |
[platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused -I/home/kook/unipycation-shared/unipycation/rpython/translator/c /home/kook/unipycation-shared/unipycation/rpython/translator/c/src/thread.c -o /tmp/usession-unipycation-3/rpython/translator/c/src/thread.o | |
[platform:execute] gcc -shared /tmp/usession-unipycation-3/rpython/translator/c/src/thread.o -pthread -Wl,--export-dynamic,--version-script=/tmp/usession-unipycation-3/dynamic-symbols-2 -lrt -o /tmp/usession-unipycation-3/shared_cache/externmod.so | |
[platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-unipycation-3/platcheck_46.c -o /tmp/usession-unipycation-3/platcheck_46.o | |
[platform:execute] gcc /tmp/usession-unipycation-3/platcheck_46.o -pthread -lz -lrt -o /tmp/usession-unipycation-3/platcheck_46 | |
[platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-unipycation-3/platcheck_47.c -o /tmp/usession-unipycation-3/platcheck_47.o | |
[platform:execute] gcc /tmp/usession-unipycation-3/platcheck_47.o -pthread -lz -lrt -o /tmp/usession-unipycation-3/platcheck_47 | |
[platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-unipycation-3/platcheck_48.c -o /tmp/usession-unipycation-3/platcheck_48.o | |
[platform:execute] gcc /tmp/usession-unipycation-3/platcheck_48.o -pthread -lz -lrt -o /tmp/usession-unipycation-3/platcheck_48 | |
[platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused -I/home/kook/unipycation-shared/unipycation/rpython/translator/c /home/kook/unipycation-shared/unipycation/rpython/translator/c/src/signals.c -o /tmp/usession-unipycation-3/rpython/translator/c/src/signals.o | |
[platform:execute] gcc -shared /tmp/usession-unipycation-3/rpython/translator/c/src/signals.o -pthread -Wl,--export-dynamic,--version-script=/tmp/usession-unipycation-3/dynamic-symbols-3 -lrt -o /tmp/usession-unipycation-3/shared_cache/externmod_0.so | |
[platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-unipycation-3/platcheck_49.c -o /tmp/usession-unipycation-3/platcheck_49.o | |
[platform:execute] gcc /tmp/usession-unipycation-3/platcheck_49.o -pthread -lexpat -lrt -o /tmp/usession-unipycation-3/platcheck_49 | |
[platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-unipycation-3/platcheck_50.c -o /tmp/usession-unipycation-3/platcheck_50.o | |
[platform:execute] gcc /tmp/usession-unipycation-3/platcheck_50.o -pthread -lexpat -lrt -o /tmp/usession-unipycation-3/platcheck_50 | |
[translation:info] Error: | |
[translation:info] File "/home/kook/unipycation-shared/unipycation/rpython/translator/goal/translate.py", line 284, in main | |
[translation:info] default_goal='compile') | |
[translation:info] File "/home/kook/unipycation-shared/unipycation/rpython/translator/driver.py", line 544, in from_targetspec | |
[translation:info] spec = target(driver, args) | |
[translation:info] File "targetpypystandalone.py", line 288, in target | |
[translation:info] return self.get_entry_point(config) | |
[translation:info] File "targetpypystandalone.py", line 299, in get_entry_point | |
[translation:info] space = make_objspace(config) | |
[translation:info] File "/home/kook/unipycation-shared/unipycation/pypy/tool/option.py", line 35, in make_objspace | |
[translation:info] return Space(config) | |
[translation:info] File "/home/kook/unipycation-shared/unipycation/pypy/interpreter/baseobjspace.py", line 343, in __init__ | |
[translation:info] self.initialize() | |
> /home/kook/unipycation-shared/unipycation/rpython/rtyper/lltypesystem/lltype.py(825)typeOf() | |
-> raise TypeError("typeOf(%r object)" % (tp.__name__,)) | |
[translation:info] File "/home/kook/unipycation-shared/unipycation/pypy/objspace/std/objspace.py", line 80, in initialize | |
[translation:info] self.setup_builtin_modules() | |
[translation:info] File "/home/kook/unipycation-shared/unipycation/pypy/interpreter/baseobjspace.py", line 576, in setup_builtin_modules | |
[translation:info] mod.setup_after_space_initialization() | |
[translation:info] File "/home/kook/unipycation-shared/unipycation/pypy/module/__pypy__/__init__.py", line 114, in setup_after_space_initialization | |
[translation:info] model = detect_cpu.autodetect() | |
[translation:info] File "/home/kook/unipycation-shared/unipycation/rpython/jit/backend/detect_cpu.py", line 89, in autodetect | |
[translation:info] return detect_model_from_host_platform() | |
[translation:info] File "/home/kook/unipycation-shared/unipycation/rpython/jit/backend/detect_cpu.py", line 73, in detect_model_from_host_platform | |
[translation:info] if detect_sse2(): | |
[translation:info] File "/home/kook/unipycation-shared/unipycation/rpython/jit/backend/x86/detect_sse2.py", line 6, in detect_sse2 | |
[translation:info] data = alloc(4096) | |
[translation:info] File "/home/kook/unipycation-shared/unipycation/rpython/rlib/rmmap.py", line 707, in alloc | |
[translation:info] res = alloc_hinted(rffi.cast(PTR, hint.pos), map_size) | |
[translation:info] File "/home/kook/unipycation-shared/unipycation/rpython/rlib/rmmap.py", line 680, in alloc_hinted | |
[translation:info] return c_mmap_safe(hintp, map_size, prot, flags, -1, 0) | |
[translation:info] File "/home/kook/unipycation-shared/unipycation/rpython/rtyper/lltypesystem/rffi.py", line 231, in wrapper | |
[translation:info] SOURCE = lltype.typeOf(arg) | |
[translation:info] File "/home/kook/unipycation-shared/unipycation/rpython/rtyper/lltypesystem/lltype.py", line 825, in typeOf | |
[translation:info] raise TypeError("typeOf(%r object)" % (tp.__name__,)) | |
[translation:ERROR] TypeError: typeOf('NonConstant' object) | |
[translation] start debugger... | |
^CTraceback (most recent call last): | |
File "bootstrap.py", line 148, in <module> | |
VMTAB[vm][0](target) | |
File "bootstrap.py", line 89, in bootstrap_unipy | |
_out=sys.stdout, _err=sys.stderr) | |
File "/home/kook/.local/lib/python2.7/site-packages/sh.py", line 769, in __call__ | |
return RunningCommand(cmd, call_args, stdin, stdout, stderr) | |
File "/home/kook/.local/lib/python2.7/site-packages/sh.py", line 330, in __init__ | |
self.wait() | |
File "/home/kook/.local/lib/python2.7/site-packages/sh.py", line 334, in wait | |
self._handle_exit_code(self.process.wait()) | |
File "/home/kook/.local/lib/python2.7/site-packages/sh.py", line 1152, in wait | |
pid, exit_code = os.waitpid(self.pid, 0) | |
KeyboardInterrupt |
thank you too. first success with building unipycation!
after things were fetched (unipycation, with pyrolog and unipycation-deps in deps), i ran this magic procedure from the root dir of unipycation:
export PYTHONPATH="deps/pyrolog"
/usr/bin/pypy rpython/bin/rpython --output unipycation -Ojit pypy/goal/targetpypystandalone.py
and i can run the examples:
kook@kook-Lenovo-G550:/unipy/unipycation-examples/connect4$ PYTHONPATH=/unipy/unipycation:./:/unipy/unipycation/deps/pyrolog/:/unipy/unipycation/deps/unipycation-shared/unipycation_shared/ ~/unipy/unipycation/unipycation gui.py
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
By bootstrapping from within unipycation-shared, you are bootstrapping 3 different VMs, not just unipycation.
That said unipycation's standalone bootstrapper is broken (doh!).
I will fix it once I find some time. Thanks for your interest in unipycation!