Comments (7)
Yes, that looks like qemu-user is failing due to threads. There's not much you can do about it. One way to solve it would be to use qemu-system-arm instead and run the tests in a full VM (though you can probably get away with just the kernel and running the test with init=/test
, in which case all you need is a kernel image).
from compiler-builtins.
@Amanieu Thanks for taking a peek.
Yes, that looks like qemu-user is failing due to threads.
What I feared. 🙀
One way to solve it would be to use qemu-system-arm instead and run the tests in a full VM
Sounds annoying. Know of any place where I can get an ARM kernel image? For the rootfs I think I can use one of ubuntu-core's.
though you can probably get away with just the kernel and running the test with init=/test, in which case all you need is a kernel image
Hmm, I'm not sure. The test binary is dynamically linked and depends on libc and other C libraries.
from compiler-builtins.
This might be helpful.
from compiler-builtins.
mips-unknown-linux-gnu
powerpc64-unknown-linux-gnu
powerpc64le-unknown-linux-gnu
QEMU for these three targets appears to be flat out broken. Even this simple program causes a segfault when executed with QEMU for these targets:
int main() { return 0; }
This issue have been reported upstream but there has been no action. Also, someone claims that the 32-bit version of qemu-$TARGET doesn't segfault on amd64. Might try that.
from compiler-builtins.
Also, someone claims that the 32-bit version of qemu-$TARGET doesn't segfault on amd64. Might try that.
And, weirdly enough, it actually works! At least on MIPS. Will send a PR.
from compiler-builtins.
And, weirdly enough, it actually works! At least on MIPS. Will send a PR.
Fixed the mips and ppc64 targets. The trick didn't work on the ppc64le target.
from compiler-builtins.
Switching Travis to exclusively use Docker (Ubuntu 16.04) fixed the flakiness of the ARM targets. The ppc64le target still doesn't work (QEMU appears to be busted) but I'm OK with that; we got 16 of 17 targets working so I'm gonna close this.
from compiler-builtins.
Related Issues (20)
- Missing symbols - aarch64-unknown-linux-musl HOT 1
- Turn on -werror for C code build? HOT 3
- For msp430, `__ashldi3` takes a 16-bit integer as the second argument in LLVM's `compiler-rt`. Probably affects other builtins. HOT 4
- 'LLVM ERROR: Expected a constant shift amount!' when compiling for avr-atmega328p HOT 28
- The "mangled-names" feature removes intrinsics from compiler_builtins that aren't in compiler_rt HOT 9
- AEABI division function linking problems (again) HOT 2
- duplicated intrinsic implementations linked into libstd HOT 4
- libm directory is missing from 0.1.97 crates.io release HOT 2
- wrong define of 128-bit related functions like `__multi3` and `__floatuntidf` on `csky` HOT 4
- The `USE_NATIVE_FULL_ITERATIONS` codepath in `div64` is broken
- Several functions perform out-of-bounds memory accesses (which is UB) HOT 16
- undefined reference to `memcpy`, undefined reference to `memset` HOT 1
- `__extenddftf2` is found to be missing at runtime when using the WASI SDK to build Rust crates' C code HOT 1
- 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
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.