emscripten-core / emscripten

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

compile gmp 6.3.0,there are some error #22127

Open wizard-123 opened 1 week ago

wizard-123 commented 1 week ago

use ”apt install emscripten“ to install

em++ -v
emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 3.1.5 ()

when compiling,use command as

emconfigure ./configure --enable-cxx --prefix=/usr/local/gmp-9.3.0 --disable-assembly

the error is

checking how to run the C++ preprocessor... em++ -E
checking for ld used by em++... emcc
checking if the linker (emcc) is GNU ld... yes
em++: error: no input files
checking whether the em++ linker (emcc) supports shared libraries... yes
checking for em++ option to produce PIC... -fPIC -DPIC
...
checking for suitable m4... m4
checking if m4wrap produces spurious output... no
checking how to switch to text section... .text
checking how to switch to data section... .data
checking for assembler label suffix... configure: error: Cannot determine label suffix
sbc100 commented 1 week ago

You are probably correct to pass --disable-assembly and in that case I'm not sure why the configure script is still wanted to check assembler label suffix. You should look at the error log from that configure step or you could attempt to modify the autoconf script to skip that step when --disable-assembly is used.