← Back to team overview

dolfin team mailing list archive

Re: [Fwd: Re: 0.6.2-1 compilation error]

 


Buyukisik, Osman (GE Infra, Aviation, US) wrote:
> Hi Garth,
> I am using 64 bit SuSE 10.0 (on 64 bit AMD). 

I think that this is the issue. For some reason, uBLAS is using long int
on your machine for integers. I can force uBLAS to use a particular
integer type which should fix the problem. I'll take a look today. I'll
need you to test it for me though.

Have any other 64-bit users experienced a problem?

Garth



Causing a lot of headaches :-(
> UMFPACK was downloaded yesterday from the source site. Should be the latest. 
> I'll send an email later from home when I can check the Boost version. 
> I will upgrade to the latest petsc. 
> I changed the "int" to "long int" but that resulted in seg fault with elasticity demo case.
> I also noticed the error in my configure command, at the demo linking time :-)
> 
> Thanks,
> -osman
> 
> -----Original Message-----
> From: dolfin-dev-bounces@xxxxxxxxxx
> [mailto:dolfin-dev-bounces@xxxxxxxxxx]On Behalf Of Garth N. Wells
> Sent: Thursday, September 07, 2006 2:50 PM
> To: Discussion of DOLFIN development
> Subject: [DOLFIN-dev] [Fwd: Re: 0.6.2-1 compilation error]
> 
> 
> 
> This email didn't get through to the list for some reason.
> 
> Garth
> 
> -------- Original Message --------
> Subject: Re: [DOLFIN-dev] 0.6.2-1 compilation error
> Date: Thu, 07 Sep 2006 08:25:44 +0200
> From: Garth N. Wells <g.n.wells@xxxxxxxxxx>
> To: osman b <osman@xxxxxxxx>
> CC: dolfin-dev@xxxxxxxxxx
> References: <200609062232.18061.osman@xxxxxxxx>
> 
> 
> 
> osman b wrote:
>> I installed 0.6.2-1. with plain ./configure (without petsc, umfpack, amd)  
>> installs ok. Demos work.
>> when I configured with 
>> ./configure --with-petsc-dir=/home/osman/SRC/petsc-2.3.0 --enable-python 
>> --with-umfpack-include=/usr/local/include 
>> --with-umfpack-lib=/usr/local/lib/libumfpack.a 
>> --with-amd-lib=/usr/local/lib/libamd.a
>>
> 
> Not related to the below error, but this should be
> 
>  ./configure --with-petsc-dir=/home/osman/SRC/petsc-2.3.0
> --with-umfpack-include=/usr/local/include
>  --with-umfpack-lib=/usr/local/lib/
>  --with-amd-lib=/usr/local/lib/
> 
> Also, consider updating PETSc.
> 
> Are you using a 64-bit machine? The problem is the type of the integer
> arrays which uBLAS uses for the compressed matrix strorage. Do you know
> which versions of Boost and UMFPACK that you're using?
> 
> Garth
> 
> 
> 
> 
>> I get a compilation error:
>> ...
>>  g++ -DPACKAGE_NAME=\"DOLFIN\" -DPACKAGE_TARNAME=\"dolfin\" 
>> -DPACKAGE_VERSION=\"0.6.2-1\" "-DPACKAGE_STRING=\"DOLFIN 0.6.2-1\"" 
>> -DPACKAGE_BUGREPORT=\"dolfin@xxxxxxxxxx\" -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_UMFPACK_H=1 -I. -I. 
>> -I../../../src/kernel/common -I../../../src/kernel/fem 
>> -I../../../src/kernel/form -I../../../src/kernel/function 
>> -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/usr/include/libxml2 -I/usr/local/include -g -O2 -DNDEBUG -pedantic 
>> -Wno-long-long -std=c++98 -fPIC -MT uBlasLUSolver.lo -MD -MP 
>> -MF .deps/uBlasLUSolver.Tpo -c uBlasLUSolver.cpp  -fPIC -DPIC 
>> -o .libs/uBlasLUSolver.o
>> uBlasLUSolver.cpp: In member function 'virtual dolfin::uint 
>> dolfin::uBlasLUSolver::solve(const 
>> dolfin::uBlasMatrix<dolfin::ublas_sparse_matrix>&, dolfin::uBlasVector&, 
>> const dolfin::uBlasVector&)':
>> uBlasLUSolver.cpp:75: error: cannot convert 'const long unsigned int*' to 
>> 'const unsigned int*' in initialization
>> uBlasLUSolver.cpp:76: error: cannot convert 'const long unsigned int*' to 
>> 'const unsigned int*' in initialization
>> make[4]: *** [uBlasLUSolver.lo] Error 1
>> make[4]: Leaving directory `/home/osman/SRC/dolfin-0.6.2-1/src/kernel/la'
>> make[3]: *** [all-recursive] Error 1
>> make[3]: Leaving directory `/home/osman/SRC/dolfin-0.6.2-1/src/kernel/la'
>> make[2]: *** [all-recursive] Error 1
>> make[2]: Leaving directory `/home/osman/SRC/dolfin-0.6.2-1/src/kernel'
>> make[1]: *** [all-recursive] Error 1
>> make[1]: Leaving directory `/home/osman/SRC/dolfin-0.6.2-1/src'
>> make: *** [all-recursive] Error 1
>>
> 
> 
> _______________________________________________
> DOLFIN-dev mailing list
> DOLFIN-dev@xxxxxxxxxx
> http://www.fenics.org/mailman/listinfo/dolfin-dev
>