Bug 98510 - [11 Regression] bootstrap broken in libgo on sparc64-linux-gnu, building the 32bit multilib
Summary: [11 Regression] bootstrap broken in libgo on sparc64-linux-gnu, building the ...
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:
: 98511 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-01-04 08:49 UTC by Matthias Klose
Modified: 2021-01-05 21:59 UTC (History)
5 users (show)

See Also:
Host:
Target: sparc64-linux
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 2021-01-04 08:49:39 UTC
seen with trunk 20210102 on sparc64-linux-gnu, while building the 32bit multilib:

../../../../src/libgo/go/syscall/setuidgid_linux.go:19:25: error: reference to undefined name 'SYS_SETRESGID'
   19 |         sys_SETRESGID = SYS_SETRESGID
      |                         ^
../../../../src/libgo/go/syscall/setuidgid_linux.go:20:25: error: reference to undefined name 'SYS_SETRESUID'
   20 |         sys_SETRESUID = SYS_SETRESUID
      |                         ^
make[10]: *** [Makefile:2972: syscall.lo] Error 1
make[10]: *** Waiting for unfinished jobs....
make[10]: Leaving directory '/<<PKGBUILDDIR>>/build/sparc64-linux-gnu/32/libgo'
make[9]: *** [Makefile:2302: all-recursive] Error 1
make[9]: Leaving directory '/<<PKGBUILDDIR>>/build/sparc64-linux-gnu/32/libgo'
make[8]: *** [Makefile:1197: all] Error 2
make[8]: Leaving directory '/<<PKGBUILDDIR>>/build/sparc64-linux-gnu/32/libgo'
make[7]: *** [Makefile:3218: multi-do] Error 1
make[7]: Leaving directory '/<<PKGBUILDDIR>>/build/sparc64-linux-gnu/libgo'
make[6]: *** [Makefile:3171: all-multi] Error 2
make[6]: Leaving directory '/<<PKGBUILDDIR>>/build/sparc64-linux-gnu/libgo'
make[5]: *** [Makefile:2302: all-recursive] Error 1
make[5]: Leaving directory '/<<PKGBUILDDIR>>/build/sparc64-linux-gnu/libgo'
make[4]: *** [Makefile:1197: all] Error 2
make[4]: Leaving directory '/<<PKGBUILDDIR>>/build/sparc64-linux-gnu/libgo'
make[3]: *** [Makefile:22102: all-target-libgo] Error 2
Comment 1 Andreas Schwab 2021-01-04 12:09:50 UTC
*** Bug 98511 has been marked as a duplicate of this bug. ***
Comment 2 GCC Commits 2021-01-05 21:53:44 UTC
The master branch has been updated by Ian Lance Taylor <ian@gcc.gnu.org>:

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

commit r11-6489-gf47c00cf95d7dbbe7147c61a4a6bc20921c3da2c
Author: Ian Lance Taylor <iant@golang.org>
Date:   Mon Jan 4 13:10:38 2021 -0800

    syscall: don't define sys_SETREUID and friends
    
    We don't use them, since we always call the C library functions which do
    the right thing anyhow.  And they aren't defined on all GNU/Linux variants.
    
    Fixes PR go/98510
    
    Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/281473
Comment 3 Ian Lance Taylor 2021-01-05 21:59:56 UTC
Should be fixed.