Johannes Ring wrote:
> On Thu, August 21, 2008 14:57, Garth N. Wells wrote:
>> Johannes Ring wrote:
>>> Should be fixed now. Can you try again?
>>>
>> Mixed success. Doesn't work for Hardy, but does work for the alpha
>> version of Intrepid (inside a VM).
>>
>> There is no liblapack.so in /usr/lib/atlas, just liblapack.so.3gf, under
>> Hardy. There is a liblapack.so in /usr/lib/atlas for Intrepid.
>>
>> Somehow I have blas and lapack libs with a suffix "-3",
>>
>>    /usr/lib/lapack-3.so   -> /etc/alternatives/liblapack-3.so
>>    /usr/lib/libblas-3.so -> /etc/alternatives/libblas-3.so
>>
>> which pick up the atlas libs via /etc/alternatives/. I don't know what
>> the '-3' is supposed to mean or why it's there.
>>
>> I give up for now trying to use atlas :(.
> 
> Have you installed the libatlas-base-dev package?
>

Yes. I see /usr/lib/atlas/liblapack.so now (not sure what happened before).

Back to the cholmod issue, now -lgfortran is also required (see below).

Garth

g++ -I/usr/include/suitesparse cholmod_config_test_include.cpp 
-L/usr/lib/atlas -llapack -L/usr/lib/atlas -lblas -L/usr/lib -lcholmod 
-L/usr/lib -lamd -L/usr/lib -lcolamd
Failed test program was:

#include <stdio.h>
#include <cholmod.h>

int main() {
   #ifdef CHOLMOD_MAIN_VERSION
     #ifdef CHOLMOD_SUB_VERSION
       #ifdef CHOLMOD_SUBSUB_VERSION
         printf("%d.%d.%d", 
CHOLMOD_MAIN_VERSION,CHOLMOD_SUB_VERSION,CHOLMOD_SUBSUB_VERSION);
       #else
         printf("%d.%d", CHOLMOD_MAIN_VERSION,CHOLMOD_SUB_VERSION);
       #endif
     #else
       printf("%d", CHOLMOD_MAIN_VERSION);
     #endif
   #endif
   return 0;
}

Error message:
/usr/lib/atlas/liblapack.so: undefined reference to 
`_gfortran_concat_string'
/usr/lib/atlas/liblapack.so: undefined reference to 
`_gfortran_st_write_done'
/usr/lib/atlas/liblapack.so: undefined reference to 
`_gfortran_transfer_integer'
/usr/lib/atlas/liblapack.so: undefined reference to `_gfortran_stop_numeric'
/usr/lib/atlas/liblapack.so: undefined reference to `_gfortran_pow_i4_i4'
/usr/lib/atlas/liblapack.so: undefined reference to `_gfortran_st_write'
/usr/lib/atlas/liblapack.so: undefined reference to 
`_gfortran_compare_string'
/usr/lib/atlas/liblapack.so: undefined reference to `_gfortran_etime'
/usr/lib/atlas/liblapack.so: undefined reference to `_gfortran_pow_r8_i4'
/usr/lib/atlas/liblapack.so: undefined reference to 
`_gfortran_transfer_character'
/usr/lib/atlas/liblapack.so: undefined reference to `_gfortran_pow_r4_i4'
collect2: ld returned 1 exit status



> Johannes
> 
>> Garth
>>
>>
>>> Johannes
>>>
>>> On Thu, August 21, 2008 13:42, Garth N. Wells wrote:
>>>> The test for CHOLMOD fail on my machine when I remove liblapack3fg and
>>>> use atlas,
>>>>
>>>> g++ -I/usr/include/suitesparse cholmod_config_test_include.cpp -L/usr
>>>> -llapack -L/usr -lblas -L/usr/lib -lcholmod -L/usr/lib -lamd -L/usr/lib
>>>> -lcolamd
>>>> Failed test program was:
>>>>
>>>> #include <stdio.h>
>>>> #include <cholmod.h>
>>>>
>>>> int main() {
>>>>    #ifdef CHOLMOD_MAIN_VERSION
>>>>      #ifdef CHOLMOD_SUB_VERSION
>>>>        #ifdef CHOLMOD_SUBSUB_VERSION
>>>>          printf("%d.%d.%d",
>>>> CHOLMOD_MAIN_VERSION,CHOLMOD_SUB_VERSION,CHOLMOD_SUBSUB_VERSION);
>>>>        #else
>>>>          printf("%d.%d", CHOLMOD_MAIN_VERSION,CHOLMOD_SUB_VERSION);
>>>>        #endif
>>>>      #else
>>>>        printf("%d", CHOLMOD_MAIN_VERSION);
>>>>      #endif
>>>>    #endif
>>>>    return 0;
>>>> }
>>>>
>>>> Error message:
>>>> /usr/bin/ld: cannot find -llapack
>>>> collect2: ld returned 1 exit status
>>>>
>>>> Garth
>>>>
>>>> DOLFIN wrote:
>>>>> One or more new changesets pushed to the primary dolfin repository.
>>>>> A short summary of the last three changesets is included below.
>>>>>
>>>>> changeset:   4599:bcc140c752dceba8fd4cf370997ad457871e3bbe
>>>>> tag:         tip
>>>>> user:        Johannes Ring <[EMAIL PROTECTED]>
>>>>> date:        Mon Aug 18 13:09:15 2008 +0200
>>>>> files:       SConstruct dolfin/scons.cfg
>>>>> description:
>>>>> Added CHOLMOD as optional dependency.
>>>>>
>>>>>
>>>>> changeset:   4598:1a2d241d7d00401800fa1dbe2a17aa75287479c8
>>>>> user:        Johannes Ring <[EMAIL PROTECTED]>
>>>>> date:        Mon Aug 18 13:08:37 2008 +0200
>>>>> files:       scons/simula-scons/simula_scons/Customize.py
>>>>> scons/simula-scons/simula_scons/__init__.py
>>>>> scons/simula-scons/simula_scons/pkgconfig.py
>>>>> scons/simula-scons/simula_scons/pkgconfiggenerators/cholmod.py
>>>>> scons/simula-scons/simula_scons/pkgconfiggenerators/commonPkgConfigUtils.py
>>>>> description:
>>>>> simula-scons update.
>>>>>
>>>>>
>>>>> changeset:   4597:52fe4d684f7e7703f285d9dbb5237926e817b73e
>>>>> parent:      4594:e92305bdc5377cd49f854d1d835b749fadb835b7
>>>>> parent:      4596:7a229461cb9d1e29f0e4e8c9d98c6d321759d15b
>>>>> user:        "Garth N. Wells <[EMAIL PROTECTED]>"
>>>>> date:        Mon Aug 18 11:03:17 2008 +0100
>>>>> files:
>>>>> description:
>>>>> merge.
>>>>>
>>>>> ----------------------------------------------------------------------
>>>>> For more details, visit http://www.fenics.org/hg/dolfin
>>>>> _______________________________________________
>>>>> 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
>>>>
>>>
>>> _______________________________________________
>>> 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