Possible Go 1.24.2 compiler issue

178 views
Skip to first unread message

Jan Mercl

unread,
Apr 17, 2025, 9:27:40 AMApr 17
to golang-dev
Hi there,

I am observing Go compiler hanging on linux/amd64 and darwin/amd64 when building modernc.org/libsamplerate and Go 1.24.2: https://modern-c.appspot.com/-/builder/?importpath=modernc.org%2flibsamplerate

 Sample session on linux/amd64:

        jnml@e5-1650:~/src/modernc.org/libsamplerate$ git status
        On branch master
        Your branch is up to date with 'origin/master'.
       
        nothing to commit, working tree clean
        jnml@e5-1650:~/src/modernc.org/libsamplerate$ git log -1
        commit 451b5f0939de9e97e6d4648d48dedd7cb692555c (HEAD -> master, tag: v0.0.12, origin/master, origin/HEAD)
        Author: Jan Mercl <0xj...@gmail.com>
        Date:   Tue Apr 1 21:44:02 2025 +0800
       
            linux_loong64b: auto generate
        jnml@e5-1650:~/src/modernc.org/libsamplerate$ go clean -cache
        jnml@e5-1650:~/src/modernc.org/libsamplerate$ time ~/bin/go1.24.1/bin/go build  
       
        real 0m28.344s
        user 0m59.312s
        sys 0m6.242s
        jnml@e5-1650:~/src/modernc.org/libsamplerate$ go clean -cache
        jnml@e5-1650:~/src/modernc.org/libsamplerate$ time ~/bin/go1.24.2/bin/go build
        ^C
       
        real 6m1.589s
        user 0m44.918s
        sys 0m5.725s
        jnml@e5-1650:~/src/modernc.org/libsamplerate$

htop was showing this before I have pressed ctrl-c (long line wrapped manually below):

          PID USER       PRI  NI  VIRT   RES   SHR S  CPU%▽MEM%   TIME+  Command
        23514 jnml        20   0 2135M  407M 13380 S 102.1  2.6  5:19.86 /home/jnml/bin/go1.24.2/pkg/tool/linux_amd64/compile
        -o /tmp/go-build477484989/b001/_pkg_.a -trimpath /tmp/go-build477484989/b001=> -p modernc.org/libsamplerate -lang=go1.23
        -complete -buildid cKWKX2fnvJcFyg9bX7YU/cKWKX2fnvJcFyg9bX7YU -goversion go1.24.2 -c=4 -nolocalimports -importcfg /tmp/go-build477484989/b001/importcfg
        -pack /home/jnml/src/modernc.org/libsamplerate/ccgo_linux_amd64.go /home/jnml/src/modernc.org/libsamplerate/libsamplerate.go

Someone please take a look, thanks.

I am sorry that I cannot provide a minimized reproducer right now.

Best regards,

-j

Keith Randall

unread,
Apr 17, 2025, 12:08:45 PMApr 17
to Jan Mercl, golang-dev
Seems to be stuck in the inliner forever. I will open an issue.


--
You received this message because you are subscribed to the Google Groups "golang-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-dev+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/golang-dev/CAA40n-X9CO40REFK-EmcxtEm%3DMnBd_%3DSab8y0UDoWeXgW3FkFA%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages