tiger.platform: problem in compiling the PyTrilinos source files

Asked by Po white

I am trying to install fenics by dorsal-0.7.1 for Mac os x 10.4. But I got the following error after ./dorsal.sh :

Trilinos package nox subdirectory src-loca/src-thyra built successfully.

Making all in src-mf
make[5]: Nothing to be done for `all'.
make[5]: Nothing to be done for `all-am'.
Trilinos package nox built successfully
Making all in new_package
Making all in src
make all-am

Trilinos package new_package subdirectory src built successfully.

Trilinos package new_package built successfully
Making all in PyTrilinos
Making all in shared
/sw/bin/python ./setup.py build

Extracting Makefile variables ... done

Compiling the PyTrilinos source files
mpicxx -I/sw/include/python2.5 -fPIC -DNUMPY_NOPREFIX -c ../src/Amesos_wrap.cpp -o ../src/Amesos_wrap.o
../src/Amesos_wrap.cpp:3120:31: error: Amesos_ConfigDefs.h: No such file or directory
../src/Amesos_wrap.cpp:3148:20: error: Amesos.h: No such file or directory
../src/Amesos_wrap.cpp:3149:31: error: Amesos_BaseSolver.h: No such file or directory
In file included from ../src/NumPyImporter.h:32,
                 from ../src/Amesos_wrap.cpp:3182:
../src/numpy_include.h:46:31: error: numpy/arrayobject.h: No such file or directory
../src/numpy_include.h:49:28: error: numpy/noprefix.h: No such file or directory
../src/NumPyImporter.h: In constructor 'NumPyImporter::NumPyImporter()':
../src/NumPyImporter.h:42: error: 'import_array' was not declared in this scope
../src/Amesos_wrap.cpp: In function 'int SWIG_AsVal_unsigned_SS_long(PyObject*, long unsigned int*)':
../src/Amesos_wrap.cpp:3469: error: expected initializer before '*' token

......................(tons of errors)..........................................

../src/Amesos_wrap.cpp:9477: error: expected `)' before 'void'
Traceback (most recent call last):
  File "./setup.py", line 181, in <module>
    main(command, destdir)
  File "./setup.py", line 150, in main
    builder.buildShared()
  File "../util/SharedUtils.py", line 468, in buildShared
    runCommand(self.getCompileCmd(src, obj))
  File "../util/SharedUtils.py", line 97, in runCommand
    if status: raise RuntimeError, "Exit status = %d" % status
RuntimeError: Exit status = 256
make[4]: *** [package] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Failure with exit status: 2
Exit message: There was a problem building trilinos-9.0.3.

I'm just a starter for both mac and dorsal. Any help will be great appreciated!

Po

Question information

Language:
English Edit question
Status:
Answered
For:
Dorsal Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Garth Wells (garth-wells) said :
#1

On 09/07/10 22:20, Po white wrote:
> New question #117196 on Dorsal:
> https://answers.launchpad.net/dorsal/+question/117196
>
> I am trying to install fenics by dorsal-0.7.1 for Mac os x 10.4. But I got the following error after ./dorsal.sh :
>

Try commenting out trilinos in

     FEniCS/platforms/tiger.platform

It's not required to get FEniCS up and running.

Garth

>
> Trilinos package nox subdirectory src-loca/src-thyra built successfully.
>
> Making all in src-mf
> make[5]: Nothing to be done for `all'.
> make[5]: Nothing to be done for `all-am'.
> Trilinos package nox built successfully
> Making all in new_package
> Making all in src
> make all-am
>
> Trilinos package new_package subdirectory src built successfully.
>
> Trilinos package new_package built successfully
> Making all in PyTrilinos
> Making all in shared
> /sw/bin/python ./setup.py build
>
> Extracting Makefile variables ... done
>
> Compiling the PyTrilinos source files
> mpicxx -I/sw/include/python2.5 -fPIC -DNUMPY_NOPREFIX -c ../src/Amesos_wrap.cpp -o ../src/Amesos_wrap.o
> ../src/Amesos_wrap.cpp:3120:31: error: Amesos_ConfigDefs.h: No such file or directory
> ../src/Amesos_wrap.cpp:3148:20: error: Amesos.h: No such file or directory
> ../src/Amesos_wrap.cpp:3149:31: error: Amesos_BaseSolver.h: No such file or directory
> In file included from ../src/NumPyImporter.h:32,
> from ../src/Amesos_wrap.cpp:3182:
> ../src/numpy_include.h:46:31: error: numpy/arrayobject.h: No such file or directory
> ../src/numpy_include.h:49:28: error: numpy/noprefix.h: No such file or directory
> ../src/NumPyImporter.h: In constructor 'NumPyImporter::NumPyImporter()':
> ../src/NumPyImporter.h:42: error: 'import_array' was not declared in this scope
> ../src/Amesos_wrap.cpp: In function 'int SWIG_AsVal_unsigned_SS_long(PyObject*, long unsigned int*)':
> ../src/Amesos_wrap.cpp:3469: error: expected initializer before '*' token
>
> ......................(tons of errors)..........................................
>
> ../src/Amesos_wrap.cpp:9477: error: expected `)' before 'void'
> Traceback (most recent call last):
> File "./setup.py", line 181, in<module>
> main(command, destdir)
> File "./setup.py", line 150, in main
> builder.buildShared()
> File "../util/SharedUtils.py", line 468, in buildShared
> runCommand(self.getCompileCmd(src, obj))
> File "../util/SharedUtils.py", line 97, in runCommand
> if status: raise RuntimeError, "Exit status = %d" % status
> RuntimeError: Exit status = 256
> make[4]: *** [package] Error 1
> make[3]: *** [all-recursive] Error 1
> make[2]: *** [all-recursive] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
> Failure with exit status: 2
> Exit message: There was a problem building trilinos-9.0.3.
>
>
> I'm just a starter for both mac and dorsal. Any help will be great appreciated!
>
> Po
>

Can you help with this problem?

Provide an answer of your own, or ask Po white for more information if necessary.

To post a message you must log in.