Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Fundamentally, there may be no basis for anything.


devel / comp.lang.ada / Re: components_4_64 python Test_Class Build Fails

SubjectAuthor
* components_4_64 python Test_Class Build FailsRoger Mc
`* Re: components_4_64 python Test_Class Build FailsSimon Wright
 `* Re: components_4_64 python Test_Class Build FailsDmitry A. Kazakov
  `* Re: components_4_64 python Test_Class Build FailsSimon Wright
   `- Re: components_4_64 python Test_Class Build FailsDmitry A. Kazakov

1
components_4_64 python Test_Class Build Fails

<2038635c-fdb0-4ca4-9dd8-6d7f9cfa6dd1n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=8934&group=comp.lang.ada#8934

  copy link   Newsgroups: comp.lang.ada
X-Received: by 2002:a37:6453:0:b0:6ec:5fb8:a882 with SMTP id y80-20020a376453000000b006ec5fb8a882mr11411007qkb.612.1666312742403;
Thu, 20 Oct 2022 17:39:02 -0700 (PDT)
X-Received: by 2002:a05:6214:1cc2:b0:4af:891b:4e75 with SMTP id
g2-20020a0562141cc200b004af891b4e75mr13737437qvd.30.1666312742261; Thu, 20
Oct 2022 17:39:02 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.ada
Date: Thu, 20 Oct 2022 17:39:01 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=203.214.47.204; posting-account=d51RWwoAAADvR-x0zYAtT9z3CRxT1eXo
NNTP-Posting-Host: 203.214.47.204
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <2038635c-fdb0-4ca4-9dd8-6d7f9cfa6dd1n@googlegroups.com>
Subject: components_4_64 python Test_Class Build Fails
From: rogermcm2@gmail.com (Roger Mc)
Injection-Date: Fri, 21 Oct 2022 00:39:02 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1624
 by: Roger Mc - Fri, 21 Oct 2022 00:39 UTC

Mac OSX Monterey
Trying to build Test_Class fails with
/System/Volumes/Data/Ada_Source/components_4_64/python-examples/class/test_class
dyld[89915]: Library not loaded: '/Library/Frameworks/Python.framework/Versions/3.8/Python'
Referenced from: '/System/Volumes/Data/Ada_Source/components_4_64/python-examples/class/test_class'
Reason: tried: '/Library/Frameworks/Python.framework/Versions/3.8/Python' (no such file), '/System/Library/Frameworks/Python.framework/Versions/3.8/Python' (no such file)

I have set the gpr Linker item to
-F/usr/local/Cellar/python@3.10/3.10.5/Frameworks
but this does not fix th problem

Re: components_4_64 python Test_Class Build Fails

<ly7d0tp195.fsf@pushface.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=8942&group=comp.lang.ada#8942

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!aioe.org!Yr2L9qaRshuL+yFKTxsDBA.user.46.165.242.75.POSTED!not-for-mail
From: simon@pushface.org (Simon Wright)
Newsgroups: comp.lang.ada
Subject: Re: components_4_64 python Test_Class Build Fails
Date: Fri, 21 Oct 2022 17:52:54 +0100
Organization: Aioe.org NNTP Server
Message-ID: <ly7d0tp195.fsf@pushface.org>
References: <2038635c-fdb0-4ca4-9dd8-6d7f9cfa6dd1n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: gioia.aioe.org; logging-data="46716"; posting-host="Yr2L9qaRshuL+yFKTxsDBA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (darwin)
X-Notice: Filtered by postfilter v. 0.9.2
Cancel-Lock: sha1:F+QOBtyjKukRGalXG/4HzniDnjs=
 by: Simon Wright - Fri, 21 Oct 2022 16:52 UTC

Roger Mc <rogermcm2@gmail.com> writes:

> Mac OSX Monterey
> Trying to build Test_Class fails with
> /System/Volumes/Data/Ada_Source/components_4_64/python-examples/class/test_class
> dyld[89915]: Library not loaded:
> '/Library/Frameworks/Python.framework/Versions/3.8/Python'
> Referenced from:
> '/System/Volumes/Data/Ada_Source/components_4_64/python-examples/class/test_class'
> Reason: tried:
> '/Library/Frameworks/Python.framework/Versions/3.8/Python' (no such
> file),
> '/System/Library/Frameworks/Python.framework/Versions/3.8/Python' (no
> such file)
>
> I have set the gpr Linker item to
> -F/usr/local/Cellar/python@3.10/3.10.5/Frameworks
> but this does not fix th problem

Not sure I've ever seen /System/Volumes/Data at the start of a path
before! would have expected just /Ada_Source.

Which compiler are you using?

I don't know what triggers that message about
/Library/Frameworks/Python.framework/Versions/3.8/Python,
you'd need to be running a fairly old compiler - if it's one of mine
it'd have to be GCC 10.1.0, otherwise it won't look in
/Library/Frameworks at all.

If your homebrew setup is like mine, you could just say
-F/usr/local/Frameworks, but you have to say _which_ framework, i.e.
-framework python (or maybe -framework Python, probably better).

I built this using GNATstudio, GCC 12.1.0, x86_64 Monterey 12.6,
Atomic_Access auto,
Development Debug,
Legacy Ada2012,
Object_Dir nested,
Target_OS OSX,
Tasking Multiple,
Traced_Objects Off,
arch x86_64

and it linked without issue. Didn't run,
Error: raised ADA.IO_EXCEPTIONS.USE_ERROR : Failed to load Python DLL "libpython3.so"

Re: components_4_64 python Test_Class Build Fails

<tiup1n$hs6$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=8945&group=comp.lang.ada#8945

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!aioe.org!lYnhq7byp2KtY/MFJZaCTw.user.46.165.242.91.POSTED!not-for-mail
From: mailbox@dmitry-kazakov.de (Dmitry A. Kazakov)
Newsgroups: comp.lang.ada
Subject: Re: components_4_64 python Test_Class Build Fails
Date: Fri, 21 Oct 2022 20:39:53 +0200
Organization: Aioe.org NNTP Server
Message-ID: <tiup1n$hs6$1@gioia.aioe.org>
References: <2038635c-fdb0-4ca4-9dd8-6d7f9cfa6dd1n@googlegroups.com>
<ly7d0tp195.fsf@pushface.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="18310"; posting-host="lYnhq7byp2KtY/MFJZaCTw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.13.1
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-US
 by: Dmitry A. Kazakov - Fri, 21 Oct 2022 18:39 UTC

On 2022-10-21 18:52, Simon Wright wrote:
> Roger Mc <rogermcm2@gmail.com> writes:
>
>> Mac OSX Monterey
>> Trying to build Test_Class fails with
>> /System/Volumes/Data/Ada_Source/components_4_64/python-examples/class/test_class
>> dyld[89915]: Library not loaded:
>> '/Library/Frameworks/Python.framework/Versions/3.8/Python'
>> Referenced from:
>> '/System/Volumes/Data/Ada_Source/components_4_64/python-examples/class/test_class'
>> Reason: tried:
>> '/Library/Frameworks/Python.framework/Versions/3.8/Python' (no such
>> file),
>> '/System/Library/Frameworks/Python.framework/Versions/3.8/Python' (no
>> such file)
>>
>> I have set the gpr Linker item to
>> -F/usr/local/Cellar/python@3.10/3.10.5/Frameworks
>> but this does not fix th problem
>
> Not sure I've ever seen /System/Volumes/Data at the start of a path
> before! would have expected just /Ada_Source.
>
> Which compiler are you using?
>
> I don't know what triggers that message about
> /Library/Frameworks/Python.framework/Versions/3.8/Python,
> you'd need to be running a fairly old compiler - if it's one of mine
> it'd have to be GCC 10.1.0, otherwise it won't look in
> /Library/Frameworks at all.
>
> If your homebrew setup is like mine, you could just say
> -F/usr/local/Frameworks, but you have to say _which_ framework, i.e.
> -framework python (or maybe -framework Python, probably better).
>
> I built this using GNATstudio, GCC 12.1.0, x86_64 Monterey 12.6,
> Atomic_Access auto,
> Development Debug,
> Legacy Ada2012,
> Object_Dir nested,
> Target_OS OSX,
> Tasking Multiple,
> Traced_Objects Off,
> arch x86_64
>
> and it linked without issue. Didn't run,
> Error: raised ADA.IO_EXCEPTIONS.USE_ERROR : Failed to load Python DLL "libpython3.so"

Right, because it is obviously wrong since Python under OSX looks quite
different from Linux. I mindlessly copied Linux implementation. Now I
finally have an opportunity to fix it! (:-))

BTW, what are you "posh guys" (:-)) are going to do with M1/2? Is there
GNAT?

Is there any noticeable differences to X86_64 on the Ada level?
Endianness must be same, correct? Alignment/padding inside C structures
when interfacing to Ada?

--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de

Re: components_4_64 python Test_Class Build Fails

<lytu3xne61.fsf@pushface.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=8948&group=comp.lang.ada#8948

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!aioe.org!Yr2L9qaRshuL+yFKTxsDBA.user.46.165.242.75.POSTED!not-for-mail
From: simon@pushface.org (Simon Wright)
Newsgroups: comp.lang.ada
Subject: Re: components_4_64 python Test_Class Build Fails
Date: Fri, 21 Oct 2022 20:56:54 +0100
Organization: Aioe.org NNTP Server
Message-ID: <lytu3xne61.fsf@pushface.org>
References: <2038635c-fdb0-4ca4-9dd8-6d7f9cfa6dd1n@googlegroups.com>
<ly7d0tp195.fsf@pushface.org> <tiup1n$hs6$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: gioia.aioe.org; logging-data="23606"; posting-host="Yr2L9qaRshuL+yFKTxsDBA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (darwin)
Cancel-Lock: sha1:MK2LuPPbhOayooWbhNM0AgAAOng=
X-Notice: Filtered by postfilter v. 0.9.2
 by: Simon Wright - Fri, 21 Oct 2022 19:56 UTC

"Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> writes:

> BTW, what are you "posh guys" (:-)) are going to do with M1/2? Is
> there GNAT?
>
> Is there any noticeable differences to X86_64 on the Ada level?
> Endianness must be same, correct? Alignment/padding inside C
> structures when interfacing to Ada?

The Macs with Apple silicon (I don't think there's a difference between
M1 & M2 at our level) support, for an unknown number of future OS
iterations, a feature called Rosetta (2) which effectively does
just-in-time translation of x86_64 binaries to aarch64. This is the same
scheme they had for the Power -> Intel transition.

x86_64 GCCs run just fine on Apple silicon, generating x86_64 binaries;
I just ran the Alire gnatprove on my M1 mac mini and it failed in the
same way as on x86_64 (libgmp not where it was expected).

We have a native aarch64 compiler that generates aarch64 binaries, no
noticable difference* (maybe if you got out a stopwatch ...). The only
trouble is that aarch64 binaries can't use x86_64 shared libraries; the
assembler, linker and libraries that Apple provides are
dual-architecture, and some external providers provide the same or offer
the choice at download time.

* a couple of ACATS tests designed to check Storage_Error failed on M1 -
I don't remember how.

Re: components_4_64 python Test_Class Build Fails

<tiuuin$15aa$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=8950&group=comp.lang.ada#8950

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!aioe.org!lYnhq7byp2KtY/MFJZaCTw.user.46.165.242.91.POSTED!not-for-mail
From: mailbox@dmitry-kazakov.de (Dmitry A. Kazakov)
Newsgroups: comp.lang.ada
Subject: Re: components_4_64 python Test_Class Build Fails
Date: Fri, 21 Oct 2022 22:14:17 +0200
Organization: Aioe.org NNTP Server
Message-ID: <tiuuin$15aa$1@gioia.aioe.org>
References: <2038635c-fdb0-4ca4-9dd8-6d7f9cfa6dd1n@googlegroups.com>
<ly7d0tp195.fsf@pushface.org> <tiup1n$hs6$1@gioia.aioe.org>
<lytu3xne61.fsf@pushface.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="38218"; posting-host="lYnhq7byp2KtY/MFJZaCTw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.13.1
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-US
 by: Dmitry A. Kazakov - Fri, 21 Oct 2022 20:14 UTC

On 2022-10-21 21:56, Simon Wright wrote:
> "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> writes:
>
>> BTW, what are you "posh guys" (:-)) are going to do with M1/2? Is
>> there GNAT?
>>
>> Is there any noticeable differences to X86_64 on the Ada level?
>> Endianness must be same, correct? Alignment/padding inside C
>> structures when interfacing to Ada?
>
> The Macs with Apple silicon (I don't think there's a difference between
> M1 & M2 at our level) support, for an unknown number of future OS
> iterations, a feature called Rosetta (2) which effectively does
> just-in-time translation of x86_64 binaries to aarch64. This is the same
> scheme they had for the Power -> Intel transition.

I see, the DEC Alpha's idea. Nice.

> x86_64 GCCs run just fine on Apple silicon, generating x86_64 binaries;
> I just ran the Alire gnatprove on my M1 mac mini and it failed in the
> same way as on x86_64 (libgmp not where it was expected).
>
> We have a native aarch64 compiler that generates aarch64 binaries, no
> noticable difference* (maybe if you got out a stopwatch ...). The only
> trouble is that aarch64 binaries can't use x86_64 shared libraries; the
> assembler, linker and libraries that Apple provides are
> dual-architecture, and some external providers provide the same or offer
> the choice at download time.

OK, this is same as under Windows. You cannot link against 32-bit DLLs,
you can load them as data only.

> * a couple of ACATS tests designed to check Storage_Error failed on M1 -
> I don't remember how.

Well, the stack frames must be different on aarch64 and X86_64. I never
used aarch64, only armhf. The later is quite a mess. Nothing concrete,
just a feeling that the thing promptly crumples under stress load and
generates Storage_Error just for the sake of saying something on system
trap. Stack backtrace is a permanent fight etc.

--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de


devel / comp.lang.ada / Re: components_4_64 python Test_Class Build Fails

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor