dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #05500
Build error with gcc 4.2.1: LogStream& operator<<()
I'm having build errors (rev 365b7fb0b795) that look like
[...]
mpic++ -DPACKAGE_NAME=\"DOLFIN\" -DPACKAGE_TARNAME=\"dolfin\" -DPACKAGE_VERSION=\"0.7.1\" "-DPACKAGE_STRING=\"DOLFIN 0.7.1\"" -DPACKAGE_BUGREPORT=\"http://www.fenics.org/bugzilla/\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_BOOST= -I. -I../../../src/kernel/common -I../../../src/kernel/elements -I../../../src/kernel/fem -I../../../src/kernel/function -I../../../src/kernel/graph -I../../../src/kernel/io -I../../../src/kernel/la -I../../../src/kernel/main -I../../../src/kernel/math -I../../../src/kernel/mesh -I../../../src/kernel/mf -I../../../src/kernel/nls -I../../../src/kernel/ode -I../../../src/kernel/pde -I../../../src/kernel/quadrature -I../../../src/kernel/parameter -I../../../src/kernel/log -I../../../src/kernel/plot -I/home/jed/usr/petsc-2.3.3-p5/bmake/linux-gnu-c-opt -I/home/jed/usr/petsc-2.3.3-p5/include -I/usr/include -I/home/jed/usr/slepc-2.3.3 -I/home/jed/usr/slepc-2.3.3/include -I/usr/include -I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/home/jed/usr/include -I/usr/include/python2.4 -I/usr/lib/python2.4/site-packages/numpy/core/include -DHAVE_SLEPC_H=1 -DHAVE_PETSC_H=1 -g -O2 -DNDEBUG -pedantic -ansi -Wno-long-long -std=c++98 -MT Lagrange.lo -MD -MP -MF .deps/Lagrange.Tpo -c Lagrange.cpp -fPIC -DPIC -o .libs/Lagrange.o
Lagrange.cpp:123: error: 'dolfin::LogStream& dolfin::operator<<(dolfin::LogStream&, const dolfin::Lagrange&)' should have been declared inside 'dolfin'
make[4]: *** [Lagrange.lo] Error 1
make[4]: Leaving directory `/home/jed/build/fenics/dolfin/src/kernel/math'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/jed/build/fenics/dolfin/src/kernel/math'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/jed/build/fenics/dolfin/src/kernel'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jed/build/fenics/dolfin/src'
make: *** [all-recursive] Error 1
$ mpic++ -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --pr
efix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.2 --program-suffix=-4.2 --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --enable-targets=all --disable-werror --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu Thread model: posix
gcc version 4.2.1 (Debian 4.2.1-3)
--
Jed Brown jed@xxxxxxxx http://59A2.org
Attachment:
pgpqA72BQo84K.pgp
Description: PGP signature