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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b70281e9df653875 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-11-06 20:18:48 PST Message-ID: <3FAB1C53.5080007@nowhere.com> Date: Fri, 07 Nov 2003 12:15:15 +0800 From: Adrian Hoe User-Agent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:0.9.4.1) Gecko/20020518 Netscape6/6.2.3 X-Accept-Language: en-us MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: gcc/gnat 3.3 References: <3f8fff8b$1_1@news.tm.net.my> <3f98ec41_1@news.tm.net.my> <3f9ded55$1_2@news.tm.net.my> <3f9e8c01$1_2@news.tm.net.my> <_MDnb.37361$mZ5.190069@attbi_s54> <3fa348e4$1_1@news.tm.net.my> <3FA621A2.8020205@nowhere.com> <3FA9D6D1.9050803@nowhere.com> <3FA9DA39.3090607@nowhere.com> <3FA9EF9E.7040301@nowhere.com> <3FAA2DD5.5040503@nowhere.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 219.95.190.26 X-Original-NNTP-Posting-Host: 219.95.190.26 X-Trace: news.tm.net.my 1068178695 219.95.190.26 (7 Nov 2003 12:18:15 +0800) Organization: TMnet Malaysia Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!nntp.abs.net!ash.uu.net!news1.tm.net.my Xref: archiver1.google.com comp.lang.ada:2183 Date: 2003-11-07T12:15:15+08:00 List-Id: Andreas Almroth wrote: > Adrian Hoe wrote: > >> >> Yes! I have successfully built gcc-3.3.2. I tried to compile one of my >> Ada program and it works. Now, my Ada program is statically linked and >> the binary file is large. How do I make a dynamic link? >> > > in the objdir/gcc directory; > gmake gnatlib-shared > > Have a look in the Makefile and you will see lots of gnat related stuff... > > /Andreas > When I tried to run a simple tasking program, I got "Segmentation Fault (code dumped)". Could gcc not build properly? I believe the threading was not build properly. Or did I miss some parameters? I followed: ../gcc-3.3.2/configure --enable-languages=c,ada --enable-threads --enable-multilib --disable-nls cd ../gcc-3.3.2/gcc/ada touch treeprs.ads [es]info.h nmake.ad[bs] Simple tasking source: with Ada.Text_Io; use Ada.Text_Io; procedure Welcome is task Hello; task body Hello is begin Put_Line ("Hello."); end Hello; task World; task body World is begin Put_Line ("World!"); end World; begin Put_Line ("Welcome!"); end Welcome; -- Adrian Hoe m a i l b o x AT a d r i a n h o e . c o m