@jj It`s c++ OpenCL sample. I build it a lot of time without any trouble. For repro it`s just try to build it.
I can give you the command I use for build but not sure that can help. em++ -s OPT_LEVEL=3 -s DEBUG_LEVEL=0 -s CL_PRINT_TRACE=0 -s DISABLE_EXCEPTION_CATCHING=0 -s WARN_ON_UNDEFINED_SYMBOLS=1 -s CL_DEBUG=0 -s CL_GRAB_TRACE=0 -s CL_CHECK_VALID_OBJECT=0 -s FULL_ES2=1 -s TOTAL_MEMORY=1024*1024*256 -std=c++11 src/Application.cpp src/Demo.cpp src/error.cpp src/global.cpp src/gltools.cpp src/LorenzAttractorDemo.cpp src/LorenzAttractorOpenCLSolver.cpp src/main.cpp src/Solver.cpp Le vendredi 17 octobre 2014 15:32:16 UTC+2, Bruce Mitchener a écrit : > > I have had this happen before but don't recall what it was. I found it by > inserting some debug code to dump the contents of that buffer around the > offending index. I had a note to bring this up with Alon but I seem to have > lost it. > > Good luck! > > - Bruce > > Sent from my iPhone > > On Oct 17, 2014, at 7:56 PM, Jukka Jylänki <[email protected] <javascript:>> > wrote: > > Do you have steps to repro? > > 2014-10-17 9:44 GMT+03:00 wolfviking0 <[email protected] <javascript:>>: > >> Hi, I just update the last incoming branch and one of my sample in WebCL >> give me this error when I build. >> >> >> Any idea ? >> >> >> Traceback (most recent call last): >> >> File "/Volumes/APPLE_MEDIA/WORKSPACE/webcl/emscripten/emscripten.py", >> line 1597, in <module> >> >> _main(environ=os.environ) >> >> File "/Volumes/APPLE_MEDIA/WORKSPACE/webcl/emscripten/emscripten.py", >> line 1585, in _main >> >> temp_files.run_and_clean(lambda: main( >> >> File >> "/Volumes/APPLE_MEDIA/WORKSPACE/webcl/emscripten/tools/tempfiles.py", line >> 39, in run_and_clean >> >> return func() >> >> File "/Volumes/APPLE_MEDIA/WORKSPACE/webcl/emscripten/emscripten.py", >> line 1593, in <lambda> >> >> DEBUG_CACHE=DEBUG_CACHE, >> >> File "/Volumes/APPLE_MEDIA/WORKSPACE/webcl/emscripten/emscripten.py", >> line 1480, in main >> >> jcache=jcache, temp_files=temp_files, DEBUG=DEBUG, >> DEBUG_CACHE=DEBUG_CACHE) >> >> File "/Volumes/APPLE_MEDIA/WORKSPACE/webcl/emscripten/emscripten.py", >> line 913, in emscript_fast >> >> %s''' % (mem_init.count(',')+1, global_initializers, mem_init)) # XXX >> wrong size calculation! >> >> UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position >> 261764: ordinal not in range(128) >> >> Traceback (most recent call last): >> >> File "/Volumes/APPLE_MEDIA/WORKSPACE/webcl/emscripten/emcc", line 1269, >> in <module> >> >> final = shared.Building.emscripten(final, append_ext=False, >> extra_args=extra_args) >> >> File "/Volumes/APPLE_MEDIA/WORKSPACE/webcl/emscripten/tools/shared.py", >> line 1464, in emscripten >> >> assert os.path.exists(filename + '.o.js'), 'Emscripten failed to >> generate .js' >> >> AssertionError: Emscripten failed to generate .js >> >> make: *** [attractor_sample] Error 1 >> >> -- >> You received this message because you are subscribed to the Google Groups >> "emscripten-discuss" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > > -- > You received this message because you are subscribed to the Google Groups > "emscripten-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] <javascript:>. > For more options, visit https://groups.google.com/d/optout. > > -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
