octave-maintainers
[Top][All Lists]
Advanced

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

2.9.8 Build problems on Opteron (RHEL4)


From: Fredrik Lingvall
Subject: 2.9.8 Build problems on Opteron (RHEL4)
Date: Tue, 05 Sep 2006 11:16:01 +0200
User-agent: Thunderbird 1.5.0.5 (X11/20060802)

* With the umfpack stuff I get this error (using gcc 4.1.1):

F77=gfortran CPPFLAGS="-I$HOME/work/OPTERON/usr/local/include"
CFLAGS="-O3 -m64 -Wall -funroll-loops -march=opteron -mtune=opteron
-pthread" CXXFLAGS="-I$HOME/work/OPTERON/usr/local/include -O3 -m64
-Wall -funroll-loops -march=opteron -mtune=opteron -pthread"
FFLAGS="-I$HOME/work/OPTERON/usr/local/include -O3 -m64 -Wall
-funroll-loops -march=opteron -mtune=opteron -pthread"
LDFLAGS="-L$HOME/work/OPTERON/usr/local/lib" ./configure  --enable-64
--prefix=$HOME/work/OPTERON/usr/local
--with-blas=$HOME/work/OPTERON/usr/local/lib/libBLAS.so
--with-lapack=$HOME/work/OPTERON/usr/local/lib/libLAPACK.so

make

...

g++ -c -I/ifi/fenris/a05/fl/work/OPTERON/usr/local/include -fPIC -I.
-I.. -I../liboctave -I../src -I../libcruft/misc  -DHAVE_CONFIG_H  -Wall
-W -Wshadow -Wold-style-cast
-I/ifi/fenris/a05/fl/work/OPTERON/usr/local/include -O3 -m64 -Wall
-funroll-loops -march=opteron -mtune=opteron -pthread
sparse-base-chol.cc -o pic/sparse-base-chol.o
/ifi/fenris/a05/fl/work/OPTERON/usr/local/include/proto.h:462: error:
declaration of C function 'int __log2(int)' conflicts with
/usr/include/bits/mathcalls.h:145: error: previous declaration 'double
__log2(double)' here
make[2]: *** [pic/sparse-base-chol.o] Error 1
make[2]: Leaving directory
`/ifi/fenris/p13/fl/OPTERON/octave-2.9.8/liboctave'
make[1]: *** [liboctave] Error 2
make[1]: Leaving directory `/ifi/fenris/p13/fl/OPTERON/octave-2.9.8'
make: *** [all] Error 2

* Without umfpack:

F77=gfortran CPPFLAGS="-I$HOME/work/OPTERON/usr/local/include"
CFLAGS="-O3 -m64 -Wall -funroll-loops -march=opteron -mtune=opteron
-pthread" CXXFLAGS="-I$HOME/work/OPTERON/usr/local/include -O3 -m64
-Wall -funroll-loops -march=opteron -mtune=opteron -pthread"
FFLAGS="-I$HOME/work/OPTERON/usr/local/include -O3 -m64 -Wall
-funroll-loops -march=opteron -mtune=opteron -pthread"
LDFLAGS="-L$HOME/work/OPTERON/usr/local/lib" ./configure  --enable-64
--prefix=$HOME/work/OPTERON/usr/local
--with-blas=$HOME/work/OPTERON/usr/local/lib/libBLAS.so
--with-lapack=$HOME/work/OPTERON/usr/local/lib/libLAPACK.so
--without-umfpack --without-colamd --without-ccolamd --without-cholmod
--without-cxsparse --without-glpk --without-hdf5

make

...
g++ -c -I/ifi/fenris/a05/fl/work/OPTERON/usr/local/include -fPIC -I.
-I.. -I../liboctave -I../src -I../libcruft/misc  -DHAVE_CONFIG_H  -Wall
-W -Wshadow -Wold-style-cast
-I/ifi/fenris/a05/fl/work/OPTERON/usr/local/include -O3 -m64 -Wall
-funroll-loops -march=opteron -mtune=opteron -pthread mex.cc -o pic/mex.o
mex.cc: In member function 'virtual octave_value
mxArray_sparse::as_octave_value() const':
mex.cc:1395: error: call of overloaded 'SparseBoolMatrix(int, int, const
int&)' is ambiguous
../liboctave/boolSparse.h:63: note: candidates are:
SparseBoolMatrix::SparseBoolMatrix(octave_idx_type, octave_idx_type,
octave_idx_type)
../liboctave/boolSparse.h:39: note:                
SparseBoolMatrix::SparseBoolMatrix(octave_idx_type, octave_idx_type, bool)
mex.cc:1421: error: call of overloaded 'SparseComplexMatrix(int, int,
const int&)' is ambiguous
../liboctave/CSparse.h:88: note: candidates are:
SparseComplexMatrix::SparseComplexMatrix(octave_idx_type,
octave_idx_type, octave_idx_type)
../liboctave/CSparse.h:56: note:                
SparseComplexMatrix::SparseComplexMatrix(octave_idx_type,
octave_idx_type, double)
../liboctave/CSparse.h:53: note:                
SparseComplexMatrix::SparseComplexMatrix(octave_idx_type,
octave_idx_type, Complex)
mex.cc:1438: error: call of overloaded 'SparseMatrix(int, int, const
int&)' is ambiguous
../liboctave/dSparse.h:78: note: candidates are:
SparseMatrix::SparseMatrix(octave_idx_type, octave_idx_type,
octave_idx_type)
../liboctave/dSparse.h:52: note:                
SparseMatrix::SparseMatrix(octave_idx_type, octave_idx_type, double)
mex.cc: In function 'octave_value_list call_mex(callstyle, void*, const
octave_value_list&, int)':
mex.cc:2826: warning: dereferencing type-punned pointer will break
strict-aliasing rules
make[2]: *** [pic/mex.o] Error 1
make[2]: Leaving directory `/ifi/fenris/p13/fl/OPTERON/octave-2.9.8/src'
make[1]: *** [src] Error 2
make[1]: Leaving directory `/ifi/fenris/p13/fl/OPTERON/octave-2.9.8'
make: *** [all] Error 2

I get build errors with the RedHat compilers as well.

The compilers are build with:

gcc -v
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: ../configure
--prefix=/ifi/fenris/a05/fl/work/OPTERON/usr/local --enable-nls
--without-included-gettext --with-system-zlib --disable-checking
--disable-werror --disable-libunwind-exceptions --disable-libgcj
--disable-multilib --enable-languages=c,c++,fortran --enable-shared
--enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 4.1.1

gcc4 -v
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions
--with-gxx-include-dir=/usr/include/c++/3.4.3 --enable-libgcj-multifile
--enable-languages=c,c++,java,f95 --enable-java-awt=gtk --disable-dssi
--with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre
--with-cpu=generic --host=x86_64-redhat-linux
Thread model: posix
gcc version 4.1.0 20060515 (Red Hat 4.1.0-18)

 /usr/bin/gcc -v
Reading specs from /usr/lib/gcc/x86_64-redhat-linux/3.4.6/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-java-awt=gtk
--host=x86_64-redhat-linux
Thread model: posix
gcc version 3.4.6 20060404 (Red Hat 3.4.6-3)

I succeded building 2.9.6 (without umfpack), but 2.9.7 and 2.9.8 both fails.

/Fredrik








reply via email to

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