public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug testsuite/109951] New: [14 Regression] libgomp, testsuite: non-native multilib c++ tests fail on Darwin.
@ 2023-05-24  7:23 iains at gcc dot gnu.org
  2023-05-24  7:25 ` [Bug testsuite/109951] " iains at gcc dot gnu.org
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: iains at gcc dot gnu.org @ 2023-05-24  7:23 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109951

            Bug ID: 109951
           Summary: [14 Regression] libgomp, testsuite: non-native
                    multilib c++ tests fail on Darwin.
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: testsuite
          Assignee: unassigned at gcc dot gnu.org
          Reporter: iains at gcc dot gnu.org
  Target Milestone: ---

Tests that include C++ are now failing on Darwin platforms with a non-native
multilib  [both x86_64 and i686 hosts].  The tests pass for native and fail for
the non-native.

The fail is that the linker is rejecting the supplied libstdc++.dylib because
it is the wrong architecture.

From the debugging I have been able to do, the reason is that we are now using
"GXX_UNDER_TEST" which seems to hardwire all the flags and library paths for
the _native_ multi-lib.  Although we subsequently append paths for the
multilib-under-test, these are coming _after_ the native ones. 

e.g (trying to test x86_64 multilib on i686):

/scratch/10-5-leo/gcc-master/./gcc/xg++ 
-B/scratch/10-5-leo/gcc-master/./gcc/ 
-nostdinc++ 
-nostdinc++ 
-I/scratch/10-5-leo/gcc-master/i686-apple-darwin9/x86_64/libstdc++-v3/include/i686-apple-darwin9 
-I/scratch/10-5-leo/gcc-master/i686-apple-darwin9/x86_64/libstdc++-v3/include 
-I/src-local/gcc-master/libstdc++-v3/libsupc++
-I/src-local/gcc-master/libstdc++-v3/include/backward
-I/src-local/gcc-master/libstdc++-v3/testsuite/util
-L/scratch/10-5-leo/gcc-master/i686-apple-darwin9/libstdc++-v3/src
-L/scratch/10-5-leo/gcc-master/i686-apple-darwin9/libstdc++-v3/src/.libs
-L/scratch/10-5-leo/gcc-master/i686-apple-darwin9/libstdc++-v3/libsupc++/.libs

^^^^ native includes and libs (embedded in GCC_UNDER_TEST)

-B/opt/iains/i686-apple-darwin9/gcc-14-0-0p/i686-apple-darwin9/bin/
-B/opt/iains/i686-apple-darwin9/gcc-14-0-0p/i686-apple-darwin9/lib/
-isystem /opt/iains/i686-apple-darwin9/gcc-14-0-0p/i686-apple-darwin9/include
-isystem
/opt/iains/i686-apple-darwin9/gcc-14-0-0p/i686-apple-darwin9/sys-include
-fchecking=1 exceptions_enabled2364.cc
-m64
-B/scratch/10-5-leo/gcc-master/i686-apple-darwin9/x86_64/libgomp/
-B/scratch/10-5-leo/gcc-master/i686-apple-darwin9/x86_64/libgomp/.libs 
-I/scratch/10-5-leo/gcc-master/i686-apple-darwin9/x86_64/libgomp

^^^ correct multilib includes and libs (I think these are added by the libgomp
stuff)

-I/src-local/gcc-master/libgomp/testsuite/../../include
-I/src-local/gcc-master/libgomp/testsuite/..
-shared-libgcc 
-fmessage-length=0
-fno-diagnostics-show-caret
-fdiagnostics-color=never
-fopenmp -Wno-complain-wrong-lang -S -o exceptions_enabled2364.s

====

Presumably, this works on Linux because the BFD linker ignores the first
library because it is incompatible and then carries on to find the second. 
Darwin's linker is more picky and does not try to look in other paths once it
finds a correctly-named lib (it presumes pilot error and complains).

** NOTE: ISTM that all platforms are still presented with the wrong include
paths first .. not sure what effect that would have.

I am having some trouble pin-pointing the exact rev because Darwin bootstrap is
broken around the likely commits.

(my guess is r14-853-g982c869ec00c72, but cannot confirm).

^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Bug testsuite/109951] [14 Regression] libgomp, testsuite: non-native multilib c++ tests fail on Darwin.
  2023-05-24  7:23 [Bug testsuite/109951] New: [14 Regression] libgomp, testsuite: non-native multilib c++ tests fail on Darwin iains at gcc dot gnu.org
@ 2023-05-24  7:25 ` iains at gcc dot gnu.org
  2023-05-24 10:39 ` iains at gcc dot gnu.org
                   ` (14 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: iains at gcc dot gnu.org @ 2023-05-24  7:25 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109951

Iain Sandoe <iains at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Build|                            |*-*-darwin*
           Keywords|                            |testsuite-fail
               Host|                            |*-*-darwin*
             Target|                            |*-*-darwin*
                 CC|                            |tschwinge at gcc dot gnu.org

--- Comment #1 from Iain Sandoe <iains at gcc dot gnu.org> ---
s/GCC_UNDER_TEST/GXX_UNDER_TEST/ in the initial post.

^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Bug testsuite/109951] [14 Regression] libgomp, testsuite: non-native multilib c++ tests fail on Darwin.
  2023-05-24  7:23 [Bug testsuite/109951] New: [14 Regression] libgomp, testsuite: non-native multilib c++ tests fail on Darwin iains at gcc dot gnu.org
  2023-05-24  7:25 ` [Bug testsuite/109951] " iains at gcc dot gnu.org
@ 2023-05-24 10:39 ` iains at gcc dot gnu.org
  2023-05-25  7:38 ` rguenth at gcc dot gnu.org
                   ` (13 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: iains at gcc dot gnu.org @ 2023-05-24 10:39 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109951

--- Comment #2 from Iain Sandoe <iains at gcc dot gnu.org> ---
OK so the best bracket I've been able to get without doing surgery to make a
branch with a back port for the bootstrap break;

r14-803-g20ca33db817cec OK
r14-857-g30adfb85ff994c NOT OK,

My analysis could well also be flawed:
 * perhaps the bug is actually that GXX_UNDER_TEST should not contain
multi-lib-specific paths.
 * also maybe the include paths are not problematical - the issue might be
limited to the -L ones.

^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Bug testsuite/109951] [14 Regression] libgomp, testsuite: non-native multilib c++ tests fail on Darwin.
  2023-05-24  7:23 [Bug testsuite/109951] New: [14 Regression] libgomp, testsuite: non-native multilib c++ tests fail on Darwin iains at gcc dot gnu.org
  2023-05-24  7:25 ` [Bug testsuite/109951] " iains at gcc dot gnu.org
  2023-05-24 10:39 ` iains at gcc dot gnu.org
@ 2023-05-25  7:38 ` rguenth at gcc dot gnu.org
  2023-05-25 22:04 ` tschwinge at gcc dot gnu.org
                   ` (12 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-05-25  7:38 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109951

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|unknown                     |14.0
   Target Milestone|---                         |14.0

^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Bug testsuite/109951] [14 Regression] libgomp, testsuite: non-native multilib c++ tests fail on Darwin.
  2023-05-24  7:23 [Bug testsuite/109951] New: [14 Regression] libgomp, testsuite: non-native multilib c++ tests fail on Darwin iains at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2023-05-25  7:38 ` rguenth at gcc dot gnu.org
@ 2023-05-25 22:04 ` tschwinge at gcc dot gnu.org
  2023-05-25 23:12 ` iains at gcc dot gnu.org
                   ` (11 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: tschwinge at gcc dot gnu.org @ 2023-05-25 22:04 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109951

Thomas Schwinge <tschwinge at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |macro at orcam dot me.uk
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2023-05-25
     Ever confirmed|0                           |1

--- Comment #3 from Thomas Schwinge <tschwinge at gcc dot gnu.org> ---
Iain, sorry for this; let's track this down.

Looking at your "test x86_64 multilib on i686" case.

First, is my understanding correct, that 'GXX_UNDER_TEST'
'i686-apple-darwin9/libgomp/testsuite/site.exp' does contain the correct
flags/paths for the default ("native", "i686") multilib, but incorrect for the
other ("non-native", "x86_64") multilib?  Conversely, would
'i686-apple-darwin9/x86_64/libgomp/testsuite/site.exp' contain the correct
flags/paths for the other ("non-native", "x86_64") multilib?  (..., but that
latter file is never used, always the former 'site.exp'; similar to my "Indeed
there is some confusion there" comment in
<https://inbox.sourceware.org/87bkivayue.fsf@euler.schwinge.homeip.net> -- but
that one's benign, in contrast to your case).

Second, do you not have similar confusion in 'GCC_UNDER_TEST' and
'GFORTRAN_UNDER_TEST' flags/paths?

(May help me to attach all the relevant 'site.exp' files.)

Third, see Maciej's Subversion r279708 (Git commit
c8e759b4215ba4b376c9d468aeffe163b3d520f0) "libgomp/test: Fix compilation for
build sysroot", followed by Git commit 749bd22ddc50b5112e5ed506ffef7249bf8e6fb3
"libgomp/test: Remove a build sysroot fix regression" (for libgomp, and
similarly other commits for a number of (but not all?) other GCC target
libraries).  This is what started capturing 'CC' for test-time use as
'GCC_UNDER_TEST', and this is what in recent commit
11f4d483600b5788a3d1cf1527e838e4a7ed1455 "libgomp testsuite: As appropriate,
use the 'gcc', 'g++', 'gfortran' driver [PR91884]" I've then extended for
'CXX': 'GXX_UNDER_TEST', 'FC': 'GFORTRAN_UNDER_TEST'.  I however don't
understand yet the original intent of his change; in my understanding, and as
has been the case before, we'd just get 'GCC_UNDER_TEST' etc. populated by
'find_gcc' etc.

^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Bug testsuite/109951] [14 Regression] libgomp, testsuite: non-native multilib c++ tests fail on Darwin.
  2023-05-24  7:23 [Bug testsuite/109951] New: [14 Regression] libgomp, testsuite: non-native multilib c++ tests fail on Darwin iains at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2023-05-25 22:04 ` tschwinge at gcc dot gnu.org
@ 2023-05-25 23:12 ` iains at gcc dot gnu.org
  2023-05-25 23:34 ` iains at gcc dot gnu.org
                   ` (10 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: iains at gcc dot gnu.org @ 2023-05-25 23:12 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109951

--- Comment #4 from Iain Sandoe <iains at gcc dot gnu.org> ---
(In reply to Thomas Schwinge from comment #3)

> Looking at your "test x86_64 multilib on i686" case.

The situation is simply mirrored for an x86_64 host with an i686 non-native
lib.

> First, is my understanding correct, that 'GXX_UNDER_TEST'
> 'i686-apple-darwin9/libgomp/testsuite/site.exp' does contain the correct
> flags/paths for the default ("native", "i686") multilib, but incorrect for
> the other ("non-native", "x86_64") multilib?

Yes, this information is in a section included from "libgomp-site-extra.exp" 

<snip>
## Begin content included from file libgomp-site-extra.exp.  Do not modify. ##
<snip>
set GXX_UNDER_TEST {/scratch/10-5-leo/gcc-master/./gcc/xg++
-B/scratch/10-5-leo/gcc-master/./gcc/ -nostdinc++ -funconfigured-libstdc++-v3
-L/scratch/10-5-leo/gcc-master/i686-apple-darwin9/libstdc++-v3/src
-L/scratch/10-5-leo/gcc-master/i686-apple-darwin9/libstdc++-v3/src/.libs
-L/scratch/10-5-leo/gcc-master/i686-apple-darwin9/libstdc++-v3/libsupc++/.libs
-B/opt/iains/i686-apple-darwin9/gcc-14-0-0p/i686-apple-darwin9/bin/
-B/opt/iains/i686-apple-darwin9/gcc-14-0-0p/i686-apple-darwin9/lib/ -isystem
/opt/iains/i686-apple-darwin9/gcc-14-0-0p/i686-apple-darwin9/include -isystem
/opt/iains/i686-apple-darwin9/gcc-14-0-0p/i686-apple-darwin9/sys-include  
-fchecking=1}

^^^ yes this is correct for the native mlib, and wrong arch for the non-native.

## End content included from file libgomp-site-extra.exp. ##

>  Conversely, would
> 'i686-apple-darwin9/x86_64/libgomp/testsuite/site.exp' contain the correct
> flags/paths for the other ("non-native", "x86_64") multilib?  (..., but that
> latter file is never used, always the former 'site.exp'; similar to my
> "Indeed there is some confusion there" comment in
> <https://inbox.sourceware.org/87bkivayue.fsf@euler.schwinge.homeip.net> --
> but that one's benign, in contrast to your case).

Actually, there is no site.exp in that dir.  There is a
"libgomp-site-extra.exp" which does contain the correct paths.

set GXX_UNDER_TEST {/scratch/10-5-leo/gcc-master/./gcc/xg++
-B/scratch/10-5-leo/gcc-master/./gcc/ -nostdinc++ -funconfigured-libstdc++-v3
-L/scratch/10-5-leo/gcc-master/i686-apple-darwin9/x86_64/libstdc++-v3/src
-L/scratch/10-5-leo/gcc-master/i686-apple-darwin9/x86_64/libstdc++-v3/src/.libs
-L/scratch/10-5-leo/gcc-master/i686-apple-darwin9/x86_64/libstdc++-v3/libsupc++/.libs
-B/opt/iains/i686-apple-darwin9/gcc-14-0-0p/i686-apple-darwin9/bin/
-B/opt/iains/i686-apple-darwin9/gcc-14-0-0p/i686-apple-darwin9/lib/ -isystem
/opt/iains/i686-apple-darwin9/gcc-14-0-0p/i686-apple-darwin9/include -isystem
/opt/iains/i686-apple-darwin9/gcc-14-0-0p/i686-apple-darwin9/sys-include
-fchecking=1  -m64}

^^^ Yes, this looks correct for testing the non-native x86_64 lib.


> Second, do you not have similar confusion in 'GCC_UNDER_TEST' and
> 'GFORTRAN_UNDER_TEST' flags/paths?

No. the confusion does not arise in either of those cases, since they do not
hardwire "-L" paths for the runtime libraries (I guess that they expect those
to be added by the consumer - which [I *think*] libgomp would do correctly).

Of course, there might be some other subtlety - that has just not yet surfaced.

> (May help me to attach all the relevant 'site.exp' files.)

I will sort that out tomorrow (if needed) - I've pasted in the relevant pieces
for the GXX_UNDER_TEST above.

> Third, see Maciej's Subversion r279708 (Git commit
> c8e759b4215ba4b376c9d468aeffe163b3d520f0) "libgomp/test: Fix compilation for
> build sysroot", followed by Git commit
> 749bd22ddc50b5112e5ed506ffef7249bf8e6fb3 "libgomp/test: Remove a build
> sysroot fix regression" (for libgomp, and similarly other commits for a
> number of (but not all?) other GCC target libraries).  This is what started
> capturing 'CC' for test-time use as 'GCC_UNDER_TEST', and this is what in
> recent commit 11f4d483600b5788a3d1cf1527e838e4a7ed1455 "libgomp testsuite:

I do not yet understand any of this ^^ ( hopefully, I will not need to :) )

> As appropriate, use the 'gcc', 'g++', 'gfortran' driver [PR91884]" I've then
> extended for 'CXX': 'GXX_UNDER_TEST', 'FC': 'GFORTRAN_UNDER_TEST'.  I
> however don't understand yet the original intent of his change; in my
> understanding, and as has been the case before, we'd just get
> 'GCC_UNDER_TEST' etc. populated by 'find_gcc' etc.

The principle seems reasonable, the issue is that it's currently not telling
the truth (i.e. it is _not_ the G**_UNDER_TEST) when the testing is in the
non-native multilib,

=====

I am also somewhat puzzled by what conditions I need to take advantage of the
parallel running?
Darwin has /usr/bin/getconf and AFAICT the number of cpus is reported OK both
at runtime and during config, but it seems to be determined to run a single
process.

^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Bug testsuite/109951] [14 Regression] libgomp, testsuite: non-native multilib c++ tests fail on Darwin.
  2023-05-24  7:23 [Bug testsuite/109951] New: [14 Regression] libgomp, testsuite: non-native multilib c++ tests fail on Darwin iains at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2023-05-25 23:12 ` iains at gcc dot gnu.org
@ 2023-05-25 23:34 ` iains at gcc dot gnu.org
  2023-06-01 16:02 ` tschwinge at gcc dot gnu.org
                   ` (9 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: iains at gcc dot gnu.org @ 2023-05-25 23:34 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109951

--- Comment #5 from Iain Sandoe <iains at gcc dot gnu.org> ---
Since AFAICT, there is only one piece of Darwin-specific code in the libgomp
TCL (which adds -shared-libgcc), I would expect the base phenomenon to be the
same on Linux.  What is not obvious there is why it seems to work in that case
(unless it's just Darwin's linker being 'picky').

^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Bug testsuite/109951] [14 Regression] libgomp, testsuite: non-native multilib c++ tests fail on Darwin.
  2023-05-24  7:23 [Bug testsuite/109951] New: [14 Regression] libgomp, testsuite: non-native multilib c++ tests fail on Darwin iains at gcc dot gnu.org
                   ` (5 preceding siblings ...)
  2023-05-25 23:34 ` iains at gcc dot gnu.org
@ 2023-06-01 16:02 ` tschwinge at gcc dot gnu.org
  2023-06-02 10:00 ` tschwinge at gcc dot gnu.org
                   ` (8 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: tschwinge at gcc dot gnu.org @ 2023-06-01 16:02 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109951

Thomas Schwinge <tschwinge at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=91884
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |tschwinge at gcc dot gnu.org

^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Bug testsuite/109951] [14 Regression] libgomp, testsuite: non-native multilib c++ tests fail on Darwin.
  2023-05-24  7:23 [Bug testsuite/109951] New: [14 Regression] libgomp, testsuite: non-native multilib c++ tests fail on Darwin iains at gcc dot gnu.org
                   ` (6 preceding siblings ...)
  2023-06-01 16:02 ` tschwinge at gcc dot gnu.org
@ 2023-06-02 10:00 ` tschwinge at gcc dot gnu.org
  2023-06-02 10:08 ` tschwinge at gcc dot gnu.org
                   ` (7 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: tschwinge at gcc dot gnu.org @ 2023-06-02 10:00 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109951

Thomas Schwinge <tschwinge at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch

--- Comment #6 from Thomas Schwinge <tschwinge at gcc dot gnu.org> ---
<https://inbox.sourceware.org/875y868a4b.fsf@euler.schwinge.homeip.net>
"Consider '--with-build-sysroot=[...]' for target libraries' build-tree testing
(instead of build-time 'CC' etc.) [PR109951]".

^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Bug testsuite/109951] [14 Regression] libgomp, testsuite: non-native multilib c++ tests fail on Darwin.
  2023-05-24  7:23 [Bug testsuite/109951] New: [14 Regression] libgomp, testsuite: non-native multilib c++ tests fail on Darwin iains at gcc dot gnu.org
                   ` (7 preceding siblings ...)
  2023-06-02 10:00 ` tschwinge at gcc dot gnu.org
@ 2023-06-02 10:08 ` tschwinge at gcc dot gnu.org
  2023-06-02 14:31 ` iains at gcc dot gnu.org
                   ` (6 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: tschwinge at gcc dot gnu.org @ 2023-06-02 10:08 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109951

--- Comment #7 from Thomas Schwinge <tschwinge at gcc dot gnu.org> ---
(In reply to Iain Sandoe from comment #4)
> I am also somewhat puzzled by what conditions I need to take advantage of
> the parallel running?
> Darwin has /usr/bin/getconf and AFAICT the number of cpus is reported OK
> both at runtime and during config, but it seems to be determined to run a
> single process.

Answered in <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66005#c18> -- sorry,
forgot to put you in CC.

^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Bug testsuite/109951] [14 Regression] libgomp, testsuite: non-native multilib c++ tests fail on Darwin.
  2023-05-24  7:23 [Bug testsuite/109951] New: [14 Regression] libgomp, testsuite: non-native multilib c++ tests fail on Darwin iains at gcc dot gnu.org
                   ` (8 preceding siblings ...)
  2023-06-02 10:08 ` tschwinge at gcc dot gnu.org
@ 2023-06-02 14:31 ` iains at gcc dot gnu.org
  2023-09-12  9:32 ` cvs-commit at gcc dot gnu.org
                   ` (5 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: iains at gcc dot gnu.org @ 2023-06-02 14:31 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109951

--- Comment #8 from Iain Sandoe <iains at gcc dot gnu.org> ---
(In reply to Thomas Schwinge from comment #6)
> <https://inbox.sourceware.org/875y868a4b.fsf@euler.schwinge.homeip.net>
> "Consider '--with-build-sysroot=[...]' for target libraries' build-tree
> testing (instead of build-time 'CC' etc.) [PR109951]".

this fixes the problem for me;  I tried both a 64b host with a 32b multilib and
vice versa. (smoke tested a couple more test suites, including Ada, with no
apparent issues)

However, my configuration does not have --with-build-sysroot= so that aspect is
untested by me.  (it is not an option used often on Darwin because of problems
elsewhere in the configuration).

^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Bug testsuite/109951] [14 Regression] libgomp, testsuite: non-native multilib c++ tests fail on Darwin.
  2023-05-24  7:23 [Bug testsuite/109951] New: [14 Regression] libgomp, testsuite: non-native multilib c++ tests fail on Darwin iains at gcc dot gnu.org
                   ` (9 preceding siblings ...)
  2023-06-02 14:31 ` iains at gcc dot gnu.org
@ 2023-09-12  9:32 ` cvs-commit at gcc dot gnu.org
  2023-09-12  9:32 ` cvs-commit at gcc dot gnu.org
                   ` (4 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-09-12  9:32 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109951

--- Comment #9 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Thomas Schwinge <tschwinge@gcc.gnu.org>:

https://gcc.gnu.org/g:d1bff1ba4d470f6723be83c0e3c4d5083e51877a

commit r14-3869-gd1bff1ba4d470f6723be83c0e3c4d5083e51877a
Author: Thomas Schwinge <thomas@codesourcery.com>
Date:   Thu Jun 1 23:07:37 2023 +0200

    Pass 'SYSROOT_CFLAGS_FOR_TARGET' down to target libraries [PR109951]

    ..., where we need to use it (separate commits) for build-tree testing,
similar
    to 'gcc/Makefile.in:site.exp':

        # TEST_ALWAYS_FLAGS are flags that should be passed to every
compilation.
        # They are passed first to allow individual tests to override them.
            @echo "set TEST_ALWAYS_FLAGS \"$(SYSROOT_CFLAGS_FOR_TARGET)\"" >>
./site.tmp

            PR testsuite/109951
            * Makefile.tpl (BASE_TARGET_EXPORTS): Add
            'SYSROOT_CFLAGS_FOR_TARGET'.
            * Makefile.in: Regenerate.

    Co-authored-by: Chung-Lin Tang <cltang@codesourcery.com>

^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Bug testsuite/109951] [14 Regression] libgomp, testsuite: non-native multilib c++ tests fail on Darwin.
  2023-05-24  7:23 [Bug testsuite/109951] New: [14 Regression] libgomp, testsuite: non-native multilib c++ tests fail on Darwin iains at gcc dot gnu.org
                   ` (10 preceding siblings ...)
  2023-09-12  9:32 ` cvs-commit at gcc dot gnu.org
@ 2023-09-12  9:32 ` cvs-commit at gcc dot gnu.org
  2023-09-12 11:32 ` tschwinge at gcc dot gnu.org
                   ` (3 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-09-12  9:32 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109951

--- Comment #10 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Thomas Schwinge <tschwinge@gcc.gnu.org>:

https://gcc.gnu.org/g:fb5d27be272b71fb9026224535fc73f125ce3be7

commit r14-3870-gfb5d27be272b71fb9026224535fc73f125ce3be7
Author: Thomas Schwinge <thomas@codesourcery.com>
Date:   Thu Jun 1 23:07:37 2023 +0200

    libgomp: Consider '--with-build-sysroot=[...]' for target libraries'
build-tree testing (instead of build-time 'CC' etc.) [PR91884, PR109951]

    This is commit c8e759b4215ba4b376c9d468aeffe163b3d520f0 (Subversion
r279708)
    "libgomp/test: Fix compilation for build sysroot" and follow-up
    commit 749bd22ddc50b5112e5ed506ffef7249bf8e6fb3
    "libgomp/test: Remove a build sysroot fix regression" done differently,
    avoiding build-tree testing use of any random gunk that may appear in
    build-time 'CC', 'CXX', 'FC'.

            PR testsuite/91884
            PR testsuite/109951
            libgomp/
            * configure.ac: Revert earlier changes, instead
            'AC_SUBST(SYSROOT_CFLAGS_FOR_TARGET)'.
            * Makefile.in: Regenerate.
            * configure: Likewise.
            * testsuite/Makefile.in: Likewise.
            * testsuite/lib/libgomp.exp (libgomp_init): Remove
            "Fix up '-funconfigured-libstdc++-v3' in 'GXX_UNDER_TEST'" code.
            If '--with-build-sysroot=[...]' was specified, use it for
            build-tree testing.
            * testsuite/libgomp-site-extra.exp.in (GCC_UNDER_TEST)
            (GXX_UNDER_TEST, GFORTRAN_UNDER_TEST): Don't set.
            (SYSROOT_CFLAGS_FOR_TARGET): Set.
            * testsuite/libgomp.c++/c++.exp (lang_source_re)
            (lang_include_flags): Set for build-tree testing.
            * testsuite/libgomp.oacc-c++/c++.exp (lang_source_re)
            (lang_include_flags): Likewise.

    Co-authored-by: Chung-Lin Tang <cltang@codesourcery.com>

^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Bug testsuite/109951] [14 Regression] libgomp, testsuite: non-native multilib c++ tests fail on Darwin.
  2023-05-24  7:23 [Bug testsuite/109951] New: [14 Regression] libgomp, testsuite: non-native multilib c++ tests fail on Darwin iains at gcc dot gnu.org
                   ` (11 preceding siblings ...)
  2023-09-12  9:32 ` cvs-commit at gcc dot gnu.org
@ 2023-09-12 11:32 ` tschwinge at gcc dot gnu.org
  2023-09-12 20:20 ` cvs-commit at gcc dot gnu.org
                   ` (2 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: tschwinge at gcc dot gnu.org @ 2023-09-12 11:32 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109951

Thomas Schwinge <tschwinge at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED
           See Also|https://gcc.gnu.org/bugzill |
                   |a/show_bug.cgi?id=66005     |

--- Comment #11 from Thomas Schwinge <tschwinge at gcc dot gnu.org> ---
This one (libgomp) is finally resolved, and three similar-in-spirit patches
submitted:

  - <https://inbox.sourceware.org/871qf3zmi4.fsf@euler.schwinge.homeip.net>
"libffi: Consider '--with-build-sysroot=[...]' for target libraries' build-tree
testing (instead of build-time 'CC' etc.) [PR109951]"
  - <https://inbox.sourceware.org/87y1hby7pb.fsf@euler.schwinge.homeip.net>
"libatomic: Consider '--with-build-sysroot=[...]' for target libraries'
build-tree testing (instead of build-time 'CC' etc.) [PR109951]"
  - <https://inbox.sourceware.org/87sf7jy73y.fsf@euler.schwinge.homeip.net>
"libgo: Consider '--with-build-sysroot=[...]' for target libraries' build-tree
testing (instead of build-time 'CC' etc.) [PR109951]"

^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Bug testsuite/109951] [14 Regression] libgomp, testsuite: non-native multilib c++ tests fail on Darwin.
  2023-05-24  7:23 [Bug testsuite/109951] New: [14 Regression] libgomp, testsuite: non-native multilib c++ tests fail on Darwin iains at gcc dot gnu.org
                   ` (12 preceding siblings ...)
  2023-09-12 11:32 ` tschwinge at gcc dot gnu.org
@ 2023-09-12 20:20 ` cvs-commit at gcc dot gnu.org
  2023-10-26 16:05 ` cvs-commit at gcc dot gnu.org
  2023-10-26 16:05 ` cvs-commit at gcc dot gnu.org
  15 siblings, 0 replies; 17+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-09-12 20:20 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109951

--- Comment #12 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Ian Lance Taylor <ian@gcc.gnu.org>:

https://gcc.gnu.org/g:08dfde5a30ca818715e6d2bc2f2b592f8a98af77

commit r14-3909-g08dfde5a30ca818715e6d2bc2f2b592f8a98af77
Author: Ian Lance Taylor <iant@golang.org>
Date:   Tue Sep 12 09:11:48 2023 -0700

    libgo: fix DejaGNU testsuite compiler when using build sysroot

    Patch from Thomas Schwinge.

    PR testsuite/109951
    * configure.ac: 'AC_SUBST(SYSROOT_CFLAGS_FOR_TARGET)'.
    * Makefile.in: Regenerate.
    * configure: Likewise.
    * testsuite/Makefile.in: Likewise.
    * testsuite/lib/libgo.exp (libgo_init): If
    '--with-build-sysroot=[...]' was specified, use it for build-tree
    testing.
    * testsuite/libgo-test-support.exp.in (GOC_UNDER_TEST): Don't set.
    (SYSROOT_CFLAGS_FOR_TARGET): Set.

    Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/527755

^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Bug testsuite/109951] [14 Regression] libgomp, testsuite: non-native multilib c++ tests fail on Darwin.
  2023-05-24  7:23 [Bug testsuite/109951] New: [14 Regression] libgomp, testsuite: non-native multilib c++ tests fail on Darwin iains at gcc dot gnu.org
                   ` (13 preceding siblings ...)
  2023-09-12 20:20 ` cvs-commit at gcc dot gnu.org
@ 2023-10-26 16:05 ` cvs-commit at gcc dot gnu.org
  2023-10-26 16:05 ` cvs-commit at gcc dot gnu.org
  15 siblings, 0 replies; 17+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-10-26 16:05 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109951

--- Comment #13 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Thomas Schwinge <tschwinge@gcc.gnu.org>:

https://gcc.gnu.org/g:967d4171b2eb0557e86ba28996423353f0f1b141

commit r14-4948-g967d4171b2eb0557e86ba28996423353f0f1b141
Author: Thomas Schwinge <thomas@codesourcery.com>
Date:   Mon Sep 11 10:50:00 2023 +0200

    libffi: Consider '--with-build-sysroot=[...]' for target libraries'
build-tree testing (instead of build-time 'CC' etc.) [PR109951]

    Similar to commit fb5d27be272b71fb9026224535fc73f125ce3be7
    "libgomp: Consider '--with-build-sysroot=[...]' for target libraries'
build-tree testing (instead of build-time 'CC' etc.) [PR91884, PR109951]",
    this is commit a0b48358cb1e70e161a87ec5deb7a4b25defba6b
    "libffi/test: Fix compilation for build sysroot" done differently,
    avoiding build-tree testing use of any random gunk that may appear in
    build-time 'CC', 'CXX'.

            PR testsuite/109951
            libffi/
            * configure.ac: 'AC_SUBST(SYSROOT_CFLAGS_FOR_TARGET)'.
            <local.exp>: Don't set 'CC_FOR_TARGET', 'CXX_FOR_TARGET', instead
            set 'SYSROOT_CFLAGS_FOR_TARGET'.
            * Makefile.in: Regenerate.
            * configure: Likewise.
            * include/Makefile.in: Likewise.
            * man/Makefile.in: Likewise.
            * testsuite/Makefile.in: Likewise.
            * testsuite/lib/libffi.exp (libffi_target_compile): If
            '--with-build-sysroot=[...]' was specified, use it for build-tree
            testing.

^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Bug testsuite/109951] [14 Regression] libgomp, testsuite: non-native multilib c++ tests fail on Darwin.
  2023-05-24  7:23 [Bug testsuite/109951] New: [14 Regression] libgomp, testsuite: non-native multilib c++ tests fail on Darwin iains at gcc dot gnu.org
                   ` (14 preceding siblings ...)
  2023-10-26 16:05 ` cvs-commit at gcc dot gnu.org
@ 2023-10-26 16:05 ` cvs-commit at gcc dot gnu.org
  15 siblings, 0 replies; 17+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-10-26 16:05 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109951

--- Comment #14 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Thomas Schwinge <tschwinge@gcc.gnu.org>:

https://gcc.gnu.org/g:d8ff4b96b4be3bb4346c045bd0a7337079eabf90

commit r14-4949-gd8ff4b96b4be3bb4346c045bd0a7337079eabf90
Author: Thomas Schwinge <thomas@codesourcery.com>
Date:   Mon Sep 11 11:36:31 2023 +0200

    libatomic: Consider '--with-build-sysroot=[...]' for target libraries'
build-tree testing (instead of build-time 'CC' etc.) [PR109951]

    Similar to commit fb5d27be272b71fb9026224535fc73f125ce3be7
    "libgomp: Consider '--with-build-sysroot=[...]' for target libraries'
build-tree testing (instead of build-time 'CC' etc.) [PR91884, PR109951]",
    this is commit 5ff06d762a88077aff0fb637c931c64e6f47f93d
    "libatomic/test: Fix compilation for build sysroot" done differently,
    avoiding build-tree testing use of any random gunk that may appear in
    build-time 'CC'.

            PR testsuite/109951
            libatomic/
            * configure.ac: 'AC_SUBST(SYSROOT_CFLAGS_FOR_TARGET)'.
            * Makefile.in: Regenerate.
            * configure: Likewise.
            * testsuite/Makefile.in: Likewise.
            * testsuite/lib/libatomic.exp (libatomic_init): If
            '--with-build-sysroot=[...]' was specified, use it for build-tree
            testing.
            * testsuite/libatomic-site-extra.exp.in (GCC_UNDER_TEST): Don't
            set.
            (SYSROOT_CFLAGS_FOR_TARGET): Set.

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2023-10-26 16:05 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-24  7:23 [Bug testsuite/109951] New: [14 Regression] libgomp, testsuite: non-native multilib c++ tests fail on Darwin iains at gcc dot gnu.org
2023-05-24  7:25 ` [Bug testsuite/109951] " iains at gcc dot gnu.org
2023-05-24 10:39 ` iains at gcc dot gnu.org
2023-05-25  7:38 ` rguenth at gcc dot gnu.org
2023-05-25 22:04 ` tschwinge at gcc dot gnu.org
2023-05-25 23:12 ` iains at gcc dot gnu.org
2023-05-25 23:34 ` iains at gcc dot gnu.org
2023-06-01 16:02 ` tschwinge at gcc dot gnu.org
2023-06-02 10:00 ` tschwinge at gcc dot gnu.org
2023-06-02 10:08 ` tschwinge at gcc dot gnu.org
2023-06-02 14:31 ` iains at gcc dot gnu.org
2023-09-12  9:32 ` cvs-commit at gcc dot gnu.org
2023-09-12  9:32 ` cvs-commit at gcc dot gnu.org
2023-09-12 11:32 ` tschwinge at gcc dot gnu.org
2023-09-12 20:20 ` cvs-commit at gcc dot gnu.org
2023-10-26 16:05 ` cvs-commit at gcc dot gnu.org
2023-10-26 16:05 ` cvs-commit at gcc dot gnu.org

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).