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

Bug 540822

Summary: x11-drivers/xf86-video-opentegra-0.7.0 fails to build: error: implicit declaration of function 'ARRAY_SIZE' [-Werror=implicit-function-declaration]
Product: Gentoo Linux Reporter: Markus Meier <maekke>
Component: Current packagesAssignee: Gentoo X packagers <x11>
Status: RESOLVED FIXED    
Severity: normal CC: esigra
Priority: Normal    
Version: unspecified   
Hardware: ARM   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 530652    
Attachments: x11-drivers:xf86-video-opentegra-0.7.0:20150220-015147.log

Description Markus Meier gentoo-dev 2015-02-20 16:24:30 UTC
Created attachment 397068 [details]
x11-drivers:xf86-video-opentegra-0.7.0:20150220-015147.log

* Package:    x11-drivers/xf86-video-opentegra-0.7.0
 * Repository: gentoo
 * Maintainer: x11@gentoo.org
 * USE:        arm elibc_glibc kernel_linux userland_GNU
 * FEATURES:   preserve-libs sandbox test userpriv usersandbox

libtool: compile:  armv5tel-softfloat-linux-gnueabi-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I/var/tmp/portage/x11-drivers/xf86-video-opentegra-0.7.0/work/xf86-video-opentegra-0.7.0/src -I.. -fvisibility=hidden -I/usr/include/xorg -I/usr/include/pixman-1 -I/usr/include/libdrm 
-Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wred
undant-decls -Wlogical-op -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=poi
nter-to-int-cast -fno-strict-aliasing -O2 -march=armv5te -pipe -c /var/tmp/portage/x11-drivers/xf86-video-opentegra-0.7.0/work/xf86-video-opentegra-0.7.0/src/drmmode_display.c  -fPIC -DPIC -o .libs/drmmode_display.o
In file included from /usr/include/xorg/xf86Crtc.h:27:0,
                 from /var/tmp/portage/x11-drivers/xf86-video-opentegra-0.7.0/work/xf86-video-opentegra-0.7.0/src/drmmode_display.c:43:
/usr/include/xorg/randrstr.h:586:1: warning: redundant redeclaration of 'RRTransformCompute' [-Wredundant-decls]

<snip>

/var/tmp/portage/x11-drivers/xf86-video-opentegra-0.7.0/work/xf86-video-opentegra-0.7.0/src/drmmode_display.c: In function 'drmmode_output_init':
/var/tmp/portage/x11-drivers/xf86-video-opentegra-0.7.0/work/xf86-video-opentegra-0.7.0/src/drmmode_display.c:906:5: error: implicit declaration of function 'ARRAY_SIZE' [-Werror=implicit-function-declaration]
     if (koutput->connector_type >= ARRAY_SIZE(output_names))
     ^
/var/tmp/portage/x11-drivers/xf86-video-opentegra-0.7.0/work/xf86-video-opentegra-0.7.0/src/drmmode_display.c:906:5: warning: nested extern declaration of 'ARRAY_SIZE' [-Wnested-externs]
/var/tmp/portage/x11-drivers/xf86-video-opentegra-0.7.0/work/xf86-video-opentegra-0.7.0/src/driver.c: In function 'TegraProbe':
/var/tmp/portage/x11-drivers/xf86-video-opentegra-0.7.0/work/xf86-video-opentegra-0.7.0/src/driver.c:843:30: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]
             scrn->driverName = "opentegra";
                              ^
/var/tmp/portage/x11-drivers/xf86-video-opentegra-0.7.0/work/xf86-video-opentegra-0.7.0/src/driver.c:844:24: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]
             scrn->name = "opentegra";
                        ^
/var/tmp/portage/x11-drivers/xf86-video-opentegra-0.7.0/work/xf86-video-opentegra-0.7.0/src/driver.c: At top level:
/var/tmp/portage/x11-drivers/xf86-video-opentegra-0.7.0/work/xf86-video-opentegra-0.7.0/src/driver.c:867:5: warning: initialization discards 'const' qualifier from pointer target type [enabled by default]
     "opentegra",
     ^
cc1: some warnings being treated as errors
Makefile:482: recipe for target 'drmmode_display.lo' failed
make[2]: *** [drmmode_display.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/var/tmp/portage/x11-drivers/xf86-video-opentegra-0.7.0/work/xf86-video-opentegra-0.7.0_build/src'
Makefile:517: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/x11-drivers/xf86-video-opentegra-0.7.0/work/xf86-video-opentegra-0.7.0_build'
Makefile:427: recipe for target 'all' failed
make: *** [all] Error 2
 * ERROR: x11-drivers/xf86-video-opentegra-0.7.0::gentoo failed (compile phase):
 *   emake failed

Portage 2.2.14 (python 2.7.9-final-0, default/linux/arm/13.0/armv5te/desktop, gcc-4.8.3, glibc-2.19-r1, 3.10.25-gentoo armv5tel)
=================================================================
System uname: Linux-3.10.25-gentoo-armv5tel-with-gentoo-2.2
KiB Mem:      513244 total,    218456 free
KiB Swap:    1535996 total,   1503948 free
Timestamp of tree: Sun, 15 Feb 2015 19:00:02 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
ccache version 3.1.9 [disabled]
app-shells/bash:          4.2_p53
dev-lang/perl:            5.20.1-r4
dev-lang/python:          2.7.9-r1, 3.2.5-r6, 3.3.5-r1, 3.4.1
dev-util/ccache:          3.1.9-r4
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.9
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.4_p6-r2, 1.5-r2, 1.6.3-r2, 1.7.9-r3, 1.8.5-r5, 1.9.6-r4, 1.10.3-r1, 1.11.6-r1, 1.12.6, 1.13.4
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.4
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.16 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo
ACCEPT_KEYWORDS="arm"
ACCEPT_LICENSE="* -@EULA"
CBUILD="armv5tel-softfloat-linux-gnueabi"
CFLAGS="-O2 -march=armv5te -pipe"
CHOST="armv5tel-softfloat-linux-gnueabi"
CONFIG_PROTECT="/etc /usr/lib/python2.7/site-packages/buildbot/status/web /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /var/bind /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/php/cli-php5.5/ext-active/ /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="-O2 -march=armv5te -pipe"
DISTDIR="/mnt/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n --jobs=2 --keep-going --with-bdeps=y --backtrack=3"
FCFLAGS="-O2 -pipe -march=armv5te"
FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict test test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe -march=armv5te"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://192.168.1.100/gentoo-portage"
USE="X a52 aac acl acpi alsa apache2 arm berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif glamor gpm gtk iconv jpeg kpathsea lcms ldap libav libnotify mad mng modules mp3 mp4 mpeg ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds qt3support qt4 readline sdl session spell ssl startup-notification svg tcpd test tiff truetype udev udisks unicode upower usb vorbis wxwidgets xcb xml xv xvid zlib" 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="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-2 php5-4 php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3 python3_4" RUBY_TARGETS="ruby19 ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="exynos fbdev omap omapfb dummy v4l" 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:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Chí-Thanh Christopher Nguyễn gentoo-dev 2015-02-23 08:39:52 UTC
What version of xorg-server are you building this package against?
Comment 2 Markus Meier gentoo-dev 2015-02-24 05:59:17 UTC
This seems to be an issue with x11-base/xorg-server-1.12.4-r4 as it builds fine with x11-base/xorg-server-1.16.4.
Comment 3 Chí-Thanh Christopher Nguyễn gentoo-dev 2015-03-09 14:55:52 UTC
+  09 Mar 2015; Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org>
+  xf86-video-opentegra-0.7.0.ebuild:
+  Raise minimum xorg-server dependency, bug #540822.