Bug 98041 - [11 Regression] libgo doesn't build on mipsel-linux-gnu
Summary: [11 Regression] libgo doesn't build on mipsel-linux-gnu
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: go (show other bugs)
Version: 11.0
: P3 normal
Target Milestone: 11.0
Assignee: Ian Lance Taylor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-28 10:44 UTC by Matthias Klose
Modified: 2020-11-30 20:26 UTC (History)
3 users (show)

See Also:
Host:
Target: mipsel-linux-gnu
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Klose 2020-11-28 10:44:27 UTC
seen with trunk 20201127 on mipsel-linux-gnu:

cpugen.go:2:7: error: redefinition of 'CacheLinePadSize'
    2 | const CacheLinePadSize = 32
      |       ^
../../../../src/libgo/go/internal/cpu/cpu_mips64x.go:9:7: note: previous definition of 'CacheLinePad
Size' was here
    9 | const CacheLinePadSize = 32
      |       ^
make[10]: *** [Makefile:2962: internal/cpu.lo] Error 1
make[10]: Leaving directory '/<<PKGBUILDDIR>>/build/mipsel-linux-gnu/64/libgo'
make[9]: *** [Makefile:2292: all-recursive] Error 1
make[9]: Leaving directory '/<<PKGBUILDDIR>>/build/mipsel-linux-gnu/64/libgo'
make[8]: *** [Makefile:1184: all] Error 2
make[8]: Leaving directory '/<<PKGBUILDDIR>>/build/mipsel-linux-gnu/64/libgo'
make[7]: *** [Makefile:3203: multi-do] Error 1
make[7]: Leaving directory '/<<PKGBUILDDIR>>/build/mipsel-linux-gnu/libgo'
make[6]: *** [Makefile:3156: all-multi] Error 2
Comment 1 GCC Commits 2020-11-30 20:24:46 UTC
The master branch has been updated by Ian Lance Taylor <ian@gcc.gnu.org>:

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

commit r11-5591-geafb46ce90c23efd22c61d941face060bb9f11f3
Author: Ian Lance Taylor <iant@golang.org>
Date:   Sat Nov 28 11:29:25 2020 -0800

    internal/cpu: don't define CacheLinePadSize for mips64x
    
    For libgo the definition comes from the generated file cpugen.go.
    
    Fixes PR go/98041
    
    Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/273866
Comment 2 Ian Lance Taylor 2020-11-30 20:26:11 UTC
Fixed on trunk.