Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown file type: cjpeg.bc #1

Open
jens-duttke opened this issue Dec 24, 2023 · 0 comments
Open

Unknown file type: cjpeg.bc #1

jens-duttke opened this issue Dec 24, 2023 · 0 comments

Comments

@jens-duttke
Copy link

Hello,

I'm getting the following error when I try to compile the project (with emscripten 3.1.51):

wasm-ld: error: unknown file type: cjpeg.bc
wasm-ld: error: unable to find library -ljpeg
emcc: error: '/home/jens/emsdk/upstream/bin/wasm-ld -o cjpeg.wasm cjpeg.bc -L/deps/mozjpeg/.libs -ljpeg -L/home/jens/emsdk/upstream/emscripten/cache/sysroot/lib/wasm32-emscripten -lGL -lal -lhtml5 -lstubs-debug -lnoexit -lc-debug -ldlmalloc -lcompiler_rt -lc++-noexcept -lc++abi-debug-noexcept -lsockets -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr /tmp/tmp7utesnwqlibemscripten_js_symbols.so --strip-debug --export-if-defined=main --export-if-defined=__start_em_asm --export-if-defined=__stop_em_asm --export-if-defined=__start_em_lib_deps --export-if-defined=__stop_em_lib_deps --export-if-defined=__start_em_js --export-if-defined=__stop_em_js --export-if-defined=__main_argc_argv --export-if-defined=fflush --export=emscripten_stack_get_end --export=emscripten_stack_get_free --export=emscripten_stack_get_base --export=emscripten_stack_get_current --export=emscripten_stack_init --export=stackSave --export=stackRestore --export=stackAlloc --export=__errno_location --export=__get_temp_ret --export=__set_temp_ret --export=__wasm_call_ctors --export-table -z stack-size=65536 --initial-memory=16777216 --max-memory=2147483648 --no-entry --stack-first --table-base=1' failed (returned 1)

in the following step:

emcc -03 cjpeg.bc -s LEGACY_VM_SUPPORT=1 -s "EXPORTED_RUNTIME_METHODS=[]" -s ELIMINATE_DUPLICATE_FUNCTIONS=1 -s ALLOW_MEMORY_GROWTH=1 --memory-init-file 0 --pre-js ../../../cjpeg_pre.js --post-js ../../../cjpeg_post.js -L"$DIR/deps/mozjpeg/.libs" -ljpeg -o cjpeg.js

The file cjpeg.bc is there, so it's not because of a missing file.

Do you have any ideas what could be wrong here?

I'm trying to compile it, because I want to use jpegtran -drop, which requires to specify a second image, which seems not to be considered yet.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant