Skip to content

zig cc/cxx does not cross compile for mips with soft float ABI #11829

@mutexstream

Description

@mutexstream

Zig Version

0.10.0-dev.2489+33826a6a2

Steps to Reproduce

Source:
https://github.com/pion/example-webrtc-applications/tree/master/gstreamer-send

Command:

CGO_ENABLED=1 GOOS=linux GOARCH=mips GOMIPS=softfloat CC="zig cc -target mips-linux -mfloat-abi=soft" CXX="zig c++ -target mips-linux -mfloat-abi=soft" go build .

Expected Behavior

It should compile without errors.

Actual Behavior

Result:

ld.lld: error: /home/mutexstream/.cache/zig/o/27c934a305bc7be2d3dc8209ed181ee2/crti.o: floating point ABI '-mdouble-float' is incompatible with target floating point ABI '-msoft-float'
ld.lld: error: /home/mutexstream/.cache/zig/o/4a7bb80591134121bd13936b0782e780/libc.a(/home/mutexstream/.cache/zig/o/c7de9ffe26be171b78c4809ff561c333/__unmapself.o): floating point ABI '-mdouble-float' is incompatible with target floating point ABI '-msoft-float'
ld.lld: error: /home/mutexstream/.cache/zig/o/4a7bb80591134121bd13936b0782e780/libc.a(/home/mutexstream/.cache/zig/o/38b8c57188dffb80bf0d2fa0959fd2cb/clone.o): floating point ABI '-mdouble-float' is incompatible with target floating point ABI '-msoft-float'
ld.lld: error: /home/mutexstream/.cache/zig/o/4a7bb80591134121bd13936b0782e780/libc.a(/home/mutexstream/.cache/zig/o/746141585860bd845bda6a5f649db21c/restore.o): floating point ABI '-mdouble-float' is incompatible with target floating point ABI '-msoft-float'
ld.lld: error: /home/mutexstream/.cache/zig/o/dcf4f837f4fab0017d6efd54aff4f7cf/crtn.o: floating point ABI '-mdouble-float' is incompatible with target floating point ABI '-msoft-float'

Metadata

Metadata

Assignees

No one assigned

    Labels

    abi-sfThe software floating point ABI for various architecturesarch-mips32-bit MIPSbugObserved behavior contradicts documented or intended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions