This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Errors building the current trunk


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]