Skip to content

LLVM ERROR about f128 on AIX and SPARC32 when building core without optimization #133035

Closed
@taiki-e

Description

@taiki-e

Code

I tried this code:

#![no_std]
// empty

With cargo build -Z build-std=core --target powerpc64-ibm-aix:

rustc-LLVM ERROR: f128 is unimplemented on AIX.
error: could not compile `core` (lib)

With cargo build -Z build-std=core --target sparc-unknown-none-elf:

rustc-LLVM ERROR: SPARCv8 does not handle f128 in calls; pass indirectly
error: could not compile `core` (lib)

I expected to see this happen: no error

I suspect the same problem exists with the other targets listed here: https://github.com/rust-lang/compiler-builtins/blob/a09218f1c4d23ffbd97d68f0fefb5feed2469dc5/configure.rs#L82-L91

Workaround: Passing --release flag resolves error.

Version it worked on

It most recently worked on: nightly-2024-11-13

Version with regression

nightly-2024-11-14

rustc --version --verbose:

rustc 1.84.0-nightly (8adb4b30f 2024-11-13)
binary: rustc
commit-hash: 8adb4b30f40e6fbd21dc1ba26c3301c7eeb6de3c
commit-date: 2024-11-13
host: aarch64-apple-darwin
release: 1.84.0-nightly
LLVM version: 19.1.3

@rustbot label +regression-from-stable-to-nightly -regression-untriaged

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.F-f16_and_f128`#![feature(f16)]`, `#![feature(f128)]`O-SPARCTarget: SPARC processorsO-aixOS: Big Blue's Advanced Interactive eXecutive..T-libsRelevant to the library team, which will review and decide on the PR/issue.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions