Typo in zlib port?
Closed this issue · 1 comments
ColmTalbot commented
I'm attempting to build a project using emconfigure and I think there's a typo in how zlib is being invoked here. If I change this line, my project correctly finds with zlib.
Version of emscripten/emsdk:
emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 4.0.14 (96371ed)
clang version 22.0.0git (https:/github.com/llvm/llvm-project 1cc84bcc08f723a6ba9d845c3fed1777547f45f9)
Target: wasm32-unknown-emscripten
Thread model: posix
InstalledDir: /emsdk/upstream/bin
Failing command line in full:
I don't have an example using emconfigure, but if I put together minimal example using -sUSE_ZIB rather than -sUSE_ZLIB I can pretty easily reproduce the error.
# emcc test_zlib.c -o test_zlib.html -sUSE_ZIB=1
emcc: error: Attempt to set a non-existent setting: 'USE_ZIB'
- did you mean one of USE_ZLIB, USE_BZIP2, USE_ICU?
- perhaps a typo in emcc's -sX=Y notation?
- (see src/settings.js for valid values)test_zlib.c
#include <stdio.h>
#include <zlib.h>
int main() {
printf("zlib version: %s\n", zlibVersion());
return 0;
}