octave-maintainers
[Top][All Lists]
Advanced

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

2.9.13 x86_64 mex API build problem


From: Fredrik Lingvall
Subject: 2.9.13 x86_64 mex API build problem
Date: Wed, 08 Aug 2007 16:34:57 +0200
User-agent: Thunderbird 2.0.0.6 (X11/20070804)

Hi,

2.9.13 fails to build somewhere in the mex API with --enable-64.
This is a part of the build output:

...

g++ -c -fPIC -I. -I.. -I../liboctave -I../src -I../libcruft/misc -DHAVE_CONFIG_H -Wall -W -Wshadow -Wold-style-cast -O3 -pipe -m64 -mtune=nocona -march=nocona -mfpmath=sse -msse2 -msse3 -fomit-frame-pointer -funroll-loops -fprefetch-loop-arrays -pthread oct-hist.cc -o pic/oct-hist.o mex.cc:222: error: initializer specified for non-virtual method 'int mxArray_base::get_string(char*, mwSize) const'
mex.cc: In constructor 'mxArray_number::mxArray_number(int, const char**)':
mex.cc:1130: warning: comparison between signed and unsigned integer expressions
mex.cc: At global scope:
mex.cc:1941: error: prototype for 'mxArray::mxArray(mwSize, const char**)' does not match any in class 'mxArray'
mxarray.h:334: error: candidates are: mxArray::mxArray(const mxArray&)
mxarray.h:327: error: mxArray::mxArray(mxArray*, const char*)
mxarray.h:319: error:                 mxArray::mxArray(const xmxArray&)
mxarray.h:162: error:                 mxArray::mxArray(mwSize, mwSize)
mxarray.h:160: error:                 mxArray::mxArray(const dim_vector&)
mxarray.h:158: error: mxArray::mxArray(mwSize, const mwSize*) mxarray.h:156: error: mxArray::mxArray(mwSize, mwSize, int, const char**) mxarray.h:154: error: mxArray::mxArray(const dim_vector&, int, const char**) mxarray.h:152: error: mxArray::mxArray(mwSize, const mwSize*, int, const char**) mxarray.h:150: error: mxArray::mxArray(mxClassID, mwSize, mwSize, int, mxComplexity)
mxarray.h:148: error:                 mxArray::mxArray(int, const char**)
mex.cc:1938: error:                 mxArray::mxArray(const char*)
mex.cc:1935: error:                 mxArray::mxArray(mxClassID, mxLogical)
mex.cc:1932: error:                 mxArray::mxArray(mxClassID, double)
mex.cc:1929: error: mxArray::mxArray(mxClassID, mwSize, mwSize, mxComplexity) mex.cc:1926: error: mxArray::mxArray(mxClassID, const dim_vector&, mxComplexity) mex.cc:1923: error: mxArray::mxArray(mxClassID, mwSize, const mwSize*, mxComplexity)
mex.cc:1920: error:                 mxArray::mxArray(const octave_value&)
mex.cc:1944: error: prototype for 'mxArray::mxArray(mxClassID, mwSize, mwSize, mwSize, mxComplexity)' does not match any in class 'mxArray'
mex.cc:1941: error: candidates are: mxArray::mxArray(mwSize, const char**)
mxarray.h:334: error:                 mxArray::mxArray(const mxArray&)
mxarray.h:327: error: mxArray::mxArray(mxArray*, const char*)
mxarray.h:319: error:                 mxArray::mxArray(const xmxArray&)
mxarray.h:162: error:                 mxArray::mxArray(mwSize, mwSize)
mxarray.h:160: error:                 mxArray::mxArray(const dim_vector&)
mxarray.h:158: error: mxArray::mxArray(mwSize, const mwSize*) mxarray.h:156: error: mxArray::mxArray(mwSize, mwSize, int, const char**) mxarray.h:154: error: mxArray::mxArray(const dim_vector&, int, const char**) mxarray.h:152: error: mxArray::mxArray(mwSize, const mwSize*, int, const char**) mxarray.h:150: error: mxArray::mxArray(mxClassID, mwSize, mwSize, int, mxComplexity)
mxarray.h:148: error:                 mxArray::mxArray(int, const char**)
mex.cc:1938: error:                 mxArray::mxArray(const char*)
mex.cc:1935: error:                 mxArray::mxArray(mxClassID, mxLogical)
mex.cc:1932: error:                 mxArray::mxArray(mxClassID, double)
mex.cc:1929: error: mxArray::mxArray(mxClassID, mwSize, mwSize, mxComplexity) mex.cc:1926: error: mxArray::mxArray(mxClassID, const dim_vector&, mxComplexity) mex.cc:1923: error: mxArray::mxArray(mxClassID, mwSize, const mwSize*, mxComplexity)
mex.cc:1920: error:                 mxArray::mxArray(const octave_value&)
mex.cc: In function 'octave_value_list call_mex(bool, void*, const octave_value_list&, int, octave_mex_function*)': mex.cc:2956: warning: dereferencing type-punned pointer will break strict-aliasing rules
make[2]: *** [pic/mex.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/root/software/octave/octave-2.9.13/src'
make[1]: *** [src] Error 2
make[1]: Leaving directory `/root/software/octave/octave-2.9.13'
make: *** [all] Error 2
fllap5 octave-2.9.13 #

Octave was configured with:

./configure CFLAGS="-O3 -pipe -m64 -mtune=nocona -march=nocona -mfpmath=sse -msse2 -msse3 -fomit-frame-pointer -funroll-loops -fprefetch-loop-arrays -pthread" CXXFLAGS="-O3 -pipe -mtune=nocona -march=nocona -mfpmath=sse -msse2 -fomit-frame-pointer -funroll-loops -fprefetch-loop-arrays -pthread" CXXFLAGS="-O3 -pipe -m64 -mtune=nocona -march=nocona -mfpmath=sse -msse2 -msse3 -fomit-frame-pointer -funroll-loops -fprefetch-loop-arrays -pthread" FFLAGS="-O3 -pipe -mtune=nocona -march=nocona -mfpmath=sse -msse2 -msse3 -fomit-frame-pointer -funroll-loops -fprefetch-loop-arrays -pthread" --enable-64 --prefix=/usr/local/ --with-blas=/usr/local/lib/libBLAS.so --with-lapack=/usr/local/lib/libLAPACK.so --enable-shared --without-hdf5

on a Core2 laptop (Dell M90).

fllap5 octave-2.9.13 # gcc -v
Using built-in specs.
Target: x86_64-pc-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-4.1.2/work/gcc-4.1.2/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.2 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.2/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.2/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --enable-secureplt --disable-libunwind-exceptions --enable-multilib --enable-libmudflap --disable-libssp --disable-libgcj --enable-languages=c,c++,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 4.1.2 (Gentoo 4.1.2 p1.0.1)

Octave 2.9.12 builds with the same configuration so the problem might be due to the mex changes made 2-5 of June.

/Fredrik





reply via email to

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