comp.lang.ada
 help / color / mirror / Atom feed
From: Tarjei Jensen <tarjei99@gmail.com>
Subject: Re: compiling gcc8 on aarch64 FreeBSD v 12 fails with Ada
Date: Fri, 8 Sep 2017 10:07:16 -0700 (PDT)
Date: 2017-09-08T10:07:16-07:00	[thread overview]
Message-ID: <b894a75f-1635-439d-a3d8-3fd2c43f9cf8@googlegroups.com> (raw)
In-Reply-To: <fe306bb0-6878-48e7-bfad-6941a6d3f4fb@googlegroups.com>

I compiled the example in https://gcc.gnu.org/onlinedocs/gnat_ugn/Running-a-Simple-Ada-Program.html using the procedure and I got the following response :

# gcc -c hello.adb
# gnatbind hello
# gnatlink hello
# ./hello

raised STORAGE_ERROR : stack overflow or erroneous memory access
#
# cat hello.adb
with Ada.Text_IO; use Ada.Text_IO;
procedure Hello is
begin
   Put_Line ("Hello WORLD!");
end Hello;
#



On Friday, 8 September 2017 17:33:42 UTC+2, Tarjei Jensen  wrote:
> Hi,
> 
> I'm doing this on a Raspberry PI 3 running 64 bit FreeBSD v12.
> 
> I'm trying to compile gcc8-devel from ports with gcc6-aux.
> 
> I have renamed include-fixed directory on gcc-6 and inserted "exit 0" in fixincl.sh to make sure that it will not create more "fixes".
> 
> The C compilation go rather well, but it fails when it start using the ada compiler. See error messages below.
> 
> I have tried to compile with debug on, but gdb complains about the stack frame being corrupted. I've tried put_line("text") as the first line, but it fails before getting there.
> 
> Any hints on how to proceed. I'm out of options. The FreeBSD gcc6-aux maintainer has been banned.
> 
> The log :
> 
> cp -p /usr/ports/lang/gcc8-devel/work/gcc-8-20170820/gcc/ada/sinfo.ads /usr/port
> s/lang/gcc8-devel/work/gcc-8-20170820/gcc/ada/sinfo.adb /usr/ports/lang/gcc8-dev
> el/work/gcc-8-20170820/gcc/ada/xsinfo.adb /usr/ports/lang/gcc8-devel/work/gcc-8-
> 20170820/gcc/ada/csinfo.adb ada/bldtools/sinfo
> (cd ada/bldtools/sinfo; gnatmake -q xsinfo ; ./xsinfo sinfo.h )
> 
> raised STORAGE_ERROR : stack overflow or erroneous memory access
> gmake[5]: *** [/usr/ports/lang/gcc8-devel/work/gcc-8-20170820/gcc/ada/Make-gener
> ated.in:45: ada/sinfo.h] Error 1
> 
> 
> Greetings,

  reply	other threads:[~2017-09-08 17:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-08 15:33 compiling gcc8 on aarch64 FreeBSD v 12 fails with Ada Tarjei Jensen
2017-09-08 17:07 ` Tarjei Jensen [this message]
2017-09-09 14:06   ` Jacob Sparre Andersen
2017-09-10 12:07     ` Tarjei Jensen
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox