Thanks, I see we were missing fptoui|si on floats, we had only doubles. I
added that now.

- Alon



On Wed, Jan 22, 2014 at 12:36 PM, wolfviking0 <[email protected]>wrote:

> Hi Alon I just update everything, and the error seems different now.
>
> I just update you last incoming commit (avoid unresolved symbol warnings
> on misc funcs in fast comp) and you last fastcomp commit (typo).
>
> Now the error I have is :
>
> Warning: Variable __init_array_start not referenced
>
> Warning: Variable __init_array_end not referenced
>
> Warning: Variable __fini_array_start not referenced
>
> Warning: Variable __fini_array_end not referenced
>
> Call parameter type does not match function signature!
>
>   %33 = load float* %.bc11, align 4
>
>  double  %34 = call i32 @FPtoILow(float %33)
>
> Call parameter type does not match function signature!
>
>   %33 = load float* %.bc11, align 4
>
>  double  %35 = call i32 @FPtoIHigh(float %33)
>
> Broken module found, compilation aborted!
>
> 0  opt                      0x0000000100f0db58 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                      0x0000000100f0e044 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 0x00007fff84f9c5aa _sigtramp + 26
>
> 3  opt                      0x0000000100e1b07e
> std::__1::vector<std::__1::pair<llvm::AttributeSet, unsigned int>,
> std::__1::allocator<std::__1::pair<llvm::AttributeSet, unsigned int> >
> >::__append(unsigned long) + 11710
>
> 4  opt                      0x0000000100f0de66 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                      0x0000000100ec965d void
> std::__1::vector<llvm::StructType*, std::__1::allocator<llvm::StructType*>
> >::__push_back_slow_path<llvm::StructType* const>(llvm::StructType* const&)
> + 28685
>
> 6  opt                      0x0000000100ec9427 void
> std::__1::vector<llvm::StructType*, std::__1::allocator<llvm::StructType*>
> >::__push_back_slow_path<llvm::StructType* const>(llvm::StructType* const&)
> + 28119
>
> 7  opt                      0x0000000100eb529c
> 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                      0x0000000100eb548b
> 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                      0x0000000100eb5752
> 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                      0x0000000100eb5fbd
> 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                      0x0000000100eb635d
> 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                      0x000000010074b5f7 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            0x00007fff8b22f5fd start + 1
>
> 14 libdyld.dylib            0x000000000000000a start + 1960643086
>
> Stack dump:
>
> 0. Program arguments:
> /Volumes/APPLE_MEDIA/WORKSPACE/compilo/llvm/fastcomp/bin/opt
> /tmp/tmpWsFkjp/libUnigine.bc -strip-debug -internalize
> -internalize-public-api-list=main,malloc,free -globaldce
> -pnacl-abi-simplify-preopt -pnacl-abi-simplify-postopt -o
> /tmp/tmpWsFkjp/libUnigine.bc.opt.bc
>
> 1. Running pass 'Function Pass Manager' on module
> '/tmp/tmpWsFkjp/libUnigine.bc'.
>
> 2. Running pass 'Module Verifier' on function
> '@_ZNK8Variable11getLongSafeEv'
>
> Traceback (most recent call last):
>
>   File "/Volumes/APPLE_MEDIA/WORKSPACE/webgl/emscripten/emcc", line 1822,
> in <module>
>
>     shared.Building.llvm_opt(final, link_opts)
>
>   File "/Volumes/APPLE_MEDIA/WORKSPACE/webgl/emscripten/tools/shared.py",
> line 1173, in llvm_opt
>
>     assert os.path.exists(target), 'Failed to run llvm optimizations: ' +
> output
>
> AssertionError: Failed to run llvm optimizations:
>
> make: *** [all_engine_js] Error 1
> Mac-mini-de-Anthony:unigine_work al$
>
> --
> 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.
>

-- 
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.

Reply via email to