make crash on linux

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

make crash on linux

arthur blair
I'm trying to compile octave 202 on a redhat 4 linux box.
I installed g77 & gcc 2.7.2.1 & the latest libraries from the CD.
./configure --enable-shared
ran fine but make crashes with
c++  -I. -I.. -I../liboctave -I../src -I../glob -I../libcruft/misc
 -DHAVE_CONFIG_H  -fno-implicit-templates -mieee-fp -g -O2
-Wall -L.. -u MAIN__ -mieee-fp  -fPIC -g -o octave \
octave.o builtins.o  balance.o  chol.o  colloc.o  dassl.o  det.o  eig.o  expm.o
 fft.o  fft2.o  filter.o  find.o  fsolve.o  fsqp.o  getgrent.o
getpwent.o  getrusage.o  givens.o  hess.o  ifft.o  ifft2.o  inv.o  log.o
lpsolve.o -L../liboctave -L../libcruft -L../readline
 -L../kpathsea -L../glob -L../dlfcn -L.  \
-loctinterp -loctave -ltinst -lcruft  -lreadline -lkpathsea -lglob  \
-lf2c -L/usr/lib/gcc-lib/i486-linux/2.7.2.1.f.1 -lgcc  -lncurses -lm -ldl
ld: cannot open -lieee: No such file or directory
make[2]: *** [octave] Error 1
make[2]: Leaving directory `/home/blair/ftp/octave-2.0.2/src'
make[1]: *** [src] Error 2
make[1]: Leaving directory `/home/blair/ftp/octave-2.0.2'
make: *** [all] Error 2
ludwig:/home/blair/ftp/octave-2.0.2#  

what & where should be libieee?
Art.

Reply | Threaded
Open this post in threaded view
|

make crash on linux

John W. Eaton-6
On  7-Feb-1997, arthur blair <[hidden email]> wrote:

| I'm trying to compile octave 202 on a redhat 4 linux box.
| I installed g77 & gcc 2.7.2.1 & the latest libraries from the CD.
| ./configure --enable-shared
| ran fine but make crashes with

| ld: cannot open -lieee: No such file or directory
| make[2]: *** [octave] Error 1
| make[2]: Leaving directory `/home/blair/ftp/octave-2.0.2/src'
| make[1]: *** [src] Error 2
| make[1]: Leaving directory `/home/blair/ftp/octave-2.0.2'
| make: *** [all] Error 2
| ludwig:/home/blair/ftp/octave-2.0.2#  
|
| what & where should be libieee?

Here's the information from the README.Linux file about this problem:

  The linker can't find -lieee
  ----------------------------

  This can happen because your libraries don't match your version of
  gcc.  Some recent Linux distributions don't include a libieee.a file
  because IEEE support is now the default and the library is no longer
  needed, but the gcc specs file still adds -lieee to the linker command
  if gcc is invoked with the -mieeefp flag.  I believe that you should
  be able to fix this by editing the gcc specs file.  In it, you should
  find something like this:

    %{!shared: %{mieee-fp:-lieee} %{p:-lgmon} %{pg:-lgmon} \
    %{!ggdb:-lc} %{ggdb:-lg}}

  changing it to

    %{!shared: %{p:-lgmon} %{pg:-lgmon} %{!ggdb:-lc} %{ggdb:-lg}}

  should keep gcc from adding -lieee to the link command.  You can find
  the location of the specs file by running the command gcc -v.

  If you can't edit the gcc specs file for some reason, another solution
  that should work is to create an empty libieee.a file in the Octave
  src directory using the command:

    ar cq libieee.a

  NOTE: you should fix this problem (either by editing the specs file or
  by creating the library) *before* running configure and compiling
  Octave.  Otherwise, configure may incorrectly determine that your
  system doesn't have support for some IEEE math functions.


jwe