Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 673228 - media-video/vdr fails compile: dvbdevice.c:801:31: error: call of overloaded ‘abs(unsigned int&)’ is ambiguous
Summary: media-video/vdr fails compile: dvbdevice.c:801:31: error: call of overloaded ...
Status: RESOLVED DUPLICATE of bug 638348
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo VDR Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-16 06:25 UTC by Kent Fredric (IRC: kent\n) (RETIRED)
Modified: 2019-07-25 19:15 UTC (History)
1 user (show)

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


Attachments
vdr-2.0.6-r1:20181216-055856.log (vdr-2.0.6-r1:20181216-055856.log,13.41 KB, text/x-log)
2018-12-16 06:25 UTC, Kent Fredric (IRC: kent\n) (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2018-12-16 06:25:07 UTC
Created attachment 557896 [details]
vdr-2.0.6-r1:20181216-055856.log

I'm not using this, its just in my battery of things to test. Stabilization of 2.2.0-r3 ( working ) and cleaning of <=2.2.0-r1 would be satisfactory ( actually, I just want a tracker bug I can refer to until this problem is gone ). Additional user support is at your discretion.

dvbdevice.c: In member function ‘bool cDvbTuner::SetFrontend()’:
dvbdevice.c:801:31: error: call of overloaded ‘abs(unsigned int&)’ is ambiguous
      frequency = abs(frequency); // Allow for C-band, where the frequency is less than the LOF
                               ^
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include/g++-v8/cstdlib:75,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include/g++-v8/stdlib.h:36,
                 from config.h:15,
                 from channels.h:13,
                 from device.h:13,
                 from dvbdevice.h:15,
                 from dvbdevice.c:10:
/usr/include/stdlib.h:837:12: note: candidate: ‘int abs(int)’
 extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
            ^~~
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include/g++-v8/cstdlib:77,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include/g++-v8/stdlib.h:36,
                 from config.h:15,
                 from channels.h:13,
                 from device.h:13,
                 from dvbdevice.h:15,
                 from dvbdevice.c:10:
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include/g++-v8/bits/std_abs.h:102:3: note: candidate: ‘constexpr __float128 std::abs(__float128)’
   abs(__float128 __x)
   ^~~
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include/g++-v8/bits/std_abs.h:84:3: note: candidate: ‘constexpr __int128 std::abs(__int128)’
   abs(__GLIBCXX_TYPE_INT_N_0 __x) { return __x >= 0 ? __x : -__x; }
   ^~~
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include/g++-v8/bits/std_abs.h:78:3: note: candidate: ‘constexpr long double std::abs(long double)’
   abs(long double __x)
   ^~~
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include/g++-v8/bits/std_abs.h:74:3: note: candidate: ‘constexpr float std::abs(float)’
   abs(float __x)
   ^~~
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include/g++-v8/bits/std_abs.h:70:3: note: candidate: ‘constexpr double std::abs(double)’
   abs(double __x)
   ^~~
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include/g++-v8/bits/std_abs.h:61:3: note: candidate: ‘long long int std::abs(long long int)’
   abs(long long __x) { return __builtin_llabs (__x); }
   ^~~
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include/g++-v8/bits/std_abs.h:56:3: note: candidate: ‘long int std::abs(long int)’
   abs(long __i) { return __builtin_labs(__i); }
   ^~~
make: *** [Makefile:135: dvbdevice.o] Error 1

 * Package:    media-video/vdr-2.0.6-r1                                             
 * Repository: gentoo                                                                          
 * Maintainer: vdr@gentoo.org                                                                                                                                                                                                                                                        
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU                                                                                                                                                                                               
 * FEATURES:   ccache preserve-libs sandbox userpriv usersandbox       

Simplified Dep graph:

[ebuild  N     ] media-video/vdr-2.0.6-r1                                                                                                                                                                                                                                                          
[ebuild  N     ]  media-fonts/corefonts-1-r7
[ebuild  N     ]   app-arch/cabextract-1.9-r2
[ebuild  N     ]    dev-libs/libmspack-0.9.1_alpha-r1
[ebuild  N     ]  media-tv/gentoo-vdr-scripts-2.7.3
[ebuild  N     ]   app-admin/sudo-1.8.25_p1-r1  USE="nls pam sendmail"
[ebuild  N     ]   sys-process/wait_on_pid-0.0.2
[ebuild  N     ]  virtual/jpeg-62:62
[ebuild  N     ]   media-libs/libjpeg-turbo-1.5.3-r2
[ebuild  N     ]    dev-lang/nasm-2.13.01
[ebuild  N     ]  media-libs/fontconfig-2.13.0-r4:1.0
[ebuild  N     ]   app-eselect/eselect-fontconfig-1.1
[ebuild  N     ]   virtual/ttf-fonts-1-r1
[ebuild  N     ]   media-libs/freetype-2.9.1-r3:2  USE="adobe-cff bzip2 cleartype_hinting"
[ebuild  N     ]  virtual/linuxtv-dvb-headers-5.8

Portage 2.3.40 (python 2.7.15-final-0, default/linux/amd64/17.1/no-multilib, gcc-8.2.0, glibc-2.27-r6, 4.9.6-gentoo-r1 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.9.6-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E6750_@_2.66GHz-with-gentoo-2.6
KiB Mem:     2042732 total,    350644 free
KiB Swap:   18588764 total,  18536012 free
Head commit of repository gentoo: fffc3a0c279241dbe9e846ec4df5a813bf013ff9

sh bash 4.4_p12
ld GNU ld (Gentoo 2.30 p5) 2.30.0
ccache version 3.3.4 [enabled]
app-shells/bash:          4.4_p12::gentoo
dev-lang/perl:            5.28.0::gentoo
dev-lang/python:          2.7.15::gentoo, 3.6.5::gentoo
dev-util/ccache:          3.3.4-r1::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.38.3-r1::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.69-r4::gentoo
sys-devel/automake:       1.15.1-r2::gentoo
sys-devel/binutils:       2.30-r4::gentoo
sys-devel/gcc:            8.2.0-r5::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.27-r6::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: https://github.com/gentoo/gentoo.git
    priority: -1000

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mtune=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -mtune=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build y --jobs 3 --autounmask=n"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs binpkg-multi-instance ccache clean-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms split-elog split-log strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://127.0.0.1/ http://distfiles.gentoo.org"
LANG="en_NZ.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="acl amd64 berkdb bzip2 cli crypt cxx dri fortran gdbm iconv ipv6 libtirpc minimal ncurses nls nptl openmp pam pcre perl readline seccomp ssl tcpd unicode xattr zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="X86" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-1" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby23 ruby24" USERLAND="GNU" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Thomas Deutschmann (RETIRED) gentoo-dev 2019-07-18 14:01:13 UTC
Still happening with media-video/vdr-2.2.0-r1.
Comment 2 Andreas Sturmlechner gentoo-dev 2019-07-25 19:15:32 UTC

*** This bug has been marked as a duplicate of bug 638348 ***