Skip to content

"error: 'floor' is not a member of 'gnulib'" while installing octave-4.0.2 in UBUNTU 18.04 #7

@mxochicale

Description

@mxochicale

path

 $HOME/phd/thesis/0_code_data/1_code/1_dependencies 

command

sh D_install-octave.sh

output

  CXX      array/array_libarray_la-Range.lo
In file included from array/Range.cc:24:0:
../config.h:3369:5: warning: option '-Wmissing-prototypes' is valid for C/ObjC but not for C++ [-Wpragmas]
     _Pragma ("GCC diagnostic ignored \"-Wmissing-prototypes\"") \
     ^
array/Range.cc: In function 'double tfloor(double, double)':
array/Range.cc:498:29: error: 'floor' is not a member of 'gnulib'
   double t1 = 1.0 + gnulib::floor (x);
                             ^~~~~
array/Range.cc:498:29: note: suggested alternative: 'fclose'
   double t1 = 1.0 + gnulib::floor (x);
                             ^~~~~
                             fclose
array/Range.cc:502:16: error: 'floor' is not a member of 'gnulib'
   t1 = gnulib::floor (x + t1);
                ^~~~~
array/Range.cc:502:16: note: suggested alternative: 'fclose'
   t1 = gnulib::floor (x + t1);
                ^~~~~
                fclose
Makefile:7281: recipe for target 'array/array_libarray_la-Range.lo' failed
make[3]: *** [array/array_libarray_la-Range.lo] Error 1
make[3]: Leaving directory '/home/xima/Downloads/octave-4.0.2/liboctave'
Makefile:4067: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/home/xima/Downloads/octave-4.0.2/liboctave'
Makefile:2131: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/xima/Downloads/octave-4.0.2'
Makefile:1995: recipe for target 'all' failed
make: *** [all] Error 2
Makefile:3071: warning: overriding recipe for target 'check'
Makefile:2424: warning: ignoring old recipe for target 'check'
  GEN      run-octave
run-octave is unchanged
rm -f bits/stl_algo.h
make  install-recursive
make[1]: Entering directory '/home/xima/Downloads/octave-4.0.2'
Makefile:3071: warning: overriding recipe for target 'check'
Makefile:2424: warning: ignoring old recipe for target 'check'
Making install in libgnu
make[2]: Entering directory '/home/xima/Downloads/octave-4.0.2/libgnu'
make  install-recursive
make[3]: Entering directory '/home/xima/Downloads/octave-4.0.2/libgnu'
make[4]: Entering directory '/home/xima/Downloads/octave-4.0.2/libgnu'
make[5]: Entering directory '/home/xima/Downloads/octave-4.0.2/libgnu'
if test yes = no; then \
  case 'linux-gnu' in \
    darwin[56]*) \
      need_charset_alias=true ;; \
    darwin* | cygwin* | mingw* | pw32* | cegcc*) \
      need_charset_alias=false ;; \
    *) \
      need_charset_alias=true ;; \
  esac ; \
else \
  need_charset_alias=false ; \
fi ; \
if $need_charset_alias; then \
  /bin/bash /home/xima/Downloads/octave-4.0.2/build-aux/install-sh -d /usr/local/lib ; \
fi ; \
if test -f /usr/local/lib/charset.alias; then \
  sed -f ref-add.sed /usr/local/lib/charset.alias > /usr/local/lib/charset.tmp ; \
  /usr/bin/install -c -m 644 /usr/local/lib/charset.tmp /usr/local/lib/charset.alias ; \
  rm -f /usr/local/lib/charset.tmp ; \
else \
  if $need_charset_alias; then \
    sed -f ref-add.sed charset.alias > /usr/local/lib/charset.tmp ; \
    /usr/bin/install -c -m 644 /usr/local/lib/charset.tmp /usr/local/lib/charset.alias ; \
    rm -f /usr/local/lib/charset.tmp ; \
  fi ; \
fi
make[5]: Nothing to be done for 'install-data-am'.
make[5]: Leaving directory '/home/xima/Downloads/octave-4.0.2/libgnu'
make[4]: Leaving directory '/home/xima/Downloads/octave-4.0.2/libgnu'
make[3]: Leaving directory '/home/xima/Downloads/octave-4.0.2/libgnu'
make[2]: Leaving directory '/home/xima/Downloads/octave-4.0.2/libgnu'
Making install in liboctave
make[2]: Entering directory '/home/xima/Downloads/octave-4.0.2/liboctave'
make  install-am
make[3]: Entering directory '/home/xima/Downloads/octave-4.0.2/liboctave'
  CXX      array/array_libarray_la-Range.lo
In file included from array/Range.cc:24:0:
../config.h:3369:5: warning: option '-Wmissing-prototypes' is valid for C/ObjC but not for C++ [-Wpragmas]
     _Pragma ("GCC diagnostic ignored \"-Wmissing-prototypes\"") \
     ^
array/Range.cc: In function 'double tfloor(double, double)':
array/Range.cc:498:29: error: 'floor' is not a member of 'gnulib'
   double t1 = 1.0 + gnulib::floor (x);
                             ^~~~~
array/Range.cc:498:29: note: suggested alternative: 'fclose'
   double t1 = 1.0 + gnulib::floor (x);
                             ^~~~~
                             fclose
array/Range.cc:502:16: error: 'floor' is not a member of 'gnulib'
   t1 = gnulib::floor (x + t1);
                ^~~~~
array/Range.cc:502:16: note: suggested alternative: 'fclose'
   t1 = gnulib::floor (x + t1);
                ^~~~~
                fclose
Makefile:7281: recipe for target 'array/array_libarray_la-Range.lo' failed
make[3]: *** [array/array_libarray_la-Range.lo] Error 1
make[3]: Leaving directory '/home/xima/Downloads/octave-4.0.2/liboctave'
Makefile:11609: recipe for target 'install' failed
make[2]: *** [install] Error 2
make[2]: Leaving directory '/home/xima/Downloads/octave-4.0.2/liboctave'
Makefile:2131: recipe for target 'install-recursive' failed
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory '/home/xima/Downloads/octave-4.0.2'
Makefile:2432: recipe for target 'install' failed
make: *** [install] Error 2
rm: cannot remove 'octave-4.0.2.tar.gz': No such file or directory

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions