Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 450562 Details for
Bug 597364
games-emulation/nestopia-1.46.2 : source/.../NstCore.hpp:282:25: error: left operand of shift expression ‘(-7 << 1)’ is negative [-fpermissive]
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
games-emulation:nestopia-1.46.2:20161017-131415.log
games-emulation:nestopia-1.46.2:20161017-131415.log (text/plain), 11.08 KB, created by
Toralf Förster
on 2016-10-17 13:18:13 UTC
(
hide
)
Description:
games-emulation:nestopia-1.46.2:20161017-131415.log
Filename:
MIME Type:
Creator:
Toralf Förster
Created:
2016-10-17 13:18:13 UTC
Size:
11.08 KB
patch
obsolete
> * 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::<anonymous struct>::ctrl) & 15u) | (((((Nes::uint)((const Nes::Core::Apu::Dmc*)this)->Nes::Core::Apu::Dmc::regs.Nes::Core::Apu::Dmc::<anonymous struct>::ctrl) & 64u) != 0u) ? 16u : 0u)) | (((((Nes::uint)((const Nes::Core::Apu::Dmc*)this)->Nes::Core::Apu::Dmc::regs.Nes::Core::Apu::Dmc::<anonymous struct>::ctrl) & 128u) != 0u) ? 32u : 0u)) | ((((int)((const Nes::Core::Apu::Dmc*)this)->Nes::Core::Apu::Dmc::dma.Nes::Core::Apu::Dmc::<anonymous struct>::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::<anonymous struct>::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::<anonymous struct>::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::<anonymous struct>::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::<anonymous struct>::address) >> 8)) & 127u) | ((unsigned int)((((int)((const Nes::Core::Apu::Dmc*)this)->Nes::Core::Apu::Dmc::dma.Nes::Core::Apu::Dmc::<anonymous struct>::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::<anonymous struct>::lengthCounter) != 0) ? ((((unsigned int)((int)((const Nes::Core::Apu::Dmc*)this)->Nes::Core::Apu::Dmc::dma.Nes::Core::Apu::Dmc::<anonymous struct>::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::<anonymous struct>::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::<anonymous struct>::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'
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 597364
:
450558
|
450560
| 450562