emscripten-core/emscripten

Strict option breaks Autotools AC_CHECK_FUNCS

Open

#10,470 创建于 2020年2月15日

在 GitHub 查看
 (4 评论) (0 反应) (0 负责人)C++ (3,519 fork)batch import
good first bughelp wanted

仓库指标

Star
 (27,361 star)
PR 合并指标
 (平均合并 19天 10小时) (30 天内合并 147 个 PR)

描述

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

贡献者指南