emscripten-core/emscripten

Strict option breaks Autotools AC_CHECK_FUNCS

Open

#10.470 aperta il 15 feb 2020

Vedi su GitHub
 (4 commenti) (0 reazioni) (0 assegnatari)C++ (3519 fork)batch import
good first bughelp wanted

Metriche repository

Star
 (27.361 star)
Metriche merge PR
 (Merge medio 19g 10h) (147 PR mergiate in 30 g)

Descrizione

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

Guida contributor