public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "iains at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/112863] [14 regression] Many obj-c++ tests FAIL on macOS 14 Date: Thu, 25 Jan 2024 14:27:01 +0000 [thread overview] Message-ID: <bug-112863-4-isH4fpZTqG@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-112863-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112863 --- Comment #5 from Iain Sandoe <iains at gcc dot gnu.org> --- (In reply to Rainer Orth from comment #4) > On macOS 11, everything is still fine. On macOS 14, there's progress: > The remaining failures fall into two categories: > > FAIL: obj-c++.dg/encode-10.mm -fgnu-runtime (test for excess errors) > FAIL: obj-c++.dg/encode-9.mm -fgnu-runtime (test for excess errors) > FAIL: obj-c++.dg/encode-10.mm -fnext-runtime (test for excess errors) > FAIL: obj-c++.dg/encode-9.mm -fnext-runtime (test for excess errors) > > Those are all instances of > > Excess errors: > ld: warning: ignoring duplicate libraries: '-lobjc-gnu' > > or > > ld: warning: ignoring duplicate libraries: '-lobjc' These are caused by the actual test adding -lobjc to the dg options (an easy fix)... > FAIL: obj-c++.dg/torture/strings/const-cfstring-3.mm -O0 -fnext-runtime > -Wno-objc-root-class (test for excess errors) ^ This is actually grouped with the execution fails, the underlying cause is the same. > The remaining ones are all execution errors with -fnext-runtime. E.g. > obj-c++.dg/basic.mm SEGVs like > > thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS > (code=1, address=0x20) > frame #0: 0x00007ff819069f58 libobjc.A.dylib`readClass(objc_class*, > bool, bool) + 35 > libobjc.A.dylib`readClass: These appear to be caused by the compiler deciding that it's OK to bump the alignment of constants that are TU-local to values > ABI alignment. Unfortunately, although they _are_ TU-local, they also appear in named sections - and it seems that the new linker has expectations that things in those sections have ABI alignment. I am testing two fixes (one for CFStrings and one for Objective-C meta-data) but because of that these need wide testing on Darwin to make sure that they do not break earlier linkers.... It's possible that I could alter the binds local test to exclude objc. metadata, but I'd prefer not to fiddle with that routine in stage 4... since fallout is highly likely.
next prev parent reply other threads:[~2024-01-25 14:27 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-12-05 12:51 [Bug target/112863] New: [14 regression] Many obj-c++ tests FAIL on macOS 12+ ro at gcc dot gnu.org 2023-12-05 12:52 ` [Bug target/112863] " ro at gcc dot gnu.org 2024-01-16 17:06 ` iains at gcc dot gnu.org 2024-01-17 10:21 ` ro at CeBiTec dot Uni-Bielefeld.DE 2024-01-24 8:18 ` [Bug target/112863] [14 regression] Many obj-c++ tests FAIL on macOS 14 iains at gcc dot gnu.org 2024-01-24 14:54 ` ro at gcc dot gnu.org 2024-01-25 14:27 ` iains at gcc dot gnu.org [this message] 2024-01-28 15:17 ` iains at gcc dot gnu.org 2024-02-02 9:01 ` cvs-commit at gcc dot gnu.org 2024-02-02 9:04 ` iains at gcc dot gnu.org 2024-02-10 15:23 ` [Bug target/112863] " iains at gcc dot gnu.org 2024-05-07 7:42 ` rguenth at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-112863-4-isH4fpZTqG@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).