Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 529318 - =x11-drivers/xf86-video-siliconmotion-1.7.7: fails to build
Summary: =x11-drivers/xf86-video-siliconmotion-1.7.7: fails to build
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
Depends on: 416069
Blocks: werror 530652
  Show dependency tree
Reported: 2014-11-15 12:36 UTC by Anthony Basile
Modified: 2015-01-19 11:39 UTC (History)
2 users (show)

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

build log of failure (build.log,59.54 KB, text/plain)
2014-11-15 12:39 UTC, Anthony Basile

Note You need to log in before you can comment on or make changes to this bug.
Description Anthony Basile gentoo-dev 2014-11-15 12:36:38 UTC
I'm getting build failures on several systems for both 1.7.7 and 1.7.7-r1

yellow temp # emerge --info =x11-drivers/xf86-video-siliconmotion-1.7.7
Portage 2.2.8-r2 (hardened/linux/amd64, gcc-4.8.3, glibc-2.19-r1, 3.11.8-hardened x86_64)
                        System Settings
System uname: Linux-3.11.8-hardened-x86_64-AMD_Phenom-tm-_II_X6_1100T_Processor-with-gentoo-2.2
KiB Mem:    15911980 total,    616024 free
KiB Swap:    2104508 total,    624848 free
Timestamp of tree: Sat, 15 Nov 2014 03:35:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.2_p53
dev-java/java-config:     2.2.0
dev-lang/perl:            5.18.2-r2
dev-lang/python:          2.7.7, 3.2.5-r6, 3.3.5-r1, 3.4.1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.10.3, 1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.7.3-r1, 4.8.3, 4.9.2
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.16 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo
ACCEPT_LICENSE="* -@EULA dlj-1.1 LOKI-EULA AdobeFlash-10.1 PUEL Oracle-BCLA-JavaSE AdobeFlash-10.3 AdobeFlash-11.x"
CFLAGS="-O3 -pipe -fstack-check"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.0/conf /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/php/apache2-php5.5/ext-active/ /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/php/cli-php5.6/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="-O3 -pipe -fstack-check"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms sign strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
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"
USE="3dnow 3dnowext X a-like-o a52 aac aacplus aalib acl acpi admin adns ads aff alisp alsa amd64 amr apache2 apm apng autoipd avahi avx bash-completion bdf berkdb bidi bittorrent bl bluray bolddiag bookmarks bs2b btrfs bzip2 cairo caps cdda cddb cdio cdparanoia cdr cgi cgi-lua cgi-php chm cli clisp collab consolekit coverpage cpudetection cracklib crc crypt csharp ctype cups curl cxx dbus dconf device-mapper dga dirac directfb djbfft dmraid doc doc-pdf dot dri dvb dvd dvdr easy-bindings encode esd ewf exif expat extensions extra-ciphers extras faac fam fbcon fbcondecor ffmpeg fftw fits flac fontconfig fortran frei0r ftp galago gbm gd gdbm gdu gearman geoip ggi gif gles2 gmp gnutls grammar graphviz gs gsm gstreamer gtk gtk3 gudev hardened hash httpd hwdb iconv icu imap indi intl ipv6 jadetex java jfs jpeg jpeg2k justify kde kdrive keyscrub ladspa latex lcms ldap libadns libass libcaca libevent libkms libmpeg2 libnotify lua lzo mad math mbox md5 md5sum mdadm mdnsresponder-compat memcache minizip mmx mmxext mng modules mp3 mpeg multilib mysql mysqli nat-pmp nautilus ncurses networking nfs nls nova nptl ntfs ntfsprogs ogg openal opengl openmp openssl openxml opus oss ots pam pax_kernel pcap pcre pdf pdo perl php pic png pnm policykit ppds private-headers pulseaudio purple pvr python qt3support qt4 quote radio raw-font-data readline reiser4 reiserfs rrdtool rtmp ru-dv ru-i ru-k ruby samba schroedinger scripts sdl secure-delete server session sha smi sndfile soap sound speex spell sql sqlite sse sse2 ssl ssse3 static-libs svg swig sysfs systemtap tcl8 tcp-zebra tcpd tga theora thesaurus threads thunar tiff tk tls tokenizer tordns tracker truetype twitter udev udisks unicode upcall urandom utils v4l vaapi vdpau vorbis vpx webkit width winbind wmf wordperfect wxwidgets x264 xanim xattr xcb xinerama xml xmlrpc xmp xtpax xulrunner xv xvid xvmc zip zlib zoran" ABI_X86="64 32" 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="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" LINGUAS="en it fr" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="x86_64 alpha arm cris i386 lm32 m68k microblaze microblazeel mips mips64 mips64el mipsel ppc ppc64 ppcemb s390x sh4 sh4eb sparc sparc64 xtensa xtensaeb or32 unicore32" QEMU_USER_TARGETS="alpha arm armeb cris i386 m68k microblaze microblazeel mips mipsel ppc ppc64 ppc64abi32 s390x sh4 sh4eb sparc sparc32plus sparc64 unicore32 x86_64 or32" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="fbdev nouveau vesa intel radeon" XTABLES_ADDONS="account chaos condition delude dhcpmac fuzzy geoip iface ipmark ipp2p ipset ipv4options length2 logmark lscan pknock psd quota2 rawnat steal sysrq tarpit tee checksum echo gradm"

Reproducible: Always
Comment 1 Anthony Basile gentoo-dev 2014-11-15 12:39:30 UTC
Created attachment 389380 [details]
build log of failure
Comment 2 Chí-Thanh Christopher Nguyễn gentoo-dev 2014-11-15 21:32:39 UTC
/var/tmp/portage/x11-drivers/xf86-video-siliconmotion-1.7.7/work/xf86-video-siliconmotion-1.7.7/src/smi_driver.c:1753:5: error: implicit declaration of function 'miInitializeBackingStore' [-Werror=implicit-function-declaration]

is probably fixed by

/var/tmp/portage/x11-drivers/xf86-video-siliconmotion-1.7.7/work/xf86-video-siliconmotion-1.7.7/src/smi_video.c:686:45: error: array subscript is above array bounds [-Werror=array-bounds]
     value = CLAMP(value, SMI_VideoAttributes[i].min_value,

Not sure about that one.
Comment 3 Anthony Basile gentoo-dev 2014-11-16 12:45:12 UTC
(In reply to Chí-Thanh Christopher Nguyễn from comment #2)
> /var/tmp/portage/x11-drivers/xf86-video-siliconmotion-1.7.7/work/xf86-video-
> siliconmotion-1.7.7/src/smi_driver.c:1753:5: error: implicit declaration of
> function 'miInitializeBackingStore' [-Werror=implicit-function-declaration]
>      miInitializeBackingStore(pScreen);
> is probably fixed by
> src?id=f19d7e463c30f1364e82e8c9f87b8a8407d53680

It is fixed by this.  Strangely enough that is sufficient on my hardened amd64 uclibc system.

> /var/tmp/portage/x11-drivers/xf86-video-siliconmotion-1.7.7/work/xf86-video-
> siliconmotion-1.7.7/src/smi_video.c:686:45: error: array subscript is above
> array bounds [-Werror=array-bounds]
>      value = CLAMP(value, SMI_VideoAttributes[i].min_value,
> Not sure about that one.

I'm not hitting this on the uclibc system but I am on the glibc.  Also hardened and amd64.
Comment 4 Pacho Ramos gentoo-dev 2015-01-19 11:39:57 UTC
*xf86-video-siliconmotion-1.7.7-r1 (27 May 2014)

  27 May 2014; Chí-Thanh Christopher Nguyễn <>
  Fix build with newer xorg-server. Remove old.

Please retry with the -r1 (I see you were using the non revbumped one)