Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 609366 - net-im/openmittsu-0.9.2_p78 : /.../format.h:2166:24: error: expected unqualified-id before numeric constant
Summary: net-im/openmittsu-0.9.2_p78 : /.../format.h:2166:24: error: expected unqualif...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ulrich Müller
URL:
Whiteboard:
Keywords: UPSTREAM
Depends on:
Blocks:
 
Reported: 2017-02-14 22:20 UTC by Toralf Förster
Modified: 2017-02-15 12:46 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,5.94 KB, text/plain)
2017-02-14 22:20 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,431.50 KB, text/plain)
2017-02-14 22:20 UTC, Toralf Förster
Details
environment (environment,121.66 KB, text/plain)
2017-02-14 22:20 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,16.39 KB, application/x-bzip)
2017-02-14 22:20 UTC, Toralf Förster
Details
net-im:openmittsu-0.9.2_p78:20170214-214241.log (net-im:openmittsu-0.9.2_p78:20170214-214241.log,130.10 KB, text/plain)
2017-02-14 22:20 UTC, Toralf Förster
Details
Patch renaming the CHAR_WIDTH variable (openmittsu-0.9.2_p78-charwidth.patch,1.77 KB, patch)
2017-02-15 09:13 UTC, Ulrich Müller
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-02-14 22:20:39 UTC
                 from /var/tmp/portage/net-im/openmittsu-0.9.2_p78/work/openMittsu-0.9.2_p78/src/Client.cpp:1:
/var/tmp/portage/net-im/openmittsu-0.9.2_p78/work/openMittsu-0.9.2_p78/3rdparty/spdlog/include/spdlog/details/format.h: In member function ‘void fmt::internal::ArgFormatterBase<Impl, Char>::visit_char(int)’:
/var/tmp/portage/net-im/openmittsu-0.9.2_p78/work/openMittsu-0.9.2_p78/3rdparty/spdlog/include/spdlog/details/format.h:2166:24: error: expected unqualified-id before numeric constant
         const unsigned CHAR_WIDTH = 1;

                        ^

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

  This is an unstable amd64 chroot image (named gnome-unstable_20170201-093005) at a hardened host acting as a tinderbox.

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-5.4.0 *
llvm-config:
3.9.1
Available Python interpreters, in order of preference:
  [1]   python3.4
  [2]   python3.5 (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:
*)	IcedTea JDK 3.3.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm
Comment 1 Toralf Förster gentoo-dev 2017-02-14 22:20:41 UTC
Created attachment 463770 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2017-02-14 22:20:44 UTC
Created attachment 463772 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2017-02-14 22:20:47 UTC
Created attachment 463774 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2017-02-14 22:20:50 UTC
Created attachment 463776 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2017-02-14 22:20:55 UTC
Created attachment 463778 [details]
net-im:openmittsu-0.9.2_p78:20170214-214241.log
Comment 6 Ulrich Müller gentoo-dev 2017-02-15 09:13:37 UTC
Created attachment 463806 [details, diff]
Patch renaming the CHAR_WIDTH variable

Strange that I cannot reproduce this. Unstable amd64 here, same gcc version, same flags (so exactly the same command in the log) and I don't even get a warning.

So attached patch is a shot in the dark, renaming CHAR_WIDTH to MY_CHAR_WIDTH. Does it fix the problem for you?
Comment 7 Ulrich Müller gentoo-dev 2017-02-15 10:31:30 UTC
In fact, it is this upstream issue: https://github.com/gabime/spdlog/issues/300
It is already fixed in git upstream: https://github.com/fmtlib/fmt/commit/abbefd71666055daac9e14e78262620f9e845850
Comment 8 Ulrich Müller gentoo-dev 2017-02-15 10:52:41 UTC
Reported to openMittsu upstream: https://github.com/blizzard4591/openMittsu/issues/19
Comment 9 Ulrich Müller gentoo-dev 2017-02-15 12:46:35 UTC
Fixed. No revbump because it is a build failure.
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1b3025bcd147286244c69b2c6d7b10cd2e98d869