From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.129.178.129 with SMTP id q123mr2203699ywh.109.1504890436468; Fri, 08 Sep 2017 10:07:16 -0700 (PDT) X-Received: by 10.36.43.210 with SMTP id h201mr168188ita.7.1504890436430; Fri, 08 Sep 2017 10:07:16 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!feed.usenet.farm!feeder4.usenet.farm!newsfeed.xs4all.nl!newsfeed9.news.xs4all.nl!feeder.usenetexpress.com!feeder-in1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!q8no1073219qtb.0!news-out.google.com!c139ni1151itb.0!nntp.google.com!o200no797344itg.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 8 Sep 2017 10:07:16 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=92.221.111.106; posting-account=beIwHAoAAADU40dPBV1VR5DLW0gTDYxo NNTP-Posting-Host: 92.221.111.106 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: compiling gcc8 on aarch64 FreeBSD v 12 fails with Ada From: Tarjei Jensen Injection-Date: Fri, 08 Sep 2017 17:07:16 +0000 Content-Type: text/plain; charset="UTF-8" Xref: news.eternal-september.org comp.lang.ada:47984 Date: 2017-09-08T10:07:16-07:00 List-Id: 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,