-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
-target arm-linux-musleabi builds musl with hard floats enabled. #10961
Copy link
Copy link
Closed
Labels
abi-sfThe software floating point ABI for various architecturesThe software floating point ABI for various architecturesarch-arm32-bit Arm32-bit ArmbugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviorcontributor friendlyThis issue is limited in scope and/or knowledge of Zig internals.This issue is limited in scope and/or knowledge of Zig internals.frontendTokenization, parsing, AstGen, Sema, and Liveness.Tokenization, parsing, AstGen, Sema, and Liveness.os-linuxLinuxLinux
Milestone
Metadata
Metadata
Assignees
Labels
abi-sfThe software floating point ABI for various architecturesThe software floating point ABI for various architecturesarch-arm32-bit Arm32-bit ArmbugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviorcontributor friendlyThis issue is limited in scope and/or knowledge of Zig internals.This issue is limited in scope and/or knowledge of Zig internals.frontendTokenization, parsing, AstGen, Sema, and Liveness.Tokenization, parsing, AstGen, Sema, and Liveness.os-linuxLinuxLinux
Type
Fields
Give feedbackNo fields configured for issues without a type.
Zig Version
0.10.0-dev.495+254b8c8d1
Steps to Reproduce
Expected Behavior
musleabishould enforce SoftFloat and zig should compile musl w/o issues.This issue can be workaround by specifying
soft_floatin the-mcpuargument:-mcpu arm926ej_s+soft_floatActual Behavior
clang is crashing when compiling
lib/libc/musl/src/math/arm/sqrtf.cbecause__SOFTFP__is not defined, and it is using the inline assembly.I didn't looked too much into this, but it looks like llvm is crashing at codegen for passing input/output registers to/from that inline assembly.