On Dec 7, 10:55 pm, Kurt Smith <
kwmsm...@gmail.com> wrote:
> On Tue, Dec 7, 2010 at 9:46 PM, als44118 <
alex.solomon...@yahoo.com> wrote:
>
> > I'm running ubuntu 10.04, python 2.6.5, gfortran 4.4.3, cython 0.11.2
> > I can't get Fwrap 0.1.1 to pass tests.
>
> > When I do export F90=/usr/bin/gfortran
> > export LDFLAGS='-L/usr/lib/ -lgfortran'
> > python runtests.py -vv --fcompiler=gnu95 --no-cleanup
>
> > I get
>
> > Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56)
> > [GCC 4.4.3]
>
>stuff deleted...
>
> > This feels like a configuration problem, but there aren't any obvious
> > packages to add.
> > I don't use python, and the installation of python on my machine is
> > fairly minimal.
>
> > Any help would be greatly appreciated.
>
> Thank you for the report.
>
> Could you please cut & paste the contents of
> BUILD/compile/all_char_fwrap/*.log please? These are the log files which
> should contain more details about the problem.
>
> Note that the build & configuration systems are undergoing massive
> improvements so this whole experience will be better on the next release.
>
> Kurt
fparser.log:
DEBUG: Not implemented: Defined_Binary_Op
DEBUG: Not implemented: Defined_Binary_Op
DEBUG: Defined_Operator not defined used by Generic_Spec
fwrap.log:
2010-12-07 09:11:31,590 fwrap DEBUG: 580 - Command line arguments:
2010-12-07 09:11:31,590 fwrap DEBUG: 137 - Running with following
options:
2010-12-07 09:11:31,591 fwrap DEBUG: 201 - Wrapping the following
source:
2010-12-07 09:11:31,591 fwrap DEBUG: 203 - /home/alex/math/packages/
fwrap-0.1.1/tests/compile/all_char.f90
2010-12-07 09:11:31,591 fwrap INFO: 206 - Parsing source files.
2010-12-07 09:11:32,036 fwrap INFO: 215 - Parsing was successful.
2010-12-07 09:11:32,036 fwrap INFO: 218 - Wrapping fortran...
2010-12-07 09:11:32,036 fwrap INFO: 283 - Generating abstract syntax
tress for c and cython.
2010-12-07 09:11:32,141 fwrap INFO: 220 - Wrapping was successful.
2010-12-07 09:11:32,141 fwrap INFO: 234 - Compiling sources and
generating extension module..
.
2010-12-07 09:11:32,142 fwrap INFO: 238 - Changing to project
directory /home/alex/math/packages/fwrap-0.1.1/BUILD/compile/
all_char_fwrap
2010-12-07 09:11:32,362 fwrap INFO: 243 - Returning to /home/alex/math/
packages/fwrap-0.1.1
2010-12-07 09:11:32,362 fwrap INFO: 245 - Compiling was successful.
fwrap_setup.log:
running config
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands --
fcompiler options
running build_src
building extension "all_char_fwrap" sources
subroutine outer(a)
use, intrinsic :: iso_c_binding
implicit none
character(kind=c_char), intent(inout) :: a
interface
subroutine inner(a)
use, intrinsic :: iso_c_binding
implicit none
character(1), intent(inout) :: a
end subroutine inner
end interface
call inner(a)
end subroutine outer
customize Gnu95FCompiler
Found executable /usr/bin/gfortran
Found executable /usr/bin/gfortran
customize Gnu95FCompiler using fw_config
Fortran f77 compiler: /usr/bin/gfortran -Wall -ffixed-form -fno-second-
underscore -fPIC -O3 -funroll-loops
Fortran f90 compiler: /usr/bin/gfortran -Wall -fno-second-underscore -
fPIC -O3 -funroll-loops
Fortran fix compiler: /usr/bin/gfortran -Wall -ffixed-form -fno-second-
underscore -Wall -fno-second-underscore -fPIC -O3 -funroll-loops
compile options: '-c'
gfortran:f90: _configtest.f90
success!
removing: _configtest.f90 _configtest.o
C compiler: gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -
Wall -Wstrict-prototypes -fPIC
compile options: '-I/usr/include/python2.6 -I/usr/lib/python2.6/dist-
packages/numpy/core/include -c'
gcc: _configtest.c
_configtest.c:1:20: error: Python.h: No such file or directory
In file included from /usr/include/python2.6/numpy/ndarrayobject.h:61,
from /usr/include/python2.6/numpy/arrayobject.h:14,
from _configtest.c:2:
usr/include/python2.6/numpy/npy_common.h:71:2: error: #error Must use
Python with unicode enabled.
In file included from /usr/include/python2.6/numpy/arrayobject.h:14,
from _configtest.c:2:
/usr/include//usr/include/python2.6/numpy/ndarrayobject.h:181: error:
expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘npy_intp’
/usr/include/python2.6/numpy/ndarrayobject.h:182: error: expected ‘=’,
‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘npy_uintp’
/usr/include/python2.6/numpy/ndarrayobject.h:284: error: expected ‘=’,
‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/usr/include/python2.6/numpy/ndarrayobject.h:285: error: expected ‘)’
before ‘*’ token
/usr/include/python2.6/numpy/ndarrayobject.h:287: error: expected
declaration specifiers or ‘...’ before ‘npy_intp’
/usr/include/python2.6/numpy/ndarrayobject.h:287: error: expected
declaration specifiers or ‘...’ before ‘npy_intp’
/usr/include/python2.6/numpy/ndarrayobject.h:288: error: expected
declaration specifiers or ‘...’ before ‘npy_intp’
/usr/include/python2.6/numpy/ndarrayobject.h:298: error: expected
declaration specifiers or ‘...’ before ‘npy_intp’
/usr/include/python2.6/numpy/ndarrayobject.h:298: error: expected
declaration specifiers or ‘...’ before ‘npy_intp’
/usr/include/python2.6/numpy/ndarrayobject.h:300: error: expected
declaration specifiers or ‘...’ before ‘npy_intp’
/usr/include/python2.6/numpy/ndarrayobject.h:300: error: expected
declaration specifiers or ‘...’ before ‘npy_intp’
/usr/include/python2.6/numpy/ndarrayobject.h:301: error: expected
declaration specifiers or ‘...’ before ‘npy_intp’
/usr/include/python2.6/numpy/ndarrayobject.h:303: error: expected
declaration specifiers or ‘...’ before ‘npy_intp’
/usr/include/python2.6/numpy/ndarrayobject.h:308: error: expected ‘)’
before ‘*’ token
/usr/include/python2.6/numpy/ndarrayobject.h:313: error: expected
declaration specifiers or ‘...’ before ‘npy_intp’
/usr/include/python2.6/numpy/ndarrayobject.h:315: error: expected
declaration specifiers or ‘...’ before ‘npy_intp’
/usr/include/python2.6/numpy/ndarrayobject.h:316: error: expected
declaration specifiers or ‘...’ before ‘npy_intp’
/usr/include/python2.6/numpy/ndarrayobject.h:316: error: expected
declaration specifiers or ‘...’ before ‘npy_intp’
/usr/include/python2.6/numpy/ndarrayobject.h:318: error: expected
declaration specifiers or ‘...’ before ‘npy_intp’
/usr/include/python2.6/numpy/ndarrayobject.h:322: error: expected
declaration specifiers or ‘...’ before ‘npy_intp’
/usr/include/python2.6/numpy/ndarrayobject.h:324: error: expected
declaration specifiers or ‘...’ before ‘npy_intp’
/usr/include/python2.6/numpy/ndarrayobject.h:325: error: expected
declaration specifiers or ‘...’ before ‘npy_intp’
/usr/include/python2.6/numpy/ndarrayobject.h:326: error: expected
declaration specifiers or ‘...’ before ‘npy_intp’
/usr/include/python2.6/numpy/ndarrayobject.h:327: error: expected
declaration specifiers or ‘...’ before ‘npy_intp’
/usr/include/python2.6/numpy/ndarrayobject.h:327: error: expected
declaration specifiers or ‘...’ before ‘npy_intp’
/usr/include/python2.6/numpy/ndarrayobject.h:328: error: expected
declaration specifiers or ‘...’ before ‘npy_intp’
/usr/include/python2.6/numpy/ndarrayobject.h:328: error: expected
declaration specifiers or ‘...’ before ‘npy_intp’
/usr/include/python2.6/numpy/ndarrayobject.h:332: error: expected
specifier-qualifier-list before ‘npy_intp’
/usr/include/python2.6/numpy/ndarrayobject.h:345: error: expected
specifier-qualifier-list before ‘PyArray_GetItemFunc’
/usr/include/python2.6/numpy/ndarrayobject.h:446: error: expected
specifier-qualifier-list before ‘PyObject_HEAD’
/usr/include/python2.6/numpy/ndarrayobject.h:478: error: expected
specifier-qualifier-list before ‘PyObject’
/usr/include/python2.6/numpy/ndarrayobject.h:488: error: expected
specifier-qualifier-list before ‘PyObject_HEAD’
/usr/include/python2.6/numpy/ndarrayobject.h:513: error: expected
specifier-qualifier-list before ‘PyObject_HEAD’
/usr/include/python2.6/numpy/ndarrayobject.h:521: error: expected
specifier-qualifier-list before ‘PyObject_HEAD’
/usr/include/python2.6/numpy/ndarrayobject.h:528: error: expected
declaration specifiers or ‘...’ before ‘PyObject’
/usr/include/python2.6/numpy/ndarrayobject.h:670: error: expected
specifier-qualifier-list before ‘PyObject_HEAD’
/usr/include/python2.6/numpy/ndarrayobject.h:817: error: expected
specifier-qualifier-list before ‘PyObject_HEAD’
/usr/include/python2.6/numpy/ndarrayobject.h:871: error: expected
specifier-qualifier-list before ‘PyObject_HEAD’
/usr/include/python2.6/numpy/ndarrayobject.h:1084: error: expected
specifier-qualifier-list before ‘npy_intp’
In file included from /usr/include/python2.6/numpy/ndarrayobject.h:
1099,
from /usr/include/python2.6/numpy/arrayobject.h:14,
from _configtest.c:2:
/usr/include/python2.6/numpy/__multiarray_api.h:407: error: ‘NULL’
undeclared here (not in a function)
/usr/include/python2.6/numpy/__multiarray_api.h: In function
‘_import_array’:
/usr/include/python2.6/numpy/__multiarray_api.h:971: error: ‘PyObject’
undeclared (first use in this function)
/usr/include/python2.6/numpy/__multiarray_api.h:971: error: (Each
undeclared identifier is reported only once
/usr/include/python2.6/numpy/__multiarray_api.h:971: error: for each
function it appears in.)
/usr/include/python2.6/numpy/__multiarray_api.h:971: error: ‘numpy’
undeclared (first use in this function)
/usr/include/python2.6/numpy/__multiarray_api.h:971: warning: implicit
declaration of function ‘PyImport_ImportModule’
/usr/include/python2.6/numpy/__multiarray_api.h:972: error: ‘c_api’
undeclared (first use in this function)
/usr/include/python2.6/numpy/__multiarray_api.h:974: warning: implicit
declaration of function ‘PyObject_GetAttrString’
/usr/include/python2.6/numpy/__multiarray_api.h:975: warning: implicit
declaration of function ‘Py_DECREF’
/usr/include/python2.6/numpy/__multiarray_api.h:976: warning: implicit
declaration of function ‘PyCObject_Check’
/usr/include/python2.6/numpy/__multiarray_api.h:977: warning: implicit
declaration of function ‘PyCObject_AsVoidPtr’
/usr/include/python2.6/numpy/__multiarray_api.h:984: warning: implicit
declaration of function ‘PyErr_Format’
/usr/include/python2.6/numpy/__multiarray_api.h:984: error:
‘PyExc_RuntimeError’ undeclared (first use in this function)
_configtest.c: At top level:
_configtest.c:5: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘npy_check_sizeof_type’
_configtest.c:7: warning: function declaration isn’t a prototype
_configtest.c: In function ‘main’:
_configtest.c:8: error: ‘npy_check_sizeof_type’ undeclared (first use
in this function)
_configtest.c:8: warning: unused variable ‘test_array’
Hope this helps,
--Alex