public inbox for fortran@gcc.gnu.org
 help / color / mirror / Atom feed
* Errors building the current trunk
@ 2016-09-23 15:51 Damian Rouson
  2016-09-23 16:42 ` Fritz Reese
  0 siblings, 1 reply; 3+ messages in thread
From: Damian Rouson @ 2016-09-23 15:51 UTC (permalink / raw)
  To: gfortran

 
All,

In an attempt to develop a patch for the contrib/download_prerequisites script, I cloned the trunk last night and am encountering an error in building gfortran so that I can run the regression tests. The error message is at the bottom of this email.  

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. 


Damian  



g++ -std=gnu++98 -fno-PIE -c -g -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common -DHAVE_CONFIG_H -I. -I. -I../.././gcc -I../.././gcc/. -I../.././gcc/../include -I../.././gcc/../libcpp/include -I/home/rouson/Desktop/Builds/gcc/host-x86_64-pc-linux-gnu/gmp -I/home/rouson/Desktop/Builds/gcc/gmp -I/home/rouson/Desktop/Builds/gcc/host-x86_64-pc-linux-gnu/mpfr/src -I/home/rouson/Desktop/Builds/gcc/mpfr/src -I/home/rouson/Desktop/Builds/gcc/mpc/src -I../.././gcc/../libdecnumber -I../.././gcc/../libdecnumber/bid -I../libdecnumber -I../.././gcc/../libbacktrace -I/home/rouson/Desktop/Builds/gcc/host-x86_64-pc-linux-gnu/isl/include -I/home/rouson/Desktop/Builds/gcc/isl/include -o i386.o -MT i386.o -MMD -MP -MF ./.deps/i386.TPo ../.././gcc/config/i386/i386.c  
In file included from ../.././gcc/target-def.h:106:0,
from ../.././gcc/config/i386/i386.c:81:
./target-hooks-def.h:92:38: error: ‘hook_uint_uintp_false’ was not declared in this scope
#define TARGET_ASM_ELF_FLAGS_NUMERIC hook_uint_uintp_false
^
./target-hooks-def.h:2205:5: note: in expansion of macro ‘TARGET_ASM_ELF_FLAGS_NUMERIC’
TARGET_ASM_ELF_FLAGS_NUMERIC, \
^
./target-hooks-def.h:1792:5: note: in expansion of macro ‘TARGET_ASM_OUT’
TARGET_ASM_OUT, \
^
../.././gcc/config/i386/i386.c:50811:29: note: in expansion of macro ‘TARGET_INITIALIZER’
struct gcc_target targetm = TARGET_INITIALIZER;
^
Makefile:2182: recipe for target 'i386.o' failed
make[3]: *** [i386.o] Error 1
make[3]: Leaving directory '/home/rouson/Desktop/Builds/gcc/host-x86_64-pc-linux-gnu/gcc'
Makefile:4584: recipe for target 'all-stage1-gcc' failed
make[2]: *** [all-stage1-gcc] Error 2
make[2]: Leaving directory '/home/rouson/Desktop/Builds/gcc'
Makefile:27422: recipe for target 'stage1-bubble' failed
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory '/home/rouson/Desktop/Builds/gcc'
Makefile:27822: recipe for target 'bootstrap' failed
make: *** [bootstrap] Error 2


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Errors building the current trunk
  2016-09-23 15:51 Errors building the current trunk Damian Rouson
@ 2016-09-23 16:42 ` Fritz Reese
       [not found]   ` <B6BFEDFE-0105-46EC-87FE-8AAE0EEC425A@gmx.de>
  0 siblings, 1 reply; 3+ messages in thread
From: Fritz Reese @ 2016-09-23 16:42 UTC (permalink / raw)
  To: Damian Rouson; +Cc: gfortran

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Errors building the current trunk
       [not found]   ` <B6BFEDFE-0105-46EC-87FE-8AAE0EEC425A@gmx.de>
@ 2016-09-23 17:08     ` Andre Vehreschild
  0 siblings, 0 replies; 3+ messages in thread
From: Andre Vehreschild @ 2016-09-23 17:08 UTC (permalink / raw)
  To: Fritz Reese, Damian Rouson; +Cc: gfortran

Trunk was defect yesterday for some time. This morning all was sorted out again. All times Cest.

- Andre
-- 
Andre Vehreschild

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-09-23 17:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-23 15:51 Errors building the current trunk Damian Rouson
2016-09-23 16:42 ` Fritz Reese
     [not found]   ` <B6BFEDFE-0105-46EC-87FE-8AAE0EEC425A@gmx.de>
2016-09-23 17:08     ` Andre Vehreschild

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).