View previous topic :: View next topic |
Author |
Message |
Andry77 Tux's lil' helper
Joined: 03 Mar 2006 Posts: 77
|
Posted: Tue Nov 21, 2017 10:14 am Post subject: [SOLVED] gcc 7.2 vdr compile error |
|
|
Code: | /usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/include/g++-v7/bits/std_abs.h:74:3: note: candidate: constexpr float std::abs(float)
abs(float __x)
^~~
/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/include/g++-v7/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/7.2.0/include/g++-v7/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/7.2.0/include/g++-v7/bits/std_abs.h:102:3: note: candidate: constexpr __float128 std::abs(__float128)
abs(__float128 __x)
^~~
x86_64-pc-linux-gnu-g++ -march=sandybridge -O2 -pipe -fPIC -c -DCONFDIR=\"/etc/vdr\" -DUSE_PLUGINMISSING -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DLIRC_DEVICE=\"/var/run/lirc/lircd\" -DVIDEODIR=\"/var/vdr/video\" -DCONFDIR=\"/etc/vdr\" -DARGSDIR=\"/etc/vdr/conf.d\" -DCACHEDIR=\"/var/cache/vdr\" -DRESDIR=\"/usr/share/vdr\" -DPLUGINDIR=\"/usr/lib64/vdr/plugins\" -DLOCDIR=\"/usr/share/locale\" -I/usr/include/freetype2 -I/usr/include -I/usr/include -o dvbplayer.o dvbplayer.c
make: *** [Makefile:132: dvbdevice.o] Error 1
make: *** Waiting for unfinished jobs....
* ERROR: media-video/vdr-2.2.0-r1::gentoo failed (compile phase):
* emake failed
*
* If you need support, post the output of `emerge --info '=media-video/vdr-2.2.0-r1::gentoo'`,
* the complete build log and the output of `emerge -pqv '=media-video/vdr-2.2.0-r1::gentoo'`.
* The complete build log is located at '/var/tmp/portage/media-video/vdr-2.2.0-r1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/media-video/vdr-2.2.0-r1/temp/environment'.
* Working directory: '/var/tmp/portage/media-video/vdr-2.2.0-r1/work/vdr-2.2.0'
* S: '/var/tmp/portage/media-video/vdr-2.2.0-r1/work/vdr-2.2.0'
>>> Failed to emerge media-video/vdr-2.2.0-r1, Log file:
>>> '/var/tmp/portage/media-video/vdr-2.2.0-r1/temp/build.log'
* Messages for package media-video/vdr-2.2.0-r1:
* ERROR: media-video/vdr-2.2.0-r1::gentoo failed (compile phase):
* emake failed
*
* If you need support, post the output of `emerge --info '=media-video/vdr-2.2.0-r1::gentoo'`,
* the complete build log and the output of `emerge -pqv '=media-video/vdr-2.2.0-r1::gentoo'`.
* The complete build log is located at '/var/tmp/portage/media-video/vdr-2.2.0-r1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/media-video/vdr-2.2.0-r1/temp/environment'.
* Working directory: '/var/tmp/portage/media-video/vdr-2.2.0-r1/work/vdr-2.2.0'
* S: '/var/tmp/portage/media-video/vdr-2.2.0-r1/work/vdr-2.2.0'
|
Code: | ~ # gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/7.2.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-7.2.0/work/gcc-7.2.0/configure --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/7.2.0 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/7.2.0 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/7.2.0/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/7.2.0/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/include/g++-v7 --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/7.2.0/python --enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --enable-checking=release --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 7.2.0 p1.1' --disable-esp --enable-libstdcxx-time --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-multilib --with-multilib-list=m32,m64 --disable-altivec --disable-fixed-point --enable-targets=all --disable-libgcj --enable-libgomp --disable-libmudflap --disable-libssp --disable-libcilkrts --disable-libmpx --enable-vtable-verify --enable-libvtv --enable-lto --without-isl --enable-libsanitizer --disable-default-pie --enable-default-ssp
Thread model: posix
gcc version 7.2.0 (Gentoo 7.2.0 p1.1) |
[Moderator edit: added [code] tags to preserve output layout. -Hu]
Last edited by Andry77 on Tue Nov 21, 2017 11:26 am; edited 1 time in total |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31288 Location: here
|
Posted: Tue Nov 21, 2017 10:19 am Post subject: |
|
|
You can post full build.log with wgetpaste, this chunk of output not report the error _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
Andry77 Tux's lil' helper
Joined: 03 Mar 2006 Posts: 77
|
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31288 Location: here
|
Posted: Tue Nov 21, 2017 10:26 am Post subject: |
|
|
Try patch proposed here _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
Andry77 Tux's lil' helper
Joined: 03 Mar 2006 Posts: 77
|
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31288 Location: here
|
Posted: Tue Nov 21, 2017 10:41 am Post subject: |
|
|
How you applied patch? In your output not seems applied any user patch _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
Andry77 Tux's lil' helper
Joined: 03 Mar 2006 Posts: 77
|
Posted: Tue Nov 21, 2017 10:50 am Post subject: |
|
|
fedeliallalinea wrote: | How you applied patch? In your output not seems applied any user patch |
I added in root portage patch file.
Sorry.
My english is no good.
I tried as you said (user patch GCC7.patch) - same thing.
https://paste.pound-python.org/show/ZRK3tYrMPPyangj2dyHU/ |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31288 Location: here
|
Posted: Tue Nov 21, 2017 11:02 am Post subject: |
|
|
Ok the correct patches for compile vdr with gcc7 are here (download attachment.bin) _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
Andry77 Tux's lil' helper
Joined: 03 Mar 2006 Posts: 77
|
Posted: Tue Nov 21, 2017 11:17 am Post subject: |
|
|
fedeliallalinea wrote: | Ok the correct patches for compile vdr with gcc7 are here (download attachment.bin) |
It works but vdr-2.3.2.
Version vdr-2.3.3 patch will not be required.
Thank you very much and regards. |
|
Back to top |
|
|
|