Skip to content

Commit

Permalink
unix/linux: update glibc to 2.39
Browse files Browse the repository at this point in the history
  • Loading branch information
mauri870 committed May 13, 2024
1 parent f34bb9f commit d5f3b93
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 2 deletions.
4 changes: 2 additions & 2 deletions unix/linux/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ WORKDIR /git
RUN git config --global advice.detachedHead false
# Linux Kernel: Released 10 March 2024
RUN git clone --branch v6.8 --depth 1 https://kernel.googlesource.com/pub/scm/linux/kernel/git/torvalds/linux
# GNU C library: Released 1 Feb 2023
RUN git clone --branch release/2.37/master --depth 1 https://sourceware.org/git/glibc.git
# GNU C library: Released 31 Jan 2024
RUN git clone --branch release/2.39/master --depth 1 https://sourceware.org/git/glibc.git

# Get Go
ENV GOLANG_VERSION 1.21.0
Expand Down
14 changes: 14 additions & 0 deletions unix/linux/mkall.go
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,20 @@ func (t *target) makeHeaders() error {
} else {
glibcArgs = append(glibcArgs, "--enable-kernel="+MinKernel)
}

// CET is not supported on x86 but glibc 2.39 enables it by default, it was later reverted.
// See https://sourceware.org/git/?p=glibc.git;a=commit;h=25f1e16ef03a6a8fb1701c4647d46c564480d88c
if t.LinuxArch == "x86" {
glibcArgs = append(glibcArgs, "--enable-cet=no")
}

// glibc 2.38 requires libmvec to be disabled explicitly in aarch64
// since the installed compiler does not have SVE ACLE.
// See https://sourceware.org/pipermail/libc-alpha/2023-May/147829.html
if t.LinuxArch == "arm64" {
glibcArgs = append(glibcArgs, "--disable-mathvec")
}

glibcConf := t.makeCommand(confScript, glibcArgs...)

glibcConf.Dir = buildDir
Expand Down
6 changes: 6 additions & 0 deletions unix/zerrors_linux.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions unix/zerrors_linux_386.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions unix/zerrors_linux_amd64.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d5f3b93

Please sign in to comment.