From 4423770c52ed2a15d7e9496edcfcc64db015193e Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Sat, 28 Oct 2023 22:03:21 +0100 Subject: [PATCH] cowasm: disable werror for now for dlopen detection: otherwise generated: | int | main () | { | return dlopen (); wasm-ld: warning: function signature mismatch: dlopen >>> defined as () -> i32 in /tmp/emscripten_temp_6nz4f0ww/conftest_0.o >>> defined as (i32, i32) -> i32 in /home/builder/emsdk/upstream/emscripten/cache/sysroot/lib/wasm32-emscripten/libc.a(dynlink.o) em++: error: running limited binaryen optimizations because DWARF info requested (or indirectly required) [-Wlimited-postlink-optimizations] [-Werror] and erroneously claims that dlopen is not present, and configure fails. Change-Id: Ie54db7c2099787a0b63b76b0b6e3e44750c9046e Signed-off-by: Michael Meeks --- wasm/README | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wasm/README b/wasm/README index 8b02489df20a..14613641c6b0 100644 --- a/wasm/README +++ b/wasm/README @@ -50,7 +50,7 @@ Note that here the LO core (and builddir, if separate) must be mapped to the same directory in the container as it was when building core, due to files containing absolute paths. - podman run -v $GITREPO:$GITREPO:ro -v $BUILDDIR:$BUILDDIR:ro -v $ONLINEGITREPO:$ONLINEGITREPO:rw -v $ONLINEBUILDDIR:$ONLINEBUILDDIR:rw --security-opt=label=disable -ti public.ecr.aws/allotropia/libo-builders/wasm /bin/bash -c "source /home/builder/emsdk/emsdk_env.sh && cd $ONLINEBUILDDIR/ && $ONLINEGITREPO/autogen.sh && emconfigure $ONLINEGITREPO/configure --enable-static --with-lokit-path=$GITREPO/include --with-lo-path=$BUILDDIR/instdir --with-lo-builddir=$BUILDDIR --with-zstd-includes=/usr/local/include --with-zstd-libs=/usr/local/lib --with-poco-includes=/usr/local/include --with-poco-libs=/usr/local/lib --host=wasm32-local-emscripten" + podman run -v $GITREPO:$GITREPO:ro -v $BUILDDIR:$BUILDDIR:ro -v $ONLINEGITREPO:$ONLINEGITREPO:rw -v $ONLINEBUILDDIR:$ONLINEBUILDDIR:rw --security-opt=label=disable -ti public.ecr.aws/allotropia/libo-builders/wasm /bin/bash -c "source /home/builder/emsdk/emsdk_env.sh && cd $ONLINEBUILDDIR/ && $ONLINEGITREPO/autogen.sh && emconfigure $ONLINEGITREPO/configure --disable-werror --with-lokit-path=$GITREPO/include --with-lo-path=$BUILDDIR/instdir --with-lo-builddir=$BUILDDIR --with-zstd-includes=/usr/local/include --with-zstd-libs=/usr/local/lib --with-poco-includes=/usr/local/include --with-poco-libs=/usr/local/lib --host=wasm32-local-emscripten" podman run -v $GITREPO:$GITREPO:ro -v $BUILDDIR:$BUILDDIR:ro -v $ONLINEGITREPO:$ONLINEGITREPO:rw -v $ONLINEBUILDDIR:$ONLINEBUILDDIR:rw --security-opt=label=disable -ti public.ecr.aws/allotropia/libo-builders/wasm /bin/bash -c "source /home/builder/emsdk/emsdk_env.sh && cd $ONLINEBUILDDIR/ && emmake make -rj8" == Build Online dependencies manually ==