[Trilinos-Users] Cygwin Build Problems

Bartlett, Roscoe A rabartl at sandia.gov
Tue Jan 13 13:33:59 MST 2009


Michael,

This is very troubling.  I have never seen errors like this.

If you build with 'make -i everything' what packages build and which ones do not?

Cheers,

- Ross


________________________________
From: Michael Sielemann [mailto:michael.sielemann at gmail.com]
Sent: Tuesday, January 13, 2009 7:47 AM
To: Trilinos-Users at software.sandia.gov; Bartlett, Roscoe A
Subject: Re: [Trilinos-Users] Cygwin Build Problems




Dear Ross,
By now I did two successful builds on Linux (one on OpenSuse 10.2 and one on a Centos 5.2 node). But none on Cygwin. I tested on my laptop, a second laptop and my home computer, which has a pretty fresh Windows XP installation. They all failed. I made Cygwin installations as user and as admin, with all packages in section "devel" selected and with a hand-picked set only. I tried Trilinos versions 9.0.2 and 8.0.7.

I understand that you did not have any trouble with this so I would like to ask you whether I am missing out on a crucial step. This is what I do:
1. Install latest Cygwin with
     - All items in the devel section enabled ---or--- adding several items by hand to the default such that the complete set ends up as
       autoconf wrapper scripts, autoconf 2.1, automake 1.5, binutils, cmake, doxygen, e2fsprogs, gcc-core, gcc-g++, gcc-g77, gcc-mingw-core, gcc-mingw-g++, gcc-mingw-g77, gettext, gtk2-x11, gtk-x11-runtime, libfpx-devel, libfreetype2, libgdbm-devel, libhdf5-devel, libhdf5-runtime, libiconv, lib-jasper-devel, liblcms-devel, libwmf-devel!!, libxml2, libxml-devel, make, mingw-runtime, pango, pango-runtime
     - the LAPACK package from the math section (includes BLAS)
2. In the Cygwin Bash Console, do the following (this one is from my home computer)

Admin at Laptop ~
$ cd /cygdrive/c/tmp/

Admin at Laptop /cygdrive/c/tmp
$ gunzip trilinos-9.0.2.tar.gz

Admin at Laptop /cygdrive/c/tmp
$ tar xf trilinos-9.0.2.tar

Admin at Laptop /cygdrive/c/tmp
$ cd trilinos-9.0.2

Admin at Laptop /cygdrive/c/tmp/trilinos-9.0.2
$ mkdir cygwin_serial

Admin at Laptop /cygdrive/c/tmp/trilinos-9.0.2
$ cd cygwin_serial/

Admin at Laptop /cygdrive/c/tmp/trilinos-9.0.2/cygwin_serial
$ bash do-configure.sh
rm: cannot remove `config.cache': No such file or directory

(...)

$ make everything

(...)

cc -DHAVE_CONFIG_H -I. -I../../src/include -I../../../../../packages/zoltan/src/
driver  -I/cygdrive/c/tmp/trilinos-9.0.2/cygwin_serial/packages/zoltan/src/include
 -I/cygdrive/c/tmp/trilinos-9.0.2/packages/zoltan/src/include -I/cygdrive/c/tmp/
trilinos-9.0.2/packages/zoltan/siMPI/pyMPI/siMPI -I../../../../../packages/zolta
n/src/driver/ -I../../../../../packages/zoltan/src/ch/   -g -O0 -ansi -pedantic
-Wall -fexceptions -MT zCPPdrive-ch_input_read.o -MD -MP -MF .deps/zCPPdrive-ch_
input_read.Tpo -c -o zCPPdrive-ch_input_read.o `test -f '../../../../../packages
/zoltan/src/ch/ch_input_read.c' || echo '../../../../../packages/zoltan/src/driv
er/'`../../../../../packages/zoltan/src/ch/ch_input_read.c
mv -f .deps/zCPPdrive-ch_input_read.Tpo .deps/zCPPdrive-ch_input_read.Po
CC -DHAVE_CONFIG_H -I. -I../../src/include -I../../../../../packages/zoltan/src/
driver  -I/cygdrive/c/tmp/trilinos-9.0.2/cygwin_serial/packages/zoltan/src/include
 -I/cygdrive/c/tmp/trilinos-9.0.2/packages/zoltan/src/include -I/cygdrive/c/tmp/
trilinos-9.0.2/packages/zoltan/siMPI/pyMPI/siMPI -I../../../../../packages/zolta
n/src/driver/ -I../../../../../packages/zoltan/src/ch/   -g -O0 -ansi -pedantic
-Wall -fexceptions -MT zCPPdrive-dr_mainCPP.o -MD -MP -MF .deps/zCPPdrive-dr_mai
nCPP.Tpo -c -o zCPPdrive-dr_mainCPP.o `test -f '../../../../../packages/zoltan/s
rc/driver/dr_mainCPP.cpp' || echo '../../../../../packages/zoltan/src/driver/'`.
./../../../../packages/zoltan/src/driver/dr_mainCPP.cpp
In file included from ../../../../../packages/zoltan/src/driver/dr_loadbal_const
.h:22,
                 from ../../../../../packages/zoltan/src/driver/dr_mainCPP.cpp:2
7:
/cygdrive/c/tmp/trilinos-9.0.2/packages/zoltan/src/include/zoltan_cpp.h: In memb
er function `int Zoltan::Generate_Files(std::string&, const int&, const int&, co
nst int&, const int&)':
/cygdrive/c/tmp/trilinos-9.0.2/packages/zoltan/src/include/zoltan_cpp.h:606: err
or: `strdup' undeclared (first use this function)
/cygdrive/c/tmp/trilinos-9.0.2/packages/zoltan/src/include/zoltan_cpp.h:606: err
or: (Each undeclared identifier is reported only once for each function it appea
$
make[5]: *** [zCPPdrive-dr_mainCPP.o] Error 1
make[5]: Leaving directory `/cygdrive/c/tmp/trilinos-9.0.2/cygwin_serial/packages/
zoltan/src/driver'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/cygdrive/c/tmp/trilinos-9.0.2/cygwin_serial/packages/
zoltan/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/cygdrive/c/tmp/trilinos-9.0.2/cygwin_serial/packages/
zoltan'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/cygdrive/c/tmp/trilinos-9.0.2/cygwin_serial/packages'

make[1]: *** [everything] Error 2
make[1]: Leaving directory `/cygdrive/c/tmp/trilinos-9.0.2/cygwin_serial/packages'

make: *** [everything] Error 2



Configure almost never complains about anything but during 'make' or 'make everything' the build process fails. GCC, G77, G++ are  3.4.4 as on your Cygwin, too.

siel_mi at rmlap069 /cygdrive/f/C_Sandbox/tribox/trilinos-9.0.2/Cygwin_serial
$ gcc --version
gcc (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


siel_mi at rmlap069 /cygdrive/f/C_Sandbox/tribox/trilinos-9.0.2/Cygwin_serial
$ g++ --version
g++ (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


siel_mi at rmlap069 /cygdrive/f/C_Sandbox/tribox/trilinos-9.0.2/Cygwin_serial
$ g77 --version
GNU Fortran (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
Copyright (C) 2004 Free Software Foundation, Inc.

GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of GNU Fortran
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING
or type the command `info -f g77 Copying'.

Below, I am sending you the do-configure script I am using, which is essentially yours after removing some --enable-xyz's for packages that I think are not included in the general release.

I also tried several modifications. This one is my favorite error message

/cygdrive/f/C_Sandbox/tribox/trilinos-9.0.2/Cygwin_serial/packages/teuchos/example/BLAS/../../../../../packages/teuchos/
example/BLAS/cxx_main.cpp:18: undefined reference to `std::cout'

As you mentioned that you never had any trouble I am wondering what I am doing wrong repeatedly. And I hope that you have some hints for me.

Thanks in advance, and best regards MICHAEL


-----8<---------------------------------------------------------------------------------------------------------


#!/bin/sh
rm config.cache
../configure --prefix=/cygdrive/f/C_Sandbox/tribox/trilinoslib \
--cache-file=config.cache \
--with-install="/usr/bin/install -p" \
CXXFLAGS="-g -O0 -ansi -pedantic -Wall -fexceptions" \
CFLAGS="-g -O0 -ansi -pedantic -Wall -fexceptions" \
FFLAGS="-g -O0 " \
--enable-export-makefiles \
--with-gnumake \
--disable-default-packages \
--enable-teuchos --enable-teuchos-extended --enable-teuchos-debug --enable-teuchos-abc --disable-teuchos-blasfloat \
--enable-thyra \
--enable-epetra --enable-epetra-abc \
--enable-triutils --disable-triutils-tests --disable-triutils-examples \
--enable-epetraext \
--enable-amesos \
--enable-aztecoo \
--enable-belos \
--enable-ifpack \
--enable-ml \
--enable-nox --enable-nox-epetra --enable-nox-epetraext --enable-nox-thyra --enable-nox-thyra-tests --enable-nox-tests \
--enable-loca \
--enable-stratimikos \
--enable-rythmos \
--enable-moocho \
--enable-sacado \
--enable-meros \
--enable-new_package \
--enable-galeri \
--enable-isorropia \
--enable-moertel \
--enable-anasazi \
--enable-didasko




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://software.sandia.gov/mailman/private/trilinos-users/attachments/20090113/77d3fecf/attachment.html 


More information about the Trilinos-Users mailing list