This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: Problem building GCC
Hi Arjen,
On Thu, Jun 23, 2011 at 11:37:27AM +0200, Arjen Markus wrote:
> Hi Axel,
>
> I created a separate build directory next to the source directory, so
> not a subdirectory and
> ran ../gcc-4.6.1-RC-20110620/configure and make.
>
> This ended up with the same error about the Make-lang.in file in some
> ada-related directory.
strange...
>
> The first part of the config.out file is:
> This file contains any messages produced by compilers while
> running configure, to aid debugging if configure makes a mistake.
>
> It was created by configure, which was
> generated by GNU Autoconf 2.64. Invocation command line was
>
> $ ../gcc-4.6.1-RC-20110620/configure
> --with-gmp-include=d:/gcc4.6.1.src/gmp-5.0.2
> --with-gmp-lib=d:/gcc4.6.1.src/gmp-5.0.2/.libs
> --with-mpfr-include=d:/gcc4.6.1.src/mpfr-3.0.1
> --with-mpfr-lib=d:/gcc4.6.1.src/mpfr-3.0.1/.libs
> --with-mpc-include=d:/gcc4.6.1.src/mpc-0.9/src
> --with-mpc-lib=d:/gcc4.6.1.src/mpc-0.9/src/.libs --prefix=d:/gcc4.6.1
> --enable-languages=c,fortran
>
> ## --------- ##
> ## Platform. ##
> ## --------- ##
>
> hostname = L00138
> uname -m = i686
> uname -r = 1.0.16(0.48/3/2)
> uname -s = MINGW32_NT-5.1
> uname -v = 2010-09-29 00:07
>
>
> whereas the make output ends with:
>
> make[4]: Entering directory `/d/gcc4.6.1.src/build-gcc/prev-gcc'
> ../../gcc-4.6.1-RC-20110620/gcc/ada/gcc-interface/Make-lang.in:615:
> *** multiple target patterns. Stop.
> make[4]: Leaving directory `/d/gcc4.6.1.src/build-gcc/prev-gcc'
> make[3]: *** [stmp-fixinc] Error 2
> make[3]: Leaving directory `/d/gcc4.6.1.src/build-gcc/gcc'
> make[2]: *** [all-stage2-gcc] Error 2
> make[2]: Leaving directory `/d/gcc4.6.1.src/build-gcc'
> make[1]: *** [stage2-bubble] Error 2
> make[1]: Leaving directory `/d/gcc4.6.1.src/build-gcc'
> make: *** [all] Error 2
Well, I do not have mingw32, so I can't try myself, but just two
possible solutions:
- in order to compile ada, you need an already working ada compiler
(you could try and install gcc-ada from mingw, if I remember
correctly).
- you could try to download only c and fortran sources, then gcc can't
try to compile ada ;-) (you would need the archives "gcc-core-..."
and "gcc-fortran-..." and may be "gcc-testsuite-..." for proper
testing
Regards,
Axel
> 2011/6/23 Arjen Markus <arjen.markus895@gmail.com>:
> > Hi Axel,
> >
> > oh! I did not realise that - in the autoconf projects I am used to, this
> > is the way to work. I will give that a try.
> >
> > Regards,
> >
> > Arjen
> >
> > 2011/6/23 Axel Freyn <axel-freyn@gmx.de>:
> >> Hi Arjen,
> >> That explains your problem. ?You are explicitely discouraged to run
> >> configure inside the source directory :-)
> >> You have to run it from a different directory which is even NO
> >> SUBDIRECTORY of the source-directory.
> >> So e.g.
> >> mkdir build
> >> cd build
> >> ../gcc-4.6.1-RC-20110620/configure .......
> >>
> >> should work.
> >>
> >> see:
> >> http://gcc.gnu.org/install/configure.html
> >>
> >