Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 760576 - dev-libs/tvision-2.1.0_pre2-r4 - ../classes/tdesktop.cc:151:29: error: call of overloaded 'abs(unsigned int)' is ambiguous
Summary: dev-libs/tvision-2.1.0_pre2-r4 - ../classes/tdesktop.cc:151:29: error: call o...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: Normal normal
Assignee: Bernd
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2020-12-18 06:18 UTC by ernsteiswuerfel
Modified: 2021-06-15 14:42 UTC (History)
3 users (show)

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


Attachments
build.log (tvision-2.1.0_pre2-r4:20201218-060429.log,70.47 KB, text/plain)
2020-12-18 06:18 UTC, ernsteiswuerfel
Details
emerge --info (file_760576.txt,5.90 KB, text/plain)
2020-12-18 06:18 UTC, ernsteiswuerfel
Details
build.log (2.2.1.4, ppc) (tvision-2.2.1.4:20201219-142820.log,67.06 KB, text/plain)
2020-12-19 14:30 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2020-12-18 06:18:04 UTC
Created attachment 678661 [details]
build.log

[...]
g++  -I../include        -Os -mcpu=7450 -pipe  -c ../classes/tdesktop.cc -o obj/tdesktop.o
../classes/tdesktop.cc: In function 'unsigned int iSqr(unsigned int)':
../classes/tdesktop.cc:151:29: error: call of overloaded 'abs(unsigned int)' is ambiguous
  151 |     while( abs( res1 - res2 ) > 1 )
      |                             ^
In file included from /usr/lib/gcc/powerpc-unknown-linux-gnu/9.3.0/include/g++-v9/cstdlib:75,
                 from /usr/lib/gcc/powerpc-unknown-linux-gnu/9.3.0/include/g++-v9/stdlib.h:36,
                 from ../classes/tdesktop.cc:16:
/usr/include/stdlib.h:840:12: note: candidate: 'int abs(int)'
  840 | extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
      |            ^~~
In file included from /usr/lib/gcc/powerpc-unknown-linux-gnu/9.3.0/include/g++-v9/cstdlib:77,
                 from /usr/lib/gcc/powerpc-unknown-linux-gnu/9.3.0/include/g++-v9/stdlib.h:36,
                 from ../classes/tdesktop.cc:16:
/usr/lib/gcc/powerpc-unknown-linux-gnu/9.3.0/include/g++-v9/bits/std_abs.h:79:3: note: candidate: 'constexpr long double std::abs(long double)'
   79 |   abs(long double __x)
      |   ^~~
/usr/lib/gcc/powerpc-unknown-linux-gnu/9.3.0/include/g++-v9/bits/std_abs.h:75:3: note: candidate: 'constexpr float std::abs(float)'
   75 |   abs(float __x)
      |   ^~~
/usr/lib/gcc/powerpc-unknown-linux-gnu/9.3.0/include/g++-v9/bits/std_abs.h:71:3: note: candidate: 'constexpr double std::abs(double)'
   71 |   abs(double __x)
      |   ^~~
/usr/lib/gcc/powerpc-unknown-linux-gnu/9.3.0/include/g++-v9/bits/std_abs.h:61:3: note: candidate: 'long long int std::abs(long long int)'
   61 |   abs(long long __x) { return __builtin_llabs (__x); }
      |   ^~~
/usr/lib/gcc/powerpc-unknown-linux-gnu/9.3.0/include/g++-v9/bits/std_abs.h:56:3: note: candidate: 'long int std::abs(long int)'
   56 |   abs(long __i) { return __builtin_labs(__i); }
      |   ^~~
make[1]: *** [librhtv.umk:1134: obj/tdesktop.o] Error 1
make[1]: Leaving directory '/var/tmp/portage/dev-libs/tvision-2.1.0_pre2-r4/work/tvision/makes'
make: *** [Makefile:27: static-lib] Error 2
 * ERROR: dev-libs/tvision-2.1.0_pre2-r4::gentoo failed (compile phase):
Comment 1 ernsteiswuerfel archtester 2020-12-18 06:18:59 UTC
Created attachment 678664 [details]
emerge --info
Comment 2 Bernd 2020-12-19 07:56:52 UTC
Could you please try version 2.2.1.4? This looks like an issue we had before and was solved in the latest version, see bug #639492.

I'm thinking of stabilizing 2.2.1.4 and drop the old 2.1.0.
Comment 3 ernsteiswuerfel archtester 2020-12-19 14:30:42 UTC
Created attachment 678802 [details]
build.log (2.2.1.4, ppc)

Yes, 2.2.1.4 builds fine (again) on ppc.
Comment 4 Bernd 2020-12-19 14:58:36 UTC
(In reply to ernsteiswuerfel from comment #3)
> Yes, 2.2.1.4 builds fine (again) on ppc.

Thanks for testing. I'm going to look after the open linker related bugs for tvision and then stablereq the latest version and drop 2.1.0. Think that's a better solution than backporting the patch.
Comment 5 Larry the Git Cow gentoo-dev 2021-06-15 14:42:30 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4be13fee7a71000d8306f7b2035a779e4d814c91

commit 4be13fee7a71000d8306f7b2035a779e4d814c91
Author:     Bernd Waibel <waebbl-gentoo@posteo.net>
AuthorDate: 2021-06-14 11:02:46 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-06-15 14:39:57 +0000

    dev-libs/tvision: drop 2.1.0_pre2
    
    Cleanup old
    
    Closes: https://bugs.gentoo.org/760576
    Package-Manager: Portage-3.0.19, Repoman-3.0.3
    Signed-off-by: Bernd Waibel <waebbl-gentoo@posteo.net>
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-libs/tvision/Manifest                          |   1 -
 .../files/tvision-2.1.0_pre2-asneeded.patch        |  45 -------
 .../files/tvision-2.1.0_pre2-build-system.patch    |  30 -----
 .../tvision/files/tvision-2.1.0_pre2-flags.patch   |  11 --
 .../tvision/files/tvision-2.1.0_pre2-gcc41.patch   |  11 --
 .../tvision/files/tvision-2.1.0_pre2-gcc44.patch   |  21 ---
 .../tvision/files/tvision-2.1.0_pre2-gcc6.patch    | 147 ---------------------
 .../files/tvision-2.1.0_pre2-ldconfig.patch        |  15 ---
 .../tvision/files/tvision-2.1.0_pre2-outb.patch    |  41 ------
 .../files/tvision-2.1.0_pre2-perl-INC.patch        |  30 -----
 .../files/tvision-2.1.0_pre2-underflow.patch       |  14 --
 dev-libs/tvision/tvision-2.1.0_pre2-r4.ebuild      |  53 --------
 12 files changed, 419 deletions(-)