help-octave
[Top][All Lists]
Advanced

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

Re: Octave 2.9.9 Compile Problem on Linux i686


From: Joe Koski
Subject: Re: Octave 2.9.9 Compile Problem on Linux i686
Date: Mon, 09 Oct 2006 13:15:50 -0600
User-agent: Microsoft-Entourage/11.2.5.060620

on 10/9/06 12:59 PM, Alex Zvoleff at address@hidden wrote:

> I am trying to compile Octave 2.9.9 on my Linux PC with an intel
> dual-core chip.  I have successfully compiled prior versions of octave,
> but recently I installed UFSparse and am trying to compile 2.9.9 with
> sparse matrix support.  Configure runs fine, and finds all of the
> UFSparse libraries successfully.  However, when I make I get the
> following error:
> 
> rm -f liboctinterp.so.2.9.9
> ln -s liboctinterp.so liboctinterp.so.2.9.9
> gcc -c -I. -I.. -I../liboctave -I../src -I../libcruft/misc
> -DHAVE_CONFIG_H -mieee-fp -Wall -W -Wshadow -g -O2 main.c -o main.o
> g++ -I. -I.. -I../liboctave -I../src -I../libcruft/misc -DHAVE_CONFIG_H
> -mieee-fp -Wall -W -Wshadow -Wold-style-cast -g -O2 -rdynamic \
> -L.. -fPIC -lcamd -o octave \
> main.o \
> -L../liboctave -L../libcruft -L../src -Wl,-rpath
> -Wl,/usr/local/lib/octave-2.9.9 \
> -loctinterp -loctave -lcruft \
> -lumfpack -lamd -lcolamd \
> -lcholmod -lccolamd -lcxsparse -llapack -lcblas -lf77blas -latlas \
> -lfftw3 -lreadline -lncurses -ldl -lhdf5 -lz -lm -lcamd
> -L/usr/lib/gcc/i486-linux-gnu/3.4.6
> -L/usr/lib/gcc/i486-linux-gnu/3.4.6/../../../../lib
> -L/usr/lib/gcc/i486-linux-gnu/3.4.6/../../.. -L/lib/../lib
> -L/usr/lib/../lib -lcamd -lhdf5 -lz -lfrtbegin -lg2c -lm
> ../liboctave/liboctave.so: undefined reference to `amd_free'
> ../liboctave/liboctave.so: undefined reference to `METIS_NodeND'
> ../liboctave/liboctave.so: undefined reference to `amd_printf'
> ../liboctave/liboctave.so: undefined reference to
> `METIS_NodeComputeSeparator'
> ../liboctave/liboctave.so: undefined reference to `amd_calloc'
> ../liboctave/liboctave.so: undefined reference to `amd_malloc'
> ../liboctave/liboctave.so: undefined reference to `amd_realloc'
> 
> collect2: ld returned 1 exit status
> make[2]: *** [octave] Error 1
> make[2]: Leaving directory `/usr/local/src/octave-2.9.9/src'
> make[1]: *** [src] Error 2
> make[1]: Leaving directory `/usr/local/src/octave-2.9.9'
> make: *** [all] Error 2
> address@hidden:/usr/local/src/octave-2.9.9$
> 
> It seems to be a problem with metis or camd, but I have both installed
> (and configure seemed to find them) so I don't understand why it is not
> working.  Any ideas?
> 
> Thanks for you help,
> Alex Zvoleff
> 
Alex,

If you are not careful while modifying the config.mk file for the sparse
libraries, you can end up with a METIS dependency. In my case I installed
METIS, but you should be able to avoid that by carefully rereading and
reediting your config.mk in Ufconfig.

You do need CAMD installed, and what I do is export LIBS=-lcamd before I
./configure octave. The octave developers are aware of this issue, which is
apparently related to the version of the sparse libraries you are using.

Joe






reply via email to

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