emscripten-core/emscripten

Strict option breaks Autotools AC_CHECK_FUNCS

Open

#10 470 ouverte le 15 févr. 2020

Voir sur GitHub
 (4 commentaires) (0 réactions) (0 assignés)C++ (3 519 forks)batch import
good first bughelp wanted

Métriques du dépôt

Stars
 (27 361 stars)
Métriques de merge PR
 (Merge moyen 19j 10h) (147 PRs mergées en 30 j)

Description

Since 1.39.7 i'm unable to compile fontconfig with Strict option

1.39.6:

configure:14107: checking for XML_SetDoctypeDeclHandler
configure:14107: /emsdk/upstream/emscripten/emcc -o conftest  	-s USE_PTHREADS=0 	-DEMSCRIPTEN 	-O2 	-s NO_EXIT_RUNTIME=1 	--llvm-lto 1 	-s STRICT=1 	-s MODULARIZE=1 	  -I/code/dist/libraries/include  conftest.c  -L/code/dist/libraries/lib -lexpat >&5
wasm-ld: warning: function signature mismatch: XML_SetDoctypeDeclHandler
>>> defined as () -> i32 in /tmp/emscripten_temp_cmD2xT/conftest_0.o
>>> defined as (i32, i32, i32) -> void in /code/dist/libraries/lib/libexpat.a(xmlparse.c.o)
configure:14107: $? = 0
configure:14107: result: yes

1.39.7:

configure:14107: checking for XML_SetDoctypeDeclHandler
configure:14107: /emsdk/upstream/emscripten/emcc -o conftest  	-s USE_PTHREADS=0 	-DEMSCRIPTEN 	-O2 	-s NO_EXIT_RUNTIME=1 	--llvm-lto 1 	-s STRICT=1 	-s MODULARIZE=1 	  -I/code/dist/libraries/include  conftest.c  -L/code/dist/libraries/lib -lexpat >&5
wasm-ld: error: function signature mismatch: XML_SetDoctypeDeclHandler
>>> defined as () -> i32 in /tmp/emscripten_temp_WW2cuL/conftest_0.o
>>> defined as (i32, i32, i32) -> void in /code/dist/libraries/lib/libexpat.a(xmlparse.c.o)
shared:ERROR: '/emsdk/upstream/bin/wasm-ld -o /tmp/emscripten_temp_WW2cuL/conftest.wasm --lto-O2 /tmp/emscripten_temp_WW2cuL/conftest_0.o -L/code/dist/libraries/lib -L/emsdk/upstream/emscripten/system/local/lib /code/dist/libraries/lib/libexpat.a -L/root/.emscripten_cache/wasm-obj /root/.emscripten_cache/wasm-obj/libc.a /root/.emscripten_cache/wasm-obj/libcompiler_rt.a /root/.emscripten_cache/wasm-obj/libc-wasm.a /root/.emscripten_cache/wasm-obj/libdlmalloc.a /root/.emscripten_cache/wasm-obj/libpthread_stub.a /root/.emscripten_cache/wasm-obj/libc_rt_wasm.a /root/.emscripten_cache/wasm-obj/libsockets.a --fatal-warnings --allow-undefined --import-memory --import-table -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr --strip-debug --export __wasm_call_ctors --export __data_end --export main --export malloc --export free --export setThrew --export __errno_location --export fflush --export _get_environ -z stack-size=5242880 --initial-memory=16777216 --no-entry --max-memory=16777216 --global-base=1024' failed (1)
configure:14107: $? = 1
configure: failed program was:

Probably caused by #10279

Guide contributeur