Skip to content

Value too large for defined data type; class=Os (2) (but only when using a build.rs) #9545

@leoniloris

Description

@leoniloris

Problem

I see the error Value too large for defined data type; class=Os (2) when building with cargo on a github action IF AND ONLY IF I have a file build.rs (even if this file is literally just an empty function).
When I don't have this file, the problem disappears (the file is doing nothing functionally. it is literally empty)

Steps
fully reproducible here:

with only two commits (and two runs on the actions), so one can see that literally, when I remove the file build.rs , the build goes through.

Possible Solution(s)

Remove the file build.rs

Notes

cargo version 1.52.0 (6976741 2021-04-21)


same issue here uraimo/run-on-arch-action#46 but since I don't know if it is a cargo issue or github actions issue, I'll post on both (for now. I'll close the unrelated one when we discover what's happening)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-build-scriptsArea: build.rs scriptsA-gitArea: anything dealing with gitA-rebuild-detectionArea: rebuild detection and fingerprintingC-bugCategory: bugS-blocked-externalStatus: ❌ blocked on something out of the direct control of the Cargo project, e.g., upstream fix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions