comp.lang.ada
 help / color / mirror / Atom feed
* compiling gcc8 on aarch64 FreeBSD v 12 fails with Ada
@ 2017-09-08 15:33 Tarjei Jensen
  2017-09-08 17:07 ` Tarjei Jensen
  0 siblings, 1 reply; 4+ messages in thread
From: Tarjei Jensen @ 2017-09-08 15:33 UTC (permalink / raw)


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,


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

* Re: compiling gcc8 on aarch64 FreeBSD v 12 fails with Ada
  2017-09-08 15:33 compiling gcc8 on aarch64 FreeBSD v 12 fails with Ada Tarjei Jensen
@ 2017-09-08 17:07 ` Tarjei Jensen
  2017-09-09 14:06   ` Jacob Sparre Andersen
  0 siblings, 1 reply; 4+ messages in thread
From: Tarjei Jensen @ 2017-09-08 17:07 UTC (permalink / raw)


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,

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

* Re: compiling gcc8 on aarch64 FreeBSD v 12 fails with Ada
  2017-09-08 17:07 ` Tarjei Jensen
@ 2017-09-09 14:06   ` Jacob Sparre Andersen
  2017-09-10 12:07     ` Tarjei Jensen
  0 siblings, 1 reply; 4+ messages in thread
From: Jacob Sparre Andersen @ 2017-09-09 14:06 UTC (permalink / raw)


Tarjei Jensen wrote:

> 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

Interesting.  The "proper" way to do it is:

# gnatmake -fstack-check -gnata -gnato -gnat2012 hello.adb

I doubt that it solves your problem though.

> # ./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;
> #

This looks like you have a problem with the build or installation of
your run-time.

Greetings,

Jacob
-- 
"I've got _plenty_ of common sense!"
"I just choose to ignore it."

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

* Re: compiling gcc8 on aarch64 FreeBSD v 12 fails with Ada
  2017-09-09 14:06   ` Jacob Sparre Andersen
@ 2017-09-10 12:07     ` Tarjei Jensen
  0 siblings, 0 replies; 4+ messages in thread
From: Tarjei Jensen @ 2017-09-10 12:07 UTC (permalink / raw)


You are correct, it didn't work.

I was using gcc6-aux as a package.I've also tried to compile from ports after gavubg disabled the fixincludes. It have the same problem.

On Saturday, 9 September 2017 16:06:35 UTC+2, Jacob Sparre Andersen  wrote:
> Tarjei Jensen wrote:
> 
> > 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
> 
> Interesting.  The "proper" way to do it is:
> 
> # gnatmake -fstack-check -gnata -gnato -gnat2012 hello.adb
> 
> I doubt that it solves your problem though.
> 
> > # ./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;
> > #
> 
> This looks like you have a problem with the build or installation of
> your run-time.
> 
> Greetings,
> 
> Jacob
> -- 
> "I've got _plenty_ of common sense!"
> "I just choose to ignore it."

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

end of thread, other threads:[~2017-09-10 12:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-08 15:33 compiling gcc8 on aarch64 FreeBSD v 12 fails with Ada Tarjei Jensen
2017-09-08 17:07 ` Tarjei Jensen
2017-09-09 14:06   ` Jacob Sparre Andersen
2017-09-10 12:07     ` Tarjei Jensen

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