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=unavailable autolearn_force=no version=3.4.4 X-Received: by 2002:a5e:9e43:: with SMTP id j3mr11997148ioq.6.1544528762616; Tue, 11 Dec 2018 03:46:02 -0800 (PST) X-Received: by 2002:aca:5395:: with SMTP id h143mr32697oib.6.1544528762368; Tue, 11 Dec 2018 03:46:02 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.166.216.MISMATCH!q69no104877itb.0!news-out.google.com!v141ni63ita.0!nntp.google.com!k10no104114itk.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 11 Dec 2018 03:46:02 -0800 (PST) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=80.216.63.238; posting-account=89rtOwoAAACwfw13aLCkK5t6_il6M4EY NNTP-Posting-Host: 80.216.63.238 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <6bee0ed3-c298-45c9-81b0-92cc90a1f2c6@googlegroups.com> Subject: Licensing Paranoia and Manual Compilation Issues From: alexander@xn--junivrs-e1a.com Injection-Date: Tue, 11 Dec 2018 11:46:02 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader01.eternal-september.org comp.lang.ada:55013 Date: 2018-12-11T03:46:02-08:00 List-Id: I've read some threads on here regarding the licensing situation of AdaCore= 's Libre compiler. For my upcoming project, I'm going to need (=3D very str= ong desire) to use Ada and I'm also going to need to be able to license the= executable produced thereof in any way I desire. In regards to the aforementioned, I have two questions. I realize I come fo= rth as somewhat paranoid in the upcoming paragraphs (which undoubtedly I am= ). The licensing situation worries me a great deal. 1. ```As for the compiler build provided by (the GetAdaNow Mac OS X section= 's link to Sourceforge)[1]; which parts of that GCC build for compiling Ada= can you safely use and still be covered by the "GCC Runtime Library Except= ion"? I can see it states you can use `GNATCOLL` and `XMLAda`. I'm assuming= the standard library is included as well. Can you on the other hand use al= l console commands? `gnat `? `gprbuild`? Or would these inject "no= n-runtime library exception'd" GPL code into the executable?``` 2. ```I've been attempting to compile and link some code through the use of= the `gcc` command solely, but haven't been successful in doing so. I have,= on the other hand, been able to successfully generate an executable by uti= lizing the `gnatbind` and `gnatlink` commands consecutively after compiling= with `gcc -c `. Is it possible to use only the `gcc` command for the= matter, or do you need to also throw in a few calls to the `gnat` commands= ? When executing the following commands... $ gcc -c src/main.adb -o obj/main.o $ gcc -o main obj/main.o I wind up with the following error (on the second command, which should be = a GCC link): Undefined symbols for architecture x86_64: "_main", referenced from: implicit entry/start for main executable (maybe you meant: __ada_main) ld: symbol(s) not found for architecture x86_64 collect2: error: ld returned 1 exit status A similar error occurs when I attempt to create `.so` libraries manually us= ing the `-shared` compiler switch. With all that being said, is it simply n= ot possible to do these things through solely `gcc`, or am I missing someth= ing?``` It may be worth noticing that I've fallen in love with Ada to the utmost de= gree over the past year. As such, I'm planning on, at the very least, stalk= ing "comp.lang.ada" like some creepy figure. You'll probably see more from = me beyond these first two questions, is what I'm saying. [1] https://sourceforge.net/projects/gnuada/files/GNAT_GCC%20Mac%20OS%20X/8= .1.0/native-2017/