That code built back then, so it is possible your more modern compiler is
more picky about things. That is, new errors in modern compilers are being
fired on older code.

You can try an older compiler. Or disabling that error (-Wno-narrowing
might help).

On Sat, Jul 23, 2016 at 3:50 PM, James Stortz <[email protected]>
wrote:

> When building exactly as instructed:
>>
>
> [ 56%] Built target bugpoint
> [ 56%] Built target llvm-stress
> [ 56%] Built target BugpointPasses
> [ 58%] Built target LLVMNaClTransforms
> [ 66%] Built target LLVMCodeGen
> [ 67%] Built target LLVMInterpreter
> [ 67%] Built target LLVMJIT
> [ 68%] Built target LLVMAsmPrinter
> [ 68%] Built target LLVMMCJIT
> [ 70%] Built target LLVMSelectionDAG
> [ 70%] Building CXX object 
> lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86ISelDAGToDAG.cpp.o
> /home/jrs/Server/emscripten-fastcomp/lib/Target/X86/X86ISelDAGToDAG.cpp: In 
> member function 'void
> {anonymous}::X86DAGToDAGISel::LegalizeAddressingModeForNaCl(llvm::SDValue, 
> {anonymous}::X86ISelAddressMode&)':
> /home/jrs/Server/emscripten-fastcomp/lib/Target/X86/X86ISelDAGToDAG.cpp:1696:71:
>  error: narrowing conversion of '-1' from 'int' to
> 'unsigned int' inside { } [-Wnarrowing]
>    static const unsigned LogTable[] = { ~0, 0, 1, ~0, 2, ~0, ~0, ~0, 3 };
>                                                                        ^
> /home/jrs/Server/emscripten-fastcomp/lib/Target/X86/X86ISelDAGToDAG.cpp:1696:71:
>  error: narrowing conversion of '-1' from 'int' to
> 'unsigned int' inside { } [-Wnarrowing]
> /home/jrs/Server/emscripten-fastcomp/lib/Target/X86/X86ISelDAGToDAG.cpp:1696:71:
>  error: narrowing conversion of '-1' from 'int' to
> 'unsigned int' inside { } [-Wnarrowing]
> /home/jrs/Server/emscripten-fastcomp/lib/Target/X86/X86ISelDAGToDAG.cpp:1696:71:
>  error: narrowing conversion of '-1' from 'int' to
> 'unsigned int' inside { } [-Wnarrowing]
> /home/jrs/Server/emscripten-fastcomp/lib/Target/X86/X86ISelDAGToDAG.cpp:1696:71:
>  error: narrowing conversion of '-1' from 'int' to
> 'unsigned int' inside { } [-Wnarrowing]
> make[2]: *** [lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/build.make:787:
> lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86ISelDAGToDAG.cpp.o] Error 1
> make[1]: *** [CMakeFiles/Makefile2:2610: 
> lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/all] Error 2
> make: *** [Makefile:150: all] Error 2
>
>
>
> I don't know what to make of this or where to begin.
>
> --
> 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.
>

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

Reply via email to