Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LLVM to JavaScript llvm errors #1

Open
filip-minic opened this issue Apr 22, 2018 · 0 comments
Open

LLVM to JavaScript llvm errors #1

filip-minic opened this issue Apr 22, 2018 · 0 comments

Comments

@filip-minic
Copy link

filip-minic commented Apr 22, 2018

Hello,

I have been trying for a while to get an emtcl version of tcl 8.6.8 but to no avail. The issues I am facing are:

emcc --post-js js/postJsTcl.js --pre-js js/preJs.js --memory-init-file 0 -O3 --llvm-lto 3 --closure 0 -s EXPORTED_FUNCTIONS="[ '_Tcl_CreateInterp', '_Tcl_Eval', '_Tcl_GetStringResult', $([ 1 = 1 ] && echo "'_CreateDomCmd'," || true) ]"
$([ 1 = 1 ] && echo '-Itcl/generic opt/dom.c' || true) emtcl.bc -o emtcl.js
error: Linking globals named 'strstr': symbol multiply defined!
ERROR:root:Failed to run llvm optimizations:
WARNING:root:Note: Input file "@/tmp/tmpWUh7V9.response" did not exist.
Makefile:38: recipe for target 'emtcl.js' failed
make: *** [emtcl.js] Error 1

Additionally I have attempted different configurations with the makefile you supplied, some produced different errors which also did not lead to a successful compilation. Any suggestions are highly appreciated.

One attempt was to remove any configuration and just try emcc emtcl.bc -o emtcl.js which procuded a JavaScript file with just 200kb which does not work.
Here are the files I used and received from the compilation:
emtcl_files.tar.gz
libtcl8.6.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant