[Trilinos-Users] FW: compile error

Deji Akingunola deji.aking at gmail.com
Tue Nov 18 05:53:16 MST 2008


On Mon, Nov 17, 2008 at 10:56 PM, Heroux, Michael A <maherou at sandia.gov>wrote:

>  Forwarding...
>
> ------ Forwarded Message
> *From: *Kurtis Nusbaum <klnusbaum at gmail.com>
> *Date: *Mon, 17 Nov 2008 19:18:44 -0700
> *To: *"Willenbring, James M" <jmwille at sandia.gov>, <
> trilinos-users-bounces at software.sandia.gov>
> *Conversation: *[Trilinos-Users] compile error
> *Subject: *Re: [Trilinos-Users] compile error
>
>
> Thanks for the quick response. I tried enabling epetraext, but now I'm
> getting this problem:
> Now building teuchos examples.
>

What are the exact options passed to the configure script? The build log
includes '-L/usr/lib/gcc/x86_64-redhat-linux/3.4.6' and
'/usr/lib/gcc/x86_64-redhat-linux/4.3.0',
it seems it was trying to link the compat gcc-3.4.6 libs together
withgcc-4.3.0 . The compat gcc-3.4.6 libs shouldn't be needed on
Fedora 9.

Deji


>
> cd ./example && make
> make[4]: Entering directory
> `/net/home/f07/klnusbau/tarfiles/trilinos-9.0.1/build1/packages/teuchos/example'
> Making all in BLAS
> make[5]: Entering directory
> `/net/home/f07/klnusbau/tarfiles/trilinos-9.0.1/build1/packages/teuchos/example/BLAS'
> g++ -DHAVE_CONFIG_H -I. -I../../src
> -I../../../../../packages/teuchos/example/BLAS
>    -I../../../../../packages/teuchos/src -g -O2 -MT BLAS_example-cxx_main.o
> -MD -MP -MF .deps/BLAS_example-cxx_main.Tpo -c -o BLAS_example-cxx_main.o
> `test -f '../../../../../packages/teuchos/example/BLAS/cxx_main.cpp' || echo
> '../../../../../packages/teuchos/example/BLAS/'`../../../../../packages/teuchos/example/BLAS/cxx_main.cpp
> mv -f .deps/BLAS_example-cxx_main.Tpo .deps/BLAS_example-cxx_main.Po
> g++ -I../../../../../packages/teuchos/src -g -O2   -o BLAS_example.exe
> BLAS_example-cxx_main.o ../../src/libteuchos.a  -llapack -lblas
> -L/usr/lib/gcc/x86_64-redhat-linux/3.4.6
> -L/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../lib64
> -L/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../.. -L/lib/../lib64
> -L/usr/lib/../lib64 -lfrtbegin -lg2c -lm
> BLAS_example-cxx_main.o: In function `operator<< <char,
> std::char_traits<char>, std::allocator<char> >':
> /usr/lib/gcc/x86_64-redhat-linux/4.3.0/../../../../include/c++/4.3.0/bits/basic_string.h:2425:
> undefined reference to `std::basic_ostream<char, std::char_traits<char> >&
> std::__ostream_insert<char, std::char_traits<char>
> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
> BLAS_example-cxx_main.o: In function `operator<< <std::char_traits<char>
> >':
> /usr/lib/gcc/x86_64-redhat-linux/4.3.0/../../../../include/c++/4.3.0/ostream:517:
> undefined reference to `std::basic_ostream<char, std::char_traits<char> >&
> std::__ostream_insert<char, std::char_traits<char>
> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
> /usr/lib/gcc/x86_64-redhat-linux/4.3.0/../../../../include/c++/4.3.0/ostream:517:
> undefined reference to `std::basic_ostream<char, std::char_traits<char> >&
> std::__ostream_insert<char, std::char_traits<char>
> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
> /usr/lib/gcc/x86_64-redhat-linux/4.3.0/../../../../include/c++/4.3.0/ostream:517:
> undefined reference to `std::basic_ostream<char, std::char_traits<char> >&
> std::__ostream_insert<char, std::char_traits<char>
> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
> BLAS_example-cxx_main.o: In function `std::basic_ostream<char,
> std::char_traits<char> >::operator<<(double)':
> /usr/lib/gcc/x86_64-redhat-linux/4.3.0/../../../../include/c++/4.3.0/ostream:214:
> undefined reference to `std::basic_ostream<char, std::char_traits<char> >&
> std::basic_ostream<char, std::char_traits<char>
> >::_M_insert<double>(double)'
> collect2: ld returned 1 exit status
> make[5]: *** [BLAS_example.exe] Error 1
> make[5]: Leaving directory
> `/net/home/f07/klnusbau/tarfiles/trilinos-9.0.1/build1/packages/teuchos/example/BLAS'
> make[4]: *** [all-recursive] Error 1
> make[4]: Leaving directory
> `/net/home/f07/klnusbau/tarfiles/trilinos-9.0.1/build1/packages/teuchos/example'
> make[3]: *** [examples] Error 2
> make[3]: Leaving directory
> `/net/home/f07/klnusbau/tarfiles/trilinos-9.0.1/build1/packages/teuchos'
> Error, the make of target examples failed for the package !
> make[2]: *** [examples] Error 2
> make[2]: Leaving directory
> `/net/home/f07/klnusbau/tarfiles/trilinos-9.0.1/build1/packages'
> make[1]: *** [everything] Error 2
> make[1]: Leaving directory
> `/net/home/f07/klnusbau/tarfiles/trilinos-9.0.1/build1/packages'
> make: *** [everything] Error 2
> 78.718u 28.167s 4:39.99 38.1%    0+0k 350832+1934672io 8pf+0w
>
>
>
>
> -Kurtis
>
>
>
> On Mon, Nov 17, 2008 at 12:42 PM, James Willenbring <jmwille at sandia.gov>
> wrote:
>
> Kurtis,
>
>
>
> It looks like the optional dependency tracking may not be working quite
> right.  Try using --enable-epetraext.
>
>
>
> Jim
>
>
>
>
>   ------------------------------
>
> *From:* trilinos-users-bounces at software.sandia.gov [
> mailto:trilinos-users-bounces at software.sandia.gov]<trilinos-users-bounces at software.sandia.gov%5D>
> *On Behalf Of *Kurtis Nusbaum
> *Sent:* Monday, November 17, 2008 2:20 PM
> *To:* Trilinos-Users at software.sandia.gov
> *Subject:* [Trilinos-Users] compile error
>
>
>
> I'm trying to follow the instructions in the trilinos 9.0 tutorial for
> compiling and installing trilinos. This is the configuration I'm using:
>
> ../configure --prefix=/net/home/f07/klnusbau/trilinos9/tutorialBuild \
> --disable-default-packages \
> --enable-teuchos \
> --enable-epetra \
> --enable-aztecoo \
> --enable-triutils \
> --enable-amesos \
> --enable-ifpack \
> --enable-ml \
> --enable-nox \
> --enable-nox-epetra \
> --enable-stratimikos \
> --enable-didasko  | tee configure_Tutorial.log
>
>
> After configuring, and issuing the "make everything" command trilinos
> starts building. However, during the build process I encounter this error:
>
> Factory.cpp:41:39: error: EpetraExt_ProductOperator.h: No such file or
> directory
> ../../../../../../packages/stratimikos/adapters/aztecoo/src/Thyra_AztecOOLinearOpWithSolveFactory.cpp:
> In member function 'void
> Thyra::AztecOOLinearOpWithSolveFactory::initializeOp_impl(const
> Teuchos::RCP<const Thyra::LinearOpSourceBase<double, double> >&, const
> Teuchos::RCP<const Thyra::PreconditionerBase<double, double> >&, const
> Teuchos::RCP<const Thyra::LinearOpSourceBase<double, double> >&, bool,
> Thyra::LinearOpWithSolveBase<double, double>*) const':
> ../../../../../../packages/stratimikos/adapters/aztecoo/src/Thyra_AztecOOLinearOpWithSolveFactory.cpp:444:
> error: 'EpetraExt' has not been declared
> ../../../../../../packages/stratimikos/adapters/aztecoo/src/Thyra_AztecOOLinearOpWithSolveFactory.cpp:444:
> error: expected initializer before 'PO'
> ../../../../../../packages/stratimikos/adapters/aztecoo/src/Thyra_AztecOOLinearOpWithSolveFactory.cpp:808:
> error: 'PO' has not been declared
> ../../../../../../packages/stratimikos/adapters/aztecoo/src/Thyra_AztecOOLinearOpWithSolveFactory.cpp:809:
> error: expected `;' before 'epetraOpsApplyMode'
> ../../../../../../packages/stratimikos/adapters/aztecoo/src/Thyra_AztecOOLinearOpWithSolveFactory.cpp:816:
> error: 'epetraOpsApplyMode' was not declared in this scope
> ../../../../../../packages/stratimikos/adapters/aztecoo/src/Thyra_AztecOOLinearOpWithSolveFactory.cpp:816:
> error: 'PO' has not been declared
> ../../../../../../packages/stratimikos/adapters/aztecoo/src/Thyra_AztecOOLinearOpWithSolveFactory.cpp:824:
> error: expected type-specifier before 'PO'
> ../../../../../../packages/stratimikos/adapters/aztecoo/src/Thyra_AztecOOLinearOpWithSolveFactory.cpp:824:
> error: expected `)' before 'PO'
> ../../../../../../packages/stratimikos/adapters/aztecoo/src/Thyra_AztecOOLinearOpWithSolveFactory.cpp:851:
> error: 'epetraOpsApplyMode' was not declared in this scope
> ../../../../../../packages/stratimikos/adapters/aztecoo/src/Thyra_AztecOOLinearOpWithSolveFactory.cpp:851:
> error: 'PO' has not been declared
> ../../../../../../packages/stratimikos/adapters/aztecoo/src/Thyra_AztecOOLinearOpWithSolveFactory.cpp:858:
> error: expected type-specifier before 'PO'
> ../../../../../../packages/stratimikos/adapters/aztecoo/src/Thyra_AztecOOLinearOpWithSolveFactory.cpp:858:
> error: expected `)' before 'PO'
> ../../../../../../packages/stratimikos/adapters/aztecoo/src/Thyra_AztecOOLinearOpWithSolveFactory.cpp:959:
> error: 'PO' has not been declared
> ../../../../../../packages/stratimikos/adapters/aztecoo/src/Thyra_AztecOOLinearOpWithSolveFactory.cpp:960:
> error: expected `;' before 'epetraOpsApplyMode'
> ../../../../../../packages/stratimikos/adapters/aztecoo/src/Thyra_AztecOOLinearOpWithSolveFactory.cpp:973:
> error: expected type-specifier before 'PO'
> ../../../../../../packages/stratimikos/adapters/aztecoo/src/Thyra_AztecOOLinearOpWithSolveFactory.cpp:973:
> error: expected `)' before 'PO'
> ../../../../../../packages/stratimikos/adapters/aztecoo/src/Thyra_AztecOOLinearOpWithSolveFactory.cpp:1003:
> error: expected type-specifier before 'PO'
> ../../../../../../packages/stratimikos/adapters/aztecoo/src/Thyra_AztecOOLinearOpWithSolveFactory.cpp:1003:
> error: expected `)' before 'PO'
> /home/f07/klnusbau/tarfiles/trilinos-9.0.1/build1/packages/teuchos/../../../packages/teuchos/src/Teuchos_RCP.hpp:
> In constructor 'Teuchos::RCP<T>::RCP(const Teuchos::RCP<T2>&) [with T2 =
> int, T = const Epetra_Operator]':
> ../../../../../../packages/stratimikos/adapters/aztecoo/src/Thyra_AztecOOLinearOpWithSolveFactory.cpp:824:
>  instantiated from here
> /home/f07/klnusbau/tarfiles/trilinos-9.0.1/build1/packages/teuchos/../../../packages/teuchos/src/Teuchos_RCP.hpp:85:
> error: cannot convert 'int*' to 'const Epetra_Operator*' in initialization
> make[6]: *** [Thyra_AztecOOLinearOpWithSolveFactory.o] Error 1
> make[6]: Leaving directory
> `/net/home/f07/klnusbau/tarfiles/trilinos-9.0.1/build1/packages/stratimikos/adapters/aztecoo/src'
> make[5]: *** [all-recursive] Error 1
> make[5]: Leaving directory
> `/net/home/f07/klnusbau/tarfiles/trilinos-9.0.1/build1/packages/stratimikos/adapters/aztecoo'
> make[4]: *** [all-recursive] Error 1
> make[4]: Leaving directory
> `/net/home/f07/klnusbau/tarfiles/trilinos-9.0.1/build1/packages/stratimikos/adapters'
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory
> `/net/home/f07/klnusbau/tarfiles/trilinos-9.0.1/build1/packages/stratimikos'
> make[2]: *** [all-recursive] Error 1
> make[1]: *** [everything] Error 2
>
>
>
>
> Does anyone have any suggestions as how to rectify this problem. Here's my
> system information:
>
> Fedora Core 9
> Linux Kernel 2.6.26.5-45.fc9.x86_64
> 1.9 Gib Ram
> Intel Core 2 Duo 6600 2.4 Ghz
>
>
>
>
>
> ------ End of Forwarded Message
>
> _______________________________________________
> Trilinos-Users mailing list
> Trilinos-Users at software.sandia.gov
> http://software.sandia.gov/mailman/listinfo/trilinos-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://software.sandia.gov/mailman/private/trilinos-users/attachments/20081118/e7669c82/attachment.html 


More information about the Trilinos-Users mailing list