octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #46431] fl-core does not build with 64 bit ena


From: Martin K
Subject: [Octave-bug-tracker] [bug #46431] fl-core does not build with 64 bit enabled Octave unter Linux
Date: Thu, 12 Nov 2015 16:27:33 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:41.0) Gecko/20100101 Firefox/41.0

URL:
  <http://savannah.gnu.org/bugs/?46431>

                 Summary: fl-core does not build with 64 bit enabled Octave
unter Linux
                 Project: GNU Octave
            Submitted by: grisu86
            Submitted on: Do 12 Nov 2015 16:27:32 GMT
                Category: Octave Forge Package
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Build Failure
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.0.0
        Operating System: GNU/Linux

    _______________________________________________________

Details:

By testing more and more packages, it turned out that the fl-core package has
similar integer problems as the parallel package. By installing fl-core via 

pkg install -verbose -forge fl-core
 
the following error occurs with gcc 4.8.5 on Ubuntu 12.04: 
+verbatim 
mkdir (/tmp/oct-RihwiW)
untar
(/afs/mpi-magdeburg.mpg.de/home/koehlerm/work/software/misc_matlab/fl-core-1.0.0.tar.gz,
/tmp/oct-RihwiW)
make: Entering directory `/tmp/oct-RihwiW/fl-core/src'
mkoctfile -s fl_compose.cc
fl_compose.cc: In function ‘void sparse_compose(octave_value_list)’:
fl_compose.cc:468:67: error: call of overloaded ‘SparseMatrix(int, int,
int)’ is ambiguous
  sparseC = SparseMatrix((int)colsB, (int)rowsA, (int)(colsB*rowsA));
                                                                   ^
fl_compose.cc:468:67: note: candidates are:
In file included from
/scratch/koehlerm/local_install/conda-2.7/include/octave-4.0.0/octave/../octave/mx-base.h:66:0,
                 from
/scratch/koehlerm/local_install/conda-2.7/include/octave-4.0.0/octave/../octave/Matrix.h:30,
                 from
/scratch/koehlerm/local_install/conda-2.7/include/octave-4.0.0/octave/../octave/oct.h:33,
                 from fl_compose.cc:21:
/scratch/koehlerm/local_install/conda-2.7/include/octave-4.0.0/octave/../octave/dSparse.h:90:3:
note: SparseMatrix::SparseMatrix(octave_idx_type, octave_idx_type,
octave_idx_type)
   SparseMatrix (octave_idx_type r, octave_idx_type c,
   ^
/scratch/koehlerm/local_install/conda-2.7/include/octave-4.0.0/octave/../octave/dSparse.h:62:12:
note: SparseMatrix::SparseMatrix(octave_idx_type, octave_idx_type, double)
   explicit SparseMatrix (octave_idx_type r, octave_idx_type c, double val)
            ^
fl_compose.cc: In function ‘int get_available_cpus()’:
fl_compose.cc:757:19: error: ‘_SC_NPROCESSORS_ONLN’ was not declared in
this scope
   return sysconf( _SC_NPROCESSORS_ONLN);
                   ^
fl_compose.cc:757:39: error: ‘sysconf’ was not declared in this scope
   return sysconf( _SC_NPROCESSORS_ONLN);
 

Beside the wrong integer size, the unistd.h header is not included to declare
sysconf and _SC_NPROCESSORS_ONLN. 

The attached patch will fix both problems. 




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Do 12 Nov 2015 16:27:32 GMT  Name: flcore-octave_idx_type.patch  Size:
10kB   By: grisu86

<http://savannah.gnu.org/bugs/download.php?file_id=35442>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?46431>

_______________________________________________
  Nachricht gesendet von/durch Savannah
  http://savannah.gnu.org/




reply via email to

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