falcon icon indicating copy to clipboard operation
falcon copied to clipboard

AttributeError: 'Evaluator' object has no attribute 'frame_from_codeobj'

Open riccardomurri opened this issue 11 years ago • 4 comments

I'm trying to install Falcon from sources (commit 9444f0f); I get no errors but the resulting interpreter does not run scripts:

rmurri@idsgi02:~/sw/src> source rjpower-falcon-9444f0f/bin/activate

(rjpower-falcon-9444f0f)rmurri@idsgi02:~/sw/src> which python
/home/user/rmurri/sw/src/rjpower-falcon-9444f0f/bin/python

(rjpower-falcon-9444f0f)rmurri@idsgi02:~/sw/src> python -m falcon
Usage: -mfalcon <script> <args>

(rjpower-falcon-9444f0f)rmurri@idsgi02:~/sw/src> python -m falcon rjpower-falcon-9444f0f/test/test_math.py
Traceback (most recent call last):
  File "/home/user/rmurri/sw/lib64/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/home/user/rmurri/sw/lib64/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/home/user/rmurri/sw/src/rjpower-falcon-9444f0f/src/falcon/__main__.py", line 24, in <module>
    main()
  File "/home/user/rmurri/sw/src/rjpower-falcon-9444f0f/src/falcon/__main__.py", line 20, in main
    f_frame = falcon.evaluator.frame_from_codeobj(code)
AttributeError: 'Evaluator' object has no attribute 'frame_from_codeobj'

The only warning I can see in the installation log (details below) is the following:

src/falcon/rinst.h:47: Warning 503: Can't wrap 'operator PyObject*' unless renamed to a valid identifier.

How can I go on debugging this issue?

Thanks, Riccardo

Full installation log:

> ./install-falcon.sh 2>&1 | tee install-falcon.log
+ tar -xz
+ wget https://github.com/rjpower/falcon/tarball/9444f0f25feba186cef8fb2dc249aad331edd980/falcon-9444f0f25feba186cef8fb2dc249aad331edd980.tar.gz -O -
--2013-08-19 14:41:01--  https://github.com/rjpower/falcon/tarball/9444f0f25feba186cef8fb2dc249aad331edd980/falcon-9444f0f25feba186cef8fb2dc249aad331edd980.tar.gz
Resolving proxy.uzh.ch... 130.60.206.69
Connecting to proxy.uzh.ch|130.60.206.69|:3128... connected.
Proxy request sent, awaiting response... 302 Found
Location: https://codeload.github.com/rjpower/falcon/legacy.tar.gz/9444f0f25feba186cef8fb2dc249aad331edd980 [following]
--2013-08-19 14:41:01--  https://codeload.github.com/rjpower/falcon/legacy.tar.gz/9444f0f25feba186cef8fb2dc249aad331edd980
Connecting to proxy.uzh.ch|130.60.206.69|:3128... connected.
Proxy request sent, awaiting response... 200 OK
Length: 305442 (298K) [application/x-gzip]
Saving to: `STDOUT'

     0K .......... .......... .......... .......... .......... 16%  257K 1s
    50K .......... .......... .......... .......... .......... 33%  256K 1s
   100K .......... .......... .......... .......... .......... 50%  170K 1s
   150K .......... .......... .......... .......... .......... 67%  255K 0s
   200K .......... .......... .......... .......... .......... 83%  257K 0s
   250K .......... .......... .......... .......... ........  100%  493K=1.2s

2013-08-19 14:41:04 (254 KB/s) - `-' saved [305442/305442]

++ cut -c1-7
++ echo 9444f0f25feba186cef8fb2dc249aad331edd980
+ cd rjpower-falcon-9444f0f
+ virtualenv .
New python executable in ./bin/python
Installing Setuptools..............................................................................................................................................................................................................................done.
Installing Pip.....................................................................................................................................................................................................................................................................................................................................done.
+ source bin/activate
++ deactivate nondestructive
++ unset pydoc
++ '[' -n '' ']'
++ '[' -n '' ']'
++ '[' -n /bin/sh -o -n '' ']'
++ hash -r
++ '[' -n '' ']'
++ unset VIRTUAL_ENV
++ '[' '!' nondestructive = nondestructive ']'
++ VIRTUAL_ENV=/home/user/rmurri/sw/src/rjpower-falcon-9444f0f
++ export VIRTUAL_ENV
++ _OLD_VIRTUAL_PATH=/home/user/rmurri/sw/bin:/opt/pbs/default/bin:/opt/sgi/mpt/mpt-2.07/bin:/home/user/rmurri/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/usr/lib/mit/bin:/usr/lib/mit/sbin
++ PATH=/home/user/rmurri/sw/src/rjpower-falcon-9444f0f/bin:/home/user/rmurri/sw/bin:/opt/pbs/default/bin:/opt/sgi/mpt/mpt-2.07/bin:/home/user/rmurri/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/usr/lib/mit/bin:/usr/lib/mit/sbin
++ export PATH
++ '[' -n '' ']'
++ '[' -z '' ']'
++ _OLD_VIRTUAL_PS1=
++ '[' x '!=' x ']'
+++ basename /home/user/rmurri/sw/src/rjpower-falcon-9444f0f
++ '[' rjpower-falcon-9444f0f = __ ']'
+++ basename /home/user/rmurri/sw/src/rjpower-falcon-9444f0f
++ PS1='(rjpower-falcon-9444f0f)'
++ export PS1
++ alias 'pydoc=python -m pydoc'
++ '[' -n /bin/sh -o -n '' ']'
++ hash -r
+ python setup.py develop
running develop
running egg_info
creating src/falcon.egg-info
writing src/falcon.egg-info/PKG-INFO
writing top-level names to src/falcon.egg-info/top_level.txt
writing dependency_links to src/falcon.egg-info/dependency_links.txt
writing manifest file 'src/falcon.egg-info/SOURCES.txt'
reading manifest file 'src/falcon.egg-info/SOURCES.txt'
writing manifest file 'src/falcon.egg-info/SOURCES.txt'
running build_ext
building '_falcon_core' extension
swigging src/falcon/rmodule.i to src/falcon/rmodule_wrap.cpp
swig -python -Isrc -modern -O -c++ -w312,509 -o src/falcon/rmodule_wrap.cpp src/falcon/rmodule.i
src/falcon/rinst.h:47: Warning 503: Can't wrap 'operator PyObject*' unless renamed to a valid identifier.
creating build
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/src
creating build/temp.linux-x86_64-2.7/src/falcon
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I./src -I/home/user/rmurri/sw/include/python2.7 -c src/falcon/basic_block.cc -o build/temp.linux-x86_64-2.7/src/falcon/basic_block.o -fno-gcse -fno-crossjumping -ggdb2 -std=c++0x -Isrc/sparsehash-2.0.2/src
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I./src -I/home/user/rmurri/sw/include/python2.7 -c src/falcon/compiler_op.cc -o build/temp.linux-x86_64-2.7/src/falcon/compiler_op.o -fno-gcse -fno-crossjumping -ggdb2 -std=c++0x -Isrc/sparsehash-2.0.2/src
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I./src -I/home/user/rmurri/sw/include/python2.7 -c src/falcon/compiler_state.cc -o build/temp.linux-x86_64-2.7/src/falcon/compiler_state.o -fno-gcse -fno-crossjumping -ggdb2 -std=c++0x -Isrc/sparsehash-2.0.2/src
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I./src -I/home/user/rmurri/sw/include/python2.7 -c src/falcon/oputil.cc -o build/temp.linux-x86_64-2.7/src/falcon/oputil.o -fno-gcse -fno-crossjumping -ggdb2 -std=c++0x -Isrc/sparsehash-2.0.2/src
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I./src -I/home/user/rmurri/sw/include/python2.7 -c src/falcon/rcompile.cc -o build/temp.linux-x86_64-2.7/src/falcon/rcompile.o -fno-gcse -fno-crossjumping -ggdb2 -std=c++0x -Isrc/sparsehash-2.0.2/src
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I./src -I/home/user/rmurri/sw/include/python2.7 -c src/falcon/register_stack.cc -o build/temp.linux-x86_64-2.7/src/falcon/register_stack.o -fno-gcse -fno-crossjumping -ggdb2 -std=c++0x -Isrc/sparsehash-2.0.2/src
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I./src -I/home/user/rmurri/sw/include/python2.7 -c src/falcon/reval.cc -o build/temp.linux-x86_64-2.7/src/falcon/reval.o -fno-gcse -fno-crossjumping -ggdb2 -std=c++0x -Isrc/sparsehash-2.0.2/src
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]
src/falcon/reval.cc: In static member function ‘static void ImportStar::_eval(Evaluator*, RegisterFrame*, RegOp<1>&, Register*)’:
src/falcon/reval.cc:1610:13: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I./src -I/home/user/rmurri/sw/include/python2.7 -c src/falcon/rexcept.cc -o build/temp.linux-x86_64-2.7/src/falcon/rexcept.o -fno-gcse -fno-crossjumping -ggdb2 -std=c++0x -Isrc/sparsehash-2.0.2/src
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I./src -I/home/user/rmurri/sw/include/python2.7 -c src/falcon/rinst.cc -o build/temp.linux-x86_64-2.7/src/falcon/rinst.o -fno-gcse -fno-crossjumping -ggdb2 -std=c++0x -Isrc/sparsehash-2.0.2/src
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I./src -I/home/user/rmurri/sw/include/python2.7 -c src/falcon/util.cc -o build/temp.linux-x86_64-2.7/src/falcon/util.o -fno-gcse -fno-crossjumping -ggdb2 -std=c++0x -Isrc/sparsehash-2.0.2/src
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I./src -I/home/user/rmurri/sw/include/python2.7 -c src/falcon/rmodule_wrap.cpp -o build/temp.linux-x86_64-2.7/src/falcon/rmodule_wrap.o -fno-gcse -fno-crossjumping -ggdb2 -std=c++0x -Isrc/sparsehash-2.0.2/src
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]
src/falcon/rmodule_wrap.cpp: In function ‘void SWIG_InitializeModule(void*)’:
src/falcon/rmodule_wrap.cpp:14025:21: warning: statement has no effect [-Wunused-value]
creating build/lib.linux-x86_64-2.7
g++ -pthread -shared build/temp.linux-x86_64-2.7/src/falcon/basic_block.o build/temp.linux-x86_64-2.7/src/falcon/compiler_op.o build/temp.linux-x86_64-2.7/src/falcon/compiler_state.o build/temp.linux-x86_64-2.7/src/falcon/oputil.o build/temp.linux-x86_64-2.7/src/falcon/rcompile.o build/temp.linux-x86_64-2.7/src/falcon/register_stack.o build/temp.linux-x86_64-2.7/src/falcon/reval.o build/temp.linux-x86_64-2.7/src/falcon/rexcept.o build/temp.linux-x86_64-2.7/src/falcon/rinst.o build/temp.linux-x86_64-2.7/src/falcon/util.o build/temp.linux-x86_64-2.7/src/falcon/rmodule_wrap.o -o build/lib.linux-x86_64-2.7/_falcon_core.so -lrt
copying build/lib.linux-x86_64-2.7/_falcon_core.so -> src
Creating /home/user/rmurri/sw/src/rjpower-falcon-9444f0f/lib/python2.7/site-packages/falcon.egg-link (link to src)
Adding falcon 0.04 to easy-install.pth file

Installed /home/user/rmurri/sw/src/rjpower-falcon-9444f0f/src
Processing dependencies for falcon==0.04
Finished processing dependencies for falcon==0.04

riccardomurri avatar Aug 19 '13 12:08 riccardomurri

Hi Riccardo,

It looks like you might be working against a broken version (I know Alex has been refactoring things the past few weeks).

I just tried downloading and building against the latest master and it works for me; please try using the latest version and let me know:


wget -O- https://github.com/rjpower/falcon/archive/master.tar.gz | tar -xz
cd falcon-master
python setup.py build

PYTHONPATH=build/lib.linux-x86_64-2.7/:src/falcon python -m falcon
benchmarks/fasta.py

On Mon, Aug 19, 2013 at 8:48 AM, Riccardo Murri [email protected]:

I'm trying to install Falcon from sources (commit 9444f0fhttps://github.com/rjpower/falcon/commit/9444f0f); I get no errors but the resulting interpreter does not run scripts:

rmurri@idsgi02:~/sw/src> source rjpower-falcon-9444f0f/bin/activate

(rjpower-falcon-9444f0f)rmurri@idsgi02:~/sw/src> which python /home/user/rmurri/sw/src/rjpower-falcon-9444f0f/bin/python

(rjpower-falcon-9444f0f)rmurri@idsgi02:~/sw/src> python -m falcon Usage: -mfalcon

(rjpower-falcon-9444f0f)rmurri@idsgi02:~/sw/src> python -m falcon rjpower-falcon-9444f0f/test/test_math.py Traceback (most recent call last): File "/home/user/rmurri/sw/lib64/python2.7/runpy.py", line 162, in _run_module_as_main "main", fname, loader, pkg_name) File "/home/user/rmurri/sw/lib64/python2.7/runpy.py", line 72, in _run_code exec code in run_globals File "/home/user/rmurri/sw/src/rjpower-falcon-9444f0f/src/falcon/main.py", line 24, in main() File "/home/user/rmurri/sw/src/rjpower-falcon-9444f0f/src/falcon/main.py", line 20, in main f_frame = falcon.evaluator.frame_from_codeobj(code) AttributeError: 'Evaluator' object has no attribute 'frame_from_codeobj'

The only warning I can see in the installation log (details below) is the following:

src/falcon/rinst.h:47: Warning 503: Can't wrap 'operator PyObject*' unless renamed to a valid identifier.

How can I go on debugging this issue?

Thanks, Riccardo

Full installation log:

./install-falcon.sh 2>&1 | tee install-falcon.log

  • tar -xz
  • wget https://github.com/rjpower/falcon/tarball/9444f0f25feba186cef8fb2dc249aad331edd980/falcon-9444f0f25feba186cef8fb2dc249aad331edd980.tar.gz -O - --2013-08-19 14:41:01-- https://github.com/rjpower/falcon/tarball/9444f0f25feba186cef8fb2dc249aad331edd980/falcon-9444f0f25feba186cef8fb2dc249aad331edd980.tar.gz Resolving proxy.uzh.ch... 130.60.206.69 Connecting to proxy.uzh.ch|130.60.206.69|:3128... connected. Proxy request sent, awaiting response... 302 Found Location: https://codeload.github.com/rjpower/falcon/legacy.tar.gz/9444f0f25feba186cef8fb2dc249aad331edd980 [following] --2013-08-19 14:41:01-- https://codeload.github.com/rjpower/falcon/legacy.tar.gz/9444f0f25feba186cef8fb2dc249aad331edd980 Connecting to proxy.uzh.ch|130.60.206.69|:3128... connected. Proxy request sent, awaiting response... 200 OK Length: 305442 (298K) [application/x-gzip] Saving to: `STDOUT'
 0K .......... .......... .......... .......... .......... 16%  257K 1s
50K .......... .......... .......... .......... .......... 33%  256K 1s

100K .......... .......... .......... .......... .......... 50% 170K 1s 150K .......... .......... .......... .......... .......... 67% 255K 0s 200K .......... .......... .......... .......... .......... 83% 257K 0s 250K .......... .......... .......... .......... ........ 100% 493K=1.2s

2013-08-19 14:41:04 (254 KB/s) - `-' saved [305442/305442]

++ cut -c1-7 ++ echo 9444f0f25feba186cef8fb2dc249aad331edd980

  • cd rjpower-falcon-9444f0f
  • virtualenv . New python executable in ./bin/python Installing Setuptools..............................................................................................................................................................................................................................done. Installing Pip.....................................................................................................................................................................................................................................................................................................................................done.
  • source bin/activate ++ deactivate nondestructive ++ unset pydoc ++ '[' -n '' ']' ++ '[' -n '' ']' ++ '[' -n /bin/sh -o -n '' ']' ++ hash -r ++ '[' -n '' ']' ++ unset VIRTUAL_ENV ++ '[' '!' nondestructive = nondestructive ']' ++ VIRTUAL_ENV=/home/user/rmurri/sw/src/rjpower-falcon-9444f0f ++ export VIRTUAL_ENV ++ _OLD_VIRTUAL_PATH=/home/user/rmurri/sw/bin:/opt/pbs/default/bin:/opt/sgi/mpt/mpt-2.07/bin:/home/user/rmurri/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/usr/lib/mit/bin:/usr/lib/mit/sbin ++ PATH=/home/user/rmurri/sw/src/rjpower-falcon-9444f0f/bin:/home/user/rmurri/sw/bin:/opt/pbs/default/bin:/opt/sgi/mpt/mpt-2.07/bin:/home/user/rmurri/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/usr/lib/mit/bin:/usr/lib/mit/sbin ++ export PATH ++ '[' -n '' ']' ++ '[' -z '' ']' ++ _OLD_VIRTUAL_PS1= ++ '[' x '!=' x ']' +++ basename /home/user/rmurri/sw/src/rjpower-falcon-9444f0f ++ '[' rjpower-falcon-9444f0f = __ ']' +++ basename /home/user/rmurri/sw/src/rjpower-falcon-9444f0f ++ PS1='(rjpower-falcon-9444f0f)' ++ export PS1 ++ alias 'pydoc=python -m pydoc' ++ '[' -n /bin/sh -o -n '' ']' ++ hash -r
  • python setup.py develop running develop running egg_info creating src/falcon.egg-info writing src/falcon.egg-info/PKG-INFO writing top-level names to src/falcon.egg-info/top_level.txt writing dependency_links to src/falcon.egg-info/dependency_links.txt writing manifest file 'src/falcon.egg-info/SOURCES.txt' reading manifest file 'src/falcon.egg-info/SOURCES.txt' writing manifest file 'src/falcon.egg-info/SOURCES.txt' running build_ext building 'falcon_core' extension swigging src/falcon/rmodule.i to src/falcon/rmodule_wrap.cpp swig -python -Isrc -modern -O -c++ -w312,509 -o src/falcon/rmodule_wrap.cpp src/falcon/rmodule.i src/falcon/rinst.h:47: Warning 503: Can't wrap 'operator PyObject' unless renamed to a valid identifier. creating build creating build/temp.linux-x86_64-2.7 creating build/temp.linux-x86_64-2.7/src creating build/temp.linux-x86_64-2.7/src/falcon gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I./src -I/home/user/rmurri/sw/include/python2.7 -c src/falcon/basic_block.cc -o build/temp.linux-x86_64-2.7/src/falcon/basic_block.o -fno-gcse -fno-crossjumping -ggdb2 -std=c++0x -Isrc/sparsehash-2.0.2/src cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default] gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I./src -I/home/user/rmurri/sw/include/python2.7 -c src/falcon/compiler_op.cc -o build/temp.linux-x86_64-2.7/src/falcon/compiler_op.o -fno-gcse -fno-crossjumping -ggdb2 -std=c++0x -Isrc/sparsehash-2.0.2/src cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default] gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I./src -I/home/user/rmurri/sw/include/python2.7 -c src/falcon/compiler_state.cc -o build/temp.linux-x86_64-2.7/src/falcon/compiler_state.o -fno-gcse -fno-crossjumping -ggdb2 -std=c++0x -Isrc/sparsehash-2.0.2/src cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default] gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I./src -I/home/user/rmurri/sw/include/python2.7 -c src/falcon/oputil.cc -o build/temp.linux-x86_64-2.7/src/falcon/oputil.o -fno-gcse -fno-crossjumping -ggdb2 -std=c++0x -Isrc/sparsehash-2.0.2/src cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default] gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I./src -I/home/user/rmurri/sw/include/python2.7 -c src/falcon/rcompile.cc -o build/temp.linux-x86_64-2.7/src/falcon/rcompile.o -fno-gcse -fno-crossjumping -ggdb2 -std=c++0x -Isrc/sparsehash-2.0.2/src cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default] gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I./src -I/home/user/rmurri/sw/include/python2.7 -c src/falcon/register_stack.cc -o build/temp.linux-x86_64-2.7/src/falcon/register_stack.o -fno-gcse -fno-crossjumping -ggdb2 -std=c++0x -Isrc/sparsehash-2.0.2/src cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default] gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I./src -I/home/user/rmurri/sw/include/python2.7 -c src/falcon/reval.cc -o build/temp.linux-x86_64-2.7/src/falcon/reval.o -fno-gcse -fno-crossjumping -ggdb2 -std=c++0x -Isrc/sparsehash-2.0.2/src cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default] src/falcon/reval.cc: In static member function ‘static void ImportStar::eval(Evaluator, RegisterFrame_, RegOp<1>&, Register_)’: src/falcon/reval.cc:1610:13: warning: deprecated conversion from string constant to ‘char_’ [-Wwrite-strings] gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I./src -I/home/user/rmurri/sw/include/python2.7 -c src/falcon/rexcept.cc -o build/temp.linux-x86_64-2.7/src/falcon/rexcept.o -fno-gcse -fno-crossjumping -ggdb2 -std=c++0x -Isrc/sparsehash-2.0.2/src cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default] gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I./src -I/home/user/rmurri/sw/include/python2.7 -c src/falcon/rinst.cc -o build/temp.linux-x86_64-2.7/src/falcon/rinst.o -fno-gcse -fno-crossjumping -ggdb2 -std=c++0x -Isrc/sparsehash-2.0.2/src cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default] gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I./src -I/home/user/rmurri/sw/include/python2.7 -c src/falcon/util.cc -o build/temp.linux-x86_64-2.7/src/falcon/util.o -fno-gcse -fno-crossjumping -ggdb2 -std=c++0x -Isrc/sparsehash-2.0.2/src cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default] gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I./src -I/home/user/rmurri/sw/include/python2.7 -c src/falcon/rmodule_wrap.cpp -o build/temp.linux-x86_64-2.7/src/falcon/rmodule_wrap.o -fno-gcse -fno-crossjumping -ggdb2 -std=c++0x -Isrc/sparsehash-2.0.2/src cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default] src/falcon/rmodule_wrap.cpp: In function ‘void SWIG_InitializeModule(void_)’: src/falcon/rmodule_wrap.cpp:14025:21: warning: statement has no effect [-Wunused-value] creating build/lib.linux-x86_64-2.7 g++ -pthread -shared build/temp.linux-x86_64-2.7/src/falcon/basic_block.o build/temp.linux-x86_64-2.7/src/falcon/compiler_op.o build/temp.linux-x86_64-2.7/src/falcon/compiler_state.o build/temp.linux-x86_64-2.7/src/falcon/oputil.o build/temp.linux-x86_64-2.7/src/falcon/rcompile.o build/temp.linux-x86_64-2.7/src/falcon/register_stack.o build/temp.linux-x86_64-2.7/src/falcon/reval.o build/temp.linux-x86_64-2.7/src/falcon/rexcept.o build/temp.linux-x86_64-2.7/src/falcon/rinst.o build/temp.linux-x86_64-2.7/src/falcon/util.o build/temp.linux-x86_64-2.7/src/falcon/rmodule_wrap.o -o build/lib.linux-x86_64-2.7/_falcon_core.so -lrt copying build/lib.linux-x86_64-2.7/_falcon_core.so -> src Creating /home/user/rmurri/sw/src/rjpower-falcon-9444f0f/lib/python2.7/site-packages/falcon.egg-link (link to src) Adding falcon 0.04 to easy-install.pth file

Installed /home/user/rmurri/sw/src/rjpower-falcon-9444f0f/src Processing dependencies for falcon==0.04 Finished processing dependencies for falcon==0.04

— Reply to this email directly or view it on GitHubhttps://github.com/rjpower/falcon/issues/16 .

R

rjpower avatar Aug 19 '13 15:08 rjpower

Hello,

thanks for the quick reply! Indeed, with the latest commit I can successfully run the tests.

However, when I turn to the code I really wanted to test I get a SIGSEGV:

rmurri@idsgi02:~/sw/src> source rjpower-falcon-dd15b9b/bin/activate (rjpower-falcon-dd15b9b)rmurri@idsgi02:~/sw/src> python -m falcon Usage: -mfalcon

(rjpower-falcon-dd15b9b)rmurri@idsgi02:~/sw/src> cd ~/euroscipy2013/fatghol.falcon/fatghol/ (rjpower-falcon-dd15b9b)rmurri@idsgi02:~/euroscipy2013/fatghol.falcon/fatghol> python -m falcon mgn.py --help Segmentation fault

Is there any way I can debug this?

Thanks, Riccardo

On 19 August 2013 17:11, Russell Power [email protected] wrote:

Hi Riccardo,

It looks like you might be working against a broken version (I know Alex has been refactoring things the past few weeks).

I just tried downloading and building against the latest master and it works for me; please try using the latest version and let me know:


wget -O- https://github.com/rjpower/falcon/archive/master.tar.gz | tar
-xz
cd falcon-master
python setup.py build

PYTHONPATH=build/lib.linux-x86_64-2.7/:src/falcon python -m falcon
benchmarks/fasta.py

On Mon, Aug 19, 2013 at 8:48 AM, Riccardo Murri [email protected]:

I'm trying to install Falcon from sources (commit 9444f0f< https://github.com/rjpower/falcon/commit/9444f0f>); I get no errors but the resulting interpreter does not run scripts:

rmurri@idsgi02:~/sw/src> source rjpower-falcon-9444f0f/bin/activate

(rjpower-falcon-9444f0f)rmurri@idsgi02:~/sw/src> which python /home/user/rmurri/sw/src/rjpower-falcon-9444f0f/bin/python

(rjpower-falcon-9444f0f)rmurri@idsgi02:~/sw/src> python -m falcon Usage: -mfalcon

(rjpower-falcon-9444f0f)rmurri@idsgi02:~/sw/src> python -m falcon rjpower-falcon-9444f0f/test/test_math.py Traceback (most recent call last): File "/home/user/rmurri/sw/lib64/python2.7/runpy.py", line 162, in _run_module_as_main "main", fname, loader, pkg_name) File "/home/user/rmurri/sw/lib64/python2.7/runpy.py", line 72, in _run_code exec code in run_globals File "/home/user/rmurri/sw/src/rjpower-falcon-9444f0f/src/falcon/main.py", line 24, in main() File "/home/user/rmurri/sw/src/rjpower-falcon-9444f0f/src/falcon/main.py", line 20, in main f_frame = falcon.evaluator.frame_from_codeobj(code) AttributeError: 'Evaluator' object has no attribute 'frame_from_codeobj'

The only warning I can see in the installation log (details below) is the following:

src/falcon/rinst.h:47: Warning 503: Can't wrap 'operator PyObject*' unless renamed to a valid identifier.

How can I go on debugging this issue?

Thanks, Riccardo

Full installation log:

./install-falcon.sh 2>&1 | tee install-falcon.log

  • tar -xz
  • wget https://github.com/rjpower/falcon/tarball/9444f0f25feba186cef8fb2dc249aad331edd980/falcon-9444f0f25feba186cef8fb2dc249aad331edd980.tar.gz-O - --2013-08-19 14:41:01-- https://github.com/rjpower/falcon/tarball/9444f0f25feba186cef8fb2dc249aad331edd980/falcon-9444f0f25feba186cef8fb2dc249aad331edd980.tar.gz Resolving proxy.uzh.ch... 130.60.206.69 Connecting to proxy.uzh.ch|130.60.206.69|:3128... connected. Proxy request sent, awaiting response... 302 Found Location: https://codeload.github.com/rjpower/falcon/legacy.tar.gz/9444f0f25feba186cef8fb2dc249aad331edd980[following] --2013-08-19 14:41:01-- https://codeload.github.com/rjpower/falcon/legacy.tar.gz/9444f0f25feba186cef8fb2dc249aad331edd980 Connecting to proxy.uzh.ch|130.60.206.69|:3128... connected. Proxy request sent, awaiting response... 200 OK Length: 305442 (298K) [application/x-gzip] Saving to: `STDOUT'

0K .......... .......... .......... .......... .......... 16% 257K 1s 50K .......... .......... .......... .......... .......... 33% 256K 1s 100K .......... .......... .......... .......... .......... 50% 170K 1s 150K .......... .......... .......... .......... .......... 67% 255K 0s 200K .......... .......... .......... .......... .......... 83% 257K 0s 250K .......... .......... .......... .......... ........ 100% 493K=1.2s

2013-08-19 14:41:04 (254 KB/s) - `-' saved [305442/305442]

++ cut -c1-7 ++ echo 9444f0f25feba186cef8fb2dc249aad331edd980

  • cd rjpower-falcon-9444f0f
  • virtualenv . New python executable in ./bin/python Installing Setuptools..............................................................................................................................................................................................................................done.

Installing Pip.....................................................................................................................................................................................................................................................................................................................................done.

  • source bin/activate ++ deactivate nondestructive ++ unset pydoc ++ '[' -n '' ']' ++ '[' -n '' ']' ++ '[' -n /bin/sh -o -n '' ']' ++ hash -r ++ '[' -n '' ']' ++ unset VIRTUAL_ENV ++ '[' '!' nondestructive = nondestructive ']' ++ VIRTUAL_ENV=/home/user/rmurri/sw/src/rjpower-falcon-9444f0f ++ export VIRTUAL_ENV ++ _OLD_VIRTUAL_PATH=/home/user/rmurri/sw/bin:/opt/pbs/default/bin:/opt/sgi/mpt/mpt-2.07/bin:/home/user/rmurri/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/usr/lib/mit/bin:/usr/lib/mit/sbin

++ PATH=/home/user/rmurri/sw/src/rjpower-falcon-9444f0f/bin:/home/user/rmurri/sw/bin:/opt/pbs/default/bin:/opt/sgi/mpt/mpt-2.07/bin:/home/user/rmurri/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/usr/lib/mit/bin:/usr/lib/mit/sbin

++ export PATH ++ '[' -n '' ']' ++ '[' -z '' ']' ++ _OLD_VIRTUAL_PS1= ++ '[' x '!=' x ']' +++ basename /home/user/rmurri/sw/src/rjpower-falcon-9444f0f ++ '[' rjpower-falcon-9444f0f = __ ']' +++ basename /home/user/rmurri/sw/src/rjpower-falcon-9444f0f ++ PS1='(rjpower-falcon-9444f0f)' ++ export PS1 ++ alias 'pydoc=python -m pydoc' ++ '[' -n /bin/sh -o -n '' ']' ++ hash -r

  • python setup.py develop running develop running egg_info creating src/falcon.egg-info writing src/falcon.egg-info/PKG-INFO writing top-level names to src/falcon.egg-info/top_level.txt writing dependency_links to src/falcon.egg-info/dependency_links.txt writing manifest file 'src/falcon.egg-info/SOURCES.txt' reading manifest file 'src/falcon.egg-info/SOURCES.txt' writing manifest file 'src/falcon.egg-info/SOURCES.txt' running build_ext building 'falcon_core' extension swigging src/falcon/rmodule.i to src/falcon/rmodule_wrap.cpp swig -python -Isrc -modern -O -c++ -w312,509 -o src/falcon/rmodule_wrap.cpp src/falcon/rmodule.i src/falcon/rinst.h:47: Warning 503: Can't wrap 'operator PyObject' unless renamed to a valid identifier. creating build creating build/temp.linux-x86_64-2.7 creating build/temp.linux-x86_64-2.7/src creating build/temp.linux-x86_64-2.7/src/falcon gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I./src -I/home/user/rmurri/sw/include/python2.7 -c src/falcon/basic_block.cc -o build/temp.linux-x86_64-2.7/src/falcon/basic_block.o -fno-gcse -fno-crossjumping -ggdb2 -std=c++0x -Isrc/sparsehash-2.0.2/src cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default] gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I./src -I/home/user/rmurri/sw/include/python2.7 -c src/falcon/compiler_op.cc -o build/temp.linux-x86_64-2.7/src/falcon/compiler_op.o -fno-gcse -fno-crossjumping -ggdb2 -std=c++0x -Isrc/sparsehash-2.0.2/src cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default] gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I./src -I/home/user/rmurri/sw/include/python2.7 -c src/falcon/compiler_state.cc -o build/temp.linux-x86_64-2.7/src/falcon/compiler_state.o -fno-gcse -fno-crossjumping -ggdb2 -std=c++0x -Isrc/sparsehash-2.0.2/src cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default] gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I./src -I/home/user/rmurri/sw/include/python2.7 -c src/falcon/oputil.cc -o build/temp.linux-x86_64-2.7/src/falcon/oputil.o -fno-gcse -fno-crossjumping -ggdb2 -std=c++0x -Isrc/sparsehash-2.0.2/src cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default] gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I./src -I/home/user/rmurri/sw/include/python2.7 -c src/falcon/rcompile.cc -o build/temp.linux-x86_64-2.7/src/falcon/rcompile.o -fno-gcse -fno-crossjumping -ggdb2 -std=c++0x -Isrc/sparsehash-2.0.2/src cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default] gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I./src -I/home/user/rmurri/sw/include/python2.7 -c src/falcon/register_stack.cc -o build/temp.linux-x86_64-2.7/src/falcon/register_stack.o -fno-gcse -fno-crossjumping -ggdb2 -std=c++0x -Isrc/sparsehash-2.0.2/src cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default] gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I./src -I/home/user/rmurri/sw/include/python2.7 -c src/falcon/reval.cc -o build/temp.linux-x86_64-2.7/src/falcon/reval.o -fno-gcse -fno-crossjumping -ggdb2 -std=c++0x -Isrc/sparsehash-2.0.2/src cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default] src/falcon/reval.cc: In static member function ‘static void ImportStar::eval(Evaluator, RegisterFrame_, RegOp<1>&, Register_)’: src/falcon/reval.cc:1610:13: warning: deprecated conversion from string constant to ‘char_’ [-Wwrite-strings] gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I./src -I/home/user/rmurri/sw/include/python2.7 -c src/falcon/rexcept.cc -o build/temp.linux-x86_64-2.7/src/falcon/rexcept.o -fno-gcse -fno-crossjumping -ggdb2 -std=c++0x -Isrc/sparsehash-2.0.2/src cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default] gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I./src -I/home/user/rmurri/sw/include/python2.7 -c src/falcon/rinst.cc -o build/temp.linux-x86_64-2.7/src/falcon/rinst.o -fno-gcse -fno-crossjumping -ggdb2 -std=c++0x -Isrc/sparsehash-2.0.2/src cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default] gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I./src -I/home/user/rmurri/sw/include/python2.7 -c src/falcon/util.cc -o build/temp.linux-x86_64-2.7/src/falcon/util.o -fno-gcse -fno-crossjumping -ggdb2 -std=c++0x -Isrc/sparsehash-2.0.2/src cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default] gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I./src -I/home/user/rmurri/sw/include/python2.7 -c src/falcon/rmodule_wrap.cpp -o build/temp.linux-x86_64-2.7/src/falcon/rmodule_wrap.o -fno-gcse -fno-crossjumping -ggdb2 -std=c++0x -Isrc/sparsehash-2.0.2/src cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default] src/falcon/rmodule_wrap.cpp: In function ‘void SWIG_InitializeModule(void_)’: src/falcon/rmodule_wrap.cpp:14025:21: warning: statement has no effect [-Wunused-value] creating build/lib.linux-x86_64-2.7 g++ -pthread -shared build/temp.linux-x86_64-2.7/src/falcon/basic_block.o build/temp.linux-x86_64-2.7/src/falcon/compiler_op.o build/temp.linux-x86_64-2.7/src/falcon/compiler_state.o build/temp.linux-x86_64-2.7/src/falcon/oputil.o build/temp.linux-x86_64-2.7/src/falcon/rcompile.o build/temp.linux-x86_64-2.7/src/falcon/register_stack.o build/temp.linux-x86_64-2.7/src/falcon/reval.o build/temp.linux-x86_64-2.7/src/falcon/rexcept.o build/temp.linux-x86_64-2.7/src/falcon/rinst.o build/temp.linux-x86_64-2.7/src/falcon/util.o build/temp.linux-x86_64-2.7/src/falcon/rmodule_wrap.o -o build/lib.linux-x86_64-2.7/_falcon_core.so -lrt copying build/lib.linux-x86_64-2.7/_falcon_core.so -> src Creating /home/user/rmurri/sw/src/rjpower-falcon-9444f0f/lib/python2.7/site-packages/falcon.egg-link (link to src) Adding falcon 0.04 to easy-install.pth file

Installed /home/user/rmurri/sw/src/rjpower-falcon-9444f0f/src Processing dependencies for falcon==0.04 Finished processing dependencies for falcon==0.04

— Reply to this email directly or view it on GitHub< https://github.com/rjpower/falcon/issues/16> .

R

— Reply to this email directly or view it on GitHubhttps://github.com/rjpower/falcon/issues/16#issuecomment-22879001 .

riccardomurri avatar Aug 19 '13 15:08 riccardomurri

Hi Riccardo,

Sorry for the segfault, crashing other people's computers is always embarrassing. Can you send us the code so we can figure out what went wrong?

Thanks, Alex

iskandr avatar Aug 19 '13 19:08 iskandr

Hi Alex, Russel,

thanks for your quick replies. I am trying to measure the speedup of Falcon over CPython on a code of mine: http://fatghol.googlecode.com/. I have patched the sources with the attached diff so to remove the dependency on external C++ libraries.

You can just check out the code from GoogleCode's SVN and then run:

svn co http://fatghol.googlecode.com/svn/trunk fatghol cd fatghol patch -i falcon.diff ./mgn.sh -v homology 0,4

Thanks, Riccardo

On 19 August 2013 21:28, Alex Rubinsteyn [email protected] wrote:

Hi Riccardo,

Sorry for the segfault, crashing other people's computers is always embarrassing. Can you send us the code so we can figure out what went wrong?

Thanks, Alex

— Reply to this email directly or view it on GitHubhttps://github.com/rjpower/falcon/issues/16#issuecomment-22897804 .

riccardomurri avatar Aug 19 '13 20:08 riccardomurri