Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] gcc 7.2 vdr compile error
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Andry77
n00b
n00b


Joined: 03 Mar 2006
Posts: 74

PostPosted: Tue Nov 21, 2017 10:14 am    Post subject: [SOLVED] gcc 7.2 vdr compile error Reply with quote

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
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 16878
Location: here

PostPosted: Tue Nov 21, 2017 10:19 am    Post subject: Reply with quote

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
View user's profile Send private message
Andry77
n00b
n00b


Joined: 03 Mar 2006
Posts: 74

PostPosted: Tue Nov 21, 2017 10:26 am    Post subject: Reply with quote

https://paste.pound-python.org/show/pDl5vkAs8GANdCd0NEIA/

Last edited by Andry77 on Tue Nov 21, 2017 10:30 am; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 16878
Location: here

PostPosted: Tue Nov 21, 2017 10:26 am    Post subject: Reply with quote

Try patch proposed here
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Andry77
n00b
n00b


Joined: 03 Mar 2006
Posts: 74

PostPosted: Tue Nov 21, 2017 10:36 am    Post subject: Reply with quote

fedeliallalinea wrote:
Try patch proposed here


no works

https://paste.pound-python.org/show/To9kGEbnEieGUJdyPDrf/
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 16878
Location: here

PostPosted: Tue Nov 21, 2017 10:41 am    Post subject: Reply with quote

How you applied patch? In your output not seems applied any user patch
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Andry77
n00b
n00b


Joined: 03 Mar 2006
Posts: 74

PostPosted: Tue Nov 21, 2017 10:50 am    Post subject: Reply with quote

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
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 16878
Location: here

PostPosted: Tue Nov 21, 2017 11:02 am    Post subject: Reply with quote

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
View user's profile Send private message
Andry77
n00b
n00b


Joined: 03 Mar 2006
Posts: 74

PostPosted: Tue Nov 21, 2017 11:17 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum