dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #07779
Re: Scons error
It's probably in <cstdlib>.
2008/5/5 Ilmar Wilbers <ilmarw@xxxxxxxxx>:
> This seems to solve the problem for gcc 4.3. However, now I get a
> different error:
> mpic++ -o dolfin/la/PETScLUSolver.os -c -Wall -pipe -ansi -DDEBUG -g
> -Werror -DNDEBUG -O2 -DHAS_MPI=1 -DMPICH_IGNORE_CXX_SEEK
> -DPACKAGE_VERSION=\"0.7.3\" -DHAS_PETSC=1 -DHAS_SLEPC=1 -DHAS_SCOTCH=1
> -DHAS_UMFPACK=1 -DHAS_GTS=1 -DHAS_TRILINOS=1 -fPIC -I.
> -I/usr/include/libxml2 -I/usr/lib/petsc/bmake/linux-gnu-c-opt
> -I/usr/lib/petsc/include -I/usr/lib/openmpi/include
> -I/usr/lib/openmpi/lib -Idolfin -I/usr/local -I/usr/local/include
> -I/usr/lib/petsc/bmake/linux-gnu-c-opt -I/usr/lib/petsc/include
> -I/usr/lib/openmpi/include -I/usr/lib/openmpi/lib -Idolfin
> -I/usr/include/suitesparse -I/usr/include/glib-2.0
> -I/usr/lib/glib-2.0/include -I/usr/local/include dolfin/la/PETScLUSolver.cpp
> dolfin/la/EpetraMatrix.cpp: In member function 'virtual void
> dolfin::EpetraMatrix::ident(dolfin::uint, const dolfin::uint*)':
> dolfin/la/EpetraMatrix.cpp:177: error: 'memset' was not declared in this
> scope
> dolfin/la/EpetraMatrix.cpp: In member function 'virtual void
> dolfin::EpetraMatrix::zero(dolfin::uint, const dolfin::uint*)':
> dolfin/la/EpetraMatrix.cpp:200: error: 'memset' was not declared in this
> scope
> scons: *** [dolfin/la/EpetraMatrix.os] Error 1
> scons: building terminated because of errors.
>
> ilmar
>
> Anders Logg wrote:
>> On Wed, Apr 30, 2008 at 11:20:10AM +0200, Ilmar Wilbers wrote:
>>
>>> I don't know if this might have anything to do with me updating gcc to
>>> version 4.3.0 only yesterday, but I keep getting the following error:
>>> mpic++ -o dolfin/io/XMLMeshFunction.os -c -Wall -pipe -ansi -DDEBUG -g
>>> -Werror -DNDEBUG -O2 -DHAS_MPI=1 -DMPICH_IGNORE_CXX_SEEK
>>> -DPACKAGE_VERSION=\"0.7.2\" -DHAS_SCOTCH=1 -DHAS_UMFPACK=1 -DHAS_GTS=1
>>> -fPIC -I. -I/usr/include/libxml2 -I/usr/include/suitesparse
>>> -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
>>> dolfin/io/XMLMeshFunction.cpp
>>> dolfin/io/XMLMeshFunction.cpp: In member function 'void
>>> dolfin::XMLMeshFunction::readMeshFunction(const xmlChar*, const xmlChar**)':
>>> dolfin/io/XMLMeshFunction.cpp:138: error: 'strcmp' was not declared in
>>> this scope
>>> scons: *** [dolfin/io/XMLMeshFunction.os] Error 1
>>> dolfin/function/DiscreteFunction.cpp: In member function 'const
>>> dolfin::DiscreteFunction& dolfin::DiscreteFunction::operator=(const
>>> dolfin::DiscreteFunction&)':
>>> dolfin/function/DiscreteFunction.cpp:185: error: 'strcmp' was not
>>> declared in this scope
>>> scons: *** [dolfin/function/DiscreteFunction.os] Error 1
>>> scons: building terminated because of errors.
>>>
>>> The buildbots do not experience this. Any idea what causes this?
>>>
>>> ilmar
>>>
>>
>> Looks like #include <cstring> is missing. I've added it. Please try
>> again.
>>
>>
> _______________________________________________
> DOLFIN-dev mailing list
> DOLFIN-dev@xxxxxxxxxx
> http://www.fenics.org/mailman/listinfo/dolfin-dev
>
--
Martin
References