help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Octave-3.6.3 compile error with SuiteSparse-4.0.2 on Zenwalk Snapsho


From: Ananda Murthy R S
Subject: Re: Octave-3.6.3 compile error with SuiteSparse-4.0.2 on Zenwalk Snapshot.
Date: Mon, 17 Sep 2012 20:16:12 +0530

Hello Ben,

Thanks for your help. That worked.

Regards,

Anand

On Mon, Sep 17, 2012 at 5:50 PM, Ben Abbott <address@hidden> wrote:

On Sep 16, 2012, at 11:28 PM, Ananda Murthy R S wrote:

> Hello,
>
> Compiling Octave-3.6.3 on Zenwalk Snapshot (a derivative of Slackware), with SuiteSparse 4.0.2 gave the following error:
>
> /bin/sh ../libtool --tag=CC   --mode=link gcc -O2 -march=i486 -mtune=i686 -pthread  -DHAVE_CONFIG_H -mieee-fp -Wall -W -Wshadow -Wformat -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -Wcast-align -Wcast-qual -O2 -march=i486 -mtune=i686 -pthread -pthread -O2 -march=i486 -mtune=i686 -pthread -no-undefined   -o octave main.o liboctinterp.la ../liboctave/liboctave.la ../libcruft/libcruft.la  -lm
> libtool: link: gcc -O2 -march=i486 -mtune=i686 -pthread -DHAVE_CONFIG_H -mieee-fp -Wall -W -Wshadow -Wformat -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -Wcast-align -Wcast-qual -O2 -march=i486 -mtune=i686 -pthread -pthread -O2 -march=i486 -mtune=i686 -pthread -o .libs/octave main.o  ./.libs/liboctinterp.so ../liboctave/.libs/liboctave.so ../libcruft/.libs/libcruft.so -lm -pthread -Wl,-rpath -Wl,/usr/lib/octave/3.6.3
> ../liboctave/.libs/liboctave.so: undefined reference to `SuiteSparse_time'
> collect2: error: ld returned 1 exit status
> make[3]: *** [octave] Error 1
> make[3]: Leaving directory `/home/anand/New_Packages/octave/src/octave-3.6.3/src'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/home/anand/New_Packages/octave/src/octave-3.6.3/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/anand/New_Packages/octave/src/octave-3.6.3'
> make: *** [all] Error 2
> build() failed
>
> How to correct this? Thanks for your help.
>
> Anand

This has been fixed in the developers sources.  To build with SuiteSparse 4.x you'll need to add a second library to the configure option --with-umfpack.

Using MacPorts on MacOSX I used ...

        --with-umfpack="-lumfpack -lSuiteSparse

For Linux platforms the fix was ...

        --with-umfpack="-lumfpack -lsuitesparseconfig"

There is more info on the bug tracker below.

        http://savannah.gnu.org/bugs/?37031

Ben




--
Close Windows ! Open source !!
Free software from proprietary mafia !!!


reply via email to

[Prev in Thread] Current Thread [Next in Thread]