Results 644 comments of Vadim Kantorov

I'll try g++ with `-fno-common` and will let you know ```shell # my two linking lines $(CXX_native) -Wl,--unresolved-symbols=ignore-all -Wimplicit -Wreturn-type -export-dynamic $(CFLAGS_OPT_native) -o $@ [email protected] $(addprefix build/native/texlive/texk/web2c/, $(OBJ_XETEX) $(OBJ_PDFTEX)) $(addprefix...

@sbc100 Ok, I think I have a hunch: they are all static variables/arrays, not functions Missing symbols: [log.txt](https://github.com/emscripten-core/emscripten/files/7090068/log.txt) They all seem to be produced by arrays in original https://github.com/TeX-Live/texlive-source/blob/trunk/texk/web2c/tex.ch (note...

Yes, both these objects are included and both of them have functions / symbols that are not identical (e.g. busypdftex_main function and busyxetex_main). But they also contain identical symbols such...

E.g. definition of array `write_file`: https://github.com/TeX-Live/texlive-source/blob/trunk/texk/web2c/tex.web#L24604

The converted files are: [pdftexd.h](https://github.com/emscripten-core/emscripten/files/7090273/pdftexd.h.txt) [xetexd.h](https://github.com/emscripten-core/emscripten/files/7090274/xetexd.h.txt) [otangle.c](https://github.com/emscripten-core/emscripten/files/7090288/otangle.c.txt) [ctangle.c](https://github.com/emscripten-core/emscripten/files/7090290/ctangle.c.txt) See `writefile` and `writeopen` arrays

Yes, WEB is a dialect of Pascal invented by Knuth :) These days it gets converted to C before compilation

It would seem that if the data-sizes for static variables are matching, gcc would succeed in linking, but not wasm-ld Still not sure why it doesn't break for all other...

```shell echo "extern int writeopen[18];" > test1.c echo "extern int writeopen[18];" > test2.c echo "main() {}" > main.c # works gcc -fno-common test2.c test1.c main.c emcc -fno-common test2.c test1.c main.c...