Thu 12 Nov 2015 04:27:32 PM UTC, original submission:
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
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);
-verbatim-
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.
|