Comments (15)
@japaric I think you're more familiar with ARM assembly than I am, mind double-checking me on this to make sure I'm not off the rails?
from compiler-builtins.
I'll also note that I don't actually know what the error, if any, is in the udivsi3.S
file. It may not actually have any errors! What I'm doing could may be hiding the error somewhere else...
from compiler-builtins.
Would pulling in llvm-mirror/compiler-rt@6b34053 fix the issue?
from compiler-builtins.
Oh that's actually the commit I meant to mention above, unfortunately pulling that in didn't fix it
from compiler-builtins.
@alexcrichton I think I can fix this, how did you reproduce it locally?
from compiler-builtins.
@parched I think it should suffice to revert alexcrichton@681aaa9 and then run ci/run-docker.sh arm-unknown-linux-gnueabi
from compiler-builtins.
@alexcrichton Thanks, trying that I get to
...
+ cargo test --no-default-features --target arm-unknown-linux-gnueabi --features gen-tests mangled-names
Finished dev [unoptimized + debuginfo] target(s) in 0.0 secs
Running /target/arm-unknown-linux-gnueabi/debug/deps/compiler_builtins-eb4701e69158fd89
/target/arm-unknown-linux-gnueabi/debug/deps/compiler_builtins-eb4701e69158fd89: 1: /target/arm-unknown-linux-gnueabi/debug/deps/compiler_builtins-eb4701e69158fd89: Syntax error: word unexpected (expecting ")")
Have you seen that before?
from compiler-builtins.
@parched I believe that's related to Linux's support to run non-native binaries by hook them with something like a QEMU interpreter. You may need to do something like https://github.com/rust-lang-nursery/compiler-builtins/blob/238647af806470dc73e585c03682083931d29cd5/.travis.yml#L48-L49 on your host system.
from compiler-builtins.
@parched Alternatively you pass --no-run
to Cargo to compile the test but not run it, and then manually run the binary using QEMU (qemu-arm target/..
).
@alexcrichton That reminds me, now that Cargo has "runner" support we might be able to drop the qemu-user-static stuff and replace it with runner = "qemu-arm"
in .cargo/config.
from compiler-builtins.
Oh right yeah, that migh work great!
from compiler-builtins.
Ok thanks guys, I originally tried with just qemu-arm
but it complained about missing dynamic linker library or something. I've found though I just needed to pass it the directory of the libs in the cross toolchain with -L
. I made a small fix for the problem but I've found there is a more general problem with the builtins on a Thumb-1 but not Thumb-2 capable CPU. This looks like it is addressing it though https://reviews.llvm.org/rL298713.
from compiler-builtins.
@alexcrichton IMO for now we should just revert llvm-mirror/compiler-rt@2fb759f
from compiler-builtins.
We could, yes, but ideally we'd get that upstream
from compiler-builtins.
Fyi https://reviews.llvm.org/D31220 has been accepted upstream now
from compiler-builtins.
Great! As soon as we upgrade we can switch and close out this issue
from compiler-builtins.
Related Issues (20)
- `__extenddftf2` is found to be missing at runtime when using the WASI SDK to build Rust crates' C code HOT 2
- Getting C-defined intrinsics into a project that uses the stable compiler doesn't work because of all the `#![feature]` checks HOT 2
- Unable to find long double symbols on `aarch64-apple-darwin` HOT 4
- Adding feature to port `libm` for any target HOT 3
- Unable to use static macOS libraries in Unreal Engine projects HOT 2
- Regression: build failure on i686-pc-windows-gnu due to multiple definition of `_alloca` HOT 15
- Undefined reference to __chkstk, __alloca when building target i686-unknown-uefi
- aarch64 windows build failure HOT 1
- `aarch64-linux` `multf3` symbol has incorrect rounding HOT 1
- Unable to `-Zbuild-std` because std depends on `compiler-builtins` without the `no-f16-f128` features HOT 5
- Rounding error in `__mulsf3` HOT 6
- Inconsistent truncation of -0.0 HOT 6
- powerpc64le truncation failure HOT 1
- Errors building latest version on arm-android HOT 7
- Infinite recursion in sqrt HOT 4
- "was built for iOS 16.4" warning HOT 4
- Infinite recursion in `__extendhfsf2` and `__truncsfhf2` on "no-f16-f128" platforms HOT 6
- Various symbols on win/apple are no longer weak after #598 HOT 13
- Presence of `f16` in signatures causes missing symbols on PPC HOT 2
- Optimizing Compiler builtins causes build failure on VxWorks HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from compiler-builtins.