help-octave
[Top][All Lists]
Advanced

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

Re: trying to compile 3.6.1


From: Rita
Subject: Re: trying to compile 3.6.1
Date: Wed, 8 Aug 2012 13:48:47 -0400



On Wed, Aug 8, 2012 at 8:27 AM, Mike Miller <address@hidden> wrote:
On Tue, Aug 7, 2012 at 6:10 PM, Rita wrote:
> trying to compile Octave 3.6.1

What operating system are you compiling on? Did you know that 3.6.2 is
now available?

> 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"

Did you build and install these from source or are they from a package
manager of some kind?

> 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

Here is the relevant code section for reference:

http://hg.savannah.gnu.org/hgweb/octave/file/551566201318/src/oct-fstrm.cc#l46

So it looks like your gcc failed to pass the "C++ library is ISO
compliant" test. If it's failing this, it may be failing other tests
as well. Can you post your config.log file? This will show the test(s)
that failed and why. Possibly because you are using a gcc in a
non-standard directory. At a glance it looks like you are passing the
right include and library paths, but maybe parts of libstdc++ are not
being found.

--
mike

Thanks for your response.

Yes, I am aware of 3.6.2 is out but most of my colleagues are using 3.6.1 so I want to stick with it for a while. 

Yes, I compiled gcc 4.6.2 myself.

My config.log is huge (close to 4mb). Is there a particular section I should be looking at? 




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

reply via email to

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