Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#49402 - [gcc] broken build of wxgtk, please consider downgrade to 5.3

Attached to Project: Arch Linux
Opened by Bronek Kozicki (bronek) - Thursday, 19 May 2016, 20:53 GMT
Last edited by Antonio Rojas (arojas) - Thursday, 19 May 2016, 21:17 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: broken build of wxgtk package, after upgrade to gcc 6.1.1

Additional info:
* wxgtk current version 3.0.2
* gcc 6.1.1.

Build error:
./src/stc/scintilla/src/Editor.cxx: In function 'bool Close(Point, Point)':
./src/stc/scintilla/src/Editor.cxx:5844:23: error: call of overloaded 'abs(XYPOSITION)' is ambiguous
if (abs(pt1.x - pt2.x) > 3)
^
In file included from /usr/include/c++/6.1.1/cstdlib:75:0,
from /usr/include/c++/6.1.1/stdlib.h:36,
from ./src/stc/scintilla/src/Editor.cxx:8:
/usr/include/stdlib.h:774:12: note: candidate: int abs(int)
extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
^~~
In file included from /usr/include/c++/6.1.1/stdlib.h:36:0,
from ./src/stc/scintilla/src/Editor.cxx:8:
/usr/include/c++/6.1.1/cstdlib:185:3: note: candidate: __int128 std::abs(__int128)
abs(__GLIBCXX_TYPE_INT_N_0 __x) { return __x >= 0 ? __x : -__x; }
^~~
/usr/include/c++/6.1.1/cstdlib:180:3: note: candidate: long long int std::abs(long long int)
abs(long long __x) { return __builtin_llabs (__x); }
^~~
/usr/include/c++/6.1.1/cstdlib:172:3: note: candidate: long int std::abs(long int)
abs(long __i) { return __builtin_labs(__i); }
^~~

Steps to reproduce:
build package wxgtk , e.g. using makepkg in a clean system
This task depends upon

Closed by  Antonio Rojas (arojas)
Thursday, 19 May 2016, 21:17 GMT
Reason for closing:  Fixed
Comment by Allan McRae (Allan) - Thursday, 19 May 2016, 21:04 GMT
The solution is to fix wxgtk,

Loading...