Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 612940 - games-emulation/desmume-0.9.11-r1 : MMU_timing.h:158:28: error: left operand of shift expression ‘(-1 << 11)’ is negative [-fpermissive]
Summary: games-emulation/desmume-0.9.11-r1 : MMU_timing.h:158:28: error: left operand ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Hanno Böck
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-6
  Show dependency tree
 
Reported: 2017-03-17 17:05 UTC by Toralf Förster
Modified: 2017-09-30 14:51 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,5.95 KB, text/plain)
2017-03-17 17:05 UTC, Toralf Förster
Details
config.log.tbz2 (config.log.tbz2,8.13 KB, application/x-bzip)
2017-03-17 17:05 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,347.78 KB, text/plain)
2017-03-17 17:05 UTC, Toralf Förster
Details
environment (environment,17.47 KB, text/plain)
2017-03-17 17:05 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,54.17 KB, application/x-bzip)
2017-03-17 17:05 UTC, Toralf Förster
Details
games-emulation:desmume-0.9.11-r1:20170317-141523.log (games-emulation:desmume-0.9.11-r1:20170317-141523.log,10.15 KB, text/plain)
2017-03-17 17:05 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,8.72 KB, application/x-bzip)
2017-03-17 17:05 UTC, Toralf Förster
Details
Patch for desmume-0.9.11 (desmume.patch,10.65 KB, patch)
2017-04-07 21:46 UTC, Bigos
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2017-03-17 17:05:14 UTC
MMU_timing.h: In instantiation of ‘class CacheController<13, 2, 5>’:
MMU_timing.h:253:26:   required from here
MMU_timing.h:158:28: error: left operand of shift expression ‘(-1 << 11)’ is negative [-fpermissive]
  enum { TAGMASK = (u32)(~0 << TAGSHIFT) };

                        ~~~~^~~~~~~~~~~~

  -----------------------------------------------------------------

  This is an unstable amd64 chroot image (named plasma-abi32+64_20170309-193709) at a hardened host acting as a tinderbox.

  -----------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-6.3.0 *
llvm-config:
3.9.1
Available Python interpreters, in order of preference:
  [1]   python3.4
  [2]   python3.6 (fallback)
  [3]   python2.7 (fallback)
  [4]   jython2.7 (fallback)
Available Ruby profiles:
  [1]   ruby21 (with Rubygems) *
java-config:
The following VMs are available for generation-2:
1)	IcedTea JDK 7.2.6.9 [icedtea-7]
*)	IcedTea JDK 7.2.6.9 [icedtea-bin-7]
3)	IcedTea JDK 3.3.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-7 
  [2]   icedtea-bin-7  system-vm
  [3]   icedtea-bin-8
Comment 1 Toralf Förster gentoo-dev 2017-03-17 17:05:19 UTC
Created attachment 467354 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2017-03-17 17:05:23 UTC
Created attachment 467356 [details]
config.log.tbz2
Comment 3 Toralf Förster gentoo-dev 2017-03-17 17:05:27 UTC
Created attachment 467358 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2017-03-17 17:05:32 UTC
Created attachment 467360 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2017-03-17 17:05:35 UTC
Created attachment 467362 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2017-03-17 17:05:38 UTC
Created attachment 467364 [details]
games-emulation:desmume-0.9.11-r1:20170317-141523.log
Comment 7 Toralf Förster gentoo-dev 2017-03-17 17:05:42 UTC
Created attachment 467366 [details]
temp.tbz2
Comment 9 Bigos 2017-04-07 21:46:31 UTC
Created attachment 469446 [details, diff]
Patch for desmume-0.9.11

Hello,

The attached patch fixes this error, two more (abs() one and ""__VA_ARGS__ one) and fixes questionable code that produced warnings for me while compiling under gcc-6.2.0. I think you should be able to integrate it into the ebuild.
Comment 10 David Seifert gentoo-dev 2017-05-07 07:56:15 UTC
commit 7cfe950605746b9a832efda51bc1562e0ddaf338
Author: Peter-Levine <plevine457@gmail.com>
Date:   Sat May 6 14:01:45 2017 -0400

    games-emulation/desmume: Fix building with GCC-6
    
    Bug: https://bugs.gentoo.org/show_bug.cgi?id=612940