Opened 7 years ago

Closed 7 years ago

#55067 closed defect (fixed)

kate @4.14.3: error: call to 'abs' is ambiguous

Reported by: riccardobrasca Owned by: NicosPavlov
Priority: Normal Milestone:
Component: ports Version: 2.4.2
Keywords: highsierra Cc:
Port: kate

Description

I get the following error building kate after upgrading to High Sierra (and following the migration guide)

--->  Fetching archive for kate
--->  Attempting to fetch kate-4.14.3_4.darwin_17.x86_64.tbz2 from https://packages.macports.org/kate
--->  Attempting to fetch kate-4.14.3_4.darwin_17.x86_64.tbz2 from http://lil.fr.packages.macports.org/kate
--->  Attempting to fetch kate-4.14.3_4.darwin_17.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/kate
--->  Fetching distfiles for kate
--->  Verifying checksums for kate
--->  Extracting kate
--->  Applying patches to kate
--->  Configuring kate
--->  Building kate
Error: Failed to build kate: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_kde_kate/kate/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.

Attachments (3)

main.log (2.2 MB) - added by riccardobrasca 7 years ago.
patch-kateviewhelpers.diff (657 bytes) - added by NicosPavlov 7 years ago.
Portfile.diff (747 bytes) - added by NicosPavlov 7 years ago.

Change History (11)

Changed 7 years ago by riccardobrasca

Attachment: main.log added

comment:1 Changed 7 years ago by mf2k (Frank Schima)

Cc: NicosPavlov removed
Owner: set to NicosPavlov
Status: newassigned

comment:2 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: highsierra added
Summary: Building kate failedkate @4.14.3: error: call to 'abs' is ambiguous

The log says:

:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_kde_kate/kate/work/kate-4.14.3/part/view/kateviewhelpers.cpp:1706:24: error: call to 'abs' is ambiguous
:info:build             int diff = abs(realLine - currentLine);
:info:build                        ^~~
:info:build /usr/include/stdlib.h:137:6: note: candidate function
:info:build int      abs(int) __pure2;
:info:build          ^
:info:build /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/stdlib.h:115:44: note: candidate function
:info:build inline _LIBCPP_INLINE_VISIBILITY long      abs(     long __x) _NOEXCEPT {return  labs(__x);}
:info:build                                            ^
:info:build /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/stdlib.h:117:44: note: candidate function
:info:build inline _LIBCPP_INLINE_VISIBILITY long long abs(long long __x) _NOEXCEPT {return llabs(__x);}
:info:build                                            ^
:info:build /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/math.h:693:1: note: candidate function
:info:build abs(float __lcpp_x) _NOEXCEPT {return ::fabsf(__lcpp_x);}
:info:build ^
:info:build /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/math.h:697:1: note: candidate function
:info:build abs(double __lcpp_x) _NOEXCEPT {return ::fabs(__lcpp_x);}
:info:build ^
:info:build /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/math.h:701:1: note: candidate function
:info:build abs(long double __lcpp_x) _NOEXCEPT {return ::fabsl(__lcpp_x);}
:info:build ^
:info:build 2 warnings and 1 error generated.

We've seen another occurrence of this call to 'abs' is ambiguous with another port recently...

Changed 7 years ago by NicosPavlov

Attachment: patch-kateviewhelpers.diff added

Changed 7 years ago by NicosPavlov

Attachment: Portfile.diff added

comment:3 Changed 7 years ago by NicosPavlov

This patch should take care of the problem, but would it be possible to confirm this? I have not yet transitioned to High Sierra myself.

comment:4 Changed 7 years ago by riccardobrasca

I can do it, but I don't know how to test it. Can you explain what should I do?

comment:5 Changed 7 years ago by mf2k (Frank Schima)

This wiki link should cover it.

comment:6 Changed 7 years ago by riccardobrasca

It works! Thank you very much!

comment:7 Changed 7 years ago by NicosPavlov

Thanks for the feedback.

comment:8 Changed 7 years ago by NicosPavlov

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.