MMTK Install Problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Justin Lemkul

    #1

    MMTK Install Problem

    Hello All,

    I am hoping that someone out there will be able to help me. During the
    "build" phase of MMTK installation, I receive the following series of errors:

    $ python setup.py build
    running build
    running build_py
    running build_ext
    building 'lapack_mmtk' extension
    gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd
    -fno-common
    -dynamic -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -DLIBM_HAS_ERFC
    -DEXTENDED_TYPES -IInclude
    -I/System/Library/Frameworks/Python.framewor k/Versions/
    2.3/include/python2.3 -c Src/lapack_mmtk.c -o
    build/temp.darwin-7.7.0-Power_Macintosh
    -2.3/Src/lapack_mmtk.o
    Src/lapack_mmtk.c:2 :33: Numeric/arrayobject.h: No such file or directory
    Src/lapack_mmtk.c:6 : warning: function declaration isn't a prototype
    Src/lapack_mmtk.c:1 1: warning: function declaration isn't a prototype
    Src/lapack_mmtk.c: In function `lapack_mmtk_Ch eckObject':
    Src/lapack_mmtk.c:2 9: warning: implicit declaration of function
    `PyArray_Check'
    Src/lapack_mmtk.c:3 4: error: `PyArrayObject' undeclared (first use in this
    function)
    Src/lapack_mmtk.c:3 4: error: (Each undeclared identifier is reported only once
    Src/lapack_mmtk.c:3 4: error: for each function it appears in.)
    Src/lapack_mmtk.c:3 4: error: parse error before ')' token
    Src/lapack_mmtk.c:3 4: error: `CONTIGUOUS' undeclared (first use in this
    function)
    Src/lapack_mmtk.c:3 9: error: parse error before ')' token
    Src/lapack_mmtk.c: In function `lapack_mmtk_ds yev':
    Src/lapack_mmtk.c:7 2: error: `PyArray_DOUBLE ' undeclared (first use in this
    function)
    Src/lapack_mmtk.c:8 1: warning: implicit declaration of function `dsyev_'
    Src/lapack_mmtk.c:8 1: error: `PyArrayObject' undeclared (first use in this
    function)
    Src/lapack_mmtk.c:8 1: error: parse error before ')' token
    Src/lapack_mmtk.c:8 1: error: parse error before ')' token
    Src/lapack_mmtk.c:8 1: error: parse error before ')' token
    Src/lapack_mmtk.c: In function `lapack_mmtk_dg esvd':
    Src/lapack_mmtk.c:1 07: error: `PyArray_DOUBLE ' undeclared (first use in this
    function)
    Src/lapack_mmtk.c:1 18: warning: implicit declaration of function `dgesvd_'
    Src/lapack_mmtk.c:1 18: error: `PyArrayObject' undeclared (first use in this
    function)
    Src/lapack_mmtk.c:1 18: error: parse error before ')' token
    Src/lapack_mmtk.c:1 18: error: parse error before ')' token
    Src/lapack_mmtk.c:1 18: error: parse error before ')' token
    Src/lapack_mmtk.c:1 18: error: parse error before ')' token
    Src/lapack_mmtk.c:1 18: error: parse error before ')' token
    Src/lapack_mmtk.c: At top level:
    Src/lapack_mmtk.c:1 34: warning: function declaration isn't a prototype
    Src/lapack_mmtk.c:1 32: warning: `lapack_mmtkErr or' defined but not used
    error: command 'gcc' failed with exit status 1

    I am attempting the install on a Mac OS X v10.3 with Python v2.3, NumPy v23.1,
    and SciPy v2.4.3

    Thanks in advance for any help you can give me.

    -Justin Lemkul

  • David M. Cooke

    #2
    Re: MMTK Install Problem

    Justin Lemkul <jalemkul@vt.ed u> writes:
    [color=blue]
    > Hello All,
    >
    > I am hoping that someone out there will be able to help me. During the
    > "build" phase of MMTK installation, I receive the following series of errors:
    >
    > $ python setup.py build
    > running build
    > running build_py
    > running build_ext
    > building 'lapack_mmtk' extension
    > gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd
    > -fno-common
    > -dynamic -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -DLIBM_HAS_ERFC
    > -DEXTENDED_TYPES -IInclude
    > -I/System/Library/Frameworks/Python.framewor k/Versions/
    > 2.3/include/python2.3 -c Src/lapack_mmtk.c -o
    > build/temp.darwin-7.7.0-Power_Macintosh
    > -2.3/Src/lapack_mmtk.o
    > Src/lapack_mmtk.c:2 :33: Numeric/arrayobject.h: No such file or directory[/color]

    Always look at the first error :-) GCC is awful for, when it can't
    find an include file, saying it can't, then spewing millions of error
    messages afterwards that are a direct result of not having stuff declared.

    In this case, it's obvious that you don't have Numeric installed
    correctly; the header files should be picked from one of the
    directories specified by the -I flags in the gcc invocation above.
    [color=blue]
    > I am attempting the install on a Mac OS X v10.3 with Python v2.3, NumPy v23.1,
    > and SciPy v2.4.3[/color]

    (You mean ScientificPytho n, not SciPy, right? Scipy is at 0.3.2)

    How did you install Numeric? The newest version is 23.7. It should be
    real easy to upgrade to that, as that version picks up Apple's vecLib
    framework for the linear algebra routines. Just do the usual 'python
    setup.py build', 'sudo python setup.py install'. That should put the
    header files where the MMTK installation expects them.

    --
    |>|\/|<
    /--------------------------------------------------------------------------\
    |David M. Cooke
    |cookedm(at)phy sics(dot)mcmast er(dot)ca

    Comment

    Working...