Skip to content

ABI 'o32' is incompatible with target ABI 'n64' #30

Open
@command-tab

Description

@command-tab

I'm attempting to link in a Nintendo 64 SDK static library (libnusys.a), but the Rust linker errors out:

rust-lld: error: lto.tmp: ABI 'o32' is incompatible with target ABI 'n64'

Do you think I ought be producing o32 ABI binaries instead of n64 ones to match the static library? I'm curious what you make of this.

Here's my build.rs:

fn main() {
    println!("cargo:rustc-link-lib=static=nusys");
    println!("cargo:rustc-link-search=native=/path/to/n64kit/nusys/lib");
}

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is neededquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions