Shawn Walker wrote:
> I am using the gcc compiler in cygwin.  

Which version?

   g++ -v

It seemed to work for install
> blas and umfpack.  I also still have this error in finding umfpack.  
> Maybe there is a config file in SuiteSparse that must be set.
> 
> - Shawn
> 
> On Mon, 4 Aug 2008, Garth N. Wells wrote:
> 
>>
>>
>> Shawn Walker wrote:
>>> Deleting the -ansi seemed to help, but now I get the following error:
>>>
>>> ----------------------------------------
>>> $ scons withBoostDir=$BOOST_DIR withUmfpackDir=$UMFPACK_DIR 
>>> enableDemos=1 enableScotch=no enableTrilinos=no enableMpi=no 
>>> enablePetsc=no enableSlepc=no
>>>

I assume that you've set the environment variable $UMFPACK_DIR?

withUmfpackDir works fine for me, so you'll need to wait for a SCons 
expert, or even better dig around in

   scons/simula-scons/simula_scons/pkgconfiggenerators/umfpack.py

to see what's happening.

Garth


>>> scons: Reading SConscript files ...
>>> Using options from scons/options.cache
>>> Checking for pkg-config... yes
>>> Checking for numpy-1... yes
>>> Checking for ufc-1... yes
>>> Checking for umfpack... no (pkg-config file not found)
>>>  Trying to generate pkg-config file for umfpack... failed
>>> Checking for python-2... yes
>>> Checking for gts... yes
>>>
>>> ............etc.................
>>>
>>> c++ -o dolfin/la/AssemblyFactory.os -c -Wall -pipe -DDEBUG -g -Werror 
>>> -DNDEBUG -O2 -DPACKAGE_VERSION=\"0.8.0\" -DHAS_GTS=1 -I. 
>>> -I/download/src/boost_1_35_0 -I/usr/include/libxml2 -I/build/include 
>>> -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
>>> dolfin/la/AssemblyFactory.cpp
>>> c++ -o dolfin/la/AssemblyMatrix.os -c -Wall -pipe -DDEBUG -g -Werror 
>>> -DNDEBUG -O2 -DPACKAGE_VERSION=\"0.8.0\" -DHAS_GTS=1 -I. 
>>> -I/download/src/boost_1_35_0 -I/usr/include/libxml2 -I/build/include 
>>> -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
>>> dolfin/la/AssemblyMatrix.cpp
>>> /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/stl_uninitialized.h: 
>>> In member function `void std::vector<_Tp, 
>>> _Alloc>::_M_fill_insert(__gnu_cxx::__normal_iterator<typename 
>>> _Alloc::pointer, std::vector<_Tp, _Alloc> >, size_t, const _Tp&) 
>>> [with _Tp = std::map<dolfin::uint, dolfin::real, 
>>> std::less<dolfin::uint>, std::allocator<std::pair<const dolfin::uint, 
>>> dolfin::real> > >, _Alloc = std::allocator<std::map<dolfin::uint, 
>>> dolfin::real, std::less<dolfin::uint>, std::allocator<std::pair<const 
>>> dolfin::uint, dolfin::real> > > >]':
>>> /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/stl_uninitialized.h:82: 
>>> warning: '__cur' might be used uninitialized in this function
>>> /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/stl_uninitialized.h:82: 
>>> warning: '__cur' might be used uninitialized in this function
>>> scons: *** [dolfin/la/AssemblyMatrix.os] Error 1
>>> scons: building terminated because of errors.
>>> ---------------------------------------------------------
>>> If there were no errors, run
>>>
>>>     scons install
>>>
>>> ..........etc.....
>>> ---------------------------------------------------
>>>
>>> the only 'error' I see is that warning.  And I didn't see any error 
>>> in the compile log that I did NOT display here.  Any suggestions?
>>>
>>
>> Looks like a Cygwin STL issue. Which compiler are you using?
>>
>> Try building DOLFIN with enableDebug=no
>>
>> Garth
>>
>>> - Shawn
>>>
>>> On Mon, 4 Aug 2008, Garth N. Wells wrote:
>>>
>>>> For the 'vsnprintf' problem, open the SConstruct and delete '-ansi' 
>>>> wherever you find it. Let me know if it works. I used to test 
>>>> periodically under Cygwin, but haven't for a long time because now I 
>>>> just run a virtual machine (using VirtualBox) if I'm using Windows 
>>>> because it's much faster than Cygwin.
>>>>
>>>> What we should do is eliminate c-style io functions and use C++ 
>>>> functions exclusively.
>>>>
>>>> As for UMFPACK, try
>>>>
>>>>  withUmfpackDir=/download/src/SuiteSparse/
>>>>
>>>> Garth
>>>>
>>>>
>>>>
>>>> Shawn Walker wrote:
>>>>> Hello all.  I ALMOST have dolfin compiling.  I have the other 
>>>>> necessary packages put in, but I still have two errors in the 
>>>>> compilation of Dolfin. note: I am using Cygwin on windows XP.  And 
>>>>> I am using the most current dolfin version.
>>>>>
>>>>> here is the error I get:
>>>>>
>>>>> ---------------------------------------------------------
>>>>> $ scons 
>>>>> libDir=/download/src/SuiteSparse/UMFPACK/Lib:/download/src/SuiteSparse/UFconfig:/download/src/SuiteSparse/AMD/Lib
>>>>>  
>>>>> withBoostDir=$BOOST_DIR withUmfpackDir=$UMFPACK_DIR enableDemos=1 
>>>>> enableScotch=no enableTrilinos=no enableMpi=no enablePetsc=no 
>>>>> enableSlepc=no
>>>>>
>>>>> scons: Reading SConscript files ...
>>>>> Using options from scons/options.cache
>>>>> Checking for pkg-config... yes
>>>>> Checking for numpy-1... yes
>>>>> Checking for ufc-1... yes
>>>>> Checking for umfpack... no (pkg-config file not found)
>>>>>   Trying to generate pkg-config file for umfpack... failed
>>>>> Checking for python-2... yes
>>>>> Checking for gts... yes
>>>>> Checking for boost... yes
>>>>> Checking for libxml-2.0... yes
>>>>> Resolving compiler... done
>>>>> Found optional package: gts
>>>>> Unable to find optional package: petsc
>>>>> Unable to find optional package: slepc
>>>>> Unable to find optional package: scotch
>>>>> Unable to find optional package: umfpack
>>>>> Unable to find optional package: trilinos
>>>>> Enabling compilation of PyDOLFIN
>>>>>
>>>>> scons: warning: The env.Copy() method is deprecated; use the 
>>>>> env.Clone() method instead.
>>>>> File "/download/src/fenics/dolfin/dolfin/SConscript", line 107, in 
>>>>> <module>
>>>>> scons: done reading SConscript files.
>>>>> scons: Building targets ...
>>>>> c++ -o dolfin/io/XMLFile.os -c -Wall -pipe -ansi -DDEBUG -g -Werror 
>>>>> -DNDEBUG -O2 -DPACKAGE_VERSION=\"0.8.0\" -DHAS_GTS=1 -I. 
>>>>> -I/build/include -I/download/src/boost_1_35_0 
>>>>> -I/usr/include/libxml2 -I/build/include -I/usr/include/glib-2.0 
>>>>> -I/usr/lib/glib-2.0/include dolfin/io/XMLFile.cpp
>>>>> dolfin/io/XMLFile.cpp: In function `void dolfin::sax_warning(void*, 
>>>>> const char*, ...)':
>>>>> dolfin/io/XMLFile.cpp:678: error: `vsnprintf' undeclared (first use 
>>>>> this function)
>>>>> dolfin/io/XMLFile.cpp:678: error: (Each undeclared identifier is 
>>>>> reported only once for each function it appears in.)
>>>>> dolfin/io/XMLFile.cpp: In function `void dolfin::sax_error(void*, 
>>>>> const char*, ...)':
>>>>> dolfin/io/XMLFile.cpp:688: error: `vsnprintf' undeclared (first use 
>>>>> this function)
>>>>> dolfin/io/XMLFile.cpp: In function `void 
>>>>> dolfin::sax_fatal_error(void*, const char*, ...)':
>>>>> dolfin/io/XMLFile.cpp:698: error: `vsnprintf' undeclared (first use 
>>>>> this function)
>>>>> scons: *** [dolfin/io/XMLFile.os] Error 1
>>>>> scons: building terminated because of errors.
>>>>> ---------------------------------------------------------
>>>>>
>>>>> There are two errors.  It cannot find umfpack, even though I 
>>>>> specify the directory, and where the lib is.  The second has to do 
>>>>> with a file being compiled at the end.  Please help?
>>>>>
>>>>> - Shawn
>>>>> _______________________________________________
>>>>> DOLFIN-dev mailing list
>>>>> [email protected]
>>>>> http://www.fenics.org/mailman/listinfo/dolfin-dev
>>>>
>>
_______________________________________________
DOLFIN-dev mailing list
[email protected]
http://www.fenics.org/mailman/listinfo/dolfin-dev

Reply via email to