Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

thumbv5te build fails with "LLVM ERROR: Unexpected anonymous function when writing summary" #246

Closed
archshift opened this issue Jun 17, 2018 · 3 comments

Comments

@archshift
Copy link

target spec thumbv5te-none-eabi.json:

{
    "arch": "arm",
    "cpu": "arm946e-s",
    "llvm-target": "thumbv5te-none-eabi",
    "os": "none",
    
    "data-layout": "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64",
    "relocation-model": "static",
    "target-endian": "little",
    "target-pointer-width": "32",
    "target-c-int-width": "32",
    "features": "+soft-float,+strict-align",
    
    "no-compiler-rt": true,
    "disable-redzone": true,
    "executables": true,
    "morestack": false,
    
    "linker-flavor": "gcc",
    "linker-is-gnu": true,
    "pre-link-args": {
        "gcc": [
            "-nostdlib",
            "-Tlayout.ld"
        ]
    },
    "post-link-args": {
        "gcc": [ "-lgcc" ]
    }
}

Using arm-none-eabi-gcc as my linker.

@Razaekel
Copy link

Razaekel commented Jul 1, 2018

I'm getting this same issue with the "thumbv7em-none-eabihf" target.

@japaric
Copy link
Member

japaric commented Jul 4, 2018

This has been reported upstream as rust-lang/rust#51947. AFAICT, it only happens when compiling with optimizations and debuginfo enabled. So try removing [profile.release] debug = true from Cargo.toml before invoking Xargo.

@Razaekel you don't need to compile compiler-builtins for that target, or Xargo for that matter. rustup target add thumbv7em-none-eabihf will give you a precompiled libcompiler_builtins; then you only need to do cargo build --target thumbv7em-none-eabihf.

@nikic
Copy link
Contributor

nikic commented Jan 18, 2019

The referenced rust issue has been fixed a while ago. This issue can probably be closed as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants