[petsc-dev] build problem with suitesparse 4.2

Chaffra Affouda chaffra.affouda at nrl.navy.mil
Fri Apr 26 07:11:11 CDT 2013


On 04/24/2013 06:28 PM, Satish Balay wrote:
> On Wed, 24 Apr 2013, Chaffra Affouda wrote:
>
>> Hello,
>>
>> I am getting the attached error when building with the latest suitesparse on
>> ubuntu (suitesparse 4.2). I think umfpack examples must be linked with
>> libcholmod.so but I might be mistaking. I am building on ubuntu precise
>
>   --with-umfpack=1 --with-umfpack-include=/usr/include/suitesparse --with-umfpack-lib="[/usr/lib/libumfpack.so,/usr/lib/libamd.so]" --with-cholmod=1 --with-cholmod-include=/usr/include/suitesparse --with-cholmod-lib=/usr/lib/libcholmod.so
>
> --with-umfpack-lib=['/usr/lib/libumfpack.so', '/usr/lib/libamd.so'] and
> --with-umfpack-include=['/usr/include/suitesparse'] did not work
> <<<
>
> Possible ERROR while running linker: /usr/lib/libumfpack.so: undefined reference to `cholmod_l_print_common'
> /usr/lib/libumfpack.so: undefined reference to `cholmod_l_analyze'
> /usr/lib/libumfpack.so: undefined reference to `cholmod_l_finish'
> /usr/lib/libumfpack.so: undefined reference to `cholmod_l_free_factor'
>
>
> How about just using: --with-umfpack=1 --with-cholmod=1 [and not
> specifying the includes/libs - and let configure figure this out from
> its default configs]
>
> Satish
>
>
That did not work because configure is asking for the path to the 
libraries. However I solved it by linking umfpack to cholmod.

Thanks,
Chaffra



More information about the petsc-dev mailing list