From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-74-118.ec2.internal X-Spam-Level: * X-Spam-Status: No, score=1.1 required=3.0 tests=BAYES_00,FROM_SUSPICIOUS_NTLD, FROM_SUSPICIOUS_NTLD_FP,PDS_OTHER_BAD_TLD autolearn=no autolearn_force=no version=3.4.6 Path: eternal-september.org!reader02.eternal-september.org!aioe.org!tmr9BI+uueYJMT3TC5a5oA.user.46.165.242.75.POSTED!not-for-mail From: Fernando Oleo Blanco Newsgroups: comp.lang.ada Subject: Re: Help: Ada in NetBSD Date: Sun, 29 Aug 2021 20:08:27 +0200 Organization: Aioe.org NNTP Server Message-ID: References: <16242b6e-cfb6-4fb1-8f7f-566469de446an@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: gioia.aioe.org; logging-data="16738"; posting-host="tmr9BI+uueYJMT3TC5a5oA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org"; User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.0.3 Content-Language: en-US X-Notice: Filtered by postfilter v. 0.9.2 Xref: reader02.eternal-september.org comp.lang.ada:62575 List-Id: On 29.08.21 15:19, Stephane Carrez wrote: > Hi! > > On NetBSD there are several symbols that are replaced by the virtue of including a C header. > If you include correctly the C header, the correct symbol is used and you don't get the linker warning. That is what I did by adding the indicated header files to the NetBSD section of the init.c file. No other systems have them there (or anywhere in some cases). I expected that to fix the issue, but it did not. > For gettimeofday the symbol is replaced by __gettimeofday50. > These symbols are marked with __RENAME(XXX) macros in the C headers. I saw a few of those... So that is what they do... I never got to the bottom of that rabbit hole. > I would suggest to have a look at the .o files to find out the one that has the `gettimeofday` symbol that is not replaced. I am doing it right now, lets see what I can find... However, as I said, the headers should have been already included. The linker does not complain during the compilation of gcc. Only when I try to build things with the newly created toolchain. Maybe that is a clue... > By the way, I'm intertested by your work as I'm still stuck on gcc 6 for my NetBSD machines. > 20 years ago I wrote the 68HC11 port that was integrated in GCC 3.3 so I have some past experience in working with GCC. > Despite my very limited spare time, I could have a look if you provide me the sources of your port :-) I am working directly on pkgsrc/wip. This way I hope to be able to upstream everything as quickly as possible. Jay Patelani already uploaded the patches from the initial blog post. You can find them here: https://github.com/NetBSD/pkgsrc-wip/tree/c550eafe889691af212379590974944e1359e180/gcc10_aux It is basically the gcc10 entry with the patch-ada* file in patches and Ada added to the USE_LANGUAGES variable (is has to be hardcoded, it cannot be set via options). It is not a clean snapshot, some dirty files were pulled, but it should work as first order approximation. The previous email contains some extra patches (though you would have to update the distinfo file manually). I was lucky that the pkgsrc got changed a few months back to make gcc6-aux the default, instead of gcc5-aux. I will ask you to take a look if I need to. However, this is "my personal project" I want to do this myself, so for the time being, no need for that :) I would like to see Ada running on as many systems and package managers as possible ;) P.S: I am yet to try your AWA, I am looking forwards to it. Regards, -- Fernando Oleo Blanco https://irvise.xyz