Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 639448 - x11-libs/gtkmathview-0.8.0-r3 : gtkmathview_common.cc:912:50: error: call of overloaded abs(guint32) is ambiguous
Summary: x11-libs/gtkmathview-0.8.0-r3 : gtkmathview_common.cc:912:50: error: call of ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-7
  Show dependency tree
 
Reported: 2017-12-01 21:56 UTC by Toralf Förster
Modified: 2018-01-11 10:36 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,15.96 KB, text/plain)
2017-12-01 21:56 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,84.60 KB, text/plain)
2017-12-01 21:56 UTC, Toralf Förster
Details
environment (environment,57.11 KB, text/plain)
2017-12-01 21:56 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,12.72 KB, application/x-bzip)
2017-12-01 21:56 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,9.89 KB, application/x-bzip)
2017-12-01 21:56 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,33.34 KB, application/x-bzip)
2017-12-01 21:56 UTC, Toralf Förster
Details
x11-libs:gtkmathview-0.8.0-r3:20171201-214948.log (x11-libs:gtkmathview-0.8.0-r3:20171201-214948.log,316.13 KB, text/plain)
2017-12-01 21:56 UTC, Toralf Förster
Details
This patch seems to work for me (gtkmathview-0.8.0-gcc7.patch,1.26 KB, patch)
2017-12-16 09:31 UTC, David Haller
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-12-01 21:56:34 UTC
                ^~~~~~~~~
gtkmathview_common.cc: In function ‘gint gtk_math_view_button_release_event(GtkWidget*, GdkEventButton*)’:
gtkmathview_common.cc:912:50: error: call of overloaded ‘abs(guint32)’ is ambiguous
    abs(math_view->button_press_time - event->time) <= CLICK_TIME_RANGE)
                                                  ^
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/include/g++-v7/cstdlib:75:0,

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 13.0-desktop-plasma_test_20171129-200748

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.2.0 *

Available Python interpreters, in order of preference:
  [1]   python3.4
  [2]   python3.6 (fallback)
  [3]   python3.5 (fallback)
  [4]   python2.7 (fallback)

java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.6.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm

emerge -qpv x11-libs/gtkmathview
[ebuild  N    ] x11-libs/gtkmathview-0.8.0-r3  USE="gtk svg -mathml -t1lib"
Comment 1 Toralf Förster gentoo-dev 2017-12-01 21:56:37 UTC
Created attachment 507578 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2017-12-01 21:56:40 UTC
Created attachment 507580 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2017-12-01 21:56:43 UTC
Created attachment 507582 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2017-12-01 21:56:46 UTC
Created attachment 507584 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2017-12-01 21:56:49 UTC
Created attachment 507586 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2017-12-01 21:56:52 UTC
Created attachment 507588 [details]
temp.tbz2
Comment 7 Toralf Förster gentoo-dev 2017-12-01 21:56:54 UTC
Created attachment 507590 [details]
x11-libs:gtkmathview-0.8.0-r3:20171201-214948.log
Comment 8 David Haller 2017-12-16 09:31:20 UTC
Created attachment 510310 [details, diff]
This patch seems to work for me
Comment 9 Adrian Bassett 2017-12-16 11:21:24 UTC
(In reply to David Haller from comment #8)
> Created attachment 510310 [details, diff] [details, diff]
> This patch seems to work for me

Confirmed for gcc-7.2.0 on ~amd64 (adding to existing patch set in gtkmathview's $FILESDIR).  Previously compiled OK with gcc-6.4.0.
Comment 10 Juergen Rose 2017-12-17 16:25:21 UTC
(In reply to David Haller from comment #8)
> Created attachment 510310 [details, diff] [details, diff]
> This patch seems to work for me

The patch worked for me.
Comment 11 Larry the Git Cow gentoo-dev 2018-01-11 10:36:00 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e4a31551c1ab5081d8f0a3f5684549eea0de6ce

commit 8e4a31551c1ab5081d8f0a3f5684549eea0de6ce
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2018-01-11 10:34:51 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2018-01-11 10:35:42 +0000

    x11-libs/gtkmathview: Fix building with GCC 7
    
    Closes: https://bugs.gentoo.org/639448
    Package-Manager: Portage-2.3.19, Repoman-2.3.6

 .../gtkmathview/files/gtkmathview-0.8.0-gcc7.patch | 22 ++++++++++++++++++++++
 x11-libs/gtkmathview/gtkmathview-0.8.0-r3.ebuild   |  4 +++-
 2 files changed, 25 insertions(+), 1 deletion(-)