[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: trying to compile 3.6.1
From: |
Mike Miller |
Subject: |
Re: trying to compile 3.6.1 |
Date: |
Wed, 8 Aug 2012 08:27:50 -0400 |
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
- trying to compile 3.6.1, Rita, 2012/08/07
- Re: trying to compile 3.6.1,
Mike Miller <=
- Re: trying to compile 3.6.1, Rita, 2012/08/08
- Re: trying to compile 3.6.1, Sergei Steshenko, 2012/08/08
- Re: trying to compile 3.6.1, Rita, 2012/08/08
- Re: trying to compile 3.6.1, Sergei Steshenko, 2012/08/08
- Re: trying to compile 3.6.1, Rita, 2012/08/08
- Re: trying to compile 3.6.1, Sergei Steshenko, 2012/08/08
- Re: trying to compile 3.6.1, Imam Toufique, 2012/08/08
- Re: trying to compile 3.6.1, Mike Miller, 2012/08/08
- Re: trying to compile 3.6.1, Sergei Steshenko, 2012/08/08
- Re: trying to compile 3.6.1, Rita, 2012/08/09