[petsc-users] [petsc-dev] FFT Matrix Examples/Tests: Compiletime error

Thomas Hisch t.hisch at gmail.com
Tue Jul 10 12:50:14 CDT 2012


On Tue, Jul 10, 2012 at 7:06 PM, Jed Brown <jedbrown at mcs.anl.gov> wrote:
> On Tue, Jul 10, 2012 at 12:04 PM, Matthew Knepley <knepley at gmail.com> wrote:
>>
>> On Tue, Jul 10, 2012 at 11:59 AM, Thomas Hisch <t.hisch at gmail.com> wrote:
>>>
>>> Thx for the hint.
>>>
>>> Should PETSc-dev in principle work with gcc-4.7, because I get the
>>> following error while building petsc:
>>
>>
>> Jed is fixing that now. C++ compilers are extraordinarily dumb, and cannot
>> cast
>> a 'volatile std::complex' to 'std::complex'. Should be ready soon.
>
>
> http://petsc.cs.iit.edu/petsc/petsc-dev/rev/664ec55a8ab3

Thx this fixed the compilation error.

However, compilation of the ex148 example in src/mat/examples/tests/
still failes! Maybe I did something wrong. diff shows no differenece
between ex148.c from petsc-dev and petsc-3.3-p1. I tried to compile
ex148 by typing 'make ex148' in src/mat/examples/tests/  - is this the
correct way ?

Again, here is the error message:

mpicxx -o ex148.o -c -Wall -Wwrite-strings -Wno-strict-aliasing
-Wno-unknown-pragmas -O3 -fPIC
-I/home/thomas/local/src/petsc-dev/include
-I/home/thomas/local/src/petsc-dev/arch-linux2-cxx-release/include
-I/usr/lib/openmpi/include -I/usr/lib/openmpi/include/openmpi
-D__INSDIR__=src/mat/examples/tests/ ex148.c
ex148.c: In function ‘PetscInt main(PetscInt, char**)’:
ex148.c:45:37: error: ‘InputTransformFFT’ was not declared in this scope
ex148.c:54:39: error: ‘OutputTransformFFT’ was not declared in this scope
make: [ex148.o] Error 1 (ignored)
mpicxx -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas
-O3   -o ex148 ex148.o
-Wl,-rpath,/home/thomas/local/src/petsc-dev/arch-linux2-cxx-release/lib
-L/home/thomas/local/src/petsc-dev/arch-linux2-cxx-release/lib
-lpetsc -lX11 -Wl,-rpath,/home/thomas/local/src/petsc-dev/arch-linux2-cxx-release/lib
-lfftw3_mpi -lfftw3 -lpthread
-Wl,-rpath,/opt/intel/composer_xe_2011_sp1.11.339/mkl/lib/intel64
-L/opt/intel/composer_xe_2011_sp1.11.339/mkl/lib/intel64 -llapack
-lblas -Wl,-rpath,/usr/lib/openmpi/lib -L/usr/lib/openmpi/lib
-Wl,-rpath,/usr/lib/gcc/x86_64-linux-gnu/4.7
-L/usr/lib/gcc/x86_64-linux-gnu/4.7
-Wl,-rpath,/usr/lib/x86_64-linux-gnu -L/usr/lib/x86_64-linux-gnu
-Wl,-rpath,/lib/x86_64-linux-gnu -L/lib/x86_64-linux-gnu
-Wl,-rpath,/opt/intel/composer_xe_2011_sp1.11.339/compiler/lib/intel64
-L/opt/intel/composer_xe_2011_sp1.11.339/compiler/lib/intel64
-Wl,-rpath,/opt/intel/composer_xe_2011_sp1.10.319/compiler/lib/intel64
-L/opt/intel/composer_xe_2011_sp1.10.319/compiler/lib/intel64
-Wl,-rpath,/opt/intel/composer_xe_2011_sp1.10.319/ipp/lib/intel64
-L/opt/intel/composer_xe_2011_sp1.10.319/ipp/lib/intel64
-Wl,-rpath,/opt/intel/composer_xe_2011_sp1.10.319/mkl/lib/intel64
-L/opt/intel/composer_xe_2011_sp1.10.319/mkl/lib/intel64
-Wl,-rpath,/opt/intel/composer_xe_2011_sp1.10.319/tbb/lib/intel64/cc4.1.0_libc2.4_kernel2.6.16.21
-L/opt/intel/composer_xe_2011_sp1.10.319/tbb/lib/intel64/cc4.1.0_libc2.4_kernel2.6.16.21
-lmpi_f90 -lmpi_f77 -lgfortran -lm -lgfortran -lm -lgfortran -lm -lm
-lquadmath -lm -lmpi_cxx -lstdc++ -ldl -lmpi -lopen-rte -lopen-pal
-lnsl -lutil -lgcc_s -lpthread -ldl
g++: error: ex148.o: No such file or directory
make: [ex148] Error 1 (ignored)
/bin/rm -f ex148.o


Regards
Thomas


More information about the petsc-users mailing list