Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 548322

Summary: media-tv/nvtv-0.4.7-r1 fails to compile with gcc-5.1
Product: Gentoo Linux Reporter: Martin Väth <martin>
Component: [OLD] GCC PortingAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED FIXED    
Severity: normal CC: media-tv
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 536984    
Attachments: build log
build log
build log

Description Martin Väth 2015-05-01 10:45:49 UTC
media-tv/nvtv-0.4.7-r1 fails to compile with gcc-5
Apparently, the option -std=gnu90 must be specified for compilation
Since nvtv ignores CFLAGS (bug 240836), a simple (unclean) fix is to use
CC='gcc -std=gnu90'
Comment 1 Martin Väth 2015-05-03 21:17:15 UTC
One gets linking errors of the type

/var/tmp/portage/media-tv/nvtv-0.4.7-r1/work/nvtv-0.4.7/src/tv_nv.c:581: undefined reference to `unlockCrtNv'
(and many other undefined references)

The reason is that the code looks like

src/tv_nv.c:inline void 
src/tv_nv.c:unlockCrtNv (NVPtr pNv, int head)

which is OK for C90, but for new C dialects, this will inline the function and not export it.
Comment 2 Martin Väth 2015-05-04 09:33:44 UTC
Created attachment 402600 [details]
build log
Comment 3 Martin Väth 2015-05-04 09:41:51 UTC
Created attachment 402602 [details]
build log

Sorry, previous log was wrong (it was already with modified CC)
Comment 4 Martin Väth 2015-05-04 09:58:06 UTC
Created attachment 402608 [details]
build log

Wrong again. I am doing this remotely over a bad connection, and moved the wrong file before the upload. Now, finally, it should be the correct log - hopefully ;)
Comment 5 Marco Ziebell 2016-09-11 16:15:36 UTC
media-tv/nvtv-0.4.7-r3 compiles for me with gcc-5.4.0



Portage 2.2.28 (python 2.7.10-final-0, default/linux/amd64/13.0, gcc-5.4.0, glibc-2.22-r4, 4.6.5-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.6.5-gentoo-x86_64-AMD_A6-4400M_APU_with_Radeon-tm-_HD_Graphics-with-gentoo-2.2
KiB Mem:    15809020 total,   5904952 free
KiB Swap:    3583996 total,   3583996 free
Timestamp of repository gentoo: Sun, 11 Sep 2016 14:45:01 +0000
sh dash 0.5.8.2
ld GNU gold (Gentoo 2.25.1 p1.1 2.25.1) 1.11
ccache version 3.2.4 [disabled]
app-shells/bash:          4.3_p42-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.22.2::gentoo
dev-lang/python:          2.7.10-r1::gentoo, 3.4.3-r1::gentoo
dev-util/ccache:          3.2.4::gentoo
dev-util/cmake:           3.5.2-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.21.3::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            5.3.0::gentoo, 5.4.0::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r4::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.europe.gentoo.org/gentoo-portage
    priority: -1000

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mtune=native -pipe -w -g0 -O2 -fdata-sections -ffunction-sections -fdevirtualize-at-ltrans -fomit-frame-pointer -ftree-vectorize -fno-aggressive-loop-optimizations -funswitch-loops -fgcse-sm -fgcse-las -fgcse-after-reload -fopenmp-simd -ftree-partial-pre -fbranch-target-load-optimize -finline-functions -funroll-loops -mvzeroupper -minline-all-stringops -malign-data=cacheline -maccumulate-outgoing-args --param prefetch-latency=600 "
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -mtune=native -pipe -w -g0 -O2 -fdata-sections -ffunction-sections -fdevirtualize-at-ltrans -fomit-frame-pointer -ftree-vectorize -fno-aggressive-loop-optimizations -funswitch-loops -fgcse-sm -fgcse-las -fgcse-after-reload -fopenmp-simd -ftree-partial-pre -fbranch-target-load-optimize -finline-functions -funroll-loops -mvzeroupper -minline-all-stringops -malign-data=cacheline -maccumulate-outgoing-args --param prefetch-latency=600 "
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--icf=all -Wl,--as-needed -Wl,--hash-style=gnu -march=native -mtune=native -pipe -w -g0 -O2 -fdata-sections -ffunction-sections -fdevirtualize-at-ltrans -fomit-frame-pointer -ftree-vectorize -fno-aggressive-loop-optimizations -funswitch-loops -fgcse-sm -fgcse-las -fgcse-after-reload -fopenmp-simd -ftree-partial-pre -fbranch-target-load-optimize -finline-functions -funroll-loops -mvzeroupper -minline-all-stringops -malign-data=cacheline -maccumulate-outgoing-args --param prefetch-latency=600 "
MAKEOPTS="-j2 V=0"
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="X acl alsa amd64 branding gpl hdaps ipv6 nls nptl openmp pic seccomp ssl threads truetype unicode vim-syntax xattr xcb" ABI_X86="64" CPU_FLAGS_X86="aes avx fma3 fma4 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 xop" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" L10N="de de_DE en en_GB en_US" LIBREOFFICE_EXTENSIONS="presenter-console pdfimport presenter-minimizer" LINGUAS="de de_DE en en_GB en_US" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20" USERLAND="GNU" VIDEO_CARDS="radeon r600" XFCE_PLUGINS="trash clock battery power"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

media-tv/nvtv-0.4.7-r3::gentoo was built with the following:
USE="X gtk" ABI_X86="64"
Comment 6 Marco Ziebell 2016-09-11 16:34:11 UTC
=media-tv/nvtv-0.4.7-r3 compiles for me with gcc-5.4.0




Portage 2.2.28 (python 2.7.10-final-0, default/linux/amd64/13.0, gcc-5.4.0, glibc-2.22-r4, 4.6.5-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.6.5-gentoo-x86_64-AMD_A6-4400M_APU_with_Radeon-tm-_HD_Graphics-with-gentoo-2.2
KiB Mem:    15809020 total,   6426200 free
KiB Swap:    3583996 total,   3583996 free
Timestamp of repository gentoo: Sun, 11 Sep 2016 14:45:01 +0000
sh dash 0.5.8.2
ld GNU gold (Gentoo 2.25.1 p1.1 2.25.1) 1.11
ccache version 3.2.4 [disabled]
app-shells/bash:          4.3_p42-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.22.2::gentoo
dev-lang/python:          2.7.10-r1::gentoo, 3.4.3-r1::gentoo
dev-util/ccache:          3.2.4::gentoo
dev-util/cmake:           3.5.2-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.21.3::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            5.3.0::gentoo, 5.4.0::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r4::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.europe.gentoo.org/gentoo-portage
    priority: -1000

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mtune=native -pipe -std=gnu89 -w -g0 -O2 -flto=2 -fuse-linker-plugin -ffat-lto-objects --param lto-partitions=1 -flto-partition=none -fdata-sections -ffunction-sections -fdevirtualize-at-ltrans -fomit-frame-pointer -ftree-vectorize -fno-aggressive-loop-optimizations -funswitch-loops -fgcse-sm -fgcse-las -fgcse-after-reload -fopenmp-simd -ftree-partial-pre -fbranch-target-load-optimize -finline-functions -funroll-loops -mvzeroupper -minline-all-stringops -malign-data=cacheline -maccumulate-outgoing-args --param prefetch-latency=600 -mtls-dialect=gnu2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -mtune=native -pipe -std=gnu89 -w -g0 -O2 -flto=2 -fuse-linker-plugin -ffat-lto-objects --param lto-partitions=1 -flto-partition=none -fdata-sections -ffunction-sections -fdevirtualize-at-ltrans -fomit-frame-pointer -ftree-vectorize -fno-aggressive-loop-optimizations -funswitch-loops -fgcse-sm -fgcse-las -fgcse-after-reload -fopenmp-simd -ftree-partial-pre -fbranch-target-load-optimize -finline-functions -funroll-loops -mvzeroupper -minline-all-stringops -malign-data=cacheline -maccumulate-outgoing-args --param prefetch-latency=600 -mtls-dialect=gnu2"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs cgroup collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--icf=all -Wl,--as-needed -Wl,--hash-style=gnu -march=native -mtune=native -pipe -std=gnu89 -w -g0 -O2 -flto=2 -fuse-linker-plugin -ffat-lto-objects --param lto-partitions=1 -flto-partition=none -fdata-sections -ffunction-sections -fdevirtualize-at-ltrans -fomit-frame-pointer -ftree-vectorize -fno-aggressive-loop-optimizations -funswitch-loops -fgcse-sm -fgcse-las -fgcse-after-reload -fopenmp-simd -ftree-partial-pre -fbranch-target-load-optimize -finline-functions -funroll-loops -mvzeroupper -minline-all-stringops -malign-data=cacheline -maccumulate-outgoing-args --param prefetch-latency=600 -mtls-dialect=gnu2"
MAKEOPTS="-j2 V=1"
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="X acl alsa amd64 branding gpl hdaps ipv6 nls nptl openmp pic seccomp ssl threads truetype unicode vim-syntax xattr xcb" ABI_X86="64" CPU_FLAGS_X86="aes avx fma3 fma4 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 xop" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" L10N="de de_DE en en_GB en_US" LIBREOFFICE_EXTENSIONS="presenter-console pdfimport presenter-minimizer" LINGUAS="de de_DE en en_GB en_US" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20" USERLAND="GNU" VIDEO_CARDS="radeon r600" XFCE_PLUGINS="trash clock battery power"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

media-tv/nvtv-0.4.7-r3::gentoo was built with the following:
USE="X gtk" ABI_X86="64"
CFLAGS="-march=native -mtune=native -pipe -w -g0 -O2 -fdata-sections -ffunction-sections -fdevirtualize-at-ltrans -fomit-frame-pointer -ftree-vectorize -fno-aggressive-loop-optimizations -funswitch-loops -fgcse-sm -fgcse-las -fgcse-after-reload -fopenmp-simd -ftree-partial-pre -fbranch-target-load-optimize -finline-functions -funroll-loops -mvzeroupper -minline-all-stringops -malign-data=cacheline -maccumulate-outgoing-args --param prefetch-latency=600"
CXXFLAGS="-march=native -mtune=native -pipe -w -g0 -O2 -fdata-sections -ffunction-sections -fdevirtualize-at-ltrans -fomit-frame-pointer -ftree-vectorize -fno-aggressive-loop-optimizations -funswitch-loops -fgcse-sm -fgcse-las -fgcse-after-reload -fopenmp-simd -ftree-partial-pre -fbranch-target-load-optimize -finline-functions -funroll-loops -mvzeroupper -minline-all-stringops -malign-data=cacheline -maccumulate-outgoing-args --param prefetch-latency=600"
LDFLAGS="-Wl,-O1 -Wl,--icf=all -Wl,--as-needed -Wl,--hash-style=gnu -march=native -mtune=native -pipe -w -g0 -O2 -fdata-sections -ffunction-sections -fdevirtualize-at-ltrans -fomit-frame-pointer -ftree-vectorize -fno-aggressive-loop-optimizations -funswitch-loops -fgcse-sm -fgcse-las -fgcse-after-reload -fopenmp-simd -ftree-partial-pre -fbranch-target-load-optimize -finline-functions -funroll-loops -mvzeroupper -minline-all-stringops -malign-data=cacheline -maccumulate-outgoing-args --param prefetch-latency=600"
Comment 7 Martin Väth 2016-09-11 18:52:11 UTC
I can confirm that media-tv/nvtv-0.4.7-r3 works.
It also works with gcc-6.2.0.

Due to the "non-maintiner" assignee, I close this bug as "fixed".