Summary: | dev-lang/rubinius-1.2.4.20110705 - m/builtin/unpack.cpp:284:5: error: narrowing conversion of ‘2147483648u’ from ‘unsigned int’ to ‘const int32_t {aka const int}’ inside { } is ill-formed in C++11 [-Werror=narrowing] | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Vasco Gervasi <yellowhat46> |
Component: | Current packages | Assignee: | Gentoo Ruby Team <ruby> |
Status: | RESOLVED TEST-REQUEST | ||
Severity: | normal | CC: | bertrand |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log
fix compiler error for rubinius |
Description
Vasco Gervasi
2012-08-13 11:43:09 UTC
Created attachment 321188 [details]
build.log
5: CC vm/builtin/tuple.cpp 2: CC vm/builtin/unpack.cpp 4: CC vm/builtin/variable_scope.cpp vm/builtin/unpack.cpp:284:5: error: narrowing conversion of ‘2147483648u’ from ‘unsigned int’ to ‘const int32_t {aka const int}’ inside { } is ill-formed in C++11 [-Werror=narrowing] 5: CC vm/builtin/weakref.cpp cc1plus: all warnings being treated as errors Error: gcc -Ivm -Ivm/test/cxxtest -I. -pipe -Wall -fno-omit-frame-pointer -ggdb3 -Werror -DRBX_PROFILER -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -march=native -O2 -ftree-vectorize -pipe -fomit-frame-pointer -O2 -DHAS_EXECINFO -DHAS_READLINE -Ivm/external_libs/udis86 -Ivm/external_libs/libffi/include -Ivm/external_libs/libgdtoa -Ivm/external_libs/onig -Ivm/external_libs/libtommath -I/usr/local/include -I/opt/local/include -c -o vm/builtin/artifacts/unpack.cpp.o vm/builtin/unpack.cpp 4: CC vm/bytecode_verification.cpp Similar to bug 417533 I won't have time for this bug either. Patches and/or analysis welcome. It's probably best to report this upstream. Ok but as said in bug 417533 downgrading llvm should fix the error Created attachment 338678 [details]
fix compiler error for rubinius
The problem is -Werror compiler flag, because that compiler warning is not fatal normaly.
This version was removed from the tree. Please test again with rubinius-2.x |