emscripten-core / emscripten

Emscripten: An LLVM-to-WebAssembly Compiler
Other
25.37k stars 3.25k forks source link

Build mysteriously fails with {"type":"module"} package.json in the parent directory #17431

Open shamrin opened 1 year ago

shamrin commented 1 year ago

Emscripten build of a C library (liquid-dsp) mysteriously fails when the parent directory has package.json containing {"type":"module"}.

There is a similar bug #13551, from February 2021, with different library and different symptoms. But with exactly the same core reason of {"type":"module"} changing Emscripten behaviour in a subdirectory.

I spent two hours debugging this problem. It breaks the fundamental assumption that nothing outside of the project directory should matter during the build.

Any ideas about why it could be happening? I would love to help fix it in Emscripten.

Failing command line in full:

mkdir emscripten-bug
cd emscripten-bug/

# removing this line fixes the build 🤯
echo '{"type":"module"}' > package.json

git clone https://github.com/jgaeddert/liquid-dsp
cd liquid-dsp
emmake make clean  # if repeating this process
./bootstrap.sh
emconfigure ./configure --host=wasm32
emmake make VERBOSE=1

Build mysteriously fails with:

/Users/shamrin/src/emsdk/upstream/emscripten/emcc -g -O2    -Wall -fPIC -Wno-deprecated -Wno-deprecated-declarations -I. -Iinclude  -c -o src/audio/src/cvsd.o src/audio/src/cvsd.c
src/audio/src/cvsd.c:70:21: error: call to undeclared function 'rpl_malloc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    cvsd q = (cvsd) malloc(sizeof(struct cvsd_s));
                    ^
./config.h:217:16: note: expanded from macro 'malloc'
#define malloc rpl_malloc
               ^
1 error generated.
emcc: error: '/Users/shamrin/src/emsdk/upstream/bin/clang -target wasm32-unknown-emscripten -DEMSCRIPTEN -D__EMSCRIPTEN_major__=3 -D__EMSCRIPTEN_minor__=1 -D__EMSCRIPTEN_tiny__=15 -fignore-exceptions -fvisibility=default -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -Werror=implicit-function-declaration -Xclang -iwithsysroot/include/SDL --sysroot=/Users/shamrin/src/emsdk/upstream/emscripten/cache/sysroot -Xclang -iwithsysroot/include/compat -g3 -O2 -Wall -fPIC -Wno-deprecated -Wno-deprecated-declarations -I. -Iinclude -c src/audio/src/cvsd.c -o src/audio/src/cvsd.o' failed (returned 1)
make: *** [src/audio/src/cvsd.o] Error 1
emmake: error: 'make VERBOSE=1' failed (returned 2)

Version of emscripten/emsdk:

$ emcc -v
emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 3.1.15 (8b4443a87f5eab5dbb9adb690f9ebed0a9da4bd9)
clang version 15.0.0 (https://github.com/llvm/llvm-project 27abff670bc7ad9702c4f9fc8b82aae6b530bf0f)
Target: wasm32-unknown-emscripten
Thread model: posix
InstalledDir: /Users/shamrin/src/emsdk/upstream/bin
sbc100 commented 1 year ago

That looks very odd indeed. I would start be trying to figure out what is different about these working and failing builds.

Does the resulting Makefile looks different? How?

Does the working build also #define malloc rpl_malloc? Where does it get its definition of rpl_malloc from?

shamrin commented 1 year ago

@sbc100 very odd, yes.

  1. The resulting Makefile is the same:
$ diff -u liquid-dsp-good/makefile liquid-dsp-bad/makefile
# no output
  1. The working build does not have #define malloc rpl_malloc. Working build:
$ grep rpl_malloc config.h
config.h:/* Define to rpl_malloc if the replacement function should be used. */

Broken build:

$ grep rpl_malloc config.h
config.h:/* Define to rpl_malloc if the replacement function should be used. */
config.h:#define malloc rpl_malloc

You can see the full difference between the builds at the end of this comment. But the most interesting thing is in config.log:

$ diff -u liquid-dsp-good/config.log liquid-dsp-bad/config.log
@@ -103,8 +103,21 @@
 configure:3546: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -o conftest    conftest.c  >&5
 configure:3550: $? = 0
 configure:3557: ./conftest
-configure:3561: $? = 0
-configure:3576: result: no
+internal/process/esm_loader.js:74
+    internalBinding('errors').triggerUncaughtException(
+                              ^
+
+TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension "" for /Users/shamrin/src/emscripten-bug/liquid-dsp-bad/conftest
+    at new NodeError (internal/errors.js:322:7)
+    at Loader.defaultGetFormat [as _getFormat] (internal/modules/esm/get_format.js:71:15)
+    at Loader.getFormat (internal/modules/esm/loader.js:105:42)
+    at Loader.getModuleJob (internal/modules/esm/loader.js:243:31)
+    at async Loader.import (internal/modules/esm/loader.js:177:17)
+    at async Object.loadESM (internal/process/esm_loader.js:68:5) {
+  code: 'ERR_UNKNOWN_FILE_EXTENSION'
+}
+configure:3561: $? = 1
+configure:3576: result: yes
 configure:3581: checking for suffix of object files
 configure:3604: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -c   conftest.c >&5
 configure:3608: $? = 0

Interestingly, the exception is the same as in #13551 🤔

Full difference between the good and bad builds (click to expand) ```diff $ diff -ur liquid-dsp-good/ liquid-dsp-bad/ --- liquid-dsp-good/autom4te.cache/requests 2022-07-15 22:58:10.000000000 +0300 +++ liquid-dsp-bad/autom4te.cache/requests 2022-07-15 22:59:51.000000000 +0300 @@ -15,20 +15,20 @@ 'configure.ac' ], { - 'm4_include' => 1, - '_AM_AUTOCONF_VERSION' => 1, '_AM_CONFIG_MACRO_DIRS' => 1, - 'AC_PROG_LIBTOOL' => 1, - 'AC_DEFUN_ONCE' => 1, + 'AC_PROG_AR' => 1, + 'm4_include' => 1, + '_m4_warn' => 1, + 'AC_CONFIG_MACRO_DIR' => 1, 'include' => 1, + '_AM_AUTOCONF_VERSION' => 1, 'AC_DEFUN' => 1, - 'AC_PROG_AR' => 1, 'm4_pattern_forbid' => 1, - 'm4_pattern_allow' => 1, - 'AC_CONFIG_MACRO_DIR' => 1, - '_m4_warn' => 1, 'AC_CONFIG_MACRO_DIR_TRACE' => 1, - 'AU_DEFUN' => 1 + 'AU_DEFUN' => 1, + 'AC_DEFUN_ONCE' => 1, + 'm4_pattern_allow' => 1, + 'AC_PROG_LIBTOOL' => 1 } ], 'Autom4te::Request' ), bless( [ @@ -46,23 +46,23 @@ 'configure.ac' ], { - 'AC_CONFIG_MACRO_DIR_TRACE' => 1, - 'm4_pattern_forbid' => 1, - 'm4_pattern_allow' => 1, - 'AC_CONFIG_MACRO_DIR' => 1, + '_AM_CONFIG_MACRO_DIRS' => 1, + 'AX_GCC_X86_CPUID' => 1, 'AX_CHECK_COMPILE_FLAG' => 1, 'm4_include' => 1, - 'AC_DEFUN_ONCE' => 1, 'include' => 1, - '_AM_CONFIG_MACRO_DIRS' => 1, - 'AC_DEFUN' => 1, - 'AU_DEFUN' => 1, '_m4_warn' => 1, - 'AX_GCC_X86_CPUID' => 1, 'AC_PROG_LIBTOOL' => 1, - '_AM_AUTOCONF_VERSION' => 1, 'AX_EXT' => 1, - 'AC_PROG_AR' => 1 + 'AC_CONFIG_MACRO_DIR_TRACE' => 1, + 'AC_DEFUN_ONCE' => 1, + '_AM_AUTOCONF_VERSION' => 1, + 'AC_PROG_AR' => 1, + 'AC_CONFIG_MACRO_DIR' => 1, + 'm4_pattern_allow' => 1, + 'AC_DEFUN' => 1, + 'm4_pattern_forbid' => 1, + 'AU_DEFUN' => 1 } ], 'Autom4te::Request' ), bless( [ @@ -78,68 +78,68 @@ 'configure.ac' ], { - 'AM_MAKEFILE_INCLUDE' => 1, - 'AM_GNU_GETTEXT' => 1, - 'AC_CONFIG_LINKS' => 1, - 'AM_MAINTAINER_MODE' => 1, - 'AM_AUTOMAKE_VERSION' => 1, - '_m4_warn' => 1, - 'AM_CONDITIONAL' => 1, - 'AM_GNU_GETTEXT_INTL_SUBDIR' => 1, - 'AM_PROG_MKDIR_P' => 1, - 'AC_CANONICAL_TARGET' => 1, - 'sinclude' => 1, - 'AC_CONFIG_SUBDIRS' => 1, - 'AC_FC_PP_DEFINE' => 1, - 'AC_FC_PP_SRCEXT' => 1, - 'AC_CANONICAL_HOST' => 1, 'AC_CONFIG_AUX_DIR' => 1, - 'AC_CANONICAL_BUILD' => 1, - 'AM_PROG_LIBTOOL' => 1, - '_AM_MAKEFILE_INCLUDE' => 1, - 'AC_REQUIRE_AUX_FILE' => 1, - 'LT_INIT' => 1, - 'AM_PROG_AR' => 1, + '_LT_AC_TAGCONFIG' => 1, + 'AC_CONFIG_LIBOBJ_DIR' => 1, + '_AM_COND_IF' => 1, 'IT_PROG_INTLTOOL' => 1, + 'AM_XGETTEXT_OPTION' => 1, + '_AM_MAKEFILE_INCLUDE' => 1, + 'AC_FC_PP_DEFINE' => 1, + 'AC_CONFIG_FILES' => 1, + 'AC_SUBST_TRACE' => 1, + 'AC_CANONICAL_SYSTEM' => 1, + 'include' => 1, + '_m4_warn' => 1, '_AM_SUBST_NOTMAKE' => 1, + 'AM_GNU_GETTEXT' => 1, 'AM_PROG_CC_C_O' => 1, - 'AC_CONFIG_LIBOBJ_DIR' => 1, + 'AM_EXTRA_RECURSIVE_TARGETS' => 1, + 'AM_PROG_F77_C_O' => 1, + 'AC_CANONICAL_TARGET' => 1, 'AM_SILENT_RULES' => 1, - 'LT_SUPPORTED_TAG' => 1, + 'AM_NLS' => 1, + '_AM_COND_ENDIF' => 1, + 'AC_CANONICAL_HOST' => 1, + 'sinclude' => 1, + 'm4_pattern_allow' => 1, + 'AM_PROG_MKDIR_P' => 1, + 'AC_FC_SRCEXT' => 1, + 'm4_sinclude' => 1, + 'AM_POT_TOOLS' => 1, + 'AC_CONFIG_SUBDIRS' => 1, + 'AM_ENABLE_MULTILIB' => 1, + 'AC_CANONICAL_BUILD' => 1, + 'AM_MAKEFILE_INCLUDE' => 1, + 'AC_CONFIG_LINKS' => 1, + 'AM_AUTOMAKE_VERSION' => 1, + 'LT_CONFIG_LTDL_DIR' => 1, + 'm4_include' => 1, 'AC_LIBSOURCE' => 1, - 'AC_DEFINE_TRACE_LITERAL' => 1, 'AC_PROG_LIBTOOL' => 1, - 'AM_INIT_AUTOMAKE' => 1, - 'AM_PROG_CXX_C_O' => 1, - 'AC_CONFIG_FILES' => 1, - 'AM_EXTRA_RECURSIVE_TARGETS' => 1, - 'GTK_DOC_CHECK' => 1, - 'AM_PROG_FC_C_O' => 1, - 'AM_ENABLE_MULTILIB' => 1, + 'LT_INIT' => 1, + 'AC_CONFIG_MACRO_DIR_TRACE' => 1, + 'AM_GNU_GETTEXT_INTL_SUBDIR' => 1, + 'AM_CONDITIONAL' => 1, 'AM_PROG_MOC' => 1, - 'LT_CONFIG_LTDL_DIR' => 1, - 'm4_sinclude' => 1, + 'AC_REQUIRE_AUX_FILE' => 1, 'AC_INIT' => 1, - 'AM_XGETTEXT_OPTION' => 1, - 'AM_PROG_F77_C_O' => 1, - 'AM_POT_TOOLS' => 1, - 'AH_OUTPUT' => 1, - 'AC_FC_SRCEXT' => 1, - 'AC_FC_FREEFORM' => 1, - 'AC_SUBST_TRACE' => 1, - 'AM_NLS' => 1, - 'include' => 1, - 'm4_include' => 1, - 'm4_pattern_allow' => 1, 'AC_SUBST' => 1, - 'm4_pattern_forbid' => 1, + 'AC_DEFINE_TRACE_LITERAL' => 1, + 'AM_MAINTAINER_MODE' => 1, + 'AM_PROG_CXX_C_O' => 1, + 'AC_FC_PP_SRCEXT' => 1, + 'AM_PROG_FC_C_O' => 1, + 'GTK_DOC_CHECK' => 1, + 'LT_SUPPORTED_TAG' => 1, + 'AM_PROG_AR' => 1, '_AM_COND_ELSE' => 1, + 'AM_PROG_LIBTOOL' => 1, + 'AM_INIT_AUTOMAKE' => 1, + 'AC_FC_FREEFORM' => 1, 'AC_CONFIG_HEADERS' => 1, - 'AC_CONFIG_MACRO_DIR_TRACE' => 1, - '_AM_COND_ENDIF' => 1, - 'AC_CANONICAL_SYSTEM' => 1, - '_AM_COND_IF' => 1, - '_LT_AC_TAGCONFIG' => 1, + 'm4_pattern_forbid' => 1, + 'AH_OUTPUT' => 1, 'AM_PATH_GUILE' => 1 } ], 'Autom4te::Request' ), @@ -155,69 +155,69 @@ 'configure.ac' ], { + 'AM_PROG_LIBTOOL' => 1, + 'AM_INIT_AUTOMAKE' => 1, 'AC_FC_FREEFORM' => 1, - 'AC_FC_SRCEXT' => 1, + 'AC_CONFIG_HEADERS' => 1, + 'm4_pattern_forbid' => 1, 'AH_OUTPUT' => 1, - 'AM_PROG_F77_C_O' => 1, - 'AM_XGETTEXT_OPTION' => 1, - 'AM_POT_TOOLS' => 1, - 'LT_CONFIG_LTDL_DIR' => 1, - 'm4_sinclude' => 1, - 'AC_INIT' => 1, - 'GTK_DOC_CHECK' => 1, + 'AM_PATH_GUILE' => 1, 'AM_PROG_FC_C_O' => 1, + 'AC_FC_PP_SRCEXT' => 1, + 'LT_SUPPORTED_TAG' => 1, + 'GTK_DOC_CHECK' => 1, + 'AM_PROG_AR' => 1, + '_AM_COND_ELSE' => 1, 'AM_PROG_MOC' => 1, - 'AM_ENABLE_MULTILIB' => 1, - 'AC_CONFIG_FILES' => 1, - 'AM_EXTRA_RECURSIVE_TARGETS' => 1, - 'AM_PROG_CXX_C_O' => 1, - 'AM_INIT_AUTOMAKE' => 1, + 'AC_REQUIRE_AUX_FILE' => 1, + 'AM_MAINTAINER_MODE' => 1, 'AC_DEFINE_TRACE_LITERAL' => 1, - 'AC_PROG_LIBTOOL' => 1, - 'AM_PATH_GUILE' => 1, - '_LT_AC_TAGCONFIG' => 1, - '_AM_COND_IF' => 1, - 'AC_CANONICAL_SYSTEM' => 1, - '_AM_COND_ELSE' => 1, - 'AC_CONFIG_HEADERS' => 1, - '_AM_COND_ENDIF' => 1, - 'AC_CONFIG_MACRO_DIR_TRACE' => 1, - 'm4_pattern_allow' => 1, + 'AC_INIT' => 1, 'AC_SUBST' => 1, - 'm4_pattern_forbid' => 1, - 'm4_include' => 1, - 'AC_SUBST_TRACE' => 1, - 'AM_NLS' => 1, - 'include' => 1, - 'AC_FC_PP_SRCEXT' => 1, - 'AC_CONFIG_SUBDIRS' => 1, - 'AC_FC_PP_DEFINE' => 1, + 'AM_PROG_CXX_C_O' => 1, + 'AM_GNU_GETTEXT_INTL_SUBDIR' => 1, 'AM_CONDITIONAL' => 1, + 'AC_CONFIG_MACRO_DIR_TRACE' => 1, + 'LT_INIT' => 1, + 'AC_LIBSOURCE' => 1, + 'AC_PROG_LIBTOOL' => 1, + 'AM_AUTOMAKE_VERSION' => 1, + 'LT_CONFIG_LTDL_DIR' => 1, + 'm4_include' => 1, + 'AM_MAKEFILE_INCLUDE' => 1, + 'AC_CONFIG_LINKS' => 1, + 'AC_CANONICAL_BUILD' => 1, + 'AM_ENABLE_MULTILIB' => 1, 'AM_PROG_MKDIR_P' => 1, - 'AM_GNU_GETTEXT_INTL_SUBDIR' => 1, - '_m4_warn' => 1, + 'm4_pattern_allow' => 1, + 'AC_FC_SRCEXT' => 1, + 'm4_sinclude' => 1, + 'AM_POT_TOOLS' => 1, + 'AC_CONFIG_SUBDIRS' => 1, 'sinclude' => 1, 'AC_CANONICAL_TARGET' => 1, - 'AM_AUTOMAKE_VERSION' => 1, - 'AM_MAINTAINER_MODE' => 1, - 'AC_CONFIG_LINKS' => 1, - 'AM_GNU_GETTEXT' => 1, - 'AM_MAKEFILE_INCLUDE' => 1, - 'LT_SUPPORTED_TAG' => 1, - 'AC_LIBSOURCE' => 1, 'AM_SILENT_RULES' => 1, - 'AC_CONFIG_LIBOBJ_DIR' => 1, + '_AM_COND_ENDIF' => 1, + 'AM_NLS' => 1, + 'AC_CANONICAL_HOST' => 1, 'AM_PROG_CC_C_O' => 1, - 'IT_PROG_INTLTOOL' => 1, + 'AM_EXTRA_RECURSIVE_TARGETS' => 1, + 'AM_PROG_F77_C_O' => 1, '_AM_SUBST_NOTMAKE' => 1, - 'AC_REQUIRE_AUX_FILE' => 1, - 'LT_INIT' => 1, - 'AM_PROG_AR' => 1, + 'AM_GNU_GETTEXT' => 1, '_AM_MAKEFILE_INCLUDE' => 1, + 'AC_FC_PP_DEFINE' => 1, + 'AC_CONFIG_FILES' => 1, + 'AC_SUBST_TRACE' => 1, + '_m4_warn' => 1, + 'AC_CANONICAL_SYSTEM' => 1, + 'include' => 1, + '_LT_AC_TAGCONFIG' => 1, 'AC_CONFIG_AUX_DIR' => 1, - 'AC_CANONICAL_BUILD' => 1, - 'AM_PROG_LIBTOOL' => 1, - 'AC_CANONICAL_HOST' => 1 + '_AM_COND_IF' => 1, + 'AC_CONFIG_LIBOBJ_DIR' => 1, + 'IT_PROG_INTLTOOL' => 1, + 'AM_XGETTEXT_OPTION' => 1 } ], 'Autom4te::Request' ) ); diff -ur liquid-dsp-good/config.h liquid-dsp-bad/config.h --- liquid-dsp-good/config.h 2022-07-15 22:58:34.000000000 +0300 +++ liquid-dsp-bad/config.h 2022-07-15 23:00:14.000000000 +0300 @@ -214,10 +214,10 @@ #endif /* Define to rpl_malloc if the replacement function should be used. */ -/* #undef malloc */ +#define malloc rpl_malloc /* Define to rpl_realloc if the replacement function should be used. */ -/* #undef realloc */ +#define realloc rpl_realloc /* Define to `unsigned int' if does not define. */ /* #undef size_t */ diff -ur liquid-dsp-good/config.log liquid-dsp-bad/config.log --- liquid-dsp-good/config.log 2022-07-15 22:58:34.000000000 +0300 +++ liquid-dsp-bad/config.log 2022-07-15 23:00:14.000000000 +0300 @@ -30,8 +30,8 @@ Processor type: x86_64h (Intel x86-64h Haswell) Processors active: 0 1 2 3 4 5 6 7 Primary memory available: 32.00 gigabytes -Default processor set: 623 tasks, 4559 threads, 8 processors -Load average: 2.65, Mach factor: 5.33 +Default processor set: 622 tasks, 4563 threads, 8 processors +Load average: 1.37, Mach factor: 6.61 /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown @@ -103,8 +103,21 @@ configure:3546: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -o conftest conftest.c >&5 configure:3550: $? = 0 configure:3557: ./conftest -configure:3561: $? = 0 -configure:3576: result: no +internal/process/esm_loader.js:74 + internalBinding('errors').triggerUncaughtException( + ^ + +TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension "" for /Users/shamrin/src/emscripten-bug/liquid-dsp-bad/conftest + at new NodeError (internal/errors.js:322:7) + at Loader.defaultGetFormat [as _getFormat] (internal/modules/esm/get_format.js:71:15) + at Loader.getFormat (internal/modules/esm/loader.js:105:42) + at Loader.getModuleJob (internal/modules/esm/loader.js:243:31) + at async Loader.import (internal/modules/esm/loader.js:177:17) + at async Object.loadESM (internal/process/esm_loader.js:68:5) { + code: 'ERR_UNKNOWN_FILE_EXTENSION' +} +configure:3561: $? = 1 +configure:3576: result: yes configure:3581: checking for suffix of object files configure:3604: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -c conftest.c >&5 configure:3608: $? = 0 @@ -139,7 +152,7 @@ #include ^~~~~~~~~ 1 error generated. -emcc: error: '/Users/shamrin/src/emsdk/upstream/bin/clang -target wasm32-unknown-emscripten -DEMSCRIPTEN -D__EMSCRIPTEN_major__=3 -D__EMSCRIPTEN_minor__=1 -D__EMSCRIPTEN_tiny__=15 -fignore-exceptions -fvisibility=default -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -Werror=implicit-function-declaration -Xclang -iwithsysroot/include/SDL --sysroot=/Users/shamrin/src/emsdk/upstream/emscripten/cache/sysroot -Xclang -iwithsysroot/include/compat -g3 -O2 conftest.c -c -o /var/folders/tl/py1b7wgd5gjczwhbs25yw8hr0000gn/T/emscripten_temp_idwjdkcx/conftest_0.o' failed (returned 1) +emcc: error: '/Users/shamrin/src/emsdk/upstream/bin/clang -target wasm32-unknown-emscripten -DEMSCRIPTEN -D__EMSCRIPTEN_major__=3 -D__EMSCRIPTEN_minor__=1 -D__EMSCRIPTEN_tiny__=15 -fignore-exceptions -fvisibility=default -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -Werror=implicit-function-declaration -Xclang -iwithsysroot/include/SDL --sysroot=/Users/shamrin/src/emsdk/upstream/emscripten/cache/sysroot -Xclang -iwithsysroot/include/compat -g3 -O2 conftest.c -c -o /var/folders/tl/py1b7wgd5gjczwhbs25yw8hr0000gn/T/emscripten_temp_104wcc8n/conftest_0.o' failed (returned 1) configure:4269: $? = 1 configure: failed program was: | /* confdefs.h */ @@ -164,19 +177,9 @@ configure:4330: checking host system type configure:4344: result: wasm32-unknown-none configure:4364: checking for GNU libc compatible malloc -configure:4396: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -o conftest -g -O2 conftest.c >&5 -emcc: warning: running limited binaryen optimizations because DWARF info requested (or indirectly required) [-Wlimited-postlink-optimizations] -configure:4396: $? = 0 -configure:4396: ./conftest -configure:4396: $? = 0 -configure:4407: result: yes +configure:4407: result: no configure:4429: checking for GNU libc compatible realloc -configure:4461: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -o conftest -g -O2 conftest.c >&5 -emcc: warning: running limited binaryen optimizations because DWARF info requested (or indirectly required) [-Wlimited-postlink-optimizations] -configure:4461: $? = 0 -configure:4461: ./conftest -configure:4461: $? = 0 -configure:4472: result: yes +configure:4472: result: no configure:4496: checking for main in -lc configure:4516: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -o conftest -g -O2 conftest.c -lc >&5 emcc: warning: running limited binaryen optimizations because DWARF info requested (or indirectly required) [-Wlimited-postlink-optimizations] @@ -189,207 +192,474 @@ configure:4568: result: yes configure:4586: checking for malloc configure:4586: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -o conftest -g -O2 conftest.c -lm -lc >&5 -conftest.c:29:6: warning: incompatible redeclaration of library function 'malloc' [-Wincompatible-library-redeclaration] +conftest.c:17:9: warning: 'malloc' macro redefined [-Wmacro-redefined] +#define malloc innocuous_malloc + ^ +conftest.c:9:9: note: previous definition is here +#define malloc rpl_malloc + ^ +conftest.c:31:6: warning: incompatible redeclaration of library function 'malloc' [-Wincompatible-library-redeclaration] char malloc (); ^ -conftest.c:29:6: note: 'malloc' is a builtin with type 'void *(unsigned long)' -1 warning generated. +conftest.c:31:6: note: 'malloc' is a builtin with type 'void *(unsigned long)' +2 warnings generated. wasm-ld: warning: function signature mismatch: malloc ->>> defined as () -> i32 in /var/folders/tl/py1b7wgd5gjczwhbs25yw8hr0000gn/T/emscripten_temp_v2lbuwra/conftest_0.o +>>> defined as () -> i32 in /var/folders/tl/py1b7wgd5gjczwhbs25yw8hr0000gn/T/emscripten_temp_mbzgeapz/conftest_0.o >>> defined as (i32) -> i32 in /Users/shamrin/src/emsdk/upstream/emscripten/cache/sysroot/lib/wasm32-emscripten/libdlmalloc.a(dlmalloc.o) emcc: warning: running limited binaryen optimizations because DWARF info requested (or indirectly required) [-Wlimited-postlink-optimizations] configure:4586: $? = 0 configure:4586: result: yes configure:4586: checking for realloc configure:4586: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -o conftest -g -O2 conftest.c -lm -lc >&5 -conftest.c:30:6: warning: incompatible redeclaration of library function 'realloc' [-Wincompatible-library-redeclaration] +conftest.c:14:9: warning: 'HAVE_MALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_MALLOC 1 + ^ +conftest.c:8:9: note: previous definition is here +#define HAVE_MALLOC 0 + ^ +conftest.c:18:9: warning: 'realloc' macro redefined [-Wmacro-redefined] +#define realloc innocuous_realloc + ^ +conftest.c:11:9: note: previous definition is here +#define realloc rpl_realloc + ^ +conftest.c:32:6: warning: incompatible redeclaration of library function 'realloc' [-Wincompatible-library-redeclaration] char realloc (); ^ -conftest.c:30:6: note: 'realloc' is a builtin with type 'void *(void *, unsigned long)' -1 warning generated. +conftest.c:32:6: note: 'realloc' is a builtin with type 'void *(void *, unsigned long)' +3 warnings generated. wasm-ld: warning: function signature mismatch: realloc ->>> defined as () -> i32 in /var/folders/tl/py1b7wgd5gjczwhbs25yw8hr0000gn/T/emscripten_temp_yo01rtwy/conftest_0.o +>>> defined as () -> i32 in /var/folders/tl/py1b7wgd5gjczwhbs25yw8hr0000gn/T/emscripten_temp_vmwq64nv/conftest_0.o >>> defined as (i32, i32) -> i32 in /Users/shamrin/src/emsdk/upstream/emscripten/cache/sysroot/lib/wasm32-emscripten/libdlmalloc.a(dlmalloc.o) emcc: warning: running limited binaryen optimizations because DWARF info requested (or indirectly required) [-Wlimited-postlink-optimizations] configure:4586: $? = 0 configure:4586: result: yes configure:4586: checking for free configure:4586: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -o conftest -g -O2 conftest.c -lm -lc >&5 -conftest.c:31:6: warning: incompatible redeclaration of library function 'free' [-Wincompatible-library-redeclaration] +conftest.c:14:9: warning: 'HAVE_MALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_MALLOC 1 + ^ +conftest.c:8:9: note: previous definition is here +#define HAVE_MALLOC 0 + ^ +conftest.c:15:9: warning: 'HAVE_REALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_REALLOC 1 + ^ +conftest.c:10:9: note: previous definition is here +#define HAVE_REALLOC 0 + ^ +conftest.c:33:6: warning: incompatible redeclaration of library function 'free' [-Wincompatible-library-redeclaration] char free (); ^ -conftest.c:31:6: note: 'free' is a builtin with type 'void (void *)' -1 warning generated. +conftest.c:33:6: note: 'free' is a builtin with type 'void (void *)' +3 warnings generated. wasm-ld: warning: function signature mismatch: free ->>> defined as () -> i32 in /var/folders/tl/py1b7wgd5gjczwhbs25yw8hr0000gn/T/emscripten_temp_1w2to6hy/conftest_0.o +>>> defined as () -> i32 in /var/folders/tl/py1b7wgd5gjczwhbs25yw8hr0000gn/T/emscripten_temp_7_vhvva0/conftest_0.o >>> defined as (i32) -> void in /Users/shamrin/src/emsdk/upstream/emscripten/cache/sysroot/lib/wasm32-emscripten/libdlmalloc.a(dlmalloc.o) emcc: warning: running limited binaryen optimizations because DWARF info requested (or indirectly required) [-Wlimited-postlink-optimizations] configure:4586: $? = 0 configure:4586: result: yes configure:4586: checking for memset configure:4586: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -o conftest -g -O2 conftest.c -lm -lc >&5 -conftest.c:32:6: warning: incompatible redeclaration of library function 'memset' [-Wincompatible-library-redeclaration] +conftest.c:14:9: warning: 'HAVE_MALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_MALLOC 1 + ^ +conftest.c:8:9: note: previous definition is here +#define HAVE_MALLOC 0 + ^ +conftest.c:15:9: warning: 'HAVE_REALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_REALLOC 1 + ^ +conftest.c:10:9: note: previous definition is here +#define HAVE_REALLOC 0 + ^ +conftest.c:34:6: warning: incompatible redeclaration of library function 'memset' [-Wincompatible-library-redeclaration] char memset (); ^ -conftest.c:32:6: note: 'memset' is a builtin with type 'void *(void *, int, unsigned long)' -1 warning generated. +conftest.c:34:6: note: 'memset' is a builtin with type 'void *(void *, int, unsigned long)' +3 warnings generated. wasm-ld: warning: function signature mismatch: memset ->>> defined as () -> i32 in /var/folders/tl/py1b7wgd5gjczwhbs25yw8hr0000gn/T/emscripten_temp_9kl12z5i/conftest_0.o +>>> defined as () -> i32 in /var/folders/tl/py1b7wgd5gjczwhbs25yw8hr0000gn/T/emscripten_temp_7q2py2bm/conftest_0.o >>> defined as (i32, i32, i32) -> i32 in /Users/shamrin/src/emsdk/upstream/emscripten/cache/sysroot/lib/wasm32-emscripten/libc.a(emscripten_memset.o) emcc: warning: running limited binaryen optimizations because DWARF info requested (or indirectly required) [-Wlimited-postlink-optimizations] configure:4586: $? = 0 configure:4586: result: yes configure:4586: checking for memmove configure:4586: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -o conftest -g -O2 conftest.c -lm -lc >&5 -conftest.c:33:6: warning: incompatible redeclaration of library function 'memmove' [-Wincompatible-library-redeclaration] +conftest.c:14:9: warning: 'HAVE_MALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_MALLOC 1 + ^ +conftest.c:8:9: note: previous definition is here +#define HAVE_MALLOC 0 + ^ +conftest.c:15:9: warning: 'HAVE_REALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_REALLOC 1 + ^ +conftest.c:10:9: note: previous definition is here +#define HAVE_REALLOC 0 + ^ +conftest.c:35:6: warning: incompatible redeclaration of library function 'memmove' [-Wincompatible-library-redeclaration] char memmove (); ^ -conftest.c:33:6: note: 'memmove' is a builtin with type 'void *(void *, const void *, unsigned long)' -1 warning generated. +conftest.c:35:6: note: 'memmove' is a builtin with type 'void *(void *, const void *, unsigned long)' +3 warnings generated. wasm-ld: warning: function signature mismatch: memmove ->>> defined as () -> i32 in /var/folders/tl/py1b7wgd5gjczwhbs25yw8hr0000gn/T/emscripten_temp_pxy9kkzc/conftest_0.o +>>> defined as () -> i32 in /var/folders/tl/py1b7wgd5gjczwhbs25yw8hr0000gn/T/emscripten_temp_evc_wakg/conftest_0.o >>> defined as (i32, i32, i32) -> i32 in /Users/shamrin/src/emsdk/upstream/emscripten/cache/sysroot/lib/wasm32-emscripten/libc.a(emscripten_memmove.o) emcc: warning: running limited binaryen optimizations because DWARF info requested (or indirectly required) [-Wlimited-postlink-optimizations] configure:4586: $? = 0 configure:4586: result: yes configure:4602: checking for sinf configure:4602: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -o conftest -g -O2 conftest.c -lm -lc >&5 -conftest.c:34:6: warning: incompatible redeclaration of library function 'sinf' [-Wincompatible-library-redeclaration] +conftest.c:14:9: warning: 'HAVE_MALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_MALLOC 1 + ^ +conftest.c:8:9: note: previous definition is here +#define HAVE_MALLOC 0 + ^ +conftest.c:15:9: warning: 'HAVE_REALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_REALLOC 1 + ^ +conftest.c:10:9: note: previous definition is here +#define HAVE_REALLOC 0 + ^ +conftest.c:36:6: warning: incompatible redeclaration of library function 'sinf' [-Wincompatible-library-redeclaration] char sinf (); ^ -conftest.c:34:6: note: 'sinf' is a builtin with type 'float (float)' -1 warning generated. +conftest.c:36:6: note: 'sinf' is a builtin with type 'float (float)' +3 warnings generated. wasm-ld: warning: function signature mismatch: sinf ->>> defined as () -> i32 in /var/folders/tl/py1b7wgd5gjczwhbs25yw8hr0000gn/T/emscripten_temp_7xsoi2x2/conftest_0.o +>>> defined as () -> i32 in /var/folders/tl/py1b7wgd5gjczwhbs25yw8hr0000gn/T/emscripten_temp_qspqdhx6/conftest_0.o >>> defined as (f32) -> f32 in /Users/shamrin/src/emsdk/upstream/emscripten/cache/sysroot/lib/wasm32-emscripten/libc.a(sinf.o) emcc: warning: running limited binaryen optimizations because DWARF info requested (or indirectly required) [-Wlimited-postlink-optimizations] configure:4602: $? = 0 configure:4602: result: yes configure:4602: checking for cosf configure:4602: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -o conftest -g -O2 conftest.c -lm -lc >&5 -conftest.c:35:6: warning: incompatible redeclaration of library function 'cosf' [-Wincompatible-library-redeclaration] +conftest.c:14:9: warning: 'HAVE_MALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_MALLOC 1 + ^ +conftest.c:8:9: note: previous definition is here +#define HAVE_MALLOC 0 + ^ +conftest.c:15:9: warning: 'HAVE_REALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_REALLOC 1 + ^ +conftest.c:10:9: note: previous definition is here +#define HAVE_REALLOC 0 + ^ +conftest.c:37:6: warning: incompatible redeclaration of library function 'cosf' [-Wincompatible-library-redeclaration] char cosf (); ^ -conftest.c:35:6: note: 'cosf' is a builtin with type 'float (float)' -1 warning generated. +conftest.c:37:6: note: 'cosf' is a builtin with type 'float (float)' +3 warnings generated. wasm-ld: warning: function signature mismatch: cosf ->>> defined as () -> i32 in /var/folders/tl/py1b7wgd5gjczwhbs25yw8hr0000gn/T/emscripten_temp_m0qp2mb0/conftest_0.o +>>> defined as () -> i32 in /var/folders/tl/py1b7wgd5gjczwhbs25yw8hr0000gn/T/emscripten_temp_yd2zvgaz/conftest_0.o >>> defined as (f32) -> f32 in /Users/shamrin/src/emsdk/upstream/emscripten/cache/sysroot/lib/wasm32-emscripten/libc.a(cosf.o) emcc: warning: running limited binaryen optimizations because DWARF info requested (or indirectly required) [-Wlimited-postlink-optimizations] configure:4602: $? = 0 configure:4602: result: yes configure:4602: checking for expf configure:4602: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -o conftest -g -O2 conftest.c -lm -lc >&5 -conftest.c:36:6: warning: incompatible redeclaration of library function 'expf' [-Wincompatible-library-redeclaration] +conftest.c:14:9: warning: 'HAVE_MALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_MALLOC 1 + ^ +conftest.c:8:9: note: previous definition is here +#define HAVE_MALLOC 0 + ^ +conftest.c:15:9: warning: 'HAVE_REALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_REALLOC 1 + ^ +conftest.c:10:9: note: previous definition is here +#define HAVE_REALLOC 0 + ^ +conftest.c:38:6: warning: incompatible redeclaration of library function 'expf' [-Wincompatible-library-redeclaration] char expf (); ^ -conftest.c:36:6: note: 'expf' is a builtin with type 'float (float)' -1 warning generated. +conftest.c:38:6: note: 'expf' is a builtin with type 'float (float)' +3 warnings generated. wasm-ld: warning: function signature mismatch: expf ->>> defined as () -> i32 in /var/folders/tl/py1b7wgd5gjczwhbs25yw8hr0000gn/T/emscripten_temp_lo4ip04d/conftest_0.o +>>> defined as () -> i32 in /var/folders/tl/py1b7wgd5gjczwhbs25yw8hr0000gn/T/emscripten_temp_crjnz2er/conftest_0.o >>> defined as (f32) -> f32 in /Users/shamrin/src/emsdk/upstream/emscripten/cache/sysroot/lib/wasm32-emscripten/libc.a(expf.o) emcc: warning: running limited binaryen optimizations because DWARF info requested (or indirectly required) [-Wlimited-postlink-optimizations] configure:4602: $? = 0 configure:4602: result: yes configure:4602: checking for cargf configure:4602: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -o conftest -g -O2 conftest.c -lm -lc >&5 -conftest.c:37:6: warning: incompatible redeclaration of library function 'cargf' [-Wincompatible-library-redeclaration] +conftest.c:14:9: warning: 'HAVE_MALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_MALLOC 1 + ^ +conftest.c:8:9: note: previous definition is here +#define HAVE_MALLOC 0 + ^ +conftest.c:15:9: warning: 'HAVE_REALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_REALLOC 1 + ^ +conftest.c:10:9: note: previous definition is here +#define HAVE_REALLOC 0 + ^ +conftest.c:39:6: warning: incompatible redeclaration of library function 'cargf' [-Wincompatible-library-redeclaration] char cargf (); ^ -conftest.c:37:6: note: 'cargf' is a builtin with type 'float (_Complex float)' -1 warning generated. +conftest.c:39:6: note: 'cargf' is a builtin with type 'float (_Complex float)' +3 warnings generated. wasm-ld: warning: function signature mismatch: cargf ->>> defined as () -> i32 in /var/folders/tl/py1b7wgd5gjczwhbs25yw8hr0000gn/T/emscripten_temp_jpbs55qt/conftest_0.o +>>> defined as () -> i32 in /var/folders/tl/py1b7wgd5gjczwhbs25yw8hr0000gn/T/emscripten_temp_h8y1zo8p/conftest_0.o >>> defined as (i32) -> f32 in /Users/shamrin/src/emsdk/upstream/emscripten/cache/sysroot/lib/wasm32-emscripten/libc.a(cargf.o) emcc: warning: running limited binaryen optimizations because DWARF info requested (or indirectly required) [-Wlimited-postlink-optimizations] configure:4602: $? = 0 configure:4602: result: yes configure:4602: checking for cexpf configure:4602: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -o conftest -g -O2 conftest.c -lm -lc >&5 -conftest.c:38:6: warning: incompatible redeclaration of library function 'cexpf' [-Wincompatible-library-redeclaration] +conftest.c:14:9: warning: 'HAVE_MALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_MALLOC 1 + ^ +conftest.c:8:9: note: previous definition is here +#define HAVE_MALLOC 0 + ^ +conftest.c:15:9: warning: 'HAVE_REALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_REALLOC 1 + ^ +conftest.c:10:9: note: previous definition is here +#define HAVE_REALLOC 0 + ^ +conftest.c:40:6: warning: incompatible redeclaration of library function 'cexpf' [-Wincompatible-library-redeclaration] char cexpf (); ^ -conftest.c:38:6: note: 'cexpf' is a builtin with type '_Complex float (_Complex float)' -1 warning generated. +conftest.c:40:6: note: 'cexpf' is a builtin with type '_Complex float (_Complex float)' +3 warnings generated. wasm-ld: warning: function signature mismatch: cexpf ->>> defined as () -> i32 in /var/folders/tl/py1b7wgd5gjczwhbs25yw8hr0000gn/T/emscripten_temp_zrczj_ou/conftest_0.o +>>> defined as () -> i32 in /var/folders/tl/py1b7wgd5gjczwhbs25yw8hr0000gn/T/emscripten_temp_cj8xo4l_/conftest_0.o >>> defined as (i32, i32) -> void in /Users/shamrin/src/emsdk/upstream/emscripten/cache/sysroot/lib/wasm32-emscripten/libc.a(cexpf.o) emcc: warning: running limited binaryen optimizations because DWARF info requested (or indirectly required) [-Wlimited-postlink-optimizations] configure:4602: $? = 0 configure:4602: result: yes configure:4602: checking for crealf configure:4602: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -o conftest -g -O2 conftest.c -lm -lc >&5 -conftest.c:39:6: warning: incompatible redeclaration of library function 'crealf' [-Wincompatible-library-redeclaration] +conftest.c:14:9: warning: 'HAVE_MALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_MALLOC 1 + ^ +conftest.c:8:9: note: previous definition is here +#define HAVE_MALLOC 0 + ^ +conftest.c:15:9: warning: 'HAVE_REALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_REALLOC 1 + ^ +conftest.c:10:9: note: previous definition is here +#define HAVE_REALLOC 0 + ^ +conftest.c:41:6: warning: incompatible redeclaration of library function 'crealf' [-Wincompatible-library-redeclaration] char crealf (); ^ -conftest.c:39:6: note: 'crealf' is a builtin with type 'float (_Complex float)' -1 warning generated. +conftest.c:41:6: note: 'crealf' is a builtin with type 'float (_Complex float)' +3 warnings generated. wasm-ld: warning: function signature mismatch: crealf ->>> defined as () -> i32 in /var/folders/tl/py1b7wgd5gjczwhbs25yw8hr0000gn/T/emscripten_temp_is892ebf/conftest_0.o +>>> defined as () -> i32 in /var/folders/tl/py1b7wgd5gjczwhbs25yw8hr0000gn/T/emscripten_temp_a88skld8/conftest_0.o >>> defined as (i32) -> f32 in /Users/shamrin/src/emsdk/upstream/emscripten/cache/sysroot/lib/wasm32-emscripten/libc.a(crealf.o) emcc: warning: running limited binaryen optimizations because DWARF info requested (or indirectly required) [-Wlimited-postlink-optimizations] configure:4602: $? = 0 configure:4602: result: yes configure:4602: checking for cimagf configure:4602: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -o conftest -g -O2 conftest.c -lm -lc >&5 -conftest.c:40:6: warning: incompatible redeclaration of library function 'cimagf' [-Wincompatible-library-redeclaration] +conftest.c:14:9: warning: 'HAVE_MALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_MALLOC 1 + ^ +conftest.c:8:9: note: previous definition is here +#define HAVE_MALLOC 0 + ^ +conftest.c:15:9: warning: 'HAVE_REALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_REALLOC 1 + ^ +conftest.c:10:9: note: previous definition is here +#define HAVE_REALLOC 0 + ^ +conftest.c:42:6: warning: incompatible redeclaration of library function 'cimagf' [-Wincompatible-library-redeclaration] char cimagf (); ^ -conftest.c:40:6: note: 'cimagf' is a builtin with type 'float (_Complex float)' -1 warning generated. +conftest.c:42:6: note: 'cimagf' is a builtin with type 'float (_Complex float)' +3 warnings generated. wasm-ld: warning: function signature mismatch: cimagf ->>> defined as () -> i32 in /var/folders/tl/py1b7wgd5gjczwhbs25yw8hr0000gn/T/emscripten_temp_t3a5jmq4/conftest_0.o +>>> defined as () -> i32 in /var/folders/tl/py1b7wgd5gjczwhbs25yw8hr0000gn/T/emscripten_temp_1iz4os__/conftest_0.o >>> defined as (i32) -> f32 in /Users/shamrin/src/emsdk/upstream/emscripten/cache/sysroot/lib/wasm32-emscripten/libc.a(cimagf.o) emcc: warning: running limited binaryen optimizations because DWARF info requested (or indirectly required) [-Wlimited-postlink-optimizations] configure:4602: $? = 0 configure:4602: result: yes configure:4602: checking for sqrtf configure:4602: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -o conftest -g -O2 conftest.c -lm -lc >&5 -conftest.c:41:6: warning: incompatible redeclaration of library function 'sqrtf' [-Wincompatible-library-redeclaration] +conftest.c:14:9: warning: 'HAVE_MALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_MALLOC 1 + ^ +conftest.c:8:9: note: previous definition is here +#define HAVE_MALLOC 0 + ^ +conftest.c:15:9: warning: 'HAVE_REALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_REALLOC 1 + ^ +conftest.c:10:9: note: previous definition is here +#define HAVE_REALLOC 0 + ^ +conftest.c:43:6: warning: incompatible redeclaration of library function 'sqrtf' [-Wincompatible-library-redeclaration] char sqrtf (); ^ -conftest.c:41:6: note: 'sqrtf' is a builtin with type 'float (float)' -1 warning generated. +conftest.c:43:6: note: 'sqrtf' is a builtin with type 'float (float)' +3 warnings generated. wasm-ld: warning: function signature mismatch: sqrtf ->>> defined as () -> i32 in /var/folders/tl/py1b7wgd5gjczwhbs25yw8hr0000gn/T/emscripten_temp_n41g8ms8/conftest_0.o +>>> defined as () -> i32 in /var/folders/tl/py1b7wgd5gjczwhbs25yw8hr0000gn/T/emscripten_temp_s2s7yeu7/conftest_0.o >>> defined as (f32) -> f32 in /Users/shamrin/src/emsdk/upstream/emscripten/cache/sysroot/lib/wasm32-emscripten/libc.a(sqrtf.o) emcc: warning: running limited binaryen optimizations because DWARF info requested (or indirectly required) [-Wlimited-postlink-optimizations] configure:4602: $? = 0 configure:4602: result: yes configure:4620: checking for stdio.h configure:4620: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -c -g -O2 conftest.c >&5 +conftest.c:14:9: warning: 'HAVE_MALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_MALLOC 1 + ^ +conftest.c:8:9: note: previous definition is here +#define HAVE_MALLOC 0 + ^ +conftest.c:15:9: warning: 'HAVE_REALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_REALLOC 1 + ^ +conftest.c:10:9: note: previous definition is here +#define HAVE_REALLOC 0 + ^ +2 warnings generated. configure:4620: $? = 0 configure:4620: result: yes configure:4620: checking for stdlib.h configure:4620: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -c -g -O2 conftest.c >&5 +conftest.c:14:9: warning: 'HAVE_MALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_MALLOC 1 + ^ +conftest.c:8:9: note: previous definition is here +#define HAVE_MALLOC 0 + ^ +conftest.c:15:9: warning: 'HAVE_REALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_REALLOC 1 + ^ +conftest.c:10:9: note: previous definition is here +#define HAVE_REALLOC 0 + ^ +2 warnings generated. configure:4620: $? = 0 configure:4620: result: yes configure:4620: checking for string.h configure:4620: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -c -g -O2 conftest.c >&5 +conftest.c:14:9: warning: 'HAVE_MALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_MALLOC 1 + ^ +conftest.c:8:9: note: previous definition is here +#define HAVE_MALLOC 0 + ^ +conftest.c:15:9: warning: 'HAVE_REALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_REALLOC 1 + ^ +conftest.c:10:9: note: previous definition is here +#define HAVE_REALLOC 0 + ^ +2 warnings generated. configure:4620: $? = 0 configure:4620: result: yes configure:4620: checking for inttypes.h configure:4620: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -c -g -O2 conftest.c >&5 +conftest.c:14:9: warning: 'HAVE_MALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_MALLOC 1 + ^ +conftest.c:8:9: note: previous definition is here +#define HAVE_MALLOC 0 + ^ +conftest.c:15:9: warning: 'HAVE_REALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_REALLOC 1 + ^ +conftest.c:10:9: note: previous definition is here +#define HAVE_REALLOC 0 + ^ +2 warnings generated. configure:4620: $? = 0 configure:4620: result: yes configure:4620: checking for stdint.h configure:4620: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -c -g -O2 conftest.c >&5 +conftest.c:14:9: warning: 'HAVE_MALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_MALLOC 1 + ^ +conftest.c:8:9: note: previous definition is here +#define HAVE_MALLOC 0 + ^ +conftest.c:15:9: warning: 'HAVE_REALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_REALLOC 1 + ^ +conftest.c:10:9: note: previous definition is here +#define HAVE_REALLOC 0 + ^ +2 warnings generated. configure:4620: $? = 0 configure:4620: result: yes configure:4620: checking for strings.h configure:4620: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -c -g -O2 conftest.c >&5 +conftest.c:14:9: warning: 'HAVE_MALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_MALLOC 1 + ^ +conftest.c:8:9: note: previous definition is here +#define HAVE_MALLOC 0 + ^ +conftest.c:15:9: warning: 'HAVE_REALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_REALLOC 1 + ^ +conftest.c:10:9: note: previous definition is here +#define HAVE_REALLOC 0 + ^ +2 warnings generated. configure:4620: $? = 0 configure:4620: result: yes configure:4620: checking for sys/stat.h configure:4620: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -c -g -O2 conftest.c >&5 +conftest.c:14:9: warning: 'HAVE_MALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_MALLOC 1 + ^ +conftest.c:8:9: note: previous definition is here +#define HAVE_MALLOC 0 + ^ +conftest.c:15:9: warning: 'HAVE_REALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_REALLOC 1 + ^ +conftest.c:10:9: note: previous definition is here +#define HAVE_REALLOC 0 + ^ +2 warnings generated. configure:4620: $? = 0 configure:4620: result: yes configure:4620: checking for sys/types.h configure:4620: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -c -g -O2 conftest.c >&5 +conftest.c:14:9: warning: 'HAVE_MALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_MALLOC 1 + ^ +conftest.c:8:9: note: previous definition is here +#define HAVE_MALLOC 0 + ^ +conftest.c:15:9: warning: 'HAVE_REALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_REALLOC 1 + ^ +conftest.c:10:9: note: previous definition is here +#define HAVE_REALLOC 0 + ^ +2 warnings generated. configure:4620: $? = 0 configure:4620: result: yes configure:4620: checking for unistd.h configure:4620: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -c -g -O2 conftest.c >&5 +conftest.c:14:9: warning: 'HAVE_MALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_MALLOC 1 + ^ +conftest.c:8:9: note: previous definition is here +#define HAVE_MALLOC 0 + ^ +conftest.c:15:9: warning: 'HAVE_REALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_REALLOC 1 + ^ +conftest.c:10:9: note: previous definition is here +#define HAVE_REALLOC 0 + ^ +2 warnings generated. configure:4620: $? = 0 configure:4620: result: yes configure:4648: checking for stdio.h @@ -398,26 +668,91 @@ configure:4648: result: yes configure:4648: checking for complex.h configure:4648: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -c -g -O2 conftest.c >&5 +conftest.c:14:9: warning: 'HAVE_MALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_MALLOC 1 + ^ +conftest.c:8:9: note: previous definition is here +#define HAVE_MALLOC 0 + ^ +conftest.c:15:9: warning: 'HAVE_REALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_REALLOC 1 + ^ +conftest.c:10:9: note: previous definition is here +#define HAVE_REALLOC 0 + ^ +2 warnings generated. configure:4648: $? = 0 configure:4648: result: yes configure:4648: checking for string.h configure:4648: result: yes configure:4648: checking for getopt.h configure:4648: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -c -g -O2 conftest.c >&5 +conftest.c:14:9: warning: 'HAVE_MALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_MALLOC 1 + ^ +conftest.c:8:9: note: previous definition is here +#define HAVE_MALLOC 0 + ^ +conftest.c:15:9: warning: 'HAVE_REALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_REALLOC 1 + ^ +conftest.c:10:9: note: previous definition is here +#define HAVE_REALLOC 0 + ^ +2 warnings generated. configure:4648: $? = 0 configure:4648: result: yes configure:4648: checking for sys/resource.h configure:4648: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -c -g -O2 conftest.c >&5 +conftest.c:14:9: warning: 'HAVE_MALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_MALLOC 1 + ^ +conftest.c:8:9: note: previous definition is here +#define HAVE_MALLOC 0 + ^ +conftest.c:15:9: warning: 'HAVE_REALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_REALLOC 1 + ^ +conftest.c:10:9: note: previous definition is here +#define HAVE_REALLOC 0 + ^ +2 warnings generated. configure:4648: $? = 0 configure:4648: result: yes configure:4648: checking for float.h configure:4648: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -c -g -O2 conftest.c >&5 +conftest.c:14:9: warning: 'HAVE_MALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_MALLOC 1 + ^ +conftest.c:8:9: note: previous definition is here +#define HAVE_MALLOC 0 + ^ +conftest.c:15:9: warning: 'HAVE_REALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_REALLOC 1 + ^ +conftest.c:10:9: note: previous definition is here +#define HAVE_REALLOC 0 + ^ +2 warnings generated. configure:4648: $? = 0 configure:4648: result: yes configure:4648: checking for inttypes.h configure:4648: result: yes configure:4648: checking for limits.h configure:4648: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -c -g -O2 conftest.c >&5 +conftest.c:14:9: warning: 'HAVE_MALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_MALLOC 1 + ^ +conftest.c:8:9: note: previous definition is here +#define HAVE_MALLOC 0 + ^ +conftest.c:15:9: warning: 'HAVE_REALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_REALLOC 1 + ^ +conftest.c:10:9: note: previous definition is here +#define HAVE_REALLOC 0 + ^ +2 warnings generated. configure:4648: $? = 0 configure:4648: result: yes configure:4648: checking for stdlib.h @@ -428,10 +763,22 @@ configure:4648: result: yes configure:4662: checking for fec.h configure:4662: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -c -g -O2 conftest.c >&5 -conftest.c:76:10: fatal error: 'fec.h' file not found +conftest.c:14:9: warning: 'HAVE_MALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_MALLOC 1 + ^ +conftest.c:8:9: note: previous definition is here +#define HAVE_MALLOC 0 + ^ +conftest.c:15:9: warning: 'HAVE_REALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_REALLOC 1 + ^ +conftest.c:10:9: note: previous definition is here +#define HAVE_REALLOC 0 + ^ +conftest.c:78:10: fatal error: 'fec.h' file not found #include ^~~~~~~ -1 error generated. +2 warnings and 1 error generated. emcc: error: '/Users/shamrin/src/emsdk/upstream/bin/clang -target wasm32-unknown-emscripten -DEMSCRIPTEN -D__EMSCRIPTEN_major__=3 -D__EMSCRIPTEN_minor__=1 -D__EMSCRIPTEN_tiny__=15 -fignore-exceptions -fvisibility=default -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -Werror=implicit-function-declaration -Xclang -iwithsysroot/include/SDL --sysroot=/Users/shamrin/src/emsdk/upstream/emscripten/cache/sysroot -Xclang -iwithsysroot/include/compat -c -g3 -O2 conftest.c -o conftest.o' failed (returned 1) configure:4662: $? = 1 configure: failed program was: @@ -442,8 +789,10 @@ | #define PACKAGE_STRING "liquid-dsp 1.4.0" | #define PACKAGE_BUGREPORT "joseph@liquidsdr.org" | #define PACKAGE_URL "" -| #define HAVE_MALLOC 1 -| #define HAVE_REALLOC 1 +| #define HAVE_MALLOC 0 +| #define malloc rpl_malloc +| #define HAVE_REALLOC 0 +| #define realloc rpl_realloc | #define HAVE_LIBC 1 | #define HAVE_LIBM 1 | #define HAVE_MALLOC 1 @@ -514,10 +863,22 @@ configure:4662: result: no configure:4668: checking for fftw3.h configure:4668: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -c -g -O2 conftest.c >&5 -conftest.c:76:10: fatal error: 'fftw3.h' file not found +conftest.c:14:9: warning: 'HAVE_MALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_MALLOC 1 + ^ +conftest.c:8:9: note: previous definition is here +#define HAVE_MALLOC 0 + ^ +conftest.c:15:9: warning: 'HAVE_REALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_REALLOC 1 + ^ +conftest.c:10:9: note: previous definition is here +#define HAVE_REALLOC 0 + ^ +conftest.c:78:10: fatal error: 'fftw3.h' file not found #include ^~~~~~~~~ -1 error generated. +2 warnings and 1 error generated. emcc: error: '/Users/shamrin/src/emsdk/upstream/bin/clang -target wasm32-unknown-emscripten -DEMSCRIPTEN -D__EMSCRIPTEN_major__=3 -D__EMSCRIPTEN_minor__=1 -D__EMSCRIPTEN_tiny__=15 -fignore-exceptions -fvisibility=default -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -Werror=implicit-function-declaration -Xclang -iwithsysroot/include/SDL --sysroot=/Users/shamrin/src/emsdk/upstream/emscripten/cache/sysroot -Xclang -iwithsysroot/include/compat -c -g3 -O2 conftest.c -o conftest.o' failed (returned 1) configure:4668: $? = 1 configure: failed program was: @@ -528,8 +889,10 @@ | #define PACKAGE_STRING "liquid-dsp 1.4.0" | #define PACKAGE_BUGREPORT "joseph@liquidsdr.org" | #define PACKAGE_URL "" -| #define HAVE_MALLOC 1 -| #define HAVE_REALLOC 1 +| #define HAVE_MALLOC 0 +| #define malloc rpl_malloc +| #define HAVE_REALLOC 0 +| #define realloc rpl_realloc | #define HAVE_LIBC 1 | #define HAVE_LIBM 1 | #define HAVE_MALLOC 1 @@ -600,8 +963,21 @@ configure:4668: result: no configure:4675: checking for fftwf_plan_dft_1d in -lfftw3f configure:4698: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -o conftest -g -O2 conftest.c -lfftw3f -lm -lc >&5 +conftest.c:14:9: warning: 'HAVE_MALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_MALLOC 1 + ^ +conftest.c:8:9: note: previous definition is here +#define HAVE_MALLOC 0 + ^ +conftest.c:15:9: warning: 'HAVE_REALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_REALLOC 1 + ^ +conftest.c:10:9: note: previous definition is here +#define HAVE_REALLOC 0 + ^ +2 warnings generated. wasm-ld: error: unable to find library -lfftw3f -emcc: error: '/Users/shamrin/src/emsdk/upstream/bin/wasm-ld -o conftest.wasm /var/folders/tl/py1b7wgd5gjczwhbs25yw8hr0000gn/T/emscripten_temp_varoteey/conftest_0.o -lfftw3f -lc -L/Users/shamrin/src/emsdk/upstream/emscripten/cache/sysroot/lib/wasm32-emscripten -lGL -lal -lhtml5 -lstubs -lc -ldlmalloc -lcompiler_rt -lc++-noexcept -lc++abi-noexcept -lsockets -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr --import-undefined --export-if-defined=main --export-if-defined=__start_em_asm --export-if-defined=__stop_em_asm --export-if-defined=__main_argc_argv --export-if-defined=fflush --export=stackSave --export=stackRestore --export=stackAlloc --export=__wasm_call_ctors --export=__errno_location --export=__funcs_on_exit --export-table -z stack-size=5242880 --initial-memory=16777216 --no-entry --max-memory=16777216 --global-base=1024' failed (returned 1) +emcc: error: '/Users/shamrin/src/emsdk/upstream/bin/wasm-ld -o conftest.wasm /var/folders/tl/py1b7wgd5gjczwhbs25yw8hr0000gn/T/emscripten_temp_yd3zml3j/conftest_0.o -lfftw3f -lc -L/Users/shamrin/src/emsdk/upstream/emscripten/cache/sysroot/lib/wasm32-emscripten -lGL -lal -lhtml5 -lstubs -lc -ldlmalloc -lcompiler_rt -lc++-noexcept -lc++abi-noexcept -lsockets -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr --import-undefined --export-if-defined=main --export-if-defined=__start_em_asm --export-if-defined=__stop_em_asm --export-if-defined=__main_argc_argv --export-if-defined=fflush --export=stackSave --export=stackRestore --export=stackAlloc --export=__wasm_call_ctors --export=__errno_location --export=__funcs_on_exit --export-table -z stack-size=5242880 --initial-memory=16777216 --no-entry --max-memory=16777216 --global-base=1024' failed (returned 1) configure:4698: $? = 1 configure: failed program was: | /* confdefs.h */ @@ -611,8 +987,10 @@ | #define PACKAGE_STRING "liquid-dsp 1.4.0" | #define PACKAGE_BUGREPORT "joseph@liquidsdr.org" | #define PACKAGE_URL "" -| #define HAVE_MALLOC 1 -| #define HAVE_REALLOC 1 +| #define HAVE_MALLOC 0 +| #define malloc rpl_malloc +| #define HAVE_REALLOC 0 +| #define realloc rpl_realloc | #define HAVE_LIBC 1 | #define HAVE_LIBM 1 | #define HAVE_MALLOC 1 @@ -667,8 +1045,21 @@ configure:4717: WARNING: fftw3 library useful but not required configure:4721: checking for create_viterbi27 in -lfec configure:4744: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -o conftest -g -O2 conftest.c -lfec -lm -lc >&5 +conftest.c:14:9: warning: 'HAVE_MALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_MALLOC 1 + ^ +conftest.c:8:9: note: previous definition is here +#define HAVE_MALLOC 0 + ^ +conftest.c:15:9: warning: 'HAVE_REALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_REALLOC 1 + ^ +conftest.c:10:9: note: previous definition is here +#define HAVE_REALLOC 0 + ^ +2 warnings generated. wasm-ld: error: unable to find library -lfec -emcc: error: '/Users/shamrin/src/emsdk/upstream/bin/wasm-ld -o conftest.wasm /var/folders/tl/py1b7wgd5gjczwhbs25yw8hr0000gn/T/emscripten_temp_ciohfn05/conftest_0.o -lfec -lc -L/Users/shamrin/src/emsdk/upstream/emscripten/cache/sysroot/lib/wasm32-emscripten -lGL -lal -lhtml5 -lstubs -lc -ldlmalloc -lcompiler_rt -lc++-noexcept -lc++abi-noexcept -lsockets -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr --import-undefined --export-if-defined=main --export-if-defined=__start_em_asm --export-if-defined=__stop_em_asm --export-if-defined=__main_argc_argv --export-if-defined=fflush --export=stackSave --export=stackRestore --export=stackAlloc --export=__wasm_call_ctors --export=__errno_location --export=__funcs_on_exit --export-table -z stack-size=5242880 --initial-memory=16777216 --no-entry --max-memory=16777216 --global-base=1024' failed (returned 1) +emcc: error: '/Users/shamrin/src/emsdk/upstream/bin/wasm-ld -o conftest.wasm /var/folders/tl/py1b7wgd5gjczwhbs25yw8hr0000gn/T/emscripten_temp_pyp1r8vu/conftest_0.o -lfec -lc -L/Users/shamrin/src/emsdk/upstream/emscripten/cache/sysroot/lib/wasm32-emscripten -lGL -lal -lhtml5 -lstubs -lc -ldlmalloc -lcompiler_rt -lc++-noexcept -lc++abi-noexcept -lsockets -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr --import-undefined --export-if-defined=main --export-if-defined=__start_em_asm --export-if-defined=__stop_em_asm --export-if-defined=__main_argc_argv --export-if-defined=fflush --export=stackSave --export=stackRestore --export=stackAlloc --export=__wasm_call_ctors --export=__errno_location --export=__funcs_on_exit --export-table -z stack-size=5242880 --initial-memory=16777216 --no-entry --max-memory=16777216 --global-base=1024' failed (returned 1) configure:4744: $? = 1 configure: failed program was: | /* confdefs.h */ @@ -678,8 +1069,10 @@ | #define PACKAGE_STRING "liquid-dsp 1.4.0" | #define PACKAGE_BUGREPORT "joseph@liquidsdr.org" | #define PACKAGE_URL "" -| #define HAVE_MALLOC 1 -| #define HAVE_REALLOC 1 +| #define HAVE_MALLOC 0 +| #define malloc rpl_malloc +| #define HAVE_REALLOC 0 +| #define realloc rpl_realloc | #define HAVE_LIBC 1 | #define HAVE_LIBM 1 | #define HAVE_MALLOC 1 @@ -734,16 +1127,54 @@ configure:4763: WARNING: fec library useful but not required configure:4769: checking for inline configure:4786: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -c -g -O2 conftest.c >&5 +conftest.c:14:9: warning: 'HAVE_MALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_MALLOC 1 + ^ +conftest.c:8:9: note: previous definition is here +#define HAVE_MALLOC 0 + ^ +conftest.c:15:9: warning: 'HAVE_REALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_REALLOC 1 + ^ +conftest.c:10:9: note: previous definition is here +#define HAVE_REALLOC 0 + ^ +2 warnings generated. configure:4786: $? = 0 configure:4795: result: inline configure:4813: checking for size_t configure:4813: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -c -g -O2 conftest.c >&5 +conftest.c:14:9: warning: 'HAVE_MALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_MALLOC 1 + ^ +conftest.c:8:9: note: previous definition is here +#define HAVE_MALLOC 0 + ^ +conftest.c:15:9: warning: 'HAVE_REALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_REALLOC 1 + ^ +conftest.c:10:9: note: previous definition is here +#define HAVE_REALLOC 0 + ^ +2 warnings generated. configure:4813: $? = 0 configure:4813: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -c -g -O2 conftest.c >&5 -conftest.c:79:21: error: expected expression +conftest.c:14:9: warning: 'HAVE_MALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_MALLOC 1 + ^ +conftest.c:8:9: note: previous definition is here +#define HAVE_MALLOC 0 + ^ +conftest.c:15:9: warning: 'HAVE_REALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_REALLOC 1 + ^ +conftest.c:10:9: note: previous definition is here +#define HAVE_REALLOC 0 + ^ +conftest.c:81:21: error: expected expression if (sizeof ((size_t))) ^ -1 error generated. +2 warnings and 1 error generated. emcc: error: '/Users/shamrin/src/emsdk/upstream/bin/clang -target wasm32-unknown-emscripten -DEMSCRIPTEN -D__EMSCRIPTEN_major__=3 -D__EMSCRIPTEN_minor__=1 -D__EMSCRIPTEN_tiny__=15 -fignore-exceptions -fvisibility=default -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -Werror=implicit-function-declaration -Xclang -iwithsysroot/include/SDL --sysroot=/Users/shamrin/src/emsdk/upstream/emscripten/cache/sysroot -Xclang -iwithsysroot/include/compat -c -g3 -O2 conftest.c -o conftest.o' failed (returned 1) configure:4813: $? = 1 configure: failed program was: @@ -754,8 +1185,10 @@ | #define PACKAGE_STRING "liquid-dsp 1.4.0" | #define PACKAGE_BUGREPORT "joseph@liquidsdr.org" | #define PACKAGE_URL "" -| #define HAVE_MALLOC 1 -| #define HAVE_REALLOC 1 +| #define HAVE_MALLOC 0 +| #define malloc rpl_malloc +| #define HAVE_REALLOC 0 +| #define realloc rpl_realloc | #define HAVE_LIBC 1 | #define HAVE_LIBM 1 | #define HAVE_MALLOC 1 @@ -833,184 +1266,1735 @@ configure:4813: result: yes configure:4823: checking for uint32_t configure:4823: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -c -g -O2 conftest.c >&5 +conftest.c:14:9: warning: 'HAVE_MALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_MALLOC 1 + ^ +conftest.c:8:9: note: previous definition is here +#define HAVE_MALLOC 0 + ^ +conftest.c:15:9: warning: 'HAVE_REALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_REALLOC 1 + ^ +conftest.c:10:9: note: previous definition is here +#define HAVE_REALLOC 0 + ^ +2 warnings generated. configure:4823: $? = 0 configure:4823: result: yes configure:4835: checking for uint8_t configure:4835: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -c -g -O2 conftest.c >&5 +conftest.c:14:9: warning: 'HAVE_MALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_MALLOC 1 + ^ +conftest.c:8:9: note: previous definition is here +#define HAVE_MALLOC 0 + ^ +conftest.c:15:9: warning: 'HAVE_REALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_REALLOC 1 + ^ +conftest.c:10:9: note: previous definition is here +#define HAVE_REALLOC 0 + ^ +2 warnings generated. configure:4835: $? = 0 configure:4835: result: yes configure:4853: checking size of short int -configure:4859: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -o conftest -g -O2 conftest.c -lm -lc >&5 -emcc: warning: running limited binaryen optimizations because DWARF info requested (or indirectly required) [-Wlimited-postlink-optimizations] -configure:4859: $? = 0 -configure:4859: ./conftest +configure:4859: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -c -g -O2 conftest.c >&5 +conftest.c:14:9: warning: 'HAVE_MALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_MALLOC 1 + ^ +conftest.c:8:9: note: previous definition is here +#define HAVE_MALLOC 0 + ^ +conftest.c:15:9: warning: 'HAVE_REALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_REALLOC 1 + ^ +conftest.c:10:9: note: previous definition is here +#define HAVE_REALLOC 0 + ^ +2 warnings generated. configure:4859: $? = 0 -configure:4874: result: 2 -configure:4886: checking size of int -configure:4892: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -o conftest -g -O2 conftest.c -lm -lc >&5 -emcc: warning: running limited binaryen optimizations because DWARF info requested (or indirectly required) [-Wlimited-postlink-optimizations] -configure:4892: $? = 0 -configure:4892: ./conftest -configure:4892: $? = 0 -configure:4907: result: 4 -configure:4919: checking size of long int -configure:4925: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -o conftest -g -O2 conftest.c -lm -lc >&5 -emcc: warning: running limited binaryen optimizations because DWARF info requested (or indirectly required) [-Wlimited-postlink-optimizations] -configure:4925: $? = 0 -configure:4925: ./conftest -configure:4925: $? = 0 -configure:4940: result: 4 -configure:4952: checking size of long long int -configure:4958: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -o conftest -g -O2 conftest.c -lm -lc >&5 -emcc: warning: running limited binaryen optimizations because DWARF info requested (or indirectly required) [-Wlimited-postlink-optimizations] -configure:4958: $? = 0 -configure:4958: ./conftest -configure:4958: $? = 0 -configure:4973: result: 8 -configure:4989: checking target system type -configure:5003: result: wasm32-unknown-none -configure:5903: checking for wasm32-ar -configure:5935: result: /Users/shamrin/src/emsdk/upstream/emscripten/emar -configure:6141: creating ./config.status - -## ---------------------- ## -## Running config.status. ## -## ---------------------- ## - -This file was extended by liquid-dsp config.status 1.4.0, which was -generated by GNU Autoconf 2.71. Invocation command line was - - CONFIG_FILES = - CONFIG_HEADERS = - CONFIG_LINKS = - CONFIG_COMMANDS = - $ ./config.status - -on Alexeys-MBP.lan - -config.status:856: creating makefile -config.status:856: creating config.h - -## ---------------- ## -## Cache variables. ## -## ---------------- ## - -ac_cv_build=x86_64-apple-darwin19.6.0 -ac_cv_c_compiler_gnu=yes -ac_cv_c_inline=inline -ac_cv_c_uint32_t=yes -ac_cv_c_uint8_t=yes -ac_cv_env_CC_set=set -ac_cv_env_CC_value=/Users/shamrin/src/emsdk/upstream/emscripten/emcc -ac_cv_env_CFLAGS_set= -ac_cv_env_CFLAGS_value= -ac_cv_env_CPPFLAGS_set= -ac_cv_env_CPPFLAGS_value= -ac_cv_env_LDFLAGS_set= -ac_cv_env_LDFLAGS_value= -ac_cv_env_LIBS_set= -ac_cv_env_LIBS_value= -ac_cv_env_build_alias_set= -ac_cv_env_build_alias_value= -ac_cv_env_host_alias_set=set -ac_cv_env_host_alias_value=wasm32 -ac_cv_env_target_alias_set= -ac_cv_env_target_alias_value= -ac_cv_func_cargf=yes -ac_cv_func_cexpf=yes -ac_cv_func_cimagf=yes -ac_cv_func_cosf=yes -ac_cv_func_crealf=yes -ac_cv_func_expf=yes -ac_cv_func_free=yes -ac_cv_func_malloc=yes -ac_cv_func_malloc_0_nonnull=yes -ac_cv_func_memmove=yes -ac_cv_func_memset=yes -ac_cv_func_realloc=yes -ac_cv_func_realloc_0_nonnull=yes -ac_cv_func_sinf=yes -ac_cv_func_sqrtf=yes -ac_cv_header_complex_h=yes -ac_cv_header_fec_h=no -ac_cv_header_fftw3_h=no -ac_cv_header_float_h=yes -ac_cv_header_getopt_h=yes -ac_cv_header_inttypes_h=yes -ac_cv_header_limits_h=yes -ac_cv_header_stdint_h=yes -ac_cv_header_stdio_h=yes -ac_cv_header_stdlib_h=yes -ac_cv_header_string_h=yes -ac_cv_header_strings_h=yes -ac_cv_header_sys_resource_h=yes -ac_cv_header_sys_stat_h=yes -ac_cv_header_sys_types_h=yes -ac_cv_header_unistd_h=yes -ac_cv_host=wasm32-unknown-none -ac_cv_lib_c_main=yes -ac_cv_lib_error_at_line=no -ac_cv_lib_fec_create_viterbi27=no -ac_cv_lib_fftw3f_fftwf_plan_dft_1d=no -ac_cv_lib_m_main=yes -ac_cv_objext=o -ac_cv_path_GREP=/usr/bin/grep -ac_cv_path_SED=/usr/bin/sed -ac_cv_path_install='/usr/bin/install -c' -ac_cv_prog_AR=/Users/shamrin/src/emsdk/upstream/emscripten/emar -ac_cv_prog_CC=/Users/shamrin/src/emsdk/upstream/emscripten/emcc -ac_cv_prog_RANLIB=/Users/shamrin/src/emsdk/upstream/emscripten/emranlib -ac_cv_prog_cc_c11= -ac_cv_prog_cc_g=yes -ac_cv_prog_cc_stdc= -ac_cv_sizeof_int=4 -ac_cv_sizeof_long_int=4 -ac_cv_sizeof_long_long_int=8 -ac_cv_sizeof_short_int=2 -ac_cv_target=wasm32-unknown-none -ac_cv_type_size_t=yes - -## ----------------- ## -## Output variables. ## -## ----------------- ## - -AR='/Users/shamrin/src/emsdk/upstream/emscripten/emar' -ARCH_OPTION='' -AR_LIB='libliquid.a' -CC='/Users/shamrin/src/emsdk/upstream/emscripten/emcc' -CFLAGS='-g -O2' -CLIB='' -COVERAGE_OPTION='' -CPPFLAGS='' -DEBUG_MSG_OPTION='' -DEFS='-DHAVE_CONFIG_H' -ECHO_C='\c' -ECHO_N='' -ECHO_T='' -EXEEXT='' -GREP='/usr/bin/grep' -HAVE_GCOVR='' -INSTALL_DATA='${INSTALL} -m 644' -INSTALL_PROGRAM='${INSTALL}' -INSTALL_SCRIPT='${INSTALL}' -LDFLAGS='' -LIBOBJS=' ${LIBOBJDIR}error$U.o' -LIBS='-lm -lc ' -LIBTOOL='' -LTLIBOBJS=' ${LIBOBJDIR}error$U.lo' -MLIBS_DOTPROD='src/dotprod/src/dotprod_cccf.o src/dotprod/src/dotprod_crcf.o src/dotprod/src/dotprod_rrrf.o src/dotprod/src/sumsq.o' -MLIBS_VECTOR='src/vector/src/vectorf_add.port.o src/vector/src/vectorf_norm.port.o src/vector/src/vectorf_mul.port.o src/vector/src/vectorf_trig.port.o src/vector/src/vectorcf_add.port.o src/vector/src/vectorcf_norm.port.o src/vector/src/vectorcf_mul.port.o src/vector/src/vectorcf_trig.port.o' -OBJEXT='o' -PACKAGE_BUGREPORT='joseph@liquidsdr.org' -PACKAGE_NAME='liquid-dsp' -PACKAGE_STRING='liquid-dsp 1.4.0' -PACKAGE_TARNAME='liquid-dsp' -PACKAGE_URL='' -PACKAGE_VERSION='1.4.0' -PATH_SEPARATOR=':' -RANLIB='/Users/shamrin/src/emsdk/upstream/emscripten/emranlib' -REBIND='ldconfig' -SED='/usr/bin/sed' +configure:4859: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -c -g -O2 conftest.c >&5 +conftest.c:14:9: warning: 'HAVE_MALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_MALLOC 1 + ^ +conftest.c:8:9: note: previous definition is here +#define HAVE_MALLOC 0 + ^ +conftest.c:15:9: warning: 'HAVE_REALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_REALLOC 1 + ^ +conftest.c:10:9: note: previous definition is here +#define HAVE_REALLOC 0 + ^ +conftest.c:81:24: error: 'test_array' declared as an array with a negative size +static int test_array [1 - 2 * !(((long int) (sizeof (short int))) <= 0)]; + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +2 warnings and 1 error generated. +emcc: error: '/Users/shamrin/src/emsdk/upstream/bin/clang -target wasm32-unknown-emscripten -DEMSCRIPTEN -D__EMSCRIPTEN_major__=3 -D__EMSCRIPTEN_minor__=1 -D__EMSCRIPTEN_tiny__=15 -fignore-exceptions -fvisibility=default -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -Werror=implicit-function-declaration -Xclang -iwithsysroot/include/SDL --sysroot=/Users/shamrin/src/emsdk/upstream/emscripten/cache/sysroot -Xclang -iwithsysroot/include/compat -c -g3 -O2 conftest.c -o conftest.o' failed (returned 1) +configure:4859: $? = 1 +configure: failed program was: +| /* confdefs.h */ +| #define PACKAGE_NAME "liquid-dsp" +| #define PACKAGE_TARNAME "liquid-dsp" +| #define PACKAGE_VERSION "1.4.0" +| #define PACKAGE_STRING "liquid-dsp 1.4.0" +| #define PACKAGE_BUGREPORT "joseph@liquidsdr.org" +| #define PACKAGE_URL "" +| #define HAVE_MALLOC 0 +| #define malloc rpl_malloc +| #define HAVE_REALLOC 0 +| #define realloc rpl_realloc +| #define HAVE_LIBC 1 +| #define HAVE_LIBM 1 +| #define HAVE_MALLOC 1 +| #define HAVE_REALLOC 1 +| #define HAVE_FREE 1 +| #define HAVE_MEMSET 1 +| #define HAVE_MEMMOVE 1 +| #define HAVE_SINF 1 +| #define HAVE_COSF 1 +| #define HAVE_EXPF 1 +| #define HAVE_CARGF 1 +| #define HAVE_CEXPF 1 +| #define HAVE_CREALF 1 +| #define HAVE_CIMAGF 1 +| #define HAVE_SQRTF 1 +| #define HAVE_STDIO_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_INTTYPES_H 1 +| #define HAVE_STDINT_H 1 +| #define HAVE_STRINGS_H 1 +| #define HAVE_SYS_STAT_H 1 +| #define HAVE_SYS_TYPES_H 1 +| #define HAVE_UNISTD_H 1 +| #define STDC_HEADERS 1 +| #define HAVE_STDIO_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_COMPLEX_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_GETOPT_H 1 +| #define HAVE_SYS_RESOURCE_H 1 +| #define HAVE_FLOAT_H 1 +| #define HAVE_INTTYPES_H 1 +| #define HAVE_LIMITS_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_UNISTD_H 1 +| /* end confdefs.h. */ +| #include +| #ifdef HAVE_STDIO_H +| # include +| #endif +| #ifdef HAVE_STDLIB_H +| # include +| #endif +| #ifdef HAVE_STRING_H +| # include +| #endif +| #ifdef HAVE_INTTYPES_H +| # include +| #endif +| #ifdef HAVE_STDINT_H +| # include +| #endif +| #ifdef HAVE_STRINGS_H +| # include +| #endif +| #ifdef HAVE_SYS_TYPES_H +| # include +| #endif +| #ifdef HAVE_SYS_STAT_H +| # include +| #endif +| #ifdef HAVE_UNISTD_H +| # include +| #endif +| int +| main (void) +| { +| static int test_array [1 - 2 * !(((long int) (sizeof (short int))) <= 0)]; +| test_array [0] = 0; +| return test_array [0]; +| +| ; +| return 0; +| } +configure:4859: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -c -g -O2 conftest.c >&5 +conftest.c:14:9: warning: 'HAVE_MALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_MALLOC 1 + ^ +conftest.c:8:9: note: previous definition is here +#define HAVE_MALLOC 0 + ^ +conftest.c:15:9: warning: 'HAVE_REALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_REALLOC 1 + ^ +conftest.c:10:9: note: previous definition is here +#define HAVE_REALLOC 0 + ^ +conftest.c:81:24: error: 'test_array' declared as an array with a negative size +static int test_array [1 - 2 * !(((long int) (sizeof (short int))) <= 1)]; + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +2 warnings and 1 error generated. +emcc: error: '/Users/shamrin/src/emsdk/upstream/bin/clang -target wasm32-unknown-emscripten -DEMSCRIPTEN -D__EMSCRIPTEN_major__=3 -D__EMSCRIPTEN_minor__=1 -D__EMSCRIPTEN_tiny__=15 -fignore-exceptions -fvisibility=default -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -Werror=implicit-function-declaration -Xclang -iwithsysroot/include/SDL --sysroot=/Users/shamrin/src/emsdk/upstream/emscripten/cache/sysroot -Xclang -iwithsysroot/include/compat -c -g3 -O2 conftest.c -o conftest.o' failed (returned 1) +configure:4859: $? = 1 +configure: failed program was: +| /* confdefs.h */ +| #define PACKAGE_NAME "liquid-dsp" +| #define PACKAGE_TARNAME "liquid-dsp" +| #define PACKAGE_VERSION "1.4.0" +| #define PACKAGE_STRING "liquid-dsp 1.4.0" +| #define PACKAGE_BUGREPORT "joseph@liquidsdr.org" +| #define PACKAGE_URL "" +| #define HAVE_MALLOC 0 +| #define malloc rpl_malloc +| #define HAVE_REALLOC 0 +| #define realloc rpl_realloc +| #define HAVE_LIBC 1 +| #define HAVE_LIBM 1 +| #define HAVE_MALLOC 1 +| #define HAVE_REALLOC 1 +| #define HAVE_FREE 1 +| #define HAVE_MEMSET 1 +| #define HAVE_MEMMOVE 1 +| #define HAVE_SINF 1 +| #define HAVE_COSF 1 +| #define HAVE_EXPF 1 +| #define HAVE_CARGF 1 +| #define HAVE_CEXPF 1 +| #define HAVE_CREALF 1 +| #define HAVE_CIMAGF 1 +| #define HAVE_SQRTF 1 +| #define HAVE_STDIO_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_INTTYPES_H 1 +| #define HAVE_STDINT_H 1 +| #define HAVE_STRINGS_H 1 +| #define HAVE_SYS_STAT_H 1 +| #define HAVE_SYS_TYPES_H 1 +| #define HAVE_UNISTD_H 1 +| #define STDC_HEADERS 1 +| #define HAVE_STDIO_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_COMPLEX_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_GETOPT_H 1 +| #define HAVE_SYS_RESOURCE_H 1 +| #define HAVE_FLOAT_H 1 +| #define HAVE_INTTYPES_H 1 +| #define HAVE_LIMITS_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_UNISTD_H 1 +| /* end confdefs.h. */ +| #include +| #ifdef HAVE_STDIO_H +| # include +| #endif +| #ifdef HAVE_STDLIB_H +| # include +| #endif +| #ifdef HAVE_STRING_H +| # include +| #endif +| #ifdef HAVE_INTTYPES_H +| # include +| #endif +| #ifdef HAVE_STDINT_H +| # include +| #endif +| #ifdef HAVE_STRINGS_H +| # include +| #endif +| #ifdef HAVE_SYS_TYPES_H +| # include +| #endif +| #ifdef HAVE_SYS_STAT_H +| # include +| #endif +| #ifdef HAVE_UNISTD_H +| # include +| #endif +| int +| main (void) +| { +| static int test_array [1 - 2 * !(((long int) (sizeof (short int))) <= 1)]; +| test_array [0] = 0; +| return test_array [0]; +| +| ; +| return 0; +| } +configure:4859: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -c -g -O2 conftest.c >&5 +conftest.c:14:9: warning: 'HAVE_MALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_MALLOC 1 + ^ +conftest.c:8:9: note: previous definition is here +#define HAVE_MALLOC 0 + ^ +conftest.c:15:9: warning: 'HAVE_REALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_REALLOC 1 + ^ +conftest.c:10:9: note: previous definition is here +#define HAVE_REALLOC 0 + ^ +2 warnings generated. +configure:4859: $? = 0 +configure:4859: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -c -g -O2 conftest.c >&5 +conftest.c:14:9: warning: 'HAVE_MALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_MALLOC 1 + ^ +conftest.c:8:9: note: previous definition is here +#define HAVE_MALLOC 0 + ^ +conftest.c:15:9: warning: 'HAVE_REALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_REALLOC 1 + ^ +conftest.c:10:9: note: previous definition is here +#define HAVE_REALLOC 0 + ^ +2 warnings generated. +configure:4859: $? = 0 +configure:4874: result: 2 +configure:4886: checking size of int +configure:4892: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -c -g -O2 conftest.c >&5 +conftest.c:14:9: warning: 'HAVE_MALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_MALLOC 1 + ^ +conftest.c:8:9: note: previous definition is here +#define HAVE_MALLOC 0 + ^ +conftest.c:15:9: warning: 'HAVE_REALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_REALLOC 1 + ^ +conftest.c:10:9: note: previous definition is here +#define HAVE_REALLOC 0 + ^ +2 warnings generated. +configure:4892: $? = 0 +configure:4892: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -c -g -O2 conftest.c >&5 +conftest.c:14:9: warning: 'HAVE_MALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_MALLOC 1 + ^ +conftest.c:8:9: note: previous definition is here +#define HAVE_MALLOC 0 + ^ +conftest.c:15:9: warning: 'HAVE_REALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_REALLOC 1 + ^ +conftest.c:10:9: note: previous definition is here +#define HAVE_REALLOC 0 + ^ +conftest.c:82:24: error: 'test_array' declared as an array with a negative size +static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= 0)]; + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +2 warnings and 1 error generated. +emcc: error: '/Users/shamrin/src/emsdk/upstream/bin/clang -target wasm32-unknown-emscripten -DEMSCRIPTEN -D__EMSCRIPTEN_major__=3 -D__EMSCRIPTEN_minor__=1 -D__EMSCRIPTEN_tiny__=15 -fignore-exceptions -fvisibility=default -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -Werror=implicit-function-declaration -Xclang -iwithsysroot/include/SDL --sysroot=/Users/shamrin/src/emsdk/upstream/emscripten/cache/sysroot -Xclang -iwithsysroot/include/compat -c -g3 -O2 conftest.c -o conftest.o' failed (returned 1) +configure:4892: $? = 1 +configure: failed program was: +| /* confdefs.h */ +| #define PACKAGE_NAME "liquid-dsp" +| #define PACKAGE_TARNAME "liquid-dsp" +| #define PACKAGE_VERSION "1.4.0" +| #define PACKAGE_STRING "liquid-dsp 1.4.0" +| #define PACKAGE_BUGREPORT "joseph@liquidsdr.org" +| #define PACKAGE_URL "" +| #define HAVE_MALLOC 0 +| #define malloc rpl_malloc +| #define HAVE_REALLOC 0 +| #define realloc rpl_realloc +| #define HAVE_LIBC 1 +| #define HAVE_LIBM 1 +| #define HAVE_MALLOC 1 +| #define HAVE_REALLOC 1 +| #define HAVE_FREE 1 +| #define HAVE_MEMSET 1 +| #define HAVE_MEMMOVE 1 +| #define HAVE_SINF 1 +| #define HAVE_COSF 1 +| #define HAVE_EXPF 1 +| #define HAVE_CARGF 1 +| #define HAVE_CEXPF 1 +| #define HAVE_CREALF 1 +| #define HAVE_CIMAGF 1 +| #define HAVE_SQRTF 1 +| #define HAVE_STDIO_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_INTTYPES_H 1 +| #define HAVE_STDINT_H 1 +| #define HAVE_STRINGS_H 1 +| #define HAVE_SYS_STAT_H 1 +| #define HAVE_SYS_TYPES_H 1 +| #define HAVE_UNISTD_H 1 +| #define STDC_HEADERS 1 +| #define HAVE_STDIO_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_COMPLEX_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_GETOPT_H 1 +| #define HAVE_SYS_RESOURCE_H 1 +| #define HAVE_FLOAT_H 1 +| #define HAVE_INTTYPES_H 1 +| #define HAVE_LIMITS_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_UNISTD_H 1 +| #define SIZEOF_SHORT_INT 2 +| /* end confdefs.h. */ +| #include +| #ifdef HAVE_STDIO_H +| # include +| #endif +| #ifdef HAVE_STDLIB_H +| # include +| #endif +| #ifdef HAVE_STRING_H +| # include +| #endif +| #ifdef HAVE_INTTYPES_H +| # include +| #endif +| #ifdef HAVE_STDINT_H +| # include +| #endif +| #ifdef HAVE_STRINGS_H +| # include +| #endif +| #ifdef HAVE_SYS_TYPES_H +| # include +| #endif +| #ifdef HAVE_SYS_STAT_H +| # include +| #endif +| #ifdef HAVE_UNISTD_H +| # include +| #endif +| int +| main (void) +| { +| static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= 0)]; +| test_array [0] = 0; +| return test_array [0]; +| +| ; +| return 0; +| } +configure:4892: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -c -g -O2 conftest.c >&5 +conftest.c:14:9: warning: 'HAVE_MALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_MALLOC 1 + ^ +conftest.c:8:9: note: previous definition is here +#define HAVE_MALLOC 0 + ^ +conftest.c:15:9: warning: 'HAVE_REALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_REALLOC 1 + ^ +conftest.c:10:9: note: previous definition is here +#define HAVE_REALLOC 0 + ^ +conftest.c:82:24: error: 'test_array' declared as an array with a negative size +static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= 1)]; + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +2 warnings and 1 error generated. +emcc: error: '/Users/shamrin/src/emsdk/upstream/bin/clang -target wasm32-unknown-emscripten -DEMSCRIPTEN -D__EMSCRIPTEN_major__=3 -D__EMSCRIPTEN_minor__=1 -D__EMSCRIPTEN_tiny__=15 -fignore-exceptions -fvisibility=default -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -Werror=implicit-function-declaration -Xclang -iwithsysroot/include/SDL --sysroot=/Users/shamrin/src/emsdk/upstream/emscripten/cache/sysroot -Xclang -iwithsysroot/include/compat -c -g3 -O2 conftest.c -o conftest.o' failed (returned 1) +configure:4892: $? = 1 +configure: failed program was: +| /* confdefs.h */ +| #define PACKAGE_NAME "liquid-dsp" +| #define PACKAGE_TARNAME "liquid-dsp" +| #define PACKAGE_VERSION "1.4.0" +| #define PACKAGE_STRING "liquid-dsp 1.4.0" +| #define PACKAGE_BUGREPORT "joseph@liquidsdr.org" +| #define PACKAGE_URL "" +| #define HAVE_MALLOC 0 +| #define malloc rpl_malloc +| #define HAVE_REALLOC 0 +| #define realloc rpl_realloc +| #define HAVE_LIBC 1 +| #define HAVE_LIBM 1 +| #define HAVE_MALLOC 1 +| #define HAVE_REALLOC 1 +| #define HAVE_FREE 1 +| #define HAVE_MEMSET 1 +| #define HAVE_MEMMOVE 1 +| #define HAVE_SINF 1 +| #define HAVE_COSF 1 +| #define HAVE_EXPF 1 +| #define HAVE_CARGF 1 +| #define HAVE_CEXPF 1 +| #define HAVE_CREALF 1 +| #define HAVE_CIMAGF 1 +| #define HAVE_SQRTF 1 +| #define HAVE_STDIO_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_INTTYPES_H 1 +| #define HAVE_STDINT_H 1 +| #define HAVE_STRINGS_H 1 +| #define HAVE_SYS_STAT_H 1 +| #define HAVE_SYS_TYPES_H 1 +| #define HAVE_UNISTD_H 1 +| #define STDC_HEADERS 1 +| #define HAVE_STDIO_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_COMPLEX_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_GETOPT_H 1 +| #define HAVE_SYS_RESOURCE_H 1 +| #define HAVE_FLOAT_H 1 +| #define HAVE_INTTYPES_H 1 +| #define HAVE_LIMITS_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_UNISTD_H 1 +| #define SIZEOF_SHORT_INT 2 +| /* end confdefs.h. */ +| #include +| #ifdef HAVE_STDIO_H +| # include +| #endif +| #ifdef HAVE_STDLIB_H +| # include +| #endif +| #ifdef HAVE_STRING_H +| # include +| #endif +| #ifdef HAVE_INTTYPES_H +| # include +| #endif +| #ifdef HAVE_STDINT_H +| # include +| #endif +| #ifdef HAVE_STRINGS_H +| # include +| #endif +| #ifdef HAVE_SYS_TYPES_H +| # include +| #endif +| #ifdef HAVE_SYS_STAT_H +| # include +| #endif +| #ifdef HAVE_UNISTD_H +| # include +| #endif +| int +| main (void) +| { +| static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= 1)]; +| test_array [0] = 0; +| return test_array [0]; +| +| ; +| return 0; +| } +configure:4892: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -c -g -O2 conftest.c >&5 +conftest.c:14:9: warning: 'HAVE_MALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_MALLOC 1 + ^ +conftest.c:8:9: note: previous definition is here +#define HAVE_MALLOC 0 + ^ +conftest.c:15:9: warning: 'HAVE_REALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_REALLOC 1 + ^ +conftest.c:10:9: note: previous definition is here +#define HAVE_REALLOC 0 + ^ +conftest.c:82:24: error: 'test_array' declared as an array with a negative size +static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= 3)]; + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +2 warnings and 1 error generated. +emcc: error: '/Users/shamrin/src/emsdk/upstream/bin/clang -target wasm32-unknown-emscripten -DEMSCRIPTEN -D__EMSCRIPTEN_major__=3 -D__EMSCRIPTEN_minor__=1 -D__EMSCRIPTEN_tiny__=15 -fignore-exceptions -fvisibility=default -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -Werror=implicit-function-declaration -Xclang -iwithsysroot/include/SDL --sysroot=/Users/shamrin/src/emsdk/upstream/emscripten/cache/sysroot -Xclang -iwithsysroot/include/compat -c -g3 -O2 conftest.c -o conftest.o' failed (returned 1) +configure:4892: $? = 1 +configure: failed program was: +| /* confdefs.h */ +| #define PACKAGE_NAME "liquid-dsp" +| #define PACKAGE_TARNAME "liquid-dsp" +| #define PACKAGE_VERSION "1.4.0" +| #define PACKAGE_STRING "liquid-dsp 1.4.0" +| #define PACKAGE_BUGREPORT "joseph@liquidsdr.org" +| #define PACKAGE_URL "" +| #define HAVE_MALLOC 0 +| #define malloc rpl_malloc +| #define HAVE_REALLOC 0 +| #define realloc rpl_realloc +| #define HAVE_LIBC 1 +| #define HAVE_LIBM 1 +| #define HAVE_MALLOC 1 +| #define HAVE_REALLOC 1 +| #define HAVE_FREE 1 +| #define HAVE_MEMSET 1 +| #define HAVE_MEMMOVE 1 +| #define HAVE_SINF 1 +| #define HAVE_COSF 1 +| #define HAVE_EXPF 1 +| #define HAVE_CARGF 1 +| #define HAVE_CEXPF 1 +| #define HAVE_CREALF 1 +| #define HAVE_CIMAGF 1 +| #define HAVE_SQRTF 1 +| #define HAVE_STDIO_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_INTTYPES_H 1 +| #define HAVE_STDINT_H 1 +| #define HAVE_STRINGS_H 1 +| #define HAVE_SYS_STAT_H 1 +| #define HAVE_SYS_TYPES_H 1 +| #define HAVE_UNISTD_H 1 +| #define STDC_HEADERS 1 +| #define HAVE_STDIO_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_COMPLEX_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_GETOPT_H 1 +| #define HAVE_SYS_RESOURCE_H 1 +| #define HAVE_FLOAT_H 1 +| #define HAVE_INTTYPES_H 1 +| #define HAVE_LIMITS_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_UNISTD_H 1 +| #define SIZEOF_SHORT_INT 2 +| /* end confdefs.h. */ +| #include +| #ifdef HAVE_STDIO_H +| # include +| #endif +| #ifdef HAVE_STDLIB_H +| # include +| #endif +| #ifdef HAVE_STRING_H +| # include +| #endif +| #ifdef HAVE_INTTYPES_H +| # include +| #endif +| #ifdef HAVE_STDINT_H +| # include +| #endif +| #ifdef HAVE_STRINGS_H +| # include +| #endif +| #ifdef HAVE_SYS_TYPES_H +| # include +| #endif +| #ifdef HAVE_SYS_STAT_H +| # include +| #endif +| #ifdef HAVE_UNISTD_H +| # include +| #endif +| int +| main (void) +| { +| static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= 3)]; +| test_array [0] = 0; +| return test_array [0]; +| +| ; +| return 0; +| } +configure:4892: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -c -g -O2 conftest.c >&5 +conftest.c:14:9: warning: 'HAVE_MALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_MALLOC 1 + ^ +conftest.c:8:9: note: previous definition is here +#define HAVE_MALLOC 0 + ^ +conftest.c:15:9: warning: 'HAVE_REALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_REALLOC 1 + ^ +conftest.c:10:9: note: previous definition is here +#define HAVE_REALLOC 0 + ^ +2 warnings generated. +configure:4892: $? = 0 +configure:4892: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -c -g -O2 conftest.c >&5 +conftest.c:14:9: warning: 'HAVE_MALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_MALLOC 1 + ^ +conftest.c:8:9: note: previous definition is here +#define HAVE_MALLOC 0 + ^ +conftest.c:15:9: warning: 'HAVE_REALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_REALLOC 1 + ^ +conftest.c:10:9: note: previous definition is here +#define HAVE_REALLOC 0 + ^ +2 warnings generated. +configure:4892: $? = 0 +configure:4892: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -c -g -O2 conftest.c >&5 +conftest.c:14:9: warning: 'HAVE_MALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_MALLOC 1 + ^ +conftest.c:8:9: note: previous definition is here +#define HAVE_MALLOC 0 + ^ +conftest.c:15:9: warning: 'HAVE_REALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_REALLOC 1 + ^ +conftest.c:10:9: note: previous definition is here +#define HAVE_REALLOC 0 + ^ +2 warnings generated. +configure:4892: $? = 0 +configure:4907: result: 4 +configure:4919: checking size of long int +configure:4925: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -c -g -O2 conftest.c >&5 +conftest.c:14:9: warning: 'HAVE_MALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_MALLOC 1 + ^ +conftest.c:8:9: note: previous definition is here +#define HAVE_MALLOC 0 + ^ +conftest.c:15:9: warning: 'HAVE_REALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_REALLOC 1 + ^ +conftest.c:10:9: note: previous definition is here +#define HAVE_REALLOC 0 + ^ +2 warnings generated. +configure:4925: $? = 0 +configure:4925: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -c -g -O2 conftest.c >&5 +conftest.c:14:9: warning: 'HAVE_MALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_MALLOC 1 + ^ +conftest.c:8:9: note: previous definition is here +#define HAVE_MALLOC 0 + ^ +conftest.c:15:9: warning: 'HAVE_REALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_REALLOC 1 + ^ +conftest.c:10:9: note: previous definition is here +#define HAVE_REALLOC 0 + ^ +conftest.c:83:24: error: 'test_array' declared as an array with a negative size +static int test_array [1 - 2 * !(((long int) (sizeof (long int))) <= 0)]; + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +2 warnings and 1 error generated. +emcc: error: '/Users/shamrin/src/emsdk/upstream/bin/clang -target wasm32-unknown-emscripten -DEMSCRIPTEN -D__EMSCRIPTEN_major__=3 -D__EMSCRIPTEN_minor__=1 -D__EMSCRIPTEN_tiny__=15 -fignore-exceptions -fvisibility=default -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -Werror=implicit-function-declaration -Xclang -iwithsysroot/include/SDL --sysroot=/Users/shamrin/src/emsdk/upstream/emscripten/cache/sysroot -Xclang -iwithsysroot/include/compat -c -g3 -O2 conftest.c -o conftest.o' failed (returned 1) +configure:4925: $? = 1 +configure: failed program was: +| /* confdefs.h */ +| #define PACKAGE_NAME "liquid-dsp" +| #define PACKAGE_TARNAME "liquid-dsp" +| #define PACKAGE_VERSION "1.4.0" +| #define PACKAGE_STRING "liquid-dsp 1.4.0" +| #define PACKAGE_BUGREPORT "joseph@liquidsdr.org" +| #define PACKAGE_URL "" +| #define HAVE_MALLOC 0 +| #define malloc rpl_malloc +| #define HAVE_REALLOC 0 +| #define realloc rpl_realloc +| #define HAVE_LIBC 1 +| #define HAVE_LIBM 1 +| #define HAVE_MALLOC 1 +| #define HAVE_REALLOC 1 +| #define HAVE_FREE 1 +| #define HAVE_MEMSET 1 +| #define HAVE_MEMMOVE 1 +| #define HAVE_SINF 1 +| #define HAVE_COSF 1 +| #define HAVE_EXPF 1 +| #define HAVE_CARGF 1 +| #define HAVE_CEXPF 1 +| #define HAVE_CREALF 1 +| #define HAVE_CIMAGF 1 +| #define HAVE_SQRTF 1 +| #define HAVE_STDIO_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_INTTYPES_H 1 +| #define HAVE_STDINT_H 1 +| #define HAVE_STRINGS_H 1 +| #define HAVE_SYS_STAT_H 1 +| #define HAVE_SYS_TYPES_H 1 +| #define HAVE_UNISTD_H 1 +| #define STDC_HEADERS 1 +| #define HAVE_STDIO_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_COMPLEX_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_GETOPT_H 1 +| #define HAVE_SYS_RESOURCE_H 1 +| #define HAVE_FLOAT_H 1 +| #define HAVE_INTTYPES_H 1 +| #define HAVE_LIMITS_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_UNISTD_H 1 +| #define SIZEOF_SHORT_INT 2 +| #define SIZEOF_INT 4 +| /* end confdefs.h. */ +| #include +| #ifdef HAVE_STDIO_H +| # include +| #endif +| #ifdef HAVE_STDLIB_H +| # include +| #endif +| #ifdef HAVE_STRING_H +| # include +| #endif +| #ifdef HAVE_INTTYPES_H +| # include +| #endif +| #ifdef HAVE_STDINT_H +| # include +| #endif +| #ifdef HAVE_STRINGS_H +| # include +| #endif +| #ifdef HAVE_SYS_TYPES_H +| # include +| #endif +| #ifdef HAVE_SYS_STAT_H +| # include +| #endif +| #ifdef HAVE_UNISTD_H +| # include +| #endif +| int +| main (void) +| { +| static int test_array [1 - 2 * !(((long int) (sizeof (long int))) <= 0)]; +| test_array [0] = 0; +| return test_array [0]; +| +| ; +| return 0; +| } +configure:4925: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -c -g -O2 conftest.c >&5 +conftest.c:14:9: warning: 'HAVE_MALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_MALLOC 1 + ^ +conftest.c:8:9: note: previous definition is here +#define HAVE_MALLOC 0 + ^ +conftest.c:15:9: warning: 'HAVE_REALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_REALLOC 1 + ^ +conftest.c:10:9: note: previous definition is here +#define HAVE_REALLOC 0 + ^ +conftest.c:83:24: error: 'test_array' declared as an array with a negative size +static int test_array [1 - 2 * !(((long int) (sizeof (long int))) <= 1)]; + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +2 warnings and 1 error generated. +emcc: error: '/Users/shamrin/src/emsdk/upstream/bin/clang -target wasm32-unknown-emscripten -DEMSCRIPTEN -D__EMSCRIPTEN_major__=3 -D__EMSCRIPTEN_minor__=1 -D__EMSCRIPTEN_tiny__=15 -fignore-exceptions -fvisibility=default -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -Werror=implicit-function-declaration -Xclang -iwithsysroot/include/SDL --sysroot=/Users/shamrin/src/emsdk/upstream/emscripten/cache/sysroot -Xclang -iwithsysroot/include/compat -c -g3 -O2 conftest.c -o conftest.o' failed (returned 1) +configure:4925: $? = 1 +configure: failed program was: +| /* confdefs.h */ +| #define PACKAGE_NAME "liquid-dsp" +| #define PACKAGE_TARNAME "liquid-dsp" +| #define PACKAGE_VERSION "1.4.0" +| #define PACKAGE_STRING "liquid-dsp 1.4.0" +| #define PACKAGE_BUGREPORT "joseph@liquidsdr.org" +| #define PACKAGE_URL "" +| #define HAVE_MALLOC 0 +| #define malloc rpl_malloc +| #define HAVE_REALLOC 0 +| #define realloc rpl_realloc +| #define HAVE_LIBC 1 +| #define HAVE_LIBM 1 +| #define HAVE_MALLOC 1 +| #define HAVE_REALLOC 1 +| #define HAVE_FREE 1 +| #define HAVE_MEMSET 1 +| #define HAVE_MEMMOVE 1 +| #define HAVE_SINF 1 +| #define HAVE_COSF 1 +| #define HAVE_EXPF 1 +| #define HAVE_CARGF 1 +| #define HAVE_CEXPF 1 +| #define HAVE_CREALF 1 +| #define HAVE_CIMAGF 1 +| #define HAVE_SQRTF 1 +| #define HAVE_STDIO_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_INTTYPES_H 1 +| #define HAVE_STDINT_H 1 +| #define HAVE_STRINGS_H 1 +| #define HAVE_SYS_STAT_H 1 +| #define HAVE_SYS_TYPES_H 1 +| #define HAVE_UNISTD_H 1 +| #define STDC_HEADERS 1 +| #define HAVE_STDIO_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_COMPLEX_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_GETOPT_H 1 +| #define HAVE_SYS_RESOURCE_H 1 +| #define HAVE_FLOAT_H 1 +| #define HAVE_INTTYPES_H 1 +| #define HAVE_LIMITS_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_UNISTD_H 1 +| #define SIZEOF_SHORT_INT 2 +| #define SIZEOF_INT 4 +| /* end confdefs.h. */ +| #include +| #ifdef HAVE_STDIO_H +| # include +| #endif +| #ifdef HAVE_STDLIB_H +| # include +| #endif +| #ifdef HAVE_STRING_H +| # include +| #endif +| #ifdef HAVE_INTTYPES_H +| # include +| #endif +| #ifdef HAVE_STDINT_H +| # include +| #endif +| #ifdef HAVE_STRINGS_H +| # include +| #endif +| #ifdef HAVE_SYS_TYPES_H +| # include +| #endif +| #ifdef HAVE_SYS_STAT_H +| # include +| #endif +| #ifdef HAVE_UNISTD_H +| # include +| #endif +| int +| main (void) +| { +| static int test_array [1 - 2 * !(((long int) (sizeof (long int))) <= 1)]; +| test_array [0] = 0; +| return test_array [0]; +| +| ; +| return 0; +| } +configure:4925: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -c -g -O2 conftest.c >&5 +conftest.c:14:9: warning: 'HAVE_MALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_MALLOC 1 + ^ +conftest.c:8:9: note: previous definition is here +#define HAVE_MALLOC 0 + ^ +conftest.c:15:9: warning: 'HAVE_REALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_REALLOC 1 + ^ +conftest.c:10:9: note: previous definition is here +#define HAVE_REALLOC 0 + ^ +conftest.c:83:24: error: 'test_array' declared as an array with a negative size +static int test_array [1 - 2 * !(((long int) (sizeof (long int))) <= 3)]; + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +2 warnings and 1 error generated. +emcc: error: '/Users/shamrin/src/emsdk/upstream/bin/clang -target wasm32-unknown-emscripten -DEMSCRIPTEN -D__EMSCRIPTEN_major__=3 -D__EMSCRIPTEN_minor__=1 -D__EMSCRIPTEN_tiny__=15 -fignore-exceptions -fvisibility=default -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -Werror=implicit-function-declaration -Xclang -iwithsysroot/include/SDL --sysroot=/Users/shamrin/src/emsdk/upstream/emscripten/cache/sysroot -Xclang -iwithsysroot/include/compat -c -g3 -O2 conftest.c -o conftest.o' failed (returned 1) +configure:4925: $? = 1 +configure: failed program was: +| /* confdefs.h */ +| #define PACKAGE_NAME "liquid-dsp" +| #define PACKAGE_TARNAME "liquid-dsp" +| #define PACKAGE_VERSION "1.4.0" +| #define PACKAGE_STRING "liquid-dsp 1.4.0" +| #define PACKAGE_BUGREPORT "joseph@liquidsdr.org" +| #define PACKAGE_URL "" +| #define HAVE_MALLOC 0 +| #define malloc rpl_malloc +| #define HAVE_REALLOC 0 +| #define realloc rpl_realloc +| #define HAVE_LIBC 1 +| #define HAVE_LIBM 1 +| #define HAVE_MALLOC 1 +| #define HAVE_REALLOC 1 +| #define HAVE_FREE 1 +| #define HAVE_MEMSET 1 +| #define HAVE_MEMMOVE 1 +| #define HAVE_SINF 1 +| #define HAVE_COSF 1 +| #define HAVE_EXPF 1 +| #define HAVE_CARGF 1 +| #define HAVE_CEXPF 1 +| #define HAVE_CREALF 1 +| #define HAVE_CIMAGF 1 +| #define HAVE_SQRTF 1 +| #define HAVE_STDIO_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_INTTYPES_H 1 +| #define HAVE_STDINT_H 1 +| #define HAVE_STRINGS_H 1 +| #define HAVE_SYS_STAT_H 1 +| #define HAVE_SYS_TYPES_H 1 +| #define HAVE_UNISTD_H 1 +| #define STDC_HEADERS 1 +| #define HAVE_STDIO_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_COMPLEX_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_GETOPT_H 1 +| #define HAVE_SYS_RESOURCE_H 1 +| #define HAVE_FLOAT_H 1 +| #define HAVE_INTTYPES_H 1 +| #define HAVE_LIMITS_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_UNISTD_H 1 +| #define SIZEOF_SHORT_INT 2 +| #define SIZEOF_INT 4 +| /* end confdefs.h. */ +| #include +| #ifdef HAVE_STDIO_H +| # include +| #endif +| #ifdef HAVE_STDLIB_H +| # include +| #endif +| #ifdef HAVE_STRING_H +| # include +| #endif +| #ifdef HAVE_INTTYPES_H +| # include +| #endif +| #ifdef HAVE_STDINT_H +| # include +| #endif +| #ifdef HAVE_STRINGS_H +| # include +| #endif +| #ifdef HAVE_SYS_TYPES_H +| # include +| #endif +| #ifdef HAVE_SYS_STAT_H +| # include +| #endif +| #ifdef HAVE_UNISTD_H +| # include +| #endif +| int +| main (void) +| { +| static int test_array [1 - 2 * !(((long int) (sizeof (long int))) <= 3)]; +| test_array [0] = 0; +| return test_array [0]; +| +| ; +| return 0; +| } +configure:4925: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -c -g -O2 conftest.c >&5 +conftest.c:14:9: warning: 'HAVE_MALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_MALLOC 1 + ^ +conftest.c:8:9: note: previous definition is here +#define HAVE_MALLOC 0 + ^ +conftest.c:15:9: warning: 'HAVE_REALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_REALLOC 1 + ^ +conftest.c:10:9: note: previous definition is here +#define HAVE_REALLOC 0 + ^ +2 warnings generated. +configure:4925: $? = 0 +configure:4925: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -c -g -O2 conftest.c >&5 +conftest.c:14:9: warning: 'HAVE_MALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_MALLOC 1 + ^ +conftest.c:8:9: note: previous definition is here +#define HAVE_MALLOC 0 + ^ +conftest.c:15:9: warning: 'HAVE_REALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_REALLOC 1 + ^ +conftest.c:10:9: note: previous definition is here +#define HAVE_REALLOC 0 + ^ +2 warnings generated. +configure:4925: $? = 0 +configure:4925: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -c -g -O2 conftest.c >&5 +conftest.c:14:9: warning: 'HAVE_MALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_MALLOC 1 + ^ +conftest.c:8:9: note: previous definition is here +#define HAVE_MALLOC 0 + ^ +conftest.c:15:9: warning: 'HAVE_REALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_REALLOC 1 + ^ +conftest.c:10:9: note: previous definition is here +#define HAVE_REALLOC 0 + ^ +2 warnings generated. +configure:4925: $? = 0 +configure:4940: result: 4 +configure:4952: checking size of long long int +configure:4958: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -c -g -O2 conftest.c >&5 +conftest.c:14:9: warning: 'HAVE_MALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_MALLOC 1 + ^ +conftest.c:8:9: note: previous definition is here +#define HAVE_MALLOC 0 + ^ +conftest.c:15:9: warning: 'HAVE_REALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_REALLOC 1 + ^ +conftest.c:10:9: note: previous definition is here +#define HAVE_REALLOC 0 + ^ +2 warnings generated. +configure:4958: $? = 0 +configure:4958: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -c -g -O2 conftest.c >&5 +conftest.c:14:9: warning: 'HAVE_MALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_MALLOC 1 + ^ +conftest.c:8:9: note: previous definition is here +#define HAVE_MALLOC 0 + ^ +conftest.c:15:9: warning: 'HAVE_REALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_REALLOC 1 + ^ +conftest.c:10:9: note: previous definition is here +#define HAVE_REALLOC 0 + ^ +conftest.c:84:24: error: 'test_array' declared as an array with a negative size +static int test_array [1 - 2 * !(((long int) (sizeof (long long int))) <= 0)]; + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +2 warnings and 1 error generated. +emcc: error: '/Users/shamrin/src/emsdk/upstream/bin/clang -target wasm32-unknown-emscripten -DEMSCRIPTEN -D__EMSCRIPTEN_major__=3 -D__EMSCRIPTEN_minor__=1 -D__EMSCRIPTEN_tiny__=15 -fignore-exceptions -fvisibility=default -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -Werror=implicit-function-declaration -Xclang -iwithsysroot/include/SDL --sysroot=/Users/shamrin/src/emsdk/upstream/emscripten/cache/sysroot -Xclang -iwithsysroot/include/compat -c -g3 -O2 conftest.c -o conftest.o' failed (returned 1) +configure:4958: $? = 1 +configure: failed program was: +| /* confdefs.h */ +| #define PACKAGE_NAME "liquid-dsp" +| #define PACKAGE_TARNAME "liquid-dsp" +| #define PACKAGE_VERSION "1.4.0" +| #define PACKAGE_STRING "liquid-dsp 1.4.0" +| #define PACKAGE_BUGREPORT "joseph@liquidsdr.org" +| #define PACKAGE_URL "" +| #define HAVE_MALLOC 0 +| #define malloc rpl_malloc +| #define HAVE_REALLOC 0 +| #define realloc rpl_realloc +| #define HAVE_LIBC 1 +| #define HAVE_LIBM 1 +| #define HAVE_MALLOC 1 +| #define HAVE_REALLOC 1 +| #define HAVE_FREE 1 +| #define HAVE_MEMSET 1 +| #define HAVE_MEMMOVE 1 +| #define HAVE_SINF 1 +| #define HAVE_COSF 1 +| #define HAVE_EXPF 1 +| #define HAVE_CARGF 1 +| #define HAVE_CEXPF 1 +| #define HAVE_CREALF 1 +| #define HAVE_CIMAGF 1 +| #define HAVE_SQRTF 1 +| #define HAVE_STDIO_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_INTTYPES_H 1 +| #define HAVE_STDINT_H 1 +| #define HAVE_STRINGS_H 1 +| #define HAVE_SYS_STAT_H 1 +| #define HAVE_SYS_TYPES_H 1 +| #define HAVE_UNISTD_H 1 +| #define STDC_HEADERS 1 +| #define HAVE_STDIO_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_COMPLEX_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_GETOPT_H 1 +| #define HAVE_SYS_RESOURCE_H 1 +| #define HAVE_FLOAT_H 1 +| #define HAVE_INTTYPES_H 1 +| #define HAVE_LIMITS_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_UNISTD_H 1 +| #define SIZEOF_SHORT_INT 2 +| #define SIZEOF_INT 4 +| #define SIZEOF_LONG_INT 4 +| /* end confdefs.h. */ +| #include +| #ifdef HAVE_STDIO_H +| # include +| #endif +| #ifdef HAVE_STDLIB_H +| # include +| #endif +| #ifdef HAVE_STRING_H +| # include +| #endif +| #ifdef HAVE_INTTYPES_H +| # include +| #endif +| #ifdef HAVE_STDINT_H +| # include +| #endif +| #ifdef HAVE_STRINGS_H +| # include +| #endif +| #ifdef HAVE_SYS_TYPES_H +| # include +| #endif +| #ifdef HAVE_SYS_STAT_H +| # include +| #endif +| #ifdef HAVE_UNISTD_H +| # include +| #endif +| int +| main (void) +| { +| static int test_array [1 - 2 * !(((long int) (sizeof (long long int))) <= 0)]; +| test_array [0] = 0; +| return test_array [0]; +| +| ; +| return 0; +| } +configure:4958: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -c -g -O2 conftest.c >&5 +conftest.c:14:9: warning: 'HAVE_MALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_MALLOC 1 + ^ +conftest.c:8:9: note: previous definition is here +#define HAVE_MALLOC 0 + ^ +conftest.c:15:9: warning: 'HAVE_REALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_REALLOC 1 + ^ +conftest.c:10:9: note: previous definition is here +#define HAVE_REALLOC 0 + ^ +conftest.c:84:24: error: 'test_array' declared as an array with a negative size +static int test_array [1 - 2 * !(((long int) (sizeof (long long int))) <= 1)]; + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +2 warnings and 1 error generated. +emcc: error: '/Users/shamrin/src/emsdk/upstream/bin/clang -target wasm32-unknown-emscripten -DEMSCRIPTEN -D__EMSCRIPTEN_major__=3 -D__EMSCRIPTEN_minor__=1 -D__EMSCRIPTEN_tiny__=15 -fignore-exceptions -fvisibility=default -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -Werror=implicit-function-declaration -Xclang -iwithsysroot/include/SDL --sysroot=/Users/shamrin/src/emsdk/upstream/emscripten/cache/sysroot -Xclang -iwithsysroot/include/compat -c -g3 -O2 conftest.c -o conftest.o' failed (returned 1) +configure:4958: $? = 1 +configure: failed program was: +| /* confdefs.h */ +| #define PACKAGE_NAME "liquid-dsp" +| #define PACKAGE_TARNAME "liquid-dsp" +| #define PACKAGE_VERSION "1.4.0" +| #define PACKAGE_STRING "liquid-dsp 1.4.0" +| #define PACKAGE_BUGREPORT "joseph@liquidsdr.org" +| #define PACKAGE_URL "" +| #define HAVE_MALLOC 0 +| #define malloc rpl_malloc +| #define HAVE_REALLOC 0 +| #define realloc rpl_realloc +| #define HAVE_LIBC 1 +| #define HAVE_LIBM 1 +| #define HAVE_MALLOC 1 +| #define HAVE_REALLOC 1 +| #define HAVE_FREE 1 +| #define HAVE_MEMSET 1 +| #define HAVE_MEMMOVE 1 +| #define HAVE_SINF 1 +| #define HAVE_COSF 1 +| #define HAVE_EXPF 1 +| #define HAVE_CARGF 1 +| #define HAVE_CEXPF 1 +| #define HAVE_CREALF 1 +| #define HAVE_CIMAGF 1 +| #define HAVE_SQRTF 1 +| #define HAVE_STDIO_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_INTTYPES_H 1 +| #define HAVE_STDINT_H 1 +| #define HAVE_STRINGS_H 1 +| #define HAVE_SYS_STAT_H 1 +| #define HAVE_SYS_TYPES_H 1 +| #define HAVE_UNISTD_H 1 +| #define STDC_HEADERS 1 +| #define HAVE_STDIO_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_COMPLEX_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_GETOPT_H 1 +| #define HAVE_SYS_RESOURCE_H 1 +| #define HAVE_FLOAT_H 1 +| #define HAVE_INTTYPES_H 1 +| #define HAVE_LIMITS_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_UNISTD_H 1 +| #define SIZEOF_SHORT_INT 2 +| #define SIZEOF_INT 4 +| #define SIZEOF_LONG_INT 4 +| /* end confdefs.h. */ +| #include +| #ifdef HAVE_STDIO_H +| # include +| #endif +| #ifdef HAVE_STDLIB_H +| # include +| #endif +| #ifdef HAVE_STRING_H +| # include +| #endif +| #ifdef HAVE_INTTYPES_H +| # include +| #endif +| #ifdef HAVE_STDINT_H +| # include +| #endif +| #ifdef HAVE_STRINGS_H +| # include +| #endif +| #ifdef HAVE_SYS_TYPES_H +| # include +| #endif +| #ifdef HAVE_SYS_STAT_H +| # include +| #endif +| #ifdef HAVE_UNISTD_H +| # include +| #endif +| int +| main (void) +| { +| static int test_array [1 - 2 * !(((long int) (sizeof (long long int))) <= 1)]; +| test_array [0] = 0; +| return test_array [0]; +| +| ; +| return 0; +| } +configure:4958: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -c -g -O2 conftest.c >&5 +conftest.c:14:9: warning: 'HAVE_MALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_MALLOC 1 + ^ +conftest.c:8:9: note: previous definition is here +#define HAVE_MALLOC 0 + ^ +conftest.c:15:9: warning: 'HAVE_REALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_REALLOC 1 + ^ +conftest.c:10:9: note: previous definition is here +#define HAVE_REALLOC 0 + ^ +conftest.c:84:24: error: 'test_array' declared as an array with a negative size +static int test_array [1 - 2 * !(((long int) (sizeof (long long int))) <= 3)]; + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +2 warnings and 1 error generated. +emcc: error: '/Users/shamrin/src/emsdk/upstream/bin/clang -target wasm32-unknown-emscripten -DEMSCRIPTEN -D__EMSCRIPTEN_major__=3 -D__EMSCRIPTEN_minor__=1 -D__EMSCRIPTEN_tiny__=15 -fignore-exceptions -fvisibility=default -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -Werror=implicit-function-declaration -Xclang -iwithsysroot/include/SDL --sysroot=/Users/shamrin/src/emsdk/upstream/emscripten/cache/sysroot -Xclang -iwithsysroot/include/compat -c -g3 -O2 conftest.c -o conftest.o' failed (returned 1) +configure:4958: $? = 1 +configure: failed program was: +| /* confdefs.h */ +| #define PACKAGE_NAME "liquid-dsp" +| #define PACKAGE_TARNAME "liquid-dsp" +| #define PACKAGE_VERSION "1.4.0" +| #define PACKAGE_STRING "liquid-dsp 1.4.0" +| #define PACKAGE_BUGREPORT "joseph@liquidsdr.org" +| #define PACKAGE_URL "" +| #define HAVE_MALLOC 0 +| #define malloc rpl_malloc +| #define HAVE_REALLOC 0 +| #define realloc rpl_realloc +| #define HAVE_LIBC 1 +| #define HAVE_LIBM 1 +| #define HAVE_MALLOC 1 +| #define HAVE_REALLOC 1 +| #define HAVE_FREE 1 +| #define HAVE_MEMSET 1 +| #define HAVE_MEMMOVE 1 +| #define HAVE_SINF 1 +| #define HAVE_COSF 1 +| #define HAVE_EXPF 1 +| #define HAVE_CARGF 1 +| #define HAVE_CEXPF 1 +| #define HAVE_CREALF 1 +| #define HAVE_CIMAGF 1 +| #define HAVE_SQRTF 1 +| #define HAVE_STDIO_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_INTTYPES_H 1 +| #define HAVE_STDINT_H 1 +| #define HAVE_STRINGS_H 1 +| #define HAVE_SYS_STAT_H 1 +| #define HAVE_SYS_TYPES_H 1 +| #define HAVE_UNISTD_H 1 +| #define STDC_HEADERS 1 +| #define HAVE_STDIO_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_COMPLEX_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_GETOPT_H 1 +| #define HAVE_SYS_RESOURCE_H 1 +| #define HAVE_FLOAT_H 1 +| #define HAVE_INTTYPES_H 1 +| #define HAVE_LIMITS_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_UNISTD_H 1 +| #define SIZEOF_SHORT_INT 2 +| #define SIZEOF_INT 4 +| #define SIZEOF_LONG_INT 4 +| /* end confdefs.h. */ +| #include +| #ifdef HAVE_STDIO_H +| # include +| #endif +| #ifdef HAVE_STDLIB_H +| # include +| #endif +| #ifdef HAVE_STRING_H +| # include +| #endif +| #ifdef HAVE_INTTYPES_H +| # include +| #endif +| #ifdef HAVE_STDINT_H +| # include +| #endif +| #ifdef HAVE_STRINGS_H +| # include +| #endif +| #ifdef HAVE_SYS_TYPES_H +| # include +| #endif +| #ifdef HAVE_SYS_STAT_H +| # include +| #endif +| #ifdef HAVE_UNISTD_H +| # include +| #endif +| int +| main (void) +| { +| static int test_array [1 - 2 * !(((long int) (sizeof (long long int))) <= 3)]; +| test_array [0] = 0; +| return test_array [0]; +| +| ; +| return 0; +| } +configure:4958: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -c -g -O2 conftest.c >&5 +conftest.c:14:9: warning: 'HAVE_MALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_MALLOC 1 + ^ +conftest.c:8:9: note: previous definition is here +#define HAVE_MALLOC 0 + ^ +conftest.c:15:9: warning: 'HAVE_REALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_REALLOC 1 + ^ +conftest.c:10:9: note: previous definition is here +#define HAVE_REALLOC 0 + ^ +conftest.c:84:24: error: 'test_array' declared as an array with a negative size +static int test_array [1 - 2 * !(((long int) (sizeof (long long int))) <= 7)]; + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +2 warnings and 1 error generated. +emcc: error: '/Users/shamrin/src/emsdk/upstream/bin/clang -target wasm32-unknown-emscripten -DEMSCRIPTEN -D__EMSCRIPTEN_major__=3 -D__EMSCRIPTEN_minor__=1 -D__EMSCRIPTEN_tiny__=15 -fignore-exceptions -fvisibility=default -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -Werror=implicit-function-declaration -Xclang -iwithsysroot/include/SDL --sysroot=/Users/shamrin/src/emsdk/upstream/emscripten/cache/sysroot -Xclang -iwithsysroot/include/compat -c -g3 -O2 conftest.c -o conftest.o' failed (returned 1) +configure:4958: $? = 1 +configure: failed program was: +| /* confdefs.h */ +| #define PACKAGE_NAME "liquid-dsp" +| #define PACKAGE_TARNAME "liquid-dsp" +| #define PACKAGE_VERSION "1.4.0" +| #define PACKAGE_STRING "liquid-dsp 1.4.0" +| #define PACKAGE_BUGREPORT "joseph@liquidsdr.org" +| #define PACKAGE_URL "" +| #define HAVE_MALLOC 0 +| #define malloc rpl_malloc +| #define HAVE_REALLOC 0 +| #define realloc rpl_realloc +| #define HAVE_LIBC 1 +| #define HAVE_LIBM 1 +| #define HAVE_MALLOC 1 +| #define HAVE_REALLOC 1 +| #define HAVE_FREE 1 +| #define HAVE_MEMSET 1 +| #define HAVE_MEMMOVE 1 +| #define HAVE_SINF 1 +| #define HAVE_COSF 1 +| #define HAVE_EXPF 1 +| #define HAVE_CARGF 1 +| #define HAVE_CEXPF 1 +| #define HAVE_CREALF 1 +| #define HAVE_CIMAGF 1 +| #define HAVE_SQRTF 1 +| #define HAVE_STDIO_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_INTTYPES_H 1 +| #define HAVE_STDINT_H 1 +| #define HAVE_STRINGS_H 1 +| #define HAVE_SYS_STAT_H 1 +| #define HAVE_SYS_TYPES_H 1 +| #define HAVE_UNISTD_H 1 +| #define STDC_HEADERS 1 +| #define HAVE_STDIO_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_COMPLEX_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_GETOPT_H 1 +| #define HAVE_SYS_RESOURCE_H 1 +| #define HAVE_FLOAT_H 1 +| #define HAVE_INTTYPES_H 1 +| #define HAVE_LIMITS_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_UNISTD_H 1 +| #define SIZEOF_SHORT_INT 2 +| #define SIZEOF_INT 4 +| #define SIZEOF_LONG_INT 4 +| /* end confdefs.h. */ +| #include +| #ifdef HAVE_STDIO_H +| # include +| #endif +| #ifdef HAVE_STDLIB_H +| # include +| #endif +| #ifdef HAVE_STRING_H +| # include +| #endif +| #ifdef HAVE_INTTYPES_H +| # include +| #endif +| #ifdef HAVE_STDINT_H +| # include +| #endif +| #ifdef HAVE_STRINGS_H +| # include +| #endif +| #ifdef HAVE_SYS_TYPES_H +| # include +| #endif +| #ifdef HAVE_SYS_STAT_H +| # include +| #endif +| #ifdef HAVE_UNISTD_H +| # include +| #endif +| int +| main (void) +| { +| static int test_array [1 - 2 * !(((long int) (sizeof (long long int))) <= 7)]; +| test_array [0] = 0; +| return test_array [0]; +| +| ; +| return 0; +| } +configure:4958: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -c -g -O2 conftest.c >&5 +conftest.c:14:9: warning: 'HAVE_MALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_MALLOC 1 + ^ +conftest.c:8:9: note: previous definition is here +#define HAVE_MALLOC 0 + ^ +conftest.c:15:9: warning: 'HAVE_REALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_REALLOC 1 + ^ +conftest.c:10:9: note: previous definition is here +#define HAVE_REALLOC 0 + ^ +2 warnings generated. +configure:4958: $? = 0 +configure:4958: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -c -g -O2 conftest.c >&5 +conftest.c:14:9: warning: 'HAVE_MALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_MALLOC 1 + ^ +conftest.c:8:9: note: previous definition is here +#define HAVE_MALLOC 0 + ^ +conftest.c:15:9: warning: 'HAVE_REALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_REALLOC 1 + ^ +conftest.c:10:9: note: previous definition is here +#define HAVE_REALLOC 0 + ^ +2 warnings generated. +configure:4958: $? = 0 +configure:4958: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -c -g -O2 conftest.c >&5 +conftest.c:14:9: warning: 'HAVE_MALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_MALLOC 1 + ^ +conftest.c:8:9: note: previous definition is here +#define HAVE_MALLOC 0 + ^ +conftest.c:15:9: warning: 'HAVE_REALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_REALLOC 1 + ^ +conftest.c:10:9: note: previous definition is here +#define HAVE_REALLOC 0 + ^ +2 warnings generated. +configure:4958: $? = 0 +configure:4958: /Users/shamrin/src/emsdk/upstream/emscripten/emcc -c -g -O2 conftest.c >&5 +conftest.c:14:9: warning: 'HAVE_MALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_MALLOC 1 + ^ +conftest.c:8:9: note: previous definition is here +#define HAVE_MALLOC 0 + ^ +conftest.c:15:9: warning: 'HAVE_REALLOC' macro redefined [-Wmacro-redefined] +#define HAVE_REALLOC 1 + ^ +conftest.c:10:9: note: previous definition is here +#define HAVE_REALLOC 0 + ^ +2 warnings generated. +configure:4958: $? = 0 +configure:4973: result: 8 +configure:4989: checking target system type +configure:5003: result: wasm32-unknown-none +configure:5903: checking for wasm32-ar +configure:5935: result: /Users/shamrin/src/emsdk/upstream/emscripten/emar +configure:6141: creating ./config.status + +## ---------------------- ## +## Running config.status. ## +## ---------------------- ## + +This file was extended by liquid-dsp config.status 1.4.0, which was +generated by GNU Autoconf 2.71. Invocation command line was + + CONFIG_FILES = + CONFIG_HEADERS = + CONFIG_LINKS = + CONFIG_COMMANDS = + $ ./config.status + +on Alexeys-MBP.lan + +config.status:858: creating makefile +config.status:858: creating config.h + +## ---------------- ## +## Cache variables. ## +## ---------------- ## + +ac_cv_build=x86_64-apple-darwin19.6.0 +ac_cv_c_compiler_gnu=yes +ac_cv_c_inline=inline +ac_cv_c_uint32_t=yes +ac_cv_c_uint8_t=yes +ac_cv_env_CC_set=set +ac_cv_env_CC_value=/Users/shamrin/src/emsdk/upstream/emscripten/emcc +ac_cv_env_CFLAGS_set= +ac_cv_env_CFLAGS_value= +ac_cv_env_CPPFLAGS_set= +ac_cv_env_CPPFLAGS_value= +ac_cv_env_LDFLAGS_set= +ac_cv_env_LDFLAGS_value= +ac_cv_env_LIBS_set= +ac_cv_env_LIBS_value= +ac_cv_env_build_alias_set= +ac_cv_env_build_alias_value= +ac_cv_env_host_alias_set=set +ac_cv_env_host_alias_value=wasm32 +ac_cv_env_target_alias_set= +ac_cv_env_target_alias_value= +ac_cv_func_cargf=yes +ac_cv_func_cexpf=yes +ac_cv_func_cimagf=yes +ac_cv_func_cosf=yes +ac_cv_func_crealf=yes +ac_cv_func_expf=yes +ac_cv_func_free=yes +ac_cv_func_malloc=yes +ac_cv_func_malloc_0_nonnull=no +ac_cv_func_memmove=yes +ac_cv_func_memset=yes +ac_cv_func_realloc=yes +ac_cv_func_realloc_0_nonnull=no +ac_cv_func_sinf=yes +ac_cv_func_sqrtf=yes +ac_cv_header_complex_h=yes +ac_cv_header_fec_h=no +ac_cv_header_fftw3_h=no +ac_cv_header_float_h=yes +ac_cv_header_getopt_h=yes +ac_cv_header_inttypes_h=yes +ac_cv_header_limits_h=yes +ac_cv_header_stdint_h=yes +ac_cv_header_stdio_h=yes +ac_cv_header_stdlib_h=yes +ac_cv_header_string_h=yes +ac_cv_header_strings_h=yes +ac_cv_header_sys_resource_h=yes +ac_cv_header_sys_stat_h=yes +ac_cv_header_sys_types_h=yes +ac_cv_header_unistd_h=yes +ac_cv_host=wasm32-unknown-none +ac_cv_lib_c_main=yes +ac_cv_lib_error_at_line=no +ac_cv_lib_fec_create_viterbi27=no +ac_cv_lib_fftw3f_fftwf_plan_dft_1d=no +ac_cv_lib_m_main=yes +ac_cv_objext=o +ac_cv_path_GREP=/usr/bin/grep +ac_cv_path_SED=/usr/bin/sed +ac_cv_path_install='/usr/bin/install -c' +ac_cv_prog_AR=/Users/shamrin/src/emsdk/upstream/emscripten/emar +ac_cv_prog_CC=/Users/shamrin/src/emsdk/upstream/emscripten/emcc +ac_cv_prog_RANLIB=/Users/shamrin/src/emsdk/upstream/emscripten/emranlib +ac_cv_prog_cc_c11= +ac_cv_prog_cc_g=yes +ac_cv_prog_cc_stdc= +ac_cv_sizeof_int=4 +ac_cv_sizeof_long_int=4 +ac_cv_sizeof_long_long_int=8 +ac_cv_sizeof_short_int=2 +ac_cv_target=wasm32-unknown-none +ac_cv_type_size_t=yes + +## ----------------- ## +## Output variables. ## +## ----------------- ## + +AR='/Users/shamrin/src/emsdk/upstream/emscripten/emar' +ARCH_OPTION='' +AR_LIB='libliquid.a' +CC='/Users/shamrin/src/emsdk/upstream/emscripten/emcc' +CFLAGS='-g -O2' +CLIB='' +COVERAGE_OPTION='' +CPPFLAGS='' +DEBUG_MSG_OPTION='' +DEFS='-DHAVE_CONFIG_H' +ECHO_C='\c' +ECHO_N='' +ECHO_T='' +EXEEXT='' +GREP='/usr/bin/grep' +HAVE_GCOVR='' +INSTALL_DATA='${INSTALL} -m 644' +INSTALL_PROGRAM='${INSTALL}' +INSTALL_SCRIPT='${INSTALL}' +LDFLAGS='' +LIBOBJS=' ${LIBOBJDIR}error$U.o ${LIBOBJDIR}malloc$U.o ${LIBOBJDIR}realloc$U.o' +LIBS='-lm -lc ' +LIBTOOL='' +LTLIBOBJS=' ${LIBOBJDIR}error$U.lo ${LIBOBJDIR}malloc$U.lo ${LIBOBJDIR}realloc$U.lo' +MLIBS_DOTPROD='src/dotprod/src/dotprod_cccf.o src/dotprod/src/dotprod_crcf.o src/dotprod/src/dotprod_rrrf.o src/dotprod/src/sumsq.o' +MLIBS_VECTOR='src/vector/src/vectorf_add.port.o src/vector/src/vectorf_norm.port.o src/vector/src/vectorf_mul.port.o src/vector/src/vectorf_trig.port.o src/vector/src/vectorcf_add.port.o src/vector/src/vectorcf_norm.port.o src/vector/src/vectorcf_mul.port.o src/vector/src/vectorcf_trig.port.o' +OBJEXT='o' +PACKAGE_BUGREPORT='joseph@liquidsdr.org' +PACKAGE_NAME='liquid-dsp' +PACKAGE_STRING='liquid-dsp 1.4.0' +PACKAGE_TARNAME='liquid-dsp' +PACKAGE_URL='' +PACKAGE_VERSION='1.4.0' +PATH_SEPARATOR=':' +RANLIB='/Users/shamrin/src/emsdk/upstream/emscripten/emranlib' +REBIND='ldconfig' +SED='/usr/bin/sed' SHELL='/bin/sh' SH_LIB='libliquid.so' SIMD_FLAGS='' @@ -1065,8 +3049,10 @@ #define PACKAGE_STRING "liquid-dsp 1.4.0" #define PACKAGE_BUGREPORT "joseph@liquidsdr.org" #define PACKAGE_URL "" -#define HAVE_MALLOC 1 -#define HAVE_REALLOC 1 +#define HAVE_MALLOC 0 +#define malloc rpl_malloc +#define HAVE_REALLOC 0 +#define realloc rpl_realloc #define HAVE_LIBC 1 #define HAVE_LIBM 1 #define HAVE_MALLOC 1 diff -ur liquid-dsp-good/config.status liquid-dsp-bad/config.status --- liquid-dsp-good/config.status 2022-07-15 22:58:34.000000000 +0300 +++ liquid-dsp-bad/config.status 2022-07-15 23:00:14.000000000 +0300 @@ -426,7 +426,7 @@ This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." -ac_pwd='/Users/shamrin/src/emscripten-bug/liquid-dsp-good' +ac_pwd='/Users/shamrin/src/emscripten-bug/liquid-dsp-bad' srcdir='.' INSTALL='/usr/bin/install -c' test -n "$AWK" || AWK=awk @@ -594,7 +594,7 @@ echo 'BEGIN {' >"$ac_tmp/subs1.awk" && cat >>"$ac_tmp/subs1.awk" <<\_ACAWK && -S["LTLIBOBJS"]=" ${LIBOBJDIR}error$U.lo" +S["LTLIBOBJS"]=" ${LIBOBJDIR}error$U.lo ${LIBOBJDIR}malloc$U.lo ${LIBOBJDIR}realloc$U.lo" S["CLIB"]="" S["COVERAGE_OPTION"]="" S["DEBUG_MSG_OPTION"]="" @@ -622,7 +622,7 @@ S["build_vendor"]="apple" S["build_cpu"]="x86_64" S["build"]="x86_64-apple-darwin19.6.0" -S["LIBOBJS"]=" ${LIBOBJDIR}error$U.o" +S["LIBOBJS"]=" ${LIBOBJDIR}error$U.o ${LIBOBJDIR}malloc$U.o ${LIBOBJDIR}realloc$U.o" S["RANLIB"]="/Users/shamrin/src/emsdk/upstream/emscripten/emranlib" S["INSTALL_DATA"]="${INSTALL} -m 644" S["INSTALL_SCRIPT"]="${INSTALL}" @@ -723,8 +723,10 @@ D["PACKAGE_STRING"]=" \"liquid-dsp 1.4.0\"" D["PACKAGE_BUGREPORT"]=" \"joseph@liquidsdr.org\"" D["PACKAGE_URL"]=" \"\"" -D["HAVE_MALLOC"]=" 1" -D["HAVE_REALLOC"]=" 1" +D["HAVE_MALLOC"]=" 0" +D["malloc"]=" rpl_malloc" +D["HAVE_REALLOC"]=" 0" +D["realloc"]=" rpl_realloc" D["HAVE_LIBC"]=" 1" D["HAVE_LIBM"]=" 1" D["HAVE_MALLOC"]=" 1" ```
sbc100 commented 1 year ago

I think I figured out what is going on .. its node actually that is being effected by the package.json files, and we are using node to run the emscripten executable "conftest" binaries.

shamrin commented 1 year ago

@sbc100 Hmm, interesting.

Apparently, node does not have a straightforward way to force commonjs. It's either extension (.mjs vs .cjs) or type: "commonjs" in package.json: https://nodejs.org/api/packages.html

However, I found a promising comment in the long GitHub issue: https://github.com/nodejs/node/issues/37848#issuecomment-803878498

Can we launch node with the following invocation? How can I try it out? I'm not familiar with the way emscripten calls node.

node --experimental-loader 'data:text/javascript,export async function getFormat() { return { format: "commonjs" } }' ./index.js
sbc100 commented 1 year ago

@sbc100 Hmm, interesting.

Apparently, node does not have a straightforward way to force commonjs. It's either extension (.mjs vs .cjs) or type: "commonjs" in package.json: https://nodejs.org/api/packages.html

However, I found a promising comment in the long GitHub issue: nodejs/node#37848 (comment)

Can we launch node with the following invocation? How can I try it out? I'm not familiar with the way emscripten calls node.

node --experimental-loader 'data:text/javascript,export async function getFormat() { return { format: "commonjs" } }' ./index.js

Hmm.. that is not very pretty.

Look for make_js_executable in emcc.py

shamrin commented 1 year ago

@sbc100 data:text/javascript trick didn't work, but providing an .mjs file did. I've submitted PR #17451 with the fix.

sbc100 commented 1 year ago

I think I have an idea for how to deal with this.

Create conftest as a shell script that then runs node conftest.cjs and generate the actual code in conftest.cjs

curiousdannii commented 1 year ago

Adding type: "commonjs" to Emscripten's package.json isn't enough?

sbc100 commented 1 year ago

I think the problem is that the generated files don't live under the emscripten directory.. they live outside in user's own projects.

curiousdannii commented 1 year ago

Oh yeah.

Your idea of make a shellscrip run a .cjs sounds solid in that case. If conftest won't run a file with an extension.

disog commented 5 months ago

Please see my https://github.com/emscripten-core/emscripten/pull/17451#issuecomment-1902274071 for a possible fix.