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

speak.js compile error #59

Open
dlhzt opened this issue Mar 22, 2017 · 1 comment
Open

speak.js compile error #59

dlhzt opened this issue Mar 22, 2017 · 1 comment

Comments

@dlhzt
Copy link

dlhzt commented Mar 22, 2017

1 emscripten-1.37.5
2 emscripten-fastcomp-1.37.5
3 emscripten-fastcomp-clang-1.37.5 already move it into emscripten-fastcomp-1.37.5/tools/clang

then
cd spreak.js/src
./emscripten.sh
.....

1 warning generated.
/home/git/emscripten-1.37.5/em++ -L/usr/local/lib -L/usr/local/BerkeleyDB.4.8/lib/ -o speak speak.o compiledict.o dictionary.o intonation.o readclause.o setlengths.o numbers.o synth_mbrola.o synthdata.o synthesize.o translate.o mbrowrap.o tr_languages.o voices.o wavegen.o phonemelist.o klatt.o sonic.o -lstdc++ -lpthread
emscripten
error: Linking globals named 'wcschr': symbol multiply defined!
Traceback (most recent call last):
File "/home/git/emscripten-1.37.5/emcc", line 13, in
emcc.run()
File "/home/git/emscripten-1.37.5/emcc.py", line 1637, in run
final = shared.Building.llvm_opt(final, link_opts, DEFAULT_FINAL)
File "/home/git/emscripten-1.37.5/tools/shared.py", line 1838, in llvm_opt
assert os.path.exists(target), 'Failed to run llvm optimizations: ' + output
AssertionError: Failed to run llvm optimizations:

anybody help me!!!

@aldo-puga
Copy link

Hi @dlhzt,
I had the same problem, to solve this problem I changed function names of espeak source files, set emcc to doesn't create a external memory initializer file and used the emscripten-1.37.23 (available in emsdk).
I have a fork with these commits.

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

2 participants