Re: I can compile C++ to .so , but cannot compile it to wasm

2023-05-27 Thread hannong cheng
thanks, you are right, that's the memory problem, the cpp file is complex because it was produced by machine. so I changed memory from 16GB to 32GB then this problem is gone so far, many thanks 在2023年5月27日星期六 UTC+8 08:36:30 写道: > On Fri, May 26, 2023 at 3:19 PM hannong cheng wrote: > >> -->Is

Re: I can compile C++ to .so , but cannot compile it to wasm

2023-05-26 Thread 'Sam Clegg' via emscripten-discuss
On Fri, May 26, 2023 at 3:19 PM hannong cheng wrote: > -->Is the source file you are compiling particularly large? > thanks, Yes, it is about 3.3MB. and about 110,000 lines, mainly produced > by another tool. and it only computes and output the results without any > display function > It sounds

Re: I can compile C++ to .so , but cannot compile it to wasm

2023-05-26 Thread hannong cheng
-->Is the source file you are compiling particularly large? thanks, Yes, it is about 3.3MB. and about 110,000 lines, mainly produced by another tool. and it only computes and output the results without any display function 在2023年5月24日星期三 UTC+8 11:02:07 写道: > It looks like the compiler process

Re: I can compile C++ to .so , but cannot compile it to wasm

2023-05-23 Thread 'Sam Clegg' via emscripten-discuss
It looks like the compiler process was killed via SIGKILL. Any idea why that might be? This can happen if some external process kills the compiler or, if think, if the kernel runs out of memory. Is the source file you are compiling particularly large? cheers, sam On Tue, May 23, 2023 at 7:12

I can compile C++ to .so , but cannot compile it to wasm

2023-05-23 Thread hannong cheng
emcc: error: '/home/chn/emsdk/upstream/bin/clang++ -target wasm32-unknown-emscripten -fignore-exceptions -fvisibility=default -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -DEMSCRIPTEN --sysroot=/home/chn/emsdk/upstream/emscripten/cache/sysroot