Hello, on Windows 11, make.bat works but run.bat is failing on some tests 
and also has weird test output with extra whitespace. 

I have this commit checked out:

Microsoft Windows [Version 10.0.22631.4169]
(c) Microsoft Corporation. All rights reserved.

C:\Users\arthu\git\go\src>git log -1 --oneline
69234ded30 (HEAD, tag: go1.23.1) [release-branch.go1.23] go1.23.1

These are the versions of git, gcc and gdb that I have installed.
C:\Users\arthu\git\go\src>git version
git version 2.46.1.windows.1

C:\Users\arthu\git\go\src>gcc --version
gcc (Rev1, Built by MSYS2 project) 14.2.0
Copyright (C) 2024 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

C:\Users\arthu\git\go\src>gdb --version
GNU gdb (GDB) 15.1
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Installation locations of git, gcc and gdb:

C:\Users\arthu\git\go\src>where git
C:\Program Files\Git\cmd\git.exe
C:\Program Files\Git\mingw64\bin\git.exe

C:\Users\arthu\git\go\src>where gcc
C:\msys64\mingw64\bin\gcc.exe

C:\Users\arthu\git\go\src>where gdb
C:\msys64\mingw64\bin\gdb.exe

I have another copy of the toolchain built that I'm using to build this one 
in gotmp:

C:\Users\arthu\git\go\src>set PATH=%PATH%;c:\users\arthu\git\gotmp\bin

C:\Users\arthu\git\go\src>make.bat
Building Go cmd/dist using c:\Users\arthu\git\gotmp. (go1.23.1 
windows/amd64)
Building Go toolchain1 using c:\Users\arthu\git\gotmp.
Building Go bootstrap cmd/go (go_bootstrap) using Go toolchain1.
Building Go toolchain2 using go_bootstrap and Go toolchain1.
Building Go toolchain3 using go_bootstrap and Go toolchain2.
Building packages and commands for windows/amd64.
---
Installed Go for windows/amd64 in C:\Users\arthu\git\go
Installed commands in C:\Users\arthu\git\go\bin

The issues occur when I try run.bat. 
1. why is there extended whitespace printed like this in some tests?

ok      go/internal/gccgoimporter       1.895s
ok      go/internal/gcimporter  13.911s
ok      go/internal/srcimporter 50.987s
                                       ok       go/parser       2.556s
                                                                      ok   
     go/printer      2.022s
                                                                            
                          ok        go/scanner      1.955s
              ok        go/token        2.130s
                                              ok        go/types       
 33.279s
                                                                            
   ok       go/version      1.939s
                                                                            
                                  ok       hash     1.547s
              ok        hash/adler32    2.553s
2. why do some tests take so long if there's nothing to do? 

ok      embed   1.779s [no tests to run]

3. why are the runtime gdb tests failing? there seems to be some issue with 
quoting strings passed as args to gdb.

--- FAIL: TestGdbConst (3.77s)
    runtime-gdb_test.go:78: gdb version 15.1
    runtime-gdb_test.go:638: gdb output:
        Undefined command: "".  Try "help".
        warning: File "C:\Users\arthu\git\go\src\runtime\runtime-gdb.py" 
auto-loading has been declined by your `auto-load safe-path' set to 
"$debugdir:$datadir/auto-load".
        To enable execution of this file add
                add-auto-load-safe-path 
C:\Users\arthu\git\go\src\runtime\runtime-gdb.py
        line to your configuration file 
"C:\Users\arthu/.config/gdb/gdbinit".
        To completely disable this security protection add
                set auto-load safe-path /
        line to your configuration file 
"C:\Users\arthu/.config/gdb/gdbinit".
        For more information about this security protection see the
        "Auto-loading safe path" section in the GDB manual.  E.g., run from 
the shell:
                info "(gdb)Auto-loading safe path"
        Undefined command: "".  Try "help".
        Undefined command: "".  Try "help".
        [New Thread 24436.0x661c]
        [New Thread 24436.0x8c8c]
        [New Thread 24436.0xaf78]
        [New Thread 24436.0x98a8]
        [New Thread 24436.0xb808]
        hello world
        [Thread 24436.0xb808 exited with code 0]
        [Thread 24436.0x98a8 exited with code 0]
        [Thread 24436.0x8c8c exited with code 0]
        [Thread 24436.0xaf78 exited with code 0]
        [Thread 24436.0x661c exited with code 0]
        [Inferior 1 (process 24436) exited normally]
        Undefined command: "".  Try "help".
        Undefined command: "".  Try "help".
        Undefined command: "".  Try "help".
        Undefined command: "".  Try "help".
        Undefined command: "".  Try "help".
    runtime-gdb_test.go:640: gdb exited with error: exit status 1
--- FAIL: TestGdbAutotmpTypes (3.79s)
    runtime-gdb_test.go:78: gdb version 15.1
    runtime-gdb_test.go:569: gdb output:
        Undefined command: "".  Try "help".
        warning: File "C:\Users\arthu\git\go\src\runtime\runtime-gdb.py" 
auto-loading has been declined by your `auto-load safe-path' set to 
"$debugdir:$datadir/auto-load".
        To enable execution of this file add
                add-auto-load-safe-path 
C:\Users\arthu\git\go\src\runtime\runtime-gdb.py
        line to your configuration file 
"C:\Users\arthu/.config/gdb/gdbinit".
        To completely disable this security protection add
                set auto-load safe-path /
        line to your configuration file 
"C:\Users\arthu/.config/gdb/gdbinit".
        For more information about this security protection see the
        "Auto-loading safe path" section in the GDB manual.  E.g., run from 
the shell:
                info "(gdb)Auto-loading safe path"
        Undefined command: "".  Try "help".
        Undefined command: "".  Try "help".
        Undefined command: "".  Try "help".
        [New Thread 18592.0x5600]
        [New Thread 18592.0xb720]
        [New Thread 18592.0x7d54]
        [New Thread 18592.0x3188]
        [New Thread 18592.0x68fc]
        (0xc98f00,0xc000071f10) (0xc95e80,0xc000071f48)
        [Thread 18592.0xb720 exited with code 0]
        [Thread 18592.0x5600 exited with code 0]
        [Thread 18592.0x3188 exited with code 0]
        [Thread 18592.0x7d54 exited with code 0]
        [Thread 18592.0x68fc exited with code 0]
        [Inferior 1 (process 18592) exited normally]
        The program is not being run.
        Undefined command: "".  Try "help".
    runtime-gdb_test.go:571: gdb exited with error: exit status 1
FAIL
FAIL    runtime 239.740s

4. why is this test failing? 
--- FAIL: TestScripts (10.68s)
    --- FAIL: TestScripts/git/vgotest1.txt (24.79s)
        vcstest_test.go:155: 2024/09/22 10:47:55 vgotest1.txt:
            > handle git
            > env GIT_AUTHOR_NAME='Russ Cox'
            > env GIT_AUTHOR_EMAIL='r...@golang.org'
            > env GIT_COMMITTER_NAME=$GIT_AUTHOR_NAME
            > env GIT_COMMITTER_EMAIL=$GIT_AUTHOR_EMAIL
            > git init
            [stdout]
            Initialized empty Git repository in 
C:/Users/arthu/AppData/Local/Temp/TestScripts623244209/001/git/vgotest1/.git/
            > at 2018-02-19T17:21:09-05:00
            > git add LICENSE README.md
            > git commit -m 'initial commit'
            [stdout]
            [main (root-commit) 1975be9] initial commit
             2 files changed, 29 insertions(+)
             create mode 100644 LICENSE
             create mode 100644 README.md
            > git branch -m master
            > git checkout --detach HEAD
            [stderr]
            HEAD is now at 1975be9 initial commit
            > at 2018-02-19T18:10:06-05:00
            > mkdir pkg
            > echo 'package p // pkg/p.go'
            [stdout]
            package p // pkg/p.go
            > cp stdout pkg/p.go
            > git add pkg/p.go
            > git commit -m 'add pkg/p.go'
            [stdout]
            [detached HEAD 80d85c5] add pkg/p.go
             1 file changed, 1 insertion(+)
             create mode 100644 pkg/p.go
            > git tag v0.0.0
            > git tag v1.0.0
            > git tag mytag
            > git checkout --detach HEAD
            [stderr]
            HEAD is now at 80d85c5 add pkg/p.go
            > at 2018-02-19T18:14:23-05:00
            > mkdir v2
            > echo 'module "github.com/rsc/vgotest1/v2" // root go.mod'
            [stdout]
            module "github.com/rsc/vgotest1/v2" // root go.mod
            > cp stdout go.mod
            > git add go.mod
            > git commit -m 'go.mod v2'
            [stdout]
            [detached HEAD ea65f87] go.mod v2
             1 file changed, 1 insertion(+)
             create mode 100644 go.mod
            > git tag v2.0.1
            > at 2018-02-19T18:15:11-05:00
            > mkdir submod/pkg
            > echo 'package p // submod/pkg/p.go'
            [stdout]
            package p // submod/pkg/p.go
            > cp stdout submod/pkg/p.go
            > git add submod/pkg/p.go
            > git commit -m 'submod/pkg/p.go'
            [stdout]
            [detached HEAD f7b2335] submod/pkg/p.go
             1 file changed, 1 insertion(+)
             create mode 100644 submod/pkg/p.go
            > git tag v2.0.2
            > at 2018-02-19T18:16:04-05:00
            > echo 'module "github.com/rsc/vgotest" // v2/go.mod'
            [stdout]
            module "github.com/rsc/vgotest" // v2/go.mod
            > cp stdout v2/go.mod
            > git add v2/go.mod
            > git commit -m 'v2/go.mod: bad go.mod (no version)'
            [stdout]
            [detached HEAD f187958] v2/go.mod: bad go.mod (no version)
             1 file changed, 1 insertion(+)
             create mode 100644 v2/go.mod
            > git tag v2.0.3
            > at 2018-02-19T19:03:38-05:00
            > env GIT_AUTHOR_DATE=2018-02-19T18:16:38-05:00
            > echo 'module "github.com/rsc/vgotest1/v2" // v2/go.mod'
            [stdout]
            module "github.com/rsc/vgotest1/v2" // v2/go.mod
            > cp stdout v2/go.mod
            > git add v2/go.mod
            > git commit -m 'v2/go.mod: fix'
            [stdout]
            [detached HEAD 1f863fe] v2/go.mod: fix
             1 file changed, 1 insertion(+), 1 deletion(-)
            > git tag v2.0.4
            > at 2018-02-19T19:03:59-05:00
            > env GIT_AUTHOR_DATE=2018-02-19T18:17:02-05:00
            > echo 'module "github.com/rsc/vgotest1" // root go.mod'
            [stdout]
            module "github.com/rsc/vgotest1" // root go.mod
            > cp stdout go.mod
            > git add go.mod
            > git commit -m 'go.mod: drop v2'
            [stdout]
            [detached HEAD 2f61511] go.mod: drop v2
             1 file changed, 1 insertion(+), 1 deletion(-)
            > git tag v2.0.5
            > git checkout --detach mytag
            [stderr]
            Previous HEAD position was 2f61511 go.mod: drop v2
            HEAD is now at 80d85c5 add pkg/p.go
            > at 2018-02-19T18:10:28-05:00
            > echo 'module "github.com/rsc/vgotest1" // root go.mod'
            [stdout]
            module "github.com/rsc/vgotest1" // root go.mod
            > cp stdout go.mod
            > git add go.mod
            > git commit -m 'go.mod'
            [stdout]
            [detached HEAD 5a115c6] go.mod
             1 file changed, 1 insertion(+)
             create mode 100644 go.mod
            > git tag v0.0.1
            > git tag v1.0.1
            > at 2018-02-19T18:11:28-05:00
            > mkdir submod/pkg
            > echo 'package pkg // submod/pkg/p.go'
            [stdout]
            package pkg // submod/pkg/p.go
            > cp stdout submod/pkg/p.go
            > git add submod
            > git commit -m 'submod/pkg/p.go'
            [stdout]
            [detached HEAD 2e38a1a] submod/pkg/p.go
             1 file changed, 1 insertion(+)
             create mode 100644 submod/pkg/p.go
            > git tag v1.0.2
            > at 2018-02-19T18:12:07-05:00
            > echo 'module "github.com/vgotest1/submod" // submod/go.mod'
            [stdout]
            module "github.com/vgotest1/submod" // submod/go.mod
            > cp stdout submod/go.mod
            > git add submod/go.mod
            > git commit -m 'submod/go.mod'
            [stdout]
            [detached HEAD 8afe2b2] submod/go.mod
             1 file changed, 1 insertion(+)
             create mode 100644 submod/go.mod
            > git tag v1.0.3
            > git tag submod/v1.0.4
            > at 2018-02-19T18:12:59-05:00
            > git apply 0001-submod-go.mod-add-require-vgotest1-v1.1.0.patch
            > git commit -a -m 'submod/go.mod: add require vgotest1 v1.1.0'
            [stdout]
            [detached HEAD 70fd92e] submod/go.mod: add require vgotest1 
v1.1.0
             1 file changed, 1 insertion(+)
            > git tag submod/v1.0.5
            > at 2018-02-19T18:13:36-05:00
            > git apply 0002-go.mod-add-require-submod-v1.0.5.patch
            > git commit -a -m 'go.mod: add require submod v1.0.5'
            [stderr]
            fatal: couldn't set 'HEAD'


        vcstest_test.go:161: vgotest1.txt:101: git commit -a -m 'go.mod: 
add require submod v1.0.5': exit status 128
FAIL
FAIL    cmd/go/internal/vcweb/vcstest   59.530s


I realize that gcc, gdb, and git are not part of go so the location and 
versions vary but what is the known good set of versions to get the tests 
to pass? i.e. what are the builders using for windows/amd64? 


-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/3624c95e-43e4-4e36-ae8d-87c7a7c4a11an%40googlegroups.com.

Reply via email to