summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Auto merge of #3180 - jsha:print-rustc-error-output, r=JohnTitor0.2.141bors2023-04-041-0/+8
|\ | | | | | | | | | | | | | | build.rs: print rustc stderr if exit status != 0 I was trying to run benchmarks locally with rustc-perf and found that many of them failed to build with a message from libc's build.rs "Failed to get rustc version." I made this change locally to help debug, and I think it would be generally useful. In my case it quickly revealed that rustc was failing to find libLLVM and so `rustc --version` was emitting nothing on stdout. I think this may have been part of what was intended with #3000 and might help debug https://github.com/rust-lang/crater/issues/663.
| * build.rs: print rustc stderr if exit status != 0Jacob Hoffman-Andrews2023-04-031-0/+8
| |
* | Auto merge of #3177 - arjentz:0.2.141, r=JohnTitorbors2023-04-042-3/+3
|\ \ | | | | | | | | | | | | | | | Bump version to 0.2.141 Bump version as requested in https://github.com/rust-lang/socket2/issues/405
| * | Bump version to 0.2.141Arjen2023-03-292-3/+3
| |/
* | Auto merge of #3185 - valpackett:aix, r=JohnTitorbors2023-04-031-0/+23
|\ \ | | | | | | | | | | | | | | | | | | | | | aix: add siginfo_t accessors for symmetry with other platforms On other platforms it's possible to call e.g. `si_status()`, it was missing on AIX. btw, the `#[cfg(libc_union)]` usage in the `siginfo_t` itself looks quite wrong…
| * | aix: add siginfo_t accessors for symmetry with other platformsVal Packett2023-04-031-0/+23
| | |
* | | Auto merge of #3155 - folkertdev:hardware-timestamping, r=JohnTitorbors2023-04-033-1/+82
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | definitions for linux hardware timestamping Definitions can be found here https://elixir.bootlin.com/linux/latest/source/include/uapi/linux/net_tstamp.h#L76 These definitions are relevant for (PTP and NTP) hardware timestamping
| * | | definitions for linux hardware timestampingFolkert2023-04-033-1/+82
| |/ /
* | | Auto merge of #3183 - ChrisDenton:align-stack-buffer, r=JohnTitorbors2023-04-031-13/+11
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | Use aligned `cmsghdr` structs `test_cmsg_nxthdr` Fixes #3181. I could find no reason for using unaligned structs in this test.
| * | Use aligned `cmsghdr` structs `test_cmsg_nxthdr`Chris Denton2023-04-021-13/+11
| | |
* | | Auto merge of #3176 - coolreader18:aix-const-cmsg_space, r=JohnTitorbors2023-04-021-1/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | Make CMSG_SPACE on aix const Now `CMSG_SPACE` is const (when `libc_const_extern_fn`) on every platform that has it
| * | | Make CMSG_SPACE on aix constNoa2023-03-291-1/+1
| | |/ | |/|
* | | Auto merge of #3150 - valpackett:kq, r=JohnTitorbors2023-04-029-5/+52
|\ \ \ | | | | | | | | | | | | | | | | | | | | Add missing kqueue constants across BSDs While here, reorder some to match the C headers
| * | | Add missing kqueue constants across BSDsVal Packett2023-03-299-5/+52
| |/ / | | | | | | | | | While here, reorder some to match the C headers
* | | Auto merge of #3035 - jreppnow:rtnetlink-ext-filter, r=JohnTitorbors2023-04-023-0/+17
|\ \ \ | | | | | | | | | | | | | | | | | | | | Adding RTEXT_FILTER* constants from linux/rtnetlink.h Adding some constants needed for some specific netlink-route interactions (fetching information on a network interface). They are defined at ```linux/rtnetlink.h```.
| * | | ignore RTEXT_FILTER_* constants for non-GNU Linux libc checksJanosch Reppnow2023-02-261-0/+2
| | | |
| * | | add RTEXT_FILTER* constants from linux/rtnetlink.hJanosch Reppnow2023-02-262-0/+15
| | | |
* | | | Auto merge of #3174 - devnexen:redox_reallocarray, r=JohnTitorbors2023-04-022-0/+4
|\ \ \ \ | |_|_|/ |/| | | | | | | redox reallocarray addition
| * | | redox reallocarray additionDavid Carlier2023-03-282-0/+4
| | | |
* | | | Auto merge of #3182 - JohnTitor:skip-cmsg-nxthdr-freebsd, r=JohnTitorbors2023-04-021-0/+3
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | | | | | Disable the `test_cmsg_nxthdr` test A stopgap for https://github.com/rust-lang/libc/issues/3181
| * | | Disable `test_cmsg_nxthdr`Yuki Okushi2023-04-021-0/+3
|/ / / | | | | | | | | | Signed-off-by: Yuki Okushi <jtitor@2k36.org>
* | | Auto merge of #3153 - devnexen:dl_iterate_phdr_haiku, r=JohnTitorbors2023-03-292-0/+18
|\ \ \ | | | | | | | | | | | | haku adding dl_iterate_phdr bsd extension
| * | | haku adding dl_iterate_phdr bsd extensionDavid Carlier2023-03-232-0/+18
| | | |
* | | | Auto merge of #3166 - kxxt:riscv64gc-userregs, r=JohnTitorbors2023-03-292-0/+70
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | Add user_regs_struct for riscv32/64 Copied from C header: https://elixir.bootlin.com/linux/latest/source/arch/riscv/include/uapi/asm/ptrace.h
| * | | | Add user_regs_struct for riscv32/64kxxt2023-03-282-0/+70
| |/ / /
* | | | Auto merge of #3152 - shua:mactime, r=JohnTitorbors2023-03-292-0/+24
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | mac time.h functions I used these in https://github.com/shua/graf because I'm used to them, and don't really want to pull in time or chrono just for some stuff already present in libc.h . Compilation worked fine on my linux target, but failed on mac osx because these weren't defined in rust-lang/libc (but these are all present in 13.1 SDK).
| * | | apple: add time.h functionsshua2023-03-262-0/+24
| | | |
* | | | Auto merge of #3165 - devnexen:haiku_memmem, r=JohnTitorbors2023-03-281-0/+10
|\ \ \ \ | | | | | | | | | | | | | | | add memmem GNU extension for haiku
| * | | | add memmem GNU extension for haikuDavid Carlier2023-03-241-0/+10
| | |/ / | |/| |
* | | | Auto merge of #3164 - devnexen:redox_explicit_bzero, r=JohnTitorbors2023-03-282-0/+4
|\ \ \ \ | | | | | | | | | | | | | | | redox add explicit_bzero
| * | | | redox add explicit_bzeroDavid CARLIER2023-03-242-0/+4
| |/ / /
* | | | Auto merge of #3168 - devnexen:redox_strclpy_api, r=JohnTitorbors2023-03-272-0/+6
|\ \ \ \ | | | | | | | | | | | | | | | redox add strlcpy api
| * | | | redox add strlcpy apiDavid CARLIER2023-03-252-0/+6
| |/ / /
* | | | Auto merge of #3172 - JohnTitor:pin-freebsd-14, r=JohnTitorbors2023-03-271-1/+4
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | FreeBSD: Ignore test for remove const This brings us some problems, let's pin it.
| * | | FreeBSD: Ignore test for remove constYuki Okushi2023-03-281-1/+4
|/ / / | | | | | | | | | Signed-off-by: Yuki Okushi <jtitor@2k36.org>
* | | Auto merge of #3162 - JohnTitor:enable-triagebot-shortcut, r=JohnTitorbors2023-03-231-0/+2
|\ \ \ | | | | | | | | | | | | Enable the "shortcut" feature for triagebot
| * | | Enable the "shortcut" feature for triagebotYuki Okushi2023-03-231-0/+2
| |/ / | | | | | | | | | Signed-off-by: Yuki Okushi <jtitor@2k36.org>
* | | Auto merge of #3156 - ribalda:kexec, r=JohnTitorbors2023-03-235-0/+31
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | linux: add kexec flags This adds `KEXEC_ARCH_MASK`, `KEXEC_FILE_NO_INITRAMFS`, `KEXEC_FILE_ON_CRASH`, `KEXEC_FILE_UNLOAD`, `KEXEC_ON_CRASH`, and `KEXEC_PRESERVE_CONTEXT` constants on Linux and Android. Those are used by `kexec` and `kexec_file_load` syscalls.
| * | | linux: add kexec flagsRicardo Ribalda2023-03-205-0/+31
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds `KEXEC_ARCH_MASK`, `KEXEC_FILE_NO_INITRAMFS`, `KEXEC_FILE_ON_CRASH`, `KEXEC_FILE_UNLOAD`, `KEXEC_ON_CRASH`, and `KEXEC_PRESERVE_CONTEXT` constants on Linux and Android. Those are used by `kexec` and `kexec_file_load` syscalls, and they are defined at: * https://github.com/torvalds/linux/blob/v6.2/include/uapi/linux/kexec.h#L12-L26
* | | Auto merge of #3158 - devnexen:haiku_progname, r=JohnTitorbors2023-03-231-0/+3
|\ \ \ | |/ / |/| | | | | progname api for haiku
| * | progname api for haikuDavid Carlier2023-03-201-0/+3
|/ /
* | Auto merge of #3146 - lcheylus:openbsd, r=JohnTitorbors2023-03-152-0/+10
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add OpenBSD CLOCK_* constants To compile [`wasmer-wasi`](https://github.com/wasmerio/wasmer/tree/master/lib/wasi) crate (part of Wasmer) on OpenBSD, I need to add CLOCK_* constants from `/usr/include/sys_time.h` file. - Add CLOCK_* constants in `src/unix/bsd/netbsdlike/openbsd/mod.rs` - Update `libc-test/semver/openbsd.txt` accordingly cc `@semarie`
| * | Add OpenBSD CLOCK_* constantsLaurent Cheylus2023-03-132-0/+10
|/ / | | | | | | | | | | | | | | - src/unix/bsd/netbsdlike/openbsd/mod.rs: add CLOCK_* constants from /usr/include/sys/_time.h - libc-test/semver/openbsd.txt: update file for new constants CLOCK_* Signed-off-by: Laurent Cheylus <foxy@free.fr>
* | Auto merge of #3145 - coolreader18:redox-locale, r=JohnTitorbors2023-03-132-1/+11
|\ \ | | | | | | | | | | | | | | | Add LC_ constants for redox (and truncate() is now supported) From `relibc/include/bits/locale.h` and `relibc/src/header/unistd/mod.rs`
| * | Add LC_ constants for redox (and truncate() is now supported)Noa2023-03-102-1/+11
| | |
* | | Auto merge of #3140 - sunfishcode:sunfishcode/map-sync-sock-seqpacket, ↵bors2023-03-133-2/+4
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r=JohnTitor Fix `SOCK_SEQPACKET` and `MAP_SYNC` on musl powerpc and s390. - On powerpc musl, add definitions for `MAP_HUGETLB` and `MAP_SYNC`. - On powerpc64 musl, add a definition for `SOCK_SEQPACKET`. - On s390x musl, add definitions for `SOCK_SEQPACKET` and `MAP_SYNC`. - On mips, just move the existing `MAP_HUGETLB` definition to be near the other `MAP_*` constants.
| * | | Fix `MAP_SYNC` on musl powerpc and s390.Dan Gohman2023-03-123-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - On powerpc musl, add definitions for `MAP_HUGETLB` and `MAP_SYNC`. - On s390x musl, add a definition `MAP_SYNC`. - On mips, just move the existing `MAP_HUGETLB` definition to be near the other `MAP_*` constants.
* | | | Auto merge of #3148 - KoviRobi:add-reentrant-getmntent_r, r=JohnTitorbors2023-03-122-0/+11
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add reentrant glibc getmntent_r - \[x] Edit corresponding file(s) under `libc-test/semver` when you add/remove item(s) - \[x] `rustc ci/style.rs && ./style src` - \[ ] `cd libc-test && cargo test` (This might fail on your env due to environment difference between your env and CI. Ignore failures if you are not sure.) <details> <summary>**Maybe**, see the cargo test output -- I am unsure about the failures</summary> ``` …/libc-rust/libc-test on  add-reentrant-getmntent_r [⇕] is 📦 v0.2.140 via 🦀 v1.67.0 via  (nix-shell-env) at 23:04:37 nu ❯ cargo test Compiling libc v0.2.140 (/home/rmk35/programming/rust/libc-rust) Compiling libc-test v0.2.140 (/home/rmk35/programming/rust/libc-rust/libc-test) The following warnings were emitted during compilation: warning: In file included from /nix/store/pqnd39aq2sksad2zvswjcpkqdc7ig3f9-glibc-2.35-224-dev/include/sys/types.h:25, warning: from /nix/store/pqnd39aq2sksad2zvswjcpkqdc7ig3f9-glibc-2.35-224-dev/include/sys/param.h:25, warning: from src/cmsg.c:1: warning: /nix/store/pqnd39aq2sksad2zvswjcpkqdc7ig3f9-glibc-2.35-224-dev/include/features.h:412:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] warning: 412 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) warning: | ^~~~~~~ warning: In file included from /nix/store/pqnd39aq2sksad2zvswjcpkqdc7ig3f9-glibc-2.35-224-dev/include/sys/types.h:25, warning: from src/makedev.c:1: warning: /nix/store/pqnd39aq2sksad2zvswjcpkqdc7ig3f9-glibc-2.35-224-dev/include/features.h:412:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] warning: 412 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) warning: | ^~~~~~~ warning: In file included from /nix/store/pqnd39aq2sksad2zvswjcpkqdc7ig3f9-glibc-2.35-224-dev/include/time.h:25, warning: from src/errqueue.c:1: warning: /nix/store/pqnd39aq2sksad2zvswjcpkqdc7ig3f9-glibc-2.35-224-dev/include/features.h:412:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] warning: 412 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) warning: | ^~~~~~~ warning: In file included from /nix/store/pqnd39aq2sksad2zvswjcpkqdc7ig3f9-glibc-2.35-224-dev/include/signal.h:25, warning: from src/sigrt.c:1: warning: /nix/store/pqnd39aq2sksad2zvswjcpkqdc7ig3f9-glibc-2.35-224-dev/include/features.h:412:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] warning: 412 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) warning: | ^~~~~~~ warning: In file included from /nix/store/pqnd39aq2sksad2zvswjcpkqdc7ig3f9-glibc-2.35-224-dev/include/bits/libc-header-start.h:33, warning: from /nix/store/pqnd39aq2sksad2zvswjcpkqdc7ig3f9-glibc-2.35-224-dev/include/stdio.h:27, warning: from /home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out/main.c:1: warning: /nix/store/pqnd39aq2sksad2zvswjcpkqdc7ig3f9-glibc-2.35-224-dev/include/features.h:412:4: error: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Werror=cpp] warning: 412 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) warning: | ^~~~~~~ warning: /home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out/main.c: In function ‘__test_roundtrip_inotify_event’: warning: /home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out/main.c:23145:13: note: the ABI of passing struct with a flexible array member has changed in GCC 4.4 warning: 23145 | ) { warning: | ^ warning: /home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out/main.c: In function ‘__test_fsize_af_alg_iv_iv’: warning: /home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out/main.c:25567:34: error: invalid application of ‘sizeof’ to incomplete type ‘__u8[]’ {aka ‘unsigned char[]’} warning: 25567 | return sizeof(foo->iv); warning: | ^ warning: /home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out/main.c:25568:17: error: control reaches end of non-void function [-Werror=return-type] warning: 25568 | } warning: | ^ warning: At top level: warning: cc1: note: unrecognized command-line option ‘-Wno-unknown-warning-option’ may have been intended to silence earlier diagnostics warning: cc1: all warnings being treated as errors error: failed to run custom build command for `libc-test v0.2.140 (/home/rmk35/programming/rust/libc-rust/libc-test)` Caused by: process didn't exit successfully: `/home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-e11b1093bd48972c/build-script-build` (exit status: 1) --- stdout TARGET = Some("x86_64-unknown-linux-gnu") OPT_LEVEL = Some("0") HOST = Some("x86_64-unknown-linux-gnu") cargo:rerun-if-env-changed=CC_x86_64-unknown-linux-gnu CC_x86_64-unknown-linux-gnu = None cargo:rerun-if-env-changed=CC_x86_64_unknown_linux_gnu CC_x86_64_unknown_linux_gnu = None cargo:rerun-if-env-changed=HOST_CC HOST_CC = None cargo:rerun-if-env-changed=CC CC = Some("gcc") cargo:rerun-if-env-changed=CFLAGS_x86_64-unknown-linux-gnu CFLAGS_x86_64-unknown-linux-gnu = None cargo:rerun-if-env-changed=CFLAGS_x86_64_unknown_linux_gnu CFLAGS_x86_64_unknown_linux_gnu = None cargo:rerun-if-env-changed=HOST_CFLAGS HOST_CFLAGS = None cargo:rerun-if-env-changed=CFLAGS CFLAGS = None cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS CRATE_CC_NO_DEFAULTS = None DEBUG = Some("true") CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2") running: "gcc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-4" "-fno-omit-frame-pointer" "-m64" "-Wall" "-Wextra" "-o" "/home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out/src/cmsg.o" "-c" "src/cmsg.c" cargo:warning=In file included from /nix/store/pqnd39aq2sksad2zvswjcpkqdc7ig3f9-glibc-2.35-224-dev/include/sys/types.h:25, cargo:warning= from /nix/store/pqnd39aq2sksad2zvswjcpkqdc7ig3f9-glibc-2.35-224-dev/include/sys/param.h:25, cargo:warning= from src/cmsg.c:1: cargo:warning=/nix/store/pqnd39aq2sksad2zvswjcpkqdc7ig3f9-glibc-2.35-224-dev/include/features.h:412:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] cargo:warning= 412 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) cargo:warning= | ^~~~~~~ exit status: 0 cargo:rerun-if-env-changed=AR_x86_64-unknown-linux-gnu AR_x86_64-unknown-linux-gnu = None cargo:rerun-if-env-changed=AR_x86_64_unknown_linux_gnu AR_x86_64_unknown_linux_gnu = None cargo:rerun-if-env-changed=HOST_AR HOST_AR = None cargo:rerun-if-env-changed=AR AR = Some("ar") cargo:rerun-if-env-changed=ARFLAGS_x86_64-unknown-linux-gnu ARFLAGS_x86_64-unknown-linux-gnu = None cargo:rerun-if-env-changed=ARFLAGS_x86_64_unknown_linux_gnu ARFLAGS_x86_64_unknown_linux_gnu = None cargo:rerun-if-env-changed=HOST_ARFLAGS HOST_ARFLAGS = None cargo:rerun-if-env-changed=ARFLAGS ARFLAGS = None running: "ar" "cq" "/home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out/libcmsg.a" "/home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out/src/cmsg.o" exit status: 0 running: "ar" "s" "/home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out/libcmsg.a" exit status: 0 cargo:rustc-link-lib=static=cmsg cargo:rustc-link-search=native=/home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out TARGET = Some("x86_64-unknown-linux-gnu") OPT_LEVEL = Some("0") HOST = Some("x86_64-unknown-linux-gnu") cargo:rerun-if-env-changed=CC_x86_64-unknown-linux-gnu CC_x86_64-unknown-linux-gnu = None cargo:rerun-if-env-changed=CC_x86_64_unknown_linux_gnu CC_x86_64_unknown_linux_gnu = None cargo:rerun-if-env-changed=HOST_CC HOST_CC = None cargo:rerun-if-env-changed=CC CC = Some("gcc") cargo:rerun-if-env-changed=CFLAGS_x86_64-unknown-linux-gnu CFLAGS_x86_64-unknown-linux-gnu = None cargo:rerun-if-env-changed=CFLAGS_x86_64_unknown_linux_gnu CFLAGS_x86_64_unknown_linux_gnu = None cargo:rerun-if-env-changed=HOST_CFLAGS HOST_CFLAGS = None cargo:rerun-if-env-changed=CFLAGS CFLAGS = None cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS CRATE_CC_NO_DEFAULTS = None DEBUG = Some("true") CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2") running: "gcc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-4" "-fno-omit-frame-pointer" "-m64" "-Wall" "-Wextra" "-o" "/home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out/src/makedev.o" "-c" "src/makedev.c" cargo:warning=In file included from /nix/store/pqnd39aq2sksad2zvswjcpkqdc7ig3f9-glibc-2.35-224-dev/include/sys/types.h:25, cargo:warning= from src/makedev.c:1: cargo:warning=/nix/store/pqnd39aq2sksad2zvswjcpkqdc7ig3f9-glibc-2.35-224-dev/include/features.h:412:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] cargo:warning= 412 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) cargo:warning= | ^~~~~~~ exit status: 0 cargo:rerun-if-env-changed=AR_x86_64-unknown-linux-gnu AR_x86_64-unknown-linux-gnu = None cargo:rerun-if-env-changed=AR_x86_64_unknown_linux_gnu AR_x86_64_unknown_linux_gnu = None cargo:rerun-if-env-changed=HOST_AR HOST_AR = None cargo:rerun-if-env-changed=AR AR = Some("ar") cargo:rerun-if-env-changed=ARFLAGS_x86_64-unknown-linux-gnu ARFLAGS_x86_64-unknown-linux-gnu = None cargo:rerun-if-env-changed=ARFLAGS_x86_64_unknown_linux_gnu ARFLAGS_x86_64_unknown_linux_gnu = None cargo:rerun-if-env-changed=HOST_ARFLAGS HOST_ARFLAGS = None cargo:rerun-if-env-changed=ARFLAGS ARFLAGS = None running: "ar" "cq" "/home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out/libmakedev.a" "/home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out/src/makedev.o" exit status: 0 running: "ar" "s" "/home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out/libmakedev.a" exit status: 0 cargo:rustc-link-lib=static=makedev cargo:rustc-link-search=native=/home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out TARGET = Some("x86_64-unknown-linux-gnu") OPT_LEVEL = Some("0") HOST = Some("x86_64-unknown-linux-gnu") cargo:rerun-if-env-changed=CC_x86_64-unknown-linux-gnu CC_x86_64-unknown-linux-gnu = None cargo:rerun-if-env-changed=CC_x86_64_unknown_linux_gnu CC_x86_64_unknown_linux_gnu = None cargo:rerun-if-env-changed=HOST_CC HOST_CC = None cargo:rerun-if-env-changed=CC CC = Some("gcc") cargo:rerun-if-env-changed=CFLAGS_x86_64-unknown-linux-gnu CFLAGS_x86_64-unknown-linux-gnu = None cargo:rerun-if-env-changed=CFLAGS_x86_64_unknown_linux_gnu CFLAGS_x86_64_unknown_linux_gnu = None cargo:rerun-if-env-changed=HOST_CFLAGS HOST_CFLAGS = None cargo:rerun-if-env-changed=CFLAGS CFLAGS = None cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS CRATE_CC_NO_DEFAULTS = None DEBUG = Some("true") CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2") running: "gcc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-4" "-fno-omit-frame-pointer" "-m64" "-Wall" "-Wextra" "-o" "/home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out/src/errqueue.o" "-c" "src/errqueue.c" cargo:warning=In file included from /nix/store/pqnd39aq2sksad2zvswjcpkqdc7ig3f9-glibc-2.35-224-dev/include/time.h:25, cargo:warning= from src/errqueue.c:1: cargo:warning=/nix/store/pqnd39aq2sksad2zvswjcpkqdc7ig3f9-glibc-2.35-224-dev/include/features.h:412:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] cargo:warning= 412 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) cargo:warning= | ^~~~~~~ exit status: 0 cargo:rerun-if-env-changed=AR_x86_64-unknown-linux-gnu AR_x86_64-unknown-linux-gnu = None cargo:rerun-if-env-changed=AR_x86_64_unknown_linux_gnu AR_x86_64_unknown_linux_gnu = None cargo:rerun-if-env-changed=HOST_AR HOST_AR = None cargo:rerun-if-env-changed=AR AR = Some("ar") cargo:rerun-if-env-changed=ARFLAGS_x86_64-unknown-linux-gnu ARFLAGS_x86_64-unknown-linux-gnu = None cargo:rerun-if-env-changed=ARFLAGS_x86_64_unknown_linux_gnu ARFLAGS_x86_64_unknown_linux_gnu = None cargo:rerun-if-env-changed=HOST_ARFLAGS HOST_ARFLAGS = None cargo:rerun-if-env-changed=ARFLAGS ARFLAGS = None running: "ar" "cq" "/home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out/liberrqueue.a" "/home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out/src/errqueue.o" exit status: 0 running: "ar" "s" "/home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out/liberrqueue.a" exit status: 0 cargo:rustc-link-lib=static=errqueue cargo:rustc-link-search=native=/home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out TARGET = Some("x86_64-unknown-linux-gnu") OPT_LEVEL = Some("0") HOST = Some("x86_64-unknown-linux-gnu") cargo:rerun-if-env-changed=CC_x86_64-unknown-linux-gnu CC_x86_64-unknown-linux-gnu = None cargo:rerun-if-env-changed=CC_x86_64_unknown_linux_gnu CC_x86_64_unknown_linux_gnu = None cargo:rerun-if-env-changed=HOST_CC HOST_CC = None cargo:rerun-if-env-changed=CC CC = Some("gcc") cargo:rerun-if-env-changed=CFLAGS_x86_64-unknown-linux-gnu CFLAGS_x86_64-unknown-linux-gnu = None cargo:rerun-if-env-changed=CFLAGS_x86_64_unknown_linux_gnu CFLAGS_x86_64_unknown_linux_gnu = None cargo:rerun-if-env-changed=HOST_CFLAGS HOST_CFLAGS = None cargo:rerun-if-env-changed=CFLAGS CFLAGS = None cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS CRATE_CC_NO_DEFAULTS = None DEBUG = Some("true") CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2") running: "gcc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-4" "-fno-omit-frame-pointer" "-m64" "-Wall" "-Wextra" "-o" "/home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out/src/sigrt.o" "-c" "src/sigrt.c" cargo:warning=In file included from /nix/store/pqnd39aq2sksad2zvswjcpkqdc7ig3f9-glibc-2.35-224-dev/include/signal.h:25, cargo:warning= from src/sigrt.c:1: cargo:warning=/nix/store/pqnd39aq2sksad2zvswjcpkqdc7ig3f9-glibc-2.35-224-dev/include/features.h:412:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] cargo:warning= 412 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) cargo:warning= | ^~~~~~~ exit status: 0 cargo:rerun-if-env-changed=AR_x86_64-unknown-linux-gnu AR_x86_64-unknown-linux-gnu = None cargo:rerun-if-env-changed=AR_x86_64_unknown_linux_gnu AR_x86_64_unknown_linux_gnu = None cargo:rerun-if-env-changed=HOST_AR HOST_AR = None cargo:rerun-if-env-changed=AR AR = Some("ar") cargo:rerun-if-env-changed=ARFLAGS_x86_64-unknown-linux-gnu ARFLAGS_x86_64-unknown-linux-gnu = None cargo:rerun-if-env-changed=ARFLAGS_x86_64_unknown_linux_gnu ARFLAGS_x86_64_unknown_linux_gnu = None cargo:rerun-if-env-changed=HOST_ARFLAGS HOST_ARFLAGS = None cargo:rerun-if-env-changed=ARFLAGS ARFLAGS = None running: "ar" "cq" "/home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out/libsigrt.a" "/home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out/src/sigrt.o" exit status: 0 running: "ar" "s" "/home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out/libsigrt.a" exit status: 0 cargo:rustc-link-lib=static=sigrt cargo:rustc-link-search=native=/home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out ----------------------------------------- cargo:rerun-if-changed=../src/lib.rs cargo:rerun-if-changed=../src/macros.rs cargo:rerun-if-changed=../src/fixed_width_ints.rs cargo:rerun-if-changed=../src/unix/mod.rs cargo:rerun-if-changed=../src/unix/linux_like/mod.rs cargo:rerun-if-changed=../src/unix/linux_like/linux/mod.rs cargo:rerun-if-changed=../src/unix/linux_like/linux/gnu/mod.rs cargo:rerun-if-changed=../src/unix/linux_like/linux/gnu/b64/mod.rs cargo:rerun-if-changed=../src/unix/linux_like/linux/gnu/b64/x86_64/mod.rs cargo:rerun-if-changed=../src/unix/linux_like/linux/gnu/b64/x86_64/not_x32.rs cargo:rerun-if-changed=../src/unix/linux_like/linux/arch/mod.rs cargo:rerun-if-changed=../src/unix/linux_like/linux/arch/generic/mod.rs cargo:rerun-if-changed=../src/unix/linux_like/linux/align.rs OPT_LEVEL = Some("0") HOST = Some("x86_64-unknown-linux-gnu") cargo:rerun-if-env-changed=CC_x86_64-unknown-linux-gnu CC_x86_64-unknown-linux-gnu = None cargo:rerun-if-env-changed=CC_x86_64_unknown_linux_gnu CC_x86_64_unknown_linux_gnu = None cargo:rerun-if-env-changed=HOST_CC HOST_CC = None cargo:rerun-if-env-changed=CC CC = Some("gcc") cargo:rerun-if-env-changed=CFLAGS_x86_64-unknown-linux-gnu CFLAGS_x86_64-unknown-linux-gnu = None cargo:rerun-if-env-changed=CFLAGS_x86_64_unknown_linux_gnu CFLAGS_x86_64_unknown_linux_gnu = None cargo:rerun-if-env-changed=HOST_CFLAGS HOST_CFLAGS = None cargo:rerun-if-env-changed=CFLAGS CFLAGS = None cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS CRATE_CC_NO_DEFAULTS = None DEBUG = Some("true") CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2") running: "gcc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-4" "-fno-omit-frame-pointer" "-m64" "-Wall" "-Wextra" "-Wall" "-Wextra" "-Werror" "-Wno-unused-parameter" "-Wno-type-limits" "-Wno-address-of-packed-member" "-Wno-unknown-warning-option" "-Wno-deprecated-declarations" "-D_GNU_SOURCE" "-D__GLIBC_USE_DEPRECATED_SCANF" "-o" "/home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out/02794b85cf18899c-main.o" "-c" "/home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out/main.c" cargo:warning=In file included from /nix/store/pqnd39aq2sksad2zvswjcpkqdc7ig3f9-glibc-2.35-224-dev/include/bits/libc-header-start.h:33, cargo:warning= from /nix/store/pqnd39aq2sksad2zvswjcpkqdc7ig3f9-glibc-2.35-224-dev/include/stdio.h:27, cargo:warning= from /home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out/main.c:1: cargo:warning=/nix/store/pqnd39aq2sksad2zvswjcpkqdc7ig3f9-glibc-2.35-224-dev/include/features.h:412:4: error: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Werror=cpp] cargo:warning= 412 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) cargo:warning= | ^~~~~~~ cargo:warning=/home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out/main.c: In function ‘__test_roundtrip_inotify_event’: cargo:warning=/home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out/main.c:23145:13: note: the ABI of passing struct with a flexible array member has changed in GCC 4.4 cargo:warning=23145 | ) { cargo:warning= | ^ cargo:warning=/home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out/main.c: In function ‘__test_fsize_af_alg_iv_iv’: cargo:warning=/home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out/main.c:25567:34: error: invalid application of ‘sizeof’ to incomplete type ‘__u8[]’ {aka ‘unsigned char[]’} cargo:warning=25567 | return sizeof(foo->iv); cargo:warning= | ^ cargo:warning=/home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out/main.c:25568:17: error: control reaches end of non-void function [-Werror=return-type] cargo:warning=25568 | } cargo:warning= | ^ cargo:warning=At top level: cargo:warning=cc1: note: unrecognized command-line option ‘-Wno-unknown-warning-option’ may have been intended to silence earlier diagnostics cargo:warning=cc1: all warnings being treated as errors exit status: 1 --- stderr rust version: 1.67.0 error occurred: Command "gcc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-4" "-fno-omit-frame-pointer" "-m64" "-Wall" "-Wextra" "-Wall" "-Wextra" "-Werror" "-Wno-unused-parameter" "-Wno-type-limits" "-Wno-address-of-packed-member" "-Wno-unknown-warning-option" "-Wno-deprecated-declarations" "-D_GNU_SOURCE" "-D__GLIBC_USE_DEPRECATED_SCANF" "-o" "/home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out/02794b85cf18899c-main.o" "-c" "/home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out/main.c" with args "gcc" did not execute successfully (status code exit status: 1). …/libc-rust/libc-test on  add-reentrant-getmntent_r [⇕] is 📦 v0.2.140 via 🦀 v1.67.0 via  (nix-shell-env) took 4s at 23:04:44 ✖ 101 nu ❯ ``` </details>
| * | | | Add reentrant glibc getmntent_rKovacsics Robert2023-03-112-0/+11
| | |/ / | |/| |
* | | | Auto merge of #3147 - devnexen:haiku_stringlist, r=JohnTitorbors2023-03-122-1/+14
|\ \ \ \ | | | | | | | | | | | | | | | Haiku StringList api addition