Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

XCode 14 and FSF gnat-12.1.0-1

111 views
Skip to first unread message

Bill Findlay

unread,
Sep 14, 2022, 6:35:33 PM9/14/22
to
I made the mistake of installing XCode 14 today,
at Apple's prompting and it completely broke the
exception handling in variouscomponents of my KDF9
emulation software.

I was able to get back to the previous release of XCode
from a backup, and things seem to be OK again.

At any rate, the regression tests are not failing any more.

I am using FSF gnat-12.1.0-1, and it seems that there
is now a gnat-12.1.0-2 release, but I do not see
anything there that is relevant to my problem.

Any insight anyone?
Why would an updated XCode have such a drastic effect?

--
Bill Findlay


Simon Wright

unread,
Sep 16, 2022, 10:37:17 AM9/16/22
to
If there's any C++ about, the troubles I had with GNT-LLVM[1] might
relate?

[1] https://forward-in-code.blogspot.com/2022/03/gnat-llvm.html

Simon Wright

unread,
Sep 16, 2022, 10:49:09 AM9/16/22
to
Well, I just tried, and it was different for me: both on Intel and Apple
silicon any attempt to compile (or use git ...) failed dismally
somewhere in Xcode. On Apple silicon, I thought it was a failed update
so deleted Xcode and installed the command line tools, OK. Now, on
Intel, going to move Xcode out of the way ... and building with the
CLTs (version 14.0.0.0.1.1661618636) works fine.

Bill Findlay

unread,
Sep 16, 2022, 11:48:48 AM9/16/22
to
On 16 Sep 2022, Simon Wright wrote
(in article <lybkrfm...@pushface.org>):
C++ does not darken my doors. 8-)

--
Bill Findlay

Bill Findlay

unread,
Sep 16, 2022, 11:56:12 AM9/16/22
to
On 16 Sep 2022, Simon Wright wrote
(in article <ly7d23m...@pushface.org>):
Thanks for getting on this, Simon.

I have now deleted even the older XCode and things continue OK,
now withgnat-12.1.0-2.

How can I find out the version number of the CLTs?

--
Bill Findlay


Bill Findlay

unread,
Sep 16, 2022, 12:46:50 PM9/16/22
to
On 16 Sep 2022, Bill Findlay wrote
(in article<0001HW.28D4D41700...@news.individual.net>):
Well, I spoke too soon.
Sometime between last night and this morning it reverted to non-working!

Same problem: compiled programs collapse when an exception is raised.

I have deleted and re-installed the CLTs using xcode-select, but no joy.
Snookered!

--
Bill Findlay

Simon Wright

unread,
Sep 16, 2022, 3:03:45 PM9/16/22
to
Bill Findlay <findl...@blueyonder.co.uk> writes:

> How can I find out the version number of the CLTs?

$ pkgutil --pkg-info=com.apple.pkg.CLTools_Executables

(on older OSs there are different forms)

Bill Findlay

unread,
Sep 16, 2022, 3:46:16 PM9/16/22
to
On 16 Sep 2022, Simon Wright wrote
(in article <ly35crm...@pushface.org>):

> pkgutil --pkg-info=com.apple.pkg.CLTools_Executables

Thanks, version 14.0.0.0.1.1661618636 is what I have.

I got back to sanity by restoring
/Library/Developer/CommandLineTools/usr/bin
from a backup.

The (working) tools in there are over a year old.
I wonder what Apple did to bork them with XCode 14.

--
Bill Findlay


Simon Wright

unread,
Sep 17, 2022, 9:21:31 AM9/17/22
to
Bill Findlay <findl...@blueyonder.co.uk> writes:

> Well, I spoke too soon.
> Sometime between last night and this morning it reverted to non-working!
>
> Same problem: compiled programs collapse when an exception is raised.
>
> I have deleted and re-installed the CLTs using xcode-select, but no joy.
> Snookered!

Just re-ran ACATS 4.1Y - abandoned after this:

Running chapter c2 ...
FAIL: c250002
Running chapter c3 ...
FAIL: c324006
FAIL: c34007j
FAIL: c380003
FAIL: c390002
Running chapter c4 ...
FAIL: c415001
FAIL: c43206a
FAIL: c45304a
FAIL: c45504a
FAIL: c45632a
FAIL: c46014a
FAIL: c48006b
Running chapter c5 ...

and this in the log

RUN c43206a

,.,. C43206A ACATS 4.1Y 22-09-16 20:29:49
---- C43206A CHECK THAT THE BOUNDS OF A NULL ARRAY ARE DETERMINED BY THE
BOUNDS SPECIFIED BY THE CHOICES.
libunwind: _Unwind_GetDataRelBase - _Unwind_GetDataRelBase() not implemented
libunwind: _Unwind_GetDataRelBase - _Unwind_GetDataRelBase() not implemented
libunwind: _Unwind_GetDataRelBase - _Unwind_GetDataRelBase() not implemented
libunwind: _Unwind_GetDataRelBase - _Unwind_GetDataRelBase() not implemented
libunwind: _Unwind_GetDataRelBase - _Unwind_GetDataRelBase() not implemented
libunwind: _Unwind_GetDataRelBase - _Unwind_GetDataRelBase() not implemented
...

so it seems there is an unwinding problem.

Simon Wright

unread,
Sep 22, 2022, 3:39:37 AM9/22/22
to
Simon Wright <si...@pushface.org> writes:

> Well, I just tried, and it was different for me: both on Intel and
> Apple silicon any attempt to compile (or use git ...) failed dismally
> somewhere in Xcode.

Turns out you have to actually *run* the new Xcode (and make the default
choice of components) for it to install its version of the CLTs,
including git.

Bill Findlay

unread,
Sep 22, 2022, 12:20:57 PM9/22/22
to
On 22 Sep 2022, Simon Wright wrote
(in article <lybkr7s...@pushface.org>):
So, having run XCode, do you get the exception failure with the new CLTs?

--
Bill Findlay

Simon Wright

unread,
Sep 22, 2022, 4:02:14 PM9/22/22
to
Short answer: yes, fraid so.

Looks as though 14.1 is going to have the same problem (given that the
beta has). But we might be lucky.

(/Library/Developer/CommandLineTools contains a subset of the equivalent
/Applications/Xcode.app)

Bill Findlay

unread,
Sep 23, 2022, 11:04:42 AM9/23/22
to
On 22 Sep 2022, Simon Wright wrote
(in article <ly5yhf1...@pushface.org>):
Thanks for the info, Simon.

--
Bill Findlay

0 new messages