* Package: games-emulation/nestopia-1.46.2 * Repository: gentoo * Maintainer: games@gentoo.org * USE: abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU * FEATURES: preserve-libs sandbox userpriv usersandbox >>> Unpacking source... >>> Unpacking nestopia-1.46.2.tgz to /var/tmp/portage/games-emulation/nestopia-1.46.2/work >>> Source unpacked in /var/tmp/portage/games-emulation/nestopia-1.46.2/work >>> Preparing source in /var/tmp/portage/games-emulation/nestopia-1.46.2/work/nestopia-1.46.2 ... * Applying nestopia-1.46.2-format.patch ... [ ok ] >>> Source prepared. >>> Configuring source in /var/tmp/portage/games-emulation/nestopia-1.46.2/work/nestopia-1.46.2 ... >>> Source configured. >>> Compiling source in /var/tmp/portage/games-emulation/nestopia-1.46.2/work/nestopia-1.46.2 ... make -j1 x86_64-pc-linux-gnu-g++ -DNST_PRAGMA_ONCE -Werror=terminate -march=native -O2 -pipe -c source/core/NstApu.cpp -o objs/core/NstApu.o source/core/NstApu.cpp: In member function ‘void Nes::Core::Apu::SaveState(Nes::Core::State::Saver&, Nes::dword) const’: source/core/NstApu.cpp:492:6: warning: narrowing conversion of ‘(Nes::uint)((const Nes::Core::Apu*)this)->Nes::Core::Apu::ctrl’ from ‘Nes::uint {aka unsigned int}’ to ‘Nes::byte {aka unsigned char}’ inside { } [-Wnarrowing] ctrl, ^~~~ source/core/NstApu.cpp:493:12: warning: narrowing conversion of ‘(clock & 255u)’ from ‘Nes::Core::Cycle {aka unsigned int}’ to ‘Nes::byte {aka unsigned char}’ inside { } [-Wnarrowing] clock & 0xFF, ~~~~~~^~~~~~ source/core/NstApu.cpp:494:12: warning: narrowing conversion of ‘(clock >> 8)’ from ‘Nes::Core::Cycle {aka unsigned int}’ to ‘Nes::byte {aka unsigned char}’ inside { } [-Wnarrowing] clock >> 8, ~~~~~~^~~~ source/core/NstApu.cpp:495:13: warning: narrowing conversion of ‘(Nes::word)((const Nes::Core::Apu*)this)->Nes::Core::Apu::cycles.Nes::Core::Apu::Cycles::frameDivider’ from ‘Nes::word {aka short unsigned int}’ to ‘Nes::byte {aka unsigned char}’ inside { } [-Wnarrowing] cycles.frameDivider ~~~~~~~^~~~~~~~~~~~ source/core/NstApu.cpp:516:12: warning: narrowing conversion of ‘(clock & 255u)’ from ‘Nes::Core::Cycle {aka unsigned int}’ to ‘Nes::byte {aka unsigned char}’ inside { } [-Wnarrowing] clock & 0xFF, ~~~~~~^~~~~~ source/core/NstApu.cpp:517:12: warning: narrowing conversion of ‘(clock >> 8)’ from ‘Nes::Core::Cycle {aka unsigned int}’ to ‘Nes::byte {aka unsigned char}’ inside { } [-Wnarrowing] clock >> 8, ~~~~~~^~~~ source/core/NstApu.cpp:518:28: warning: narrowing conversion of ‘(int)(((short unsigned int)((int)((const Nes::Core::Apu*)this)->Nes::Core::Apu::cycles.Nes::Core::Apu::Cycles::frameIrqRepeat)) % 3u)’ from ‘int’ to ‘Nes::byte {aka unsigned char}’ inside { } [-Wnarrowing] cycles.frameIrqRepeat % 3 ~~~~~~~~~~~~~~~~~~~~~~^~~ source/core/NstApu.cpp: In member function ‘void Nes::Core::Apu::Channel::Envelope::SaveState(Nes::Core::State::Saver&, Nes::dword) const’: source/core/NstApu.cpp:1070:13: warning: narrowing conversion of ‘(((unsigned int)((int)((const Nes::Core::Apu::Channel::Envelope*)this)->Nes::Core::Apu::Channel::Envelope::regs[0])) | (((bool)((const Nes::Core::Apu::Channel::Envelope*)this)->Nes::Core::Apu::Channel::Envelope::reset) ? 128u : 0u))’ from ‘unsigned int’ to ‘Nes::byte {aka unsigned char}’ inside { } [-Wnarrowing] regs[0] | (reset ? 0x80U : 0x00U), ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ source/core/NstApu.cpp: In member function ‘void Nes::Core::Apu::Triangle::SaveState(Nes::Core::State::Saver&, Nes::dword) const’: source/core/NstApu.cpp:1609:17: warning: narrowing conversion of ‘(unsigned int)(((short unsigned int)((int)((const Nes::Core::Apu::Triangle*)this)->Nes::Core::Apu::Triangle::waveLength)) & 255u)’ from ‘unsigned int’ to ‘Nes::byte {aka unsigned char}’ inside { } [-Wnarrowing] waveLength & 0xFFU, ~~~~~~~~~~~^~~~~~~ source/core/NstApu.cpp:1610:17: warning: narrowing conversion of ‘(((int)((const Nes::Core::Apu::Triangle*)this)->Nes::Core::Apu::Triangle::waveLength) >> 8)’ from ‘int’ to ‘Nes::byte {aka unsigned char}’ inside { } [-Wnarrowing] waveLength >> 8, ~~~~~~~~~~~^~~~ source/core/NstApu.cpp:1611:20: warning: narrowing conversion of ‘(((Nes::uint)((int)((const Nes::Core::Apu::Triangle*)this)->Nes::Core::Apu::Triangle::linearCounter)) | (((Nes::uint)((Nes::Core::Apu::Triangle::Status)((const Nes::Core::Apu::Triangle*)this)->Nes::Core::Apu::Triangle::status)) << 7))’ from ‘Nes::uint {aka unsigned int}’ to ‘Nes::byte {aka unsigned char}’ inside { } [-Wnarrowing] linearCounter | (uint(status) << 7), ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ source/core/NstApu.cpp: In member function ‘void Nes::Core::Apu::Dmc::SaveState(Nes::Core::State::Saver&, Nes::dword, const Nes::Core::Cpu&, Nes::Core::Cycle) const’: source/core/NstApu.cpp:2020:14: warning: narrowing conversion of ‘(dmcClock & 255u)’ from ‘Nes::dword {aka unsigned int}’ to ‘Nes::byte {aka unsigned char}’ inside { } [-Wnarrowing] dmcClock & 0xFF, ~~~~~~~~~^~~~~~ source/core/NstApu.cpp:2021:14: warning: narrowing conversion of ‘(dmcClock >> 8)’ from ‘Nes::dword {aka unsigned int}’ to ‘Nes::byte {aka unsigned char}’ inside { } [-Wnarrowing] dmcClock >> 8, ~~~~~~~~~^~~~ source/core/NstApu.cpp:2025:55: warning: narrowing conversion of ‘((((((Nes::uint)((const Nes::Core::Apu::Dmc*)this)->Nes::Core::Apu::Dmc::regs.Nes::Core::Apu::Dmc::::ctrl) & 15u) | (((((Nes::uint)((const Nes::Core::Apu::Dmc*)this)->Nes::Core::Apu::Dmc::regs.Nes::Core::Apu::Dmc::::ctrl) & 64u) != 0u) ? 16u : 0u)) | (((((Nes::uint)((const Nes::Core::Apu::Dmc*)this)->Nes::Core::Apu::Dmc::regs.Nes::Core::Apu::Dmc::::ctrl) & 128u) != 0u) ? 32u : 0u)) | ((((int)((const Nes::Core::Apu::Dmc*)this)->Nes::Core::Apu::Dmc::dma.Nes::Core::Apu::Dmc::::lengthCounter) != 0) ? 64u : 0u))’ from ‘Nes::uint {aka unsigned int}’ to ‘Nes::byte {aka unsigned char}’ inside { } [-Wnarrowing] ( ~~ ( ( regs.ctrl & REG0_FREQUENCY ) ) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ( ( regs.ctrl & REG0_LOOP ) ? 0x10U : 0U ) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ( ( regs.ctrl & REG0_IRQ_ENABLE ) ? 0x20U : 0U ) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ ( ( dma.lengthCounter ) ? 0x40U : 0U ) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ), ~ source/core/NstApu.cpp:2028:30: warning: narrowing conversion of ‘((((unsigned int)((int)((const Nes::Core::Apu::Dmc*)this)->Nes::Core::Apu::Dmc::regs.Nes::Core::Apu::Dmc::::address)) - 49152u) >> 6)’ from ‘unsigned int’ to ‘Nes::byte {aka unsigned char}’ inside { } [-Wnarrowing] (regs.address - 0xC000U) >> 6, ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ source/core/NstApu.cpp:2029:31: warning: narrowing conversion of ‘((((unsigned int)((int)((const Nes::Core::Apu::Dmc*)this)->Nes::Core::Apu::Dmc::regs.Nes::Core::Apu::Dmc::::lengthCounter)) - 1u) >> 4)’ from ‘unsigned int’ to ‘Nes::byte {aka unsigned char}’ inside { } [-Wnarrowing] (regs.lengthCounter - 1U) >> 4, ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ source/core/NstApu.cpp:2030:23: warning: narrowing conversion of ‘(((unsigned int)(((int)((const Nes::Core::Apu::Dmc*)this)->Nes::Core::Apu::Dmc::dma.Nes::Core::Apu::Dmc::::address) >> 0)) & 255u)’ from ‘unsigned int’ to ‘Nes::byte {aka unsigned char}’ inside { } [-Wnarrowing] (dma.address >> 0 & 0xFFU), ~~~~~~~~~~~~~~~~~~^~~~~~~~ source/core/NstApu.cpp:2031:32: warning: narrowing conversion of ‘((((unsigned int)(((int)((const Nes::Core::Apu::Dmc*)this)->Nes::Core::Apu::Dmc::dma.Nes::Core::Apu::Dmc::::address) >> 8)) & 127u) | ((unsigned int)((((int)((const Nes::Core::Apu::Dmc*)this)->Nes::Core::Apu::Dmc::dma.Nes::Core::Apu::Dmc::::buffered) != 0) ? 128 : 0)))’ from ‘unsigned int’ to ‘Nes::byte {aka unsigned char}’ inside { } [-Wnarrowing] (dma.address >> 8 & 0x7FU) | (dma.buffered ? 0x80 : 0x00), ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/core/NstApu.cpp:2032:23: warning: narrowing conversion of ‘((((int)((const Nes::Core::Apu::Dmc*)this)->Nes::Core::Apu::Dmc::dma.Nes::Core::Apu::Dmc::::lengthCounter) != 0) ? ((((unsigned int)((int)((const Nes::Core::Apu::Dmc*)this)->Nes::Core::Apu::Dmc::dma.Nes::Core::Apu::Dmc::::lengthCounter)) - 1u) >> 4) : 0u)’ from ‘unsigned int’ to ‘Nes::byte {aka unsigned char}’ inside { } [-Wnarrowing] dma.lengthCounter ? (dma.lengthCounter - 1U) >> 4 : 0, ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/core/NstApu.cpp:2033:9: warning: narrowing conversion of ‘(Nes::word)((const Nes::Core::Apu::Dmc*)this)->Nes::Core::Apu::Dmc::dma.Nes::Core::Apu::Dmc::::buffer’ from ‘Nes::word {aka short unsigned int}’ to ‘Nes::byte {aka unsigned char}’ inside { } [-Wnarrowing] dma.buffer, ~~~~^~~~~~ source/core/NstApu.cpp:2034:7: warning: narrowing conversion of ‘(7 - ((int)((const Nes::Core::Apu::Dmc*)this)->Nes::Core::Apu::Dmc::out.Nes::Core::Apu::Dmc::::shifter))’ from ‘int’ to ‘Nes::byte {aka unsigned char}’ inside { } [-Wnarrowing] 7 - out.shifter, ~~^~~~~~~~~~~~~ In file included from source/core/NstAssert.hpp:29:0, from source/core/NstCpu.hpp:28, from source/core/NstApu.cpp:26: source/core/NstCore.hpp: In instantiation of ‘long int Nes::Core::signed_shl(T, Nes::uint) [with T = int; Nes::uint = unsigned int]’: source/core/NstApu.cpp:1150:32: required from here source/core/NstCore.hpp:282:25: error: left operand of shift expression ‘(-7 << 1)’ is negative [-fpermissive] enum {NATIVE = T(-7) << 1 == -14}; ~~~~~~^~~~ source/core/NstCore.hpp:282:9: error: enumerator value for ‘NATIVE’ is not an integer constant enum {NATIVE = T(-7) << 1 == -14}; ^ make: *** [Makefile:355: objs/core/NstApu.o] Error 1 * ERROR: games-emulation/nestopia-1.46.2::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=games-emulation/nestopia-1.46.2::gentoo'`, * the complete build log and the output of `emerge -pqv '=games-emulation/nestopia-1.46.2::gentoo'`. * The complete build log is located at '/var/log/portage/games-emulation:nestopia-1.46.2:20161017-131415.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/games-emulation/nestopia-1.46.2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/games-emulation/nestopia-1.46.2/temp/environment'. * Working directory: '/var/tmp/portage/games-emulation/nestopia-1.46.2/work/nestopia-1.46.2' * S: '/var/tmp/portage/games-emulation/nestopia-1.46.2/work/nestopia-1.46.2'