Skip to content

Link errors when compiling for i386 with +soft-float #62729

Open
@roblabla

Description

@roblabla

It appears that since #61408, rust now requires fminf and fmaxf functions to be present when compiling for i386 with +soft-float (using a custom target JSON). However, compiler-builtins only expose those functions for some targets, which don't include x86.

Maybe compiler-builtins should include a target-feature = "soft-float" in the list of conditions to enable the math module?

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-linkageArea: linking into static, shared libraries and binariesC-bugCategory: This is a bug.O-x86_32Target: x86 processors, 32 bit (like i686-*) (IA-32)O-x86_64Target: x86-64 processors (like x86_64-*) (also known as amd64 and x64)T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions