Skip to content

Fails to compile with LLVM 20 #583

@RossComputerGuy

Description

@RossComputerGuy

Building 6b2d6bd with LLVM 20 causes this error:

libc-top-half/musl/src/string/memmove.c:12:10: error: use of undeclared identifier 'BULK_MEMORY_THRESHOLD'
libc-top-half/musl/src/string/memset.c:7:10: error: use of undeclared identifier 'BULK_MEMORY_THRESHOLD'
   12 |         if (n > BULK_MEMORY_THRESHO    LD)
      |                 ^
Warning: supplying the --target wasm32-wasi != wasm32-unknown-wasi argument to a nix-wrapped compiler may not work correctly - cc-wrapper is currently not designed with multi-target compilers in mind. You may want to use an un-wrapped compiler instead.
Warning: supplying the --target wasm32-wasi != wasm32-unknown-wasi argument to a nix-wrapped compiler may not work correctly - cc-wrapper is currently not designed with multi-target compilers in mind. You may want to use an un-wrapped compiler instead.
7 |         if (n > BULK_MEMORY_THRESclangHOLD)
      |                 ^
: wasm32-unknown-wasi-clang -O2 -DNDEBUG --target=wasm32-wasi -fno-trapping-math -Wall -Wextra -Wno-null-pointer-arithmetic -Wno-unused-parameter -Wno-sign-compare -Wno-unused-variable -Wno-unused-function -Wno-ignored-attributes -Wno-missing-braces -Wno-ignored-pragmas -Wno-unused-but-set-variable -Wno-unknown-warning-option -mthread-model single -Ilibc-bottom-half/cloudlibc/src -isystem "/nix/store/92h4yb60vdrnwivv2zx58ir87687isgi-wasilibc-static-wasm32-unknown-wasi-25-unstable-2025-05-13-dev/include" -Ilibc-top-half/musl/src/include -Ilibc-top-half/musl/src/internal -Ilibc-top-half/musl/arch/wasm32 -Ilibc-top-half/musl/arch/generic -Ilibc-top-half/headers/private -Wno-parentheses -Wno-shift-op-parentheses -Wno-bitwise-op-parentheses -Wno-logical-op-parentheses -Wno-string-plus-int -Wno-dangling-else -Wno-unknown-pragmas -MD -MP -o build/wasm32-wasi/libc-top-half/musl/src/string/wcsncat.o -c libc-top-half/musl/src/string/wcsncat.c
warning: argument unused during compilation: '-rtlib=compiler-rt' [-Wunused-command-line-argument]
Warning: supplying the --target wasm32-wasi != wasm32-unknown-wasi argument to a nix-wrapped compiler may not work correctly - cc-wrapper is currently not designed with multi-target compilers in mind. You may want to use an un-wrapped compiler instead.
clang: warning: argument unused during compilation: '-rtlib=compiler-rt' [-Wunused-command-line-argument]
Warning: supplying the --target wasm32-wasi != wasm32-unknown-wasi argument to a nix-wrapped compiler may not work correctly - cc-wrapper is currently not designed with multi-target compilers in mind. You may want to use an un-wrapped compiler instead.
Warning: supplying the --target wasm32-wasi != wasm32-unknown-wasi argument to a nix-wrapped compiler may not work correctly - cc-wrapper is currently not designed with multi-target compilers in mind. You may want to use an un-wrapped compiler instead.
clang1 error generated.
: warning: argument unused during compilation: '-rtlib=compiler-rt' [-Wunused-command-line-argument]
Warning: supplying the --target wasm32-wasi != wasm32-unknown-wasi argument to a nix-wrapped compiler may not work correctly - cc-wrapper is currently not designed with multi-target compilers in mind. You may want to use an un-wrapped compiler instead.
1 error generated.
libc-top-half/musl/src/string/memcpy.c:8:10: error: use of undeclared identifier 'BULK_MEMORY_THRESHOLD'
wasm32-unknown-wasi-clang -O2 -DNDEBUG --target=wasm32-wasi -fno-trapping-math -Wall -Wextra -Wno-null-pointer-arithmetic -Wno-unused-parameter -Wno-sign-compare -Wno-unused-variable -Wno-unused-function -Wno-ignored-attributes -Wno-missing-braces -Wno-ignored-pragmas -Wno-unused-but-set-variable -Wno-unknown-warning-option -mthread-model single -Ilibc-bottom-half/cloudlibc/src -isystem "/nix/store/92h4yb60vdrnwivv2zx58ir87687isgi-wasilibc-static-wasm32-unknown-wasi-25-unstable-2025-05-13-dev/include" -Ilibc-top-half/musl/src/include -Ilibc-top-half/musl/src/internal -Ilibc-top-half/musl/arch/wasm32 -Ilibc-top-half/musl/arch/generic -Ilibc-top-half/headers/private -Wno-parentheses -Wno-shift-op-parentheses -Wno-bitwise-op-parentheses -Wno-logical-op-parentheses -Wno-string-plus-int -Wno-dangling-else -Wno-unknown-pragmas -MD -MP -o build/wasm32-wasi/libc-top-half/musl/src/string/wcsncmp.o -c libc-top-half/musl/src/string/wcsncmp.c
    8 |         if (n > BULK_MEMORY_THRESHOLD)
      |                 ^

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions