This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: Errors building the current trunk
- From: Fritz Reese <fritzoreese at gmail dot com>
- To: Damian Rouson <damian at sourceryinstitute dot org>
- Cc: gfortran <fortran at gcc dot gnu dot org>
- Date: Fri, 23 Sep 2016 12:42:02 -0400
- Subject: Re: Errors building the current trunk
- Authentication-results: sourceware.org; auth=none
- References: <etPan.57e54f6b.65e455c.a410@sourceryinstitute.org>
On Fri, Sep 23, 2016 at 11:51 AM, Damian Rouson
<damian@sourceryinstitute.org> wrote:
...
> My steps were as follows:
>
> git clone git://gcc.gnu.org/git/gcc.git
> cd gcc
> git branch download-prerequisites
> git checkout download-prerequisites
> ./configure --prefix=/opt/gnu/7.0.0/2016-09-23 --enable-languages=c,c++,fortran,lto --disable-multilib --disable-werror
> make bootstrap
>
> Could anyone advise me about how to build gfortran successfully? In this case, I was building with GCC 5.4 installed
> via apt-get on Lubuntu Linux. I also tried building with the trunk itself.
I don't know if this is the issue, but AFAIK GCC does not support
building from within or underneath the source directory - generally
you create a separate build directory. See
https://gcc.gnu.org/install/configure.html:
% mkdir objdir
% cd objdir
% srcdir/configure [options] [target]
where objdir is not a subdirectory of srcdir. Try that and see if you
still have issues...
---
Fritz Reese