Hi Alon, Sorry you have right, I was on the wrong branch ... anyway it's working well now using the correct branch.
Thanks Le mardi 25 février 2014 21:47:31 UTC+1, Alon Zakai a écrit : > > Hmm, this looks like a bug that was fixed. Can you try on the incoming > branch in all 3 repos? See > https://github.com/kripken/emscripten/wiki/LLVM-Backend > > - Alon > > > > On Tue, Feb 25, 2014 at 10:08 AM, wolfviking0 > <[email protected]<javascript:> > > wrote: > >> Hi, I update recently the last incoming branch. And some of my sample are >> not working. >> >> I have an abort because wrong types for attribute. >> >> What does that mean ??? >> >> Thanks >> >> Tony >> >> >> Wrong types for attribute: byval nest noalias nocapture sret >> void (%"class.cl::Image3D"*, %"class.cl::Context"*, i32, i32, >> %"struct.cl::ImageFormat"*, i32, i32, i32, i32, i32, i8*, i32*)* >> @_ZN2cl7Image3DC1ERKNS_7ContextEyNS_11ImageFormatEjjjjjPvPi >> Broken module found, compilation aborted! >> 0 opt 0x000000010099f748 void* >> llvm::object_creator<std::__1::vector<std::__1::basic_string<char, >> std::__1::char_traits<char>, std::__1::allocator<char> >, >> std::__1::allocator<std::__1::basic_string<char, >> std::__1::char_traits<char>, std::__1::allocator<char> > > > >() + 12424 >> 1 opt 0x000000010099fc34 void* >> llvm::object_creator<std::__1::vector<std::__1::basic_string<char, >> std::__1::char_traits<char>, std::__1::allocator<char> >, >> std::__1::allocator<std::__1::basic_string<char, >> std::__1::char_traits<char>, std::__1::allocator<char> > > > >() + 13684 >> 2 libsystem_platform.dylib 0x00007fff8d6d85aa _sigtramp + 26 >> 3 libsystem_platform.dylib 0x00007faf97000000 _sigtramp + 160594544 >> 4 opt 0x000000010099fa56 void* >> llvm::object_creator<std::__1::vector<std::__1::basic_string<char, >> std::__1::char_traits<char>, std::__1::allocator<char> >, >> std::__1::allocator<std::__1::basic_string<char, >> std::__1::char_traits<char>, std::__1::allocator<char> > > > >() + 13206 >> 5 opt 0x000000010095b24d void >> std::__1::vector<llvm::StructType*, std::__1::allocator<llvm::StructType*> >> >::__push_back_slow_path<llvm::StructType* const>(llvm::StructType* const&) >> + 28685 >> 6 opt 0x000000010095b017 void >> std::__1::vector<llvm::StructType*, std::__1::allocator<llvm::StructType*> >> >::__push_back_slow_path<llvm::StructType* const>(llvm::StructType* const&) >> + 28119 >> 7 opt 0x0000000100946e8c >> std::__1::vector<llvm::Module::NeededRecord, >> std::__1::allocator<llvm::Module::NeededRecord> >> >::__swap_out_circular_buffer(std::__1::__split_buffer<llvm::Module::NeededRecord, >> > >> std::__1::allocator<llvm::Module::NeededRecord>&>&) + 27948 >> 8 opt 0x000000010094707b >> std::__1::vector<llvm::Module::NeededRecord, >> std::__1::allocator<llvm::Module::NeededRecord> >> >::__swap_out_circular_buffer(std::__1::__split_buffer<llvm::Module::NeededRecord, >> > >> std::__1::allocator<llvm::Module::NeededRecord>&>&) + 28443 >> 9 opt 0x0000000100947342 >> std::__1::vector<llvm::Module::NeededRecord, >> std::__1::allocator<llvm::Module::NeededRecord> >> >::__swap_out_circular_buffer(std::__1::__split_buffer<llvm::Module::NeededRecord, >> > >> std::__1::allocator<llvm::Module::NeededRecord>&>&) + 29154 >> 10 opt 0x0000000100947bad >> std::__1::vector<llvm::Module::NeededRecord, >> std::__1::allocator<llvm::Module::NeededRecord> >> >::__swap_out_circular_buffer(std::__1::__split_buffer<llvm::Module::NeededRecord, >> > >> std::__1::allocator<llvm::Module::NeededRecord>&>&) + 31309 >> 11 opt 0x0000000100947f4d >> std::__1::vector<llvm::Module::NeededRecord, >> std::__1::allocator<llvm::Module::NeededRecord> >> >::__swap_out_circular_buffer(std::__1::__split_buffer<llvm::Module::NeededRecord, >> > >> std::__1::allocator<llvm::Module::NeededRecord>&>&) + 32237 >> 12 opt 0x00000001001dacf7 void >> std::__1::vector<std::__1::pair<llvm::BasicBlock*, >> llvm::SuccIterator<llvm::TerminatorInst*, llvm::BasicBlock> >, >> std::__1::allocator<std::__1::pair<llvm::BasicBlock*, >> llvm::SuccIterator<llvm::TerminatorInst*, llvm::BasicBlock> > > >> >::__push_back_slow_path<std::__1::pair<llvm::BasicBlock*, >> llvm::SuccIterator<llvm::TerminatorInst*, llvm::BasicBlock> > >> const>(std::__1::pair<llvm::BasicBlock*, >> llvm::SuccIterator<llvm::TerminatorInst*, llvm::BasicBlock> > const&) + 7927 >> 13 libdyld.dylib 0x00007fff9396b5fd start + 1 >> Stack dump: >> 0. Program arguments: >> /Volumes/APPLE_MEDIA/WORKSPACE/compilo/llvm/fastcomp/bin/opt >> /tmp/tmpyZHDXU/marching_cubes.bc -internalize >> -internalize-public-api-list=main,malloc,free -globaldce >> -pnacl-abi-simplify-preopt -pnacl-abi-simplify-postopt >> -enable-emscripten-cxx-exceptions -o >> /tmp/tmpyZHDXU/marching_cubes.bc.opt.bc >> 1. Running pass 'Function Pass Manager' on module >> '/tmp/tmpyZHDXU/marching_cubes.bc'. >> 2. Running pass 'Module Verifier' on function >> '@_ZN2cl7Image3DC1ERKNS_7ContextEyNS_11ImageFormatEjjjjjPvPi' >> Traceback (most recent call last): >> File >> "/Volumes/APPLE_MEDIA/WORKSPACE/webcl/webcl-translator/emscripten/emcc", >> line 1448, in <module> >> shared.Building.llvm_opt(final, link_opts) >> File >> "/Volumes/APPLE_MEDIA/WORKSPACE/webcl/webcl-translator/emscripten/tools/shared.py", >> >> line 1191, in llvm_opt >> assert os.path.exists(target), 'Failed to run llvm optimizations: ' + >> output >> AssertionError: Failed to run llvm optimizations: >> >> -- >> 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/groups/opt_out. >> > > -- 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/groups/opt_out.
