Skip to content

0003-Implement-crypto-internal-backend.patch fails to build with race detector: "undefined: fips140only.BackendApprovedHash" #2204

@dagood

Description

@dagood

After applying patches and checking out 0003's commit:

$ pwsh eng/run.ps1 build
[...]
---- Target platform: linux_amd64
---- Running command: [bash make.bash]
Building Go cmd/dist using /home/dagood/.local/share/microsoft-go/go1.25.0-1. (go1.25.0 linux/amd64)
Building Go toolchain1 using /home/dagood/.local/share/microsoft-go/go1.25.0-1.
Building Go bootstrap cmd/go (go_bootstrap) using Go toolchain1.
Building Go toolchain2 using go_bootstrap and Go toolchain1.
Building Go toolchain3 using go_bootstrap and Go toolchain2.
Building packages and commands for linux/amd64.
---
Installed Go for linux/amd64 in /home/dagood/git/go/go
Installed commands in /home/dagood/git/go/go/bin
*** You need to add /home/dagood/git/go/go/bin to your PATH.
---- Successful on attempt 1 of 1.
---- Building race runtime...
---- Running command: [../bin/go install -race -a std]
# crypto/internal/backend
crypto/internal/backend/backend_linux.go:44:14: undefined: fips140only.BackendApprovedHash
panic: exit status 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions