help-octave
[Top][All Lists]
Advanced

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

trying to compile 3.6.1


From: Rita
Subject: trying to compile 3.6.1
Date: Tue, 7 Aug 2012 17:10:30 -0500

trying to compile Octave 3.6.1


export CC=/software/gcc-4.6.3/bin/gcc
export CXX=/software/gcc-4.6.3/bin/g++
export F77=/software/gcc-4.6.3/bin/gfortran
export FC=/software/gcc-4.6.3/bin/gfortran
export GNUPLOT="/software/gnuplot-4.2.2/bin/gnuplot"

export PREFIX=/software/octave-3.6.1

export LDFLAGS="-L/software/pcre-8.30/lib -L/software/hdf5-1.8.3/lib
-L/software/gcc-4.6.3/lib64  -Wl,-rpath,/software/gcc-4.6.3/lib64
-Wl,-rpath,/staging/octave-3.6.1/contrib/ATLAS/build/lib"
export CFLAGS="-I/software/gcc-4.6.3/include
-I/software/pcre-8.30/include -I/software/hdf5-1.8.3/include"
export CPPFLAGS="$CFLAGS"
FFLAGS="-m64 -g -O2 -ff2c"
#export FFLAGS="-ff2c"
F77=/software/gcc-4.6.3/bin/gfortran
CXX=/software/gcc-4.6.3/bin/gcc
CC=/software/gcc-4.6.3/bin/gcc

./configure --enable-shared\
        --disable-static\
        --disable-docs \
        --enable-dl \
        --prefix=$PREFIX \
        --with-blas="-L/staging/octave-3.6.1/contrib/ATLAS/build/lib
-lf77blas -lcblas -latlas"\
        --with-lapack="-llapack
-L/staging/octave-3.6.1/contrib/ATLAS/build/lib"\
        --with-ft-prefix="/software/freetype-2.3.1"

                
                
                This works, but when I do a make I keep getting this problem.
                ...
                
                
                make  all-am
make[3]: Entering directory `/staging/octave-3.6.1/src'
/bin/sh ../libtool  --tag=CXX   --mode=compile
/software/gcc-4.6.3/bin/gcc -DHAVE_CONFIG_H -I. -I..
-I/software/gcc-4.6.3/include -I/software/pcre-8.30/include
-I/software/hdf5-1.8.3/include -I../libgnu -I../libgn
u -I../libcruft/misc -I../liboctave -I../liboctave -I. -I.
-I/software/gcc-4.6.3/include -I/software/pcre-8
.30/include -I/software/hdf5-1.8.3/include -g -O2  -DHAVE_CONFIG_H
-I/software/freetype-2.3.1/include/freet
ype2 -I/software/freetype-2.3.1/include   -Wall -W -Wshadow
-Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings -
Wcast-align -Wcast-qual -g -O2 -pthread -g -O2 -MT
liboctinterp_la-oct-fstrm.lo -MD -MP -MF
.deps/liboctinterp_la-oct-fstrm.Tpo -c
-o liboctinterp_la-oct-fstrm.lo `test -f 'oct-fstrm.cc' || echo
'./'`oct-fstrm.cc
libtool: compile:  /software/gcc-4.6.3/bin/gcc -DHAVE_CONFIG_H -I.
-I.. -I/software/gcc-4.6.3/include -I/et
g/source/Linux/pkg/pcre-8.30/include -I/software/hdf5-1.8.3/include
-I../libgnu -I../libgnu -I../libcruft/misc -I../lib
octave -I../liboctave -I. -I. -I/software/gcc-4.6.3/include
-I/software/pcre-8.30/include -I/software/hdf5-1.8.3/include -g -O2
-DHAVE_CONFIG_H -I/software/freetype-2.3.1/include/freetype2
-I/software/f
reetype-2.3.1/include -Wall -W -Wshadow -Wold-style-cast -Wformat
-Wpointer-arith -Wwrite-strings -Wcast-align -Wcast-qual -g -O2 -
pthread -g -O2 -MT liboctinterp_la-oct-fstrm.lo -MD -MP -MF
.deps/liboctinterp_la-oct-fstrm.Tpo -c oct-fstrm.cc  -fPIC -DPIC -o
.li
bs/liboctinterp_la-oct-fstrm.o
oct-fstrm.cc: In constructor 'octave_fstream::octave_fstream(const
string&, std::ios_base::openmode, oct_mach_info::float_format)':
oct-fstrm.cc:54:37: error: no matching function for call to
'std::basic_fstream<char>::open(const char*, std::ios_base::openmode&,
int)'
oct-fstrm.cc:54:37: note: candidate is:
/software/gcc-4.6.3/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3
/fstream:871:7: note: void std::basic_fstream<_CharT,
_Traits>::open(const char*, std::ios_base::openmode) [with _CharT =
char, _Tr
aits = std::char_traits<char>, std::ios_base::openmode = std::_Ios_Openmode]
/software/gcc-4.6.3/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3
/fstream:871:7: note:   candidate expects 2 arguments, 3 provided
make[3]: *** [liboctinterp_la-oct-fstrm.lo] Error 1
make[3]: Leaving directory `/staging/octave-3.6.1/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/staging/octave-3.6.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/staging/octave-3.6.1'
make: *** [all] Error 2


-- 
--- Get your facts first, then you can distort them as you please.--


reply via email to

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