[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Testsuite on Solaris 11.3/sparc

From: john o goyo
Subject: Re: Testsuite on Solaris 11.3/sparc
Date: Sun, 23 Apr 2023 09:13:41 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.10.0

Greetings, Gaius.

On 2023-04-22 08:36, john o goyo wrote:
Greetings, Gaius.

On 2023-04-21 09:34, Gaius Mulley wrote:
Hi John,

re: (1) here is a patch which might be along the right lines?

diff --git a/gcc/testsuite/lib/gm2.exp b/gcc/testsuite/lib/gm2.exp
index 25b5e684b3a..9ed8c6ebd53 100644
--- a/gcc/testsuite/lib/gm2.exp
+++ b/gcc/testsuite/lib/gm2.exp
@@ -218,6 +218,10 @@ proc gm2_target_compile_default { source dest type options } {
      if [info exists TOOL_OPTIONS] {
      lappend options "additional_flags=$TOOL_OPTIONS"
+    if [istarget *-*-solaris2*] {
+    lappend options "ldflags=-lnsl -lsocket"
+    }
      lappend options "timeout=[timeout_value]"
      lappend options "compiler=$GCC_UNDER_TEST"
      # puts stderr "options = $options\n"

I'm not sure if the solaris2 string is correct though.  But it maybe
worth just forcing lappend options "ldflags=-lnsl -lsocket" as an
experiment and refining afterwards.

Hope this helps?

Thank you. I added the options unreserved as you suggested and this elimated 8 failures:

                === gm2 Summary ===

# of expected passes            11874
# of unexpected failures        19
# of unresolved testcases       7

(Note that I am building gcc-13.1.0-RC2-20230419.)


The string about is correct.  The same results from adding the conditional.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]