Bug 98493 - [11 regression] bootstrap build fails in go part of build after r11-6371
Summary: [11 regression] bootstrap build fails in go part of build after r11-6371
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: bootstrap (show other bugs)
Version: 11.0
: P3 normal
Target Milestone: 11.0
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-01 01:50 UTC by seurer
Modified: 2021-01-05 21:59 UTC (History)
3 users (show)

See Also:
Host: powerpc64*-linux-gnu
Target: powerpc64*-linux-gnu
Build: powerpc64*-linux-gnu
Known to work:
Known to fail:
Last reconfirmed: 2021-01-02 00:00:00


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description seurer 2021-01-01 01:50:09 UTC
g:cfcbb4227fb20191e04eb8d7766ae6202f526afd, r11-6371 

make[4]: Entering directory '/home/gccbuild/build-gcc-trunk/powerpc64le-unknown-linux-gnu/libgo'
/bin/mkdir -p internal; files=`echo /home/gccbuild/gcc_trunk_git/gcc/libgo/go/internal/cpu/cpu.go /home/gccbuild/gcc_trunk_git/gcc/libgo/go/internal/cpu/cpu_no_name.go /home/gccbuild/gcc_trunk_git/gcc/libgo/go/internal/cpu/cpu_ppc64x_linux.go /home/gccbuild/gcc_trunk_git/gcc/libgo/go/internal/cpu/cpu_ppcx.go cpugen.go | sed -e 's/[^ ]*\.gox//g' -e 's/[^ ]*\.dep//'`; /bin/sh ./libtool --tag GO --mode=compile /home/gccbuild/build-gcc-trunk/./gcc/gccgo -B/home/gccbuild/build-gcc-trunk/./gcc/ -B/opt/gcc-nightly/trunk/powerpc64le-unknown-linux-gnu/bin/ -B/opt/gcc-nightly/trunk/powerpc64le-unknown-linux-gnu/lib/ -isystem /opt/gcc-nightly/trunk/powerpc64le-unknown-linux-gnu/include -isystem /opt/gcc-nightly/trunk/powerpc64le-unknown-linux-gnu/sys-include   -fchecking=1    -O2 -g -I . -c -fgo-pkgpath=`echo internal/cpu.lo | sed -e 's/.lo$//'`  -o internal/cpu.lo $files
libtool: compile:  /home/gccbuild/build-gcc-trunk/./gcc/gccgo -B/home/gccbuild/build-gcc-trunk/./gcc/ -B/opt/gcc-nightly/trunk/powerpc64le-unknown-linux-gnu/bin/ -B/opt/gcc-nightly/trunk/powerpc64le-unknown-linux-gnu/lib/ -isystem /opt/gcc-nightly/trunk/powerpc64le-unknown-linux-gnu/include -isystem /opt/gcc-nightly/trunk/powerpc64le-unknown-linux-gnu/sys-include -fchecking=1 -O2 -g -I . -c -fgo-pkgpath=internal/cpu /home/gccbuild/gcc_trunk_git/gcc/libgo/go/internal/cpu/cpu.go /home/gccbuild/gcc_trunk_git/gcc/libgo/go/internal/cpu/cpu_no_name.go /home/gccbuild/gcc_trunk_git/gcc/libgo/go/internal/cpu/cpu_ppc64x_linux.go /home/gccbuild/gcc_trunk_git/gcc/libgo/go/internal/cpu/cpu_ppcx.go cpugen.go  -fPIC -o internal/.libs/cpu.o
/home/gccbuild/gcc_trunk_git/gcc/libgo/go/internal/cpu/cpu_ppcx.go:13:5: error: redefinition of ‘HWCap’
   13 | var HWCap uint
      |     ^
/home/gccbuild/gcc_trunk_git/gcc/libgo/go/internal/cpu/cpu_ppc64x_linux.go:12:5: note: previous definition of ‘HWCap’ was here
   12 | var HWCap uint
      |     ^
/home/gccbuild/gcc_trunk_git/gcc/libgo/go/internal/cpu/cpu_ppcx.go:14:5: error: redefinition of ‘HWCap2’
   14 | var HWCap2 uint
      |     ^
/home/gccbuild/gcc_trunk_git/gcc/libgo/go/internal/cpu/cpu_ppc64x_linux.go:13:5: note: previous definition of ‘HWCap2’ was here
   13 | var HWCap2 uint
      |     ^
make[4]: *** [Makefile:2962: internal/cpu.lo] Error 1


commit cfcbb4227fb20191e04eb8d7766ae6202f526afd (HEAD)
Author: Ian Lance Taylor <iant@golang.org>
Date:   Wed Dec 23 09:57:37 2020 -0800

    libgo: update to Go1.16beta1 release
    
    This does not yet include support for the //go:embed directive added
    in this release.
    
            * Makefile.am (check-runtime): Don't create check-runtime-dir.
            (mostlyclean-local): Don't remove check-runtime-dir.
            (check-go-tool, check-vet): Copy in go.mod and modules.txt.
            (check-cgo-test, check-carchive-test): Add go.mod file.
            * Makefile.in: Regenerate.
    
    Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/280172
Comment 1 Ian Lance Taylor 2021-01-01 23:16:42 UTC
This should be fixed now.
Comment 2 seurer 2021-01-02 16:28:12 UTC
I am still seeing build errors:

libtool: compile:  /home/seurer/gcc/git/build/gcc-test/./gcc/gccgo -B/home/seurer/gcc/git/build/gcc-test/./gcc/ -B/home/seurer/gcc/git/install/gcc-test/powerpc64-unknown-linux-gnu/bin/ -B/home/seurer/gcc/git/install/gcc-test/powerpc64-unknown-linux-gnu/lib/ -isystem /home/seurer/gcc/git/install/gcc-test/powerpc64-unknown-linux-gnu/include -isystem /home/seurer/gcc/git/install/gcc-test/powerpc64-unknown-linux-gnu/sys-include -O2 -g -I . -c -fgo-pkgpath=internal/cpu /home/seurer/gcc/git/gcc-test/libgo/go/internal/cpu/cpu.go /home/seurer/gcc/git/gcc-test/libgo/go/internal/cpu/cpu_no_name.go /home/seurer/gcc/git/gcc-test/libgo/go/internal/cpu/cpu_ppc64x_linux.go cpugen.go  -fPIC -o internal/.libs/cpu.o
/home/seurer/gcc/git/gcc-test/libgo/go/internal/cpu/cpu.go:123:9: error: reference to undefined name 'doinit'
  123 |         doinit()
      |         ^
/home/seurer/gcc/git/gcc-test/libgo/go/internal/cpu/cpu_ppc64x_linux.go:26:26: error: reference to undefined name 'isSet'
   26 |         PPC64.IsPOWER9 = isSet(HWCap2, hwcap2_ARCH_3_00)
      |                          ^
/home/seurer/gcc/git/gcc-test/libgo/go/internal/cpu/cpu_ppc64x_linux.go:27:25: error: reference to undefined name 'isSet'
   27 |         PPC64.HasDARN = isSet(HWCap2, hwcap2_DARN)
      |                         ^
/home/seurer/gcc/git/gcc-test/libgo/go/internal/cpu/cpu_ppc64x_linux.go:28:24: error: reference to undefined name 'isSet'
   28 |         PPC64.HasSCV = isSet(HWCap2, hwcap2_SCV)
      |                        ^
make[4]: *** [internal/cpu.lo] Error 1
Comment 3 GCC Commits 2021-01-05 21:49:09 UTC
The master branch has been updated by Ian Lance Taylor <ian@gcc.gnu.org>:

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

commit r11-6488-ga9f76d03bbc791cb55e4e0658f23efd0103ea9b0
Author: Ian Lance Taylor <iant@golang.org>
Date:   Mon Jan 4 12:43:25 2021 -0800

    internal/cpu: more build fixes for Go1.16beta1 release
    
    Some files were missing from the libgo copy of internal/cpu, because they
    used to only declare CacheLinePadSize which libgo gets from goarch.sh.
    Now they also declare doinit, so copy them over.  Adjust cpu_other.go.
    
    Fix the amd64p32 build by adding a build constraint to cpu_no_name.go.
    
    Fixes PR go/98493
    
    Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/281472
Comment 4 Ian Lance Taylor 2021-01-05 21:59:33 UTC
Should be fixed (this time for sure).