Revert "Fix invalid freebsd version selection"
This reverts commit 53e79b886b.
PR #2581 unintentionally changed libc's bindings from the FreeBSD 11 ABI
to the native ABI of the build host. This is causing breakage for many
downstream crates.
This reverts commit 53e79b886b.
PR #2581 unintentionally changed libc's bindings from the FreeBSD 11 ABI
to the native ABI of the build host. This is causing breakage for many
downstream crates.
Fix invalid freebsd version selection
Just realized when working on sysinfo that my `stafs` struct filled by `getmntinfo` was missing **a lot** of information. After trying to find out from my size what I missed, I simply check the `size_of` the rust struct vs the C struct and found `484 != 2384`. After looking a bit more, I discovered that only the CI was using the right freebsd version, which is quite problematic.
r? `@Amanieu`
Fix/remove deprecated DragonFly items
These items were recently deprecated on DragonFly, either because the platform does not define them or because they were out of date.
Update to the latest released wasi-libc and declare `getcwd`/`chdir`
Update to the latest version of wasi-libc which corresponds to the
version in the wasi-sdk 14.0 release.
And, add declarations for `getcwd` and `chdir`, which are now provided
by wasi-libc.
Update to the latest version of wasi-libc which corresponds to the
version in the wasi-sdk 14.0 release.
And, add declarations for `getcwd` and `chdir`, which are now provided
by wasi-libc.
memfd_create is a glibc API, which is not present on uclibc
I think the title says it all! The `armv7-unknown-linux-uclibceabihf` tier-3 target does not build without this change, and I suspect all other uclibc builds are broken as well.
It's a good reminder to try to add some CI validation of the uclibc build, which I will try to do in a followup PR.
To test this, get and unpack https://toolchains.bootlin.com/downloads/releases/toolchains/armv7-eabihf/tarballs/armv7-eabihf--uclibc--bleeding-edge-2020.08-1.tar.bz2
Note instances of `PATH_HERE` below which you'll have to customize for your system.
config.toml:
```
[target.armv7-unknown-linux-uclibceabihf]
linker = "/PATH_HERE/buildroot-armv7/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabihf-gcc"
runner = "qemu-arm -L /PATH_HERE/armv7-eabihf--uclibc--bleeding-edge-2020.08-1/arm-buildroot-linux-uclibcgnueabihf/sysroot/"
```
Then run:
```
cd libc-test
CC_armv7_unknown_linux_uclibceabihf=/PATH_HERE/armv7-eabihf--uclibc--bleeding-edge-2020.08-1/bin/arm-buildroot-linux-uclibcgnueabihf-gcc cargo +nightly test -Zbuild-std --target armv7-unknown-linux-uclibceabihf
```
(if there's a way to include that `CC_armv7_etc` cross CC in the config.toml, I'm all ears!)