smartalloc 0.2.0

Smartalloc rust binding
Documentation

Build #3981469 2026-07-29 04:17:47

Build failed. If you want to re-trigger a documentation build, you can do it here. You can find more information on docs.rs builds documentation on the builds page.

# error kind ExecutionFailed

# pre-build errors command failed: exit status: 101

# rustc version rustc 1.99.0-nightly (d0babd8b6 2026-07-15)

# docs.rs version docsrs 0.0.0 (f1b150f0cd76f7cabcd39e1f4790ba771b28b5c4 2026-07-19 )

# build log [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "DOCS_RS=1" "-w" "/opt/rustwide/workdir" "--user" "1001:1001" "0f42a12fd1957d6f4f231b07fab9b3555f8f7d60b9a37cba8449970eca82104f" "/opt/rustwide/cargo-home/bin/cargo" "+nightly-2026-07-16" "rustdoc" "--lib" "-Zrustdoc-map" "--config" "build.rustdocflags=[\"--cfg\", \"docsrs\", \"-Z\", \"unstable-options\", \"--emit=html-non-static-files\", \"--resource-suffix\", \"-20260715-1.99.0-nightly-d0babd8b6\", \"--static-root-path\", \"/-/rustdoc.static/\", \"--cap-lints\", \"warn\", \"--extern-html-root-takes-precedence\"]" "--offline" "-Zunstable-options" "--config=doc.extern-map.registries.crates-io=\"https://docs.rs/{pkg_name}/{version}/x86_64-unknown-linux-gnu\"" "-Zrustdoc-scrape-examples" "-j6" "--target" "x86_64-unknown-linux-gnu", kill_on_drop: false }` [INFO] [stderr] Compiling smartalloc-sys v0.2.0 [INFO] [stderr] warning: smartalloc-sys@0.2.0: csrc/smartall.c: In function 'smalloc': [INFO] [stderr] warning: smartalloc-sys@0.2.0: csrc/smartall.c:70:14: warning: old-style function definition [-Wold-style-definition] [INFO] [stderr] warning: smartalloc-sys@0.2.0: 70 | static void *smalloc(fname, lineno, nbytes) [INFO] [stderr] warning: smartalloc-sys@0.2.0: | ^~~~~~~ [INFO] [stderr] warning: smartalloc-sys@0.2.0: csrc/smartall.c:91:17: error: too many arguments to function 'qinsert'; expected 0, have 2 [INFO] [stderr] warning: smartalloc-sys@0.2.0: 91 | qinsert(&abqueue, (struct queue *)buf); [INFO] [stderr] warning: smartalloc-sys@0.2.0: | ^~~~~~~ ~~~~~~~~ [INFO] [stderr] warning: smartalloc-sys@0.2.0: csrc/smartall.c:64:13: note: declared here [INFO] [stderr] warning: smartalloc-sys@0.2.0: 64 | static void qinsert(); [INFO] [stderr] warning: smartalloc-sys@0.2.0: | ^~~~~~~ [INFO] [stderr] warning: smartalloc-sys@0.2.0: csrc/smartall.c: In function 'sm_free': [INFO] [stderr] warning: smartalloc-sys@0.2.0: csrc/smartall.c:107:6: warning: old-style function definition [-Wold-style-definition] [INFO] [stderr] warning: smartalloc-sys@0.2.0: 107 | void sm_free(fp) void *fp; [INFO] [stderr] warning: smartalloc-sys@0.2.0: | ^~~~~~~ [INFO] [stderr] warning: smartalloc-sys@0.2.0: csrc/smartall.c:130:11: error: too many arguments to function 'qdchain'; expected 0, have 1 [INFO] [stderr] warning: smartalloc-sys@0.2.0: 130 | V qdchain(qp); [INFO] [stderr] warning: smartalloc-sys@0.2.0: | ^~~~~~~ ~~ [INFO] [stderr] warning: smartalloc-sys@0.2.0: csrc/smartall.c:65:22: note: declared here [INFO] [stderr] warning: smartalloc-sys@0.2.0: 65 | static struct queue *qdchain(); [INFO] [stderr] warning: smartalloc-sys@0.2.0: | ^~~~~~~ [INFO] [stderr] warning: smartalloc-sys@0.2.0: csrc/smartall.c: In function 'sm_malloc': [INFO] [stderr] warning: smartalloc-sys@0.2.0: csrc/smartall.c:146:7: warning: old-style function definition [-Wold-style-definition] [INFO] [stderr] warning: smartalloc-sys@0.2.0: 146 | void *sm_malloc(fname, lineno, nbytes) [INFO] [stderr] warning: smartalloc-sys@0.2.0: | ^~~~~~~~~ [INFO] [stderr] warning: smartalloc-sys@0.2.0: csrc/smartall.c: In function 'sm_calloc': [INFO] [stderr] warning: smartalloc-sys@0.2.0: csrc/smartall.c:167:7: warning: old-style function definition [-Wold-style-definition] [INFO] [stderr] warning: smartalloc-sys@0.2.0: 167 | void *sm_calloc(fname, lineno, nelem, elsize) [INFO] [stderr] warning: smartalloc-sys@0.2.0: | ^~~~~~~~~ [INFO] [stderr] warning: smartalloc-sys@0.2.0: csrc/smartall.c: In function 'sm_realloc': [INFO] [stderr] warning: smartalloc-sys@0.2.0: csrc/smartall.c:190:7: warning: old-style function definition [-Wold-style-definition] [INFO] [stderr] warning: smartalloc-sys@0.2.0: 190 | void *sm_realloc(fname, lineno, ptr, size) [INFO] [stderr] warning: smartalloc-sys@0.2.0: | ^~~~~~~~~~ [INFO] [stderr] warning: smartalloc-sys@0.2.0: csrc/smartall.c: In function 'actuallymalloc': [INFO] [stderr] warning: smartalloc-sys@0.2.0: csrc/smartall.c:247:7: warning: old-style function definition [-Wold-style-definition] [INFO] [stderr] warning: smartalloc-sys@0.2.0: 247 | void *actuallymalloc(size) [INFO] [stderr] warning: smartalloc-sys@0.2.0: | ^~~~~~~~~~~~~~ [INFO] [stderr] warning: smartalloc-sys@0.2.0: csrc/smartall.c: In function 'actuallycalloc': [INFO] [stderr] warning: smartalloc-sys@0.2.0: csrc/smartall.c:258:7: warning: old-style function definition [-Wold-style-definition] [INFO] [stderr] warning: smartalloc-sys@0.2.0: 258 | void *actuallycalloc(nelem, elsize) [INFO] [stderr] warning: smartalloc-sys@0.2.0: | ^~~~~~~~~~~~~~ [INFO] [stderr] warning: smartalloc-sys@0.2.0: csrc/smartall.c: In function 'actuallyrealloc': [INFO] [stderr] warning: smartalloc-sys@0.2.0: csrc/smartall.c:269:7: warning: old-style function definition [-Wold-style-definition] [INFO] [stderr] warning: smartalloc-sys@0.2.0: 269 | void *actuallyrealloc(ptr, size) void *ptr; [INFO] [stderr] warning: smartalloc-sys@0.2.0: | ^~~~~~~~~~~~~~~ [INFO] [stderr] warning: smartalloc-sys@0.2.0: csrc/smartall.c: In function 'actuallyfree': [INFO] [stderr] warning: smartalloc-sys@0.2.0: csrc/smartall.c:278:6: warning: old-style function definition [-Wold-style-definition] [INFO] [stderr] warning: smartalloc-sys@0.2.0: 278 | void actuallyfree(cp) void *cp; [INFO] [stderr] warning: smartalloc-sys@0.2.0: | ^~~~~~~~~~~~ [INFO] [stderr] warning: smartalloc-sys@0.2.0: csrc/smartall.c: In function 'sm_dump': [INFO] [stderr] warning: smartalloc-sys@0.2.0: csrc/smartall.c:286:6: warning: old-style function definition [-Wold-style-definition] [INFO] [stderr] warning: smartalloc-sys@0.2.0: 286 | void sm_dump(bufdump) [INFO] [stderr] warning: smartalloc-sys@0.2.0: | ^~~~~~~ [INFO] [stderr] warning: smartalloc-sys@0.2.0: csrc/smartall.c: In function 'sm_static': [INFO] [stderr] warning: smartalloc-sys@0.2.0: csrc/smartall.c:350:6: warning: old-style function definition [-Wold-style-definition] [INFO] [stderr] warning: smartalloc-sys@0.2.0: 350 | void sm_static(mode) int mode; [INFO] [stderr] warning: smartalloc-sys@0.2.0: | ^~~~~~~~~ [INFO] [stderr] warning: smartalloc-sys@0.2.0: csrc/smartall.c: In function 'qinsert': [INFO] [stderr] warning: smartalloc-sys@0.2.0: csrc/smartall.c:359:13: warning: old-style function definition [-Wold-style-definition] [INFO] [stderr] warning: smartalloc-sys@0.2.0: 359 | static void qinsert(qhead, object) struct queue *qhead, *object; [INFO] [stderr] warning: smartalloc-sys@0.2.0: | ^~~~~~~ [INFO] [stderr] warning: smartalloc-sys@0.2.0: csrc/smartall.c: In function 'qremove': [INFO] [stderr] warning: smartalloc-sys@0.2.0: csrc/smartall.c:372:22: warning: old-style function definition [-Wold-style-definition] [INFO] [stderr] warning: smartalloc-sys@0.2.0: 372 | static struct queue *qremove(qhead) [INFO] [stderr] warning: smartalloc-sys@0.2.0: | ^~~~~~~ [INFO] [stderr] warning: smartalloc-sys@0.2.0: csrc/smartall.c: In function 'qdchain': [INFO] [stderr] warning: smartalloc-sys@0.2.0: csrc/smartall.c:390:22: warning: old-style function definition [-Wold-style-definition] [INFO] [stderr] warning: smartalloc-sys@0.2.0: 390 | static struct queue *qdchain(qitem) [INFO] [stderr] warning: smartalloc-sys@0.2.0: | ^~~~~~~ [INFO] [stderr] error: failed to run custom build command for `smartalloc-sys v0.2.0` [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `/opt/rustwide/target/debug/build/smartalloc-sys-2b6dfe221b7f59f3/build-script-build` (exit status: 1) [INFO] [stderr] --- stdout [INFO] [stderr] cargo:rerun-if-env-changed=CC_FORCE_DISABLE [INFO] [stderr] CC_FORCE_DISABLE = None [INFO] [stderr] cargo:rerun-if-env-changed=CC_x86_64-unknown-linux-gnu [INFO] [stderr] CC_x86_64-unknown-linux-gnu = None [INFO] [stderr] cargo:rerun-if-env-changed=CC_x86_64_unknown_linux_gnu [INFO] [stderr] CC_x86_64_unknown_linux_gnu = None [INFO] [stderr] cargo:rerun-if-env-changed=HOST_CC [INFO] [stderr] HOST_CC = None [INFO] [stderr] cargo:rerun-if-env-changed=CC [INFO] [stderr] CC = None [INFO] [stderr] cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT [INFO] [stderr] cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS [INFO] [stderr] CRATE_CC_NO_DEFAULTS = None [INFO] [stderr] cargo:rerun-if-env-changed=CFLAGS [INFO] [stderr] CFLAGS = None [INFO] [stderr] cargo:rerun-if-env-changed=HOST_CFLAGS [INFO] [stderr] HOST_CFLAGS = None [INFO] [stderr] cargo:rerun-if-env-changed=CFLAGS_x86_64_unknown_linux_gnu [INFO] [stderr] CFLAGS_x86_64_unknown_linux_gnu = None [INFO] [stderr] cargo:rerun-if-env-changed=CFLAGS_x86_64-unknown-linux-gnu [INFO] [stderr] CFLAGS_x86_64-unknown-linux-gnu = None [INFO] [stderr] cargo:warning=csrc/smartall.c: In function 'smalloc': [INFO] [stderr] cargo:warning=csrc/smartall.c:70:14: warning: old-style function definition [-Wold-style-definition] [INFO] [stderr] cargo:warning= 70 | static void *smalloc(fname, lineno, nbytes) [INFO] [stderr] cargo:warning= | ^~~~~~~ [INFO] [stderr] cargo:warning=csrc/smartall.c:91:17: error: too many arguments to function 'qinsert'; expected 0, have 2 [INFO] [stderr] cargo:warning= 91 | qinsert(&abqueue, (struct queue *)buf); [INFO] [stderr] cargo:warning= | ^~~~~~~ ~~~~~~~~ [INFO] [stderr] cargo:warning=csrc/smartall.c:64:13: note: declared here [INFO] [stderr] cargo:warning= 64 | static void qinsert(); [INFO] [stderr] cargo:warning= | ^~~~~~~ [INFO] [stderr] cargo:warning=csrc/smartall.c: In function 'sm_free': [INFO] [stderr] cargo:warning=csrc/smartall.c:107:6: warning: old-style function definition [-Wold-style-definition] [INFO] [stderr] cargo:warning= 107 | void sm_free(fp) void *fp; [INFO] [stderr] cargo:warning= | ^~~~~~~ [INFO] [stderr] cargo:warning=csrc/smartall.c:130:11: error: too many arguments to function 'qdchain'; expected 0, have 1 [INFO] [stderr] cargo:warning= 130 | V qdchain(qp); [INFO] [stderr] cargo:warning= | ^~~~~~~ ~~ [INFO] [stderr] cargo:warning=csrc/smartall.c:65:22: note: declared here [INFO] [stderr] cargo:warning= 65 | static struct queue *qdchain(); [INFO] [stderr] cargo:warning= | ^~~~~~~ [INFO] [stderr] cargo:warning=csrc/smartall.c: In function 'sm_malloc': [INFO] [stderr] cargo:warning=csrc/smartall.c:146:7: warning: old-style function definition [-Wold-style-definition] [INFO] [stderr] cargo:warning= 146 | void *sm_malloc(fname, lineno, nbytes) [INFO] [stderr] cargo:warning= | ^~~~~~~~~ [INFO] [stderr] cargo:warning=csrc/smartall.c: In function 'sm_calloc': [INFO] [stderr] cargo:warning=csrc/smartall.c:167:7: warning: old-style function definition [-Wold-style-definition] [INFO] [stderr] cargo:warning= 167 | void *sm_calloc(fname, lineno, nelem, elsize) [INFO] [stderr] cargo:warning= | ^~~~~~~~~ [INFO] [stderr] cargo:warning=csrc/smartall.c: In function 'sm_realloc': [INFO] [stderr] cargo:warning=csrc/smartall.c:190:7: warning: old-style function definition [-Wold-style-definition] [INFO] [stderr] cargo:warning= 190 | void *sm_realloc(fname, lineno, ptr, size) [INFO] [stderr] cargo:warning= | ^~~~~~~~~~ [INFO] [stderr] cargo:warning=csrc/smartall.c: In function 'actuallymalloc': [INFO] [stderr] cargo:warning=csrc/smartall.c:247:7: warning: old-style function definition [-Wold-style-definition] [INFO] [stderr] cargo:warning= 247 | void *actuallymalloc(size) [INFO] [stderr] cargo:warning= | ^~~~~~~~~~~~~~ [INFO] [stderr] cargo:warning=csrc/smartall.c: In function 'actuallycalloc': [INFO] [stderr] cargo:warning=csrc/smartall.c:258:7: warning: old-style function definition [-Wold-style-definition] [INFO] [stderr] cargo:warning= 258 | void *actuallycalloc(nelem, elsize) [INFO] [stderr] cargo:warning= | ^~~~~~~~~~~~~~ [INFO] [stderr] cargo:warning=csrc/smartall.c: In function 'actuallyrealloc': [INFO] [stderr] cargo:warning=csrc/smartall.c:269:7: warning: old-style function definition [-Wold-style-definition] [INFO] [stderr] cargo:warning= 269 | void *actuallyrealloc(ptr, size) void *ptr; [INFO] [stderr] cargo:warning= | ^~~~~~~~~~~~~~~ [INFO] [stderr] cargo:warning=csrc/smartall.c: In function 'actuallyfree': [INFO] [stderr] cargo:warning=csrc/smartall.c:278:6: warning: old-style function definition [-Wold-style-definition] [INFO] [stderr] cargo:warning= 278 | void actuallyfree(cp) void *cp; [INFO] [stderr] cargo:warning= | ^~~~~~~~~~~~ [INFO] [stderr] cargo:warning=csrc/smartall.c: In function 'sm_dump': [INFO] [stderr] cargo:warning=csrc/smartall.c:286:6: warning: old-style function definition [-Wold-style-definition] [INFO] [stderr] cargo:warning= 286 | void sm_dump(bufdump) [INFO] [stderr] cargo:warning= | ^~~~~~~ [INFO] [stderr] cargo:warning=csrc/smartall.c: In function 'sm_static': [INFO] [stderr] cargo:warning=csrc/smartall.c:350:6: warning: old-style function definition [-Wold-style-definition] [INFO] [stderr] cargo:warning= 350 | void sm_static(mode) int mode; [INFO] [stderr] cargo:warning= | ^~~~~~~~~ [INFO] [stderr] cargo:warning=csrc/smartall.c: In function 'qinsert': [INFO] [stderr] cargo:warning=csrc/smartall.c:359:13: warning: old-style function definition [-Wold-style-definition] [INFO] [stderr] cargo:warning= 359 | static void qinsert(qhead, object) struct queue *qhead, *object; [INFO] [stderr] cargo:warning= | ^~~~~~~ [INFO] [stderr] cargo:warning=csrc/smartall.c: In function 'qremove': [INFO] [stderr] cargo:warning=csrc/smartall.c:372:22: warning: old-style function definition [-Wold-style-definition] [INFO] [stderr] cargo:warning= 372 | static struct queue *qremove(qhead) [INFO] [stderr] cargo:warning= | ^~~~~~~ [INFO] [stderr] cargo:warning=csrc/smartall.c: In function 'qdchain': [INFO] [stderr] cargo:warning=csrc/smartall.c:390:22: warning: old-style function definition [-Wold-style-definition] [INFO] [stderr] cargo:warning= 390 | static struct queue *qdchain(qitem) [INFO] [stderr] cargo:warning= | ^~~~~~~ [INFO] [stderr] [INFO] [stderr] --- stderr [INFO] [stderr] [INFO] [stderr] [INFO] [stderr] error occurred in cc-rs: command did not execute successfully (status code exit status: 1): LC_ALL="C" "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-gdwarf-4" "-fno-omit-frame-pointer" "-m64" "-I" "csrc" "-Wall" "-Wextra" "-DSMARTALLOC" "-o" "/opt/rustwide/target/x86_64-unknown-linux-gnu/debug/build/smartalloc-sys-c798a6c7b7a6f0ba/out/faea18488176a15d-smartall.o" "-c" "csrc/smartall.c" [INFO] [stderr] [INFO] [stderr] [INFO] running `Command { std: "docker" "inspect" "0f42a12fd1957d6f4f231b07fab9b3555f8f7d60b9a37cba8449970eca82104f", kill_on_drop: false }`