Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
compiler error in xf86-video-intel-2.21.4 [SOLVED]
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
stt
n00b
n00b


Joined: 07 Nov 2006
Posts: 5

PostPosted: Sat Mar 30, 2013 1:03 am    Post subject: compiler error in xf86-video-intel-2.21.4 [SOLVED] Reply with quote

Hello,

After upgrade to xorg-server-1.14, during compilation of new xf86-video-intel-2.21.4 I have got compiler error 'Segmentation fault' in gen4_vertex.c.


Without new intel driver I can't run X-server 1.14. Before everything was OK with X-1.13 and intel-2.21.3.
Here is last part of compilation log:

Code:

...............................................................
/var/tmp/portage/x11-drivers/xf86-video-intel-2.21.4/work/xf86-video-intel-2.21.4/src/sna/gen4_vertex.c: In function 'emit_span_boxes_simple__sse4_2':
/var/tmp/portage/x11-drivers/xf86-video-intel-2.21.4/work/xf86-video-intel-2.21.4/src/sna/gen4_vertex.c:2080:8: warning: declaration of 'y0' shadows a global declaration
/var/tmp/portage/x11-drivers/xf86-video-intel-2.21.4/work/xf86-video-intel-2.21.4/src/sna/gen4_vertex.c: In function 'emit_composite_spans_primitive':
/var/tmp/portage/x11-drivers/xf86-video-intel-2.21.4/work/xf86-video-intel-2.21.4/src/sna/gen4_vertex.c:1561:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugs.gentoo.org/> for instructions.
make[4]: *** [gen4_vertex.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
In file included from /usr/include/xorg/xf86Crtc.h:31:0,
                 from /var/tmp/portage/x11-drivers/xf86-video-intel-2.21.4/work/xf86-video-intel-2.21.4/src/sna/sna.h:50,
                 from /var/tmp/portage/x11-drivers/xf86-video-intel-2.21.4/work/xf86-video-intel-2.21.4/src/sna/sna_dri.c:42:
/usr/include/xorg/xf86Modes.h:43:54: warning: redundant redeclaration of 'xf86ModeHSync'
/usr/include/xorg/xf86.h:417:1: note: previous declaration of 'xf86ModeHSync' was here
/usr/include/xorg/xf86Modes.h:44:54: warning: redundant redeclaration of 'xf86ModeVRefresh'
/usr/include/xorg/xf86.h:419:1: note: previous declaration of 'xf86ModeVRefresh' was here
/usr/include/xorg/xf86Modes.h:53:62: warning: redundant redeclaration of 'xf86DuplicateMode'
/usr/include/xorg/xf86.h:425:1: note: previous declaration of 'xf86DuplicateMode' was here
/usr/include/xorg/xf86Modes.h:54:62: warning: redundant redeclaration of 'xf86DuplicateModes'
/usr/include/xorg/xf86.h:429:1: note: previous declaration of 'xf86DuplicateModes' was here
/usr/include/xorg/xf86Modes.h:56:52: warning: redundant redeclaration of 'xf86SetModeDefaultName'
/usr/include/xorg/xf86.h:421:1: note: previous declaration of 'xf86SetModeDefaultName' was here
/usr/include/xorg/xf86Modes.h:57:52: warning: redundant redeclaration of 'xf86SetModeCrtc'
/usr/include/xorg/xf86.h:423:1: note: previous declaration of 'xf86SetModeCrtc' was here
/usr/include/xorg/xf86Modes.h:58:52: warning: redundant redeclaration of 'xf86ModesEqual'
/usr/include/xorg/xf86.h:431:1: note: previous declaration of 'xf86ModesEqual' was here
/usr/include/xorg/xf86Modes.h:60:52: warning: redundant redeclaration of 'xf86PrintModeline'
/usr/include/xorg/xf86.h:433:1: note: previous declaration of 'xf86PrintModeline' was here
/usr/include/xorg/xf86Modes.h:61:62: warning: redundant redeclaration of 'xf86ModesAdd'
/usr/include/xorg/xf86.h:435:1: note: previous declaration of 'xf86ModesAdd' was here/usr/include/xorg/xf86Modes.h:65:62: warning: redundant redeclaration of 'xf86CVTMode'
/usr/include/xorg/xf86.h:202:62: note: previous declaration of 'xf86CVTMode' was here
In file included from /var/tmp/portage/x11-drivers/xf86-video-intel-2.21.4/work/xf86-video-intel-2.21.4/src/sna/sna_dri.c:42:0:
/var/tmp/portage/x11-drivers/xf86-video-intel-2.21.4/work/xf86-video-intel-2.21.4/src/sna/sna.h: In function 'region_subsumes_damage':
/var/tmp/portage/x11-drivers/xf86-video-intel-2.21.4/work/xf86-video-intel-2.21.4/src/sna/sna.h:566:2: warning: cast discards qualifiers from pointer target type
/var/tmp/portage/x11-drivers/xf86-video-intel-2.21.4/work/xf86-video-intel-2.21.4/src/sna/sna.h:567:7: warning: cast discards qualifiers from pointer target type
/var/tmp/portage/x11-drivers/xf86-video-intel-2.21.4/work/xf86-video-intel-2.21.4/src/sna/sna_dri.c: In function 'sna_dri_schedule_flip':
/var/tmp/portage/x11-drivers/xf86-video-intel-2.21.4/work/xf86-video-intel-2.21.4/src/sna/sna_dri.c:1792:52: warning: declaration of 'remainder' shadows a global declaration
/var/tmp/portage/x11-drivers/xf86-video-intel-2.21.4/work/xf86-video-intel-2.21.4/src/sna/sna_dri.c: In function 'sna_dri_schedule_swap':
/var/tmp/portage/x11-drivers/xf86-video-intel-2.21.4/work/xf86-video-intel-2.21.4/src/sna/sna_dri.c:1994:16: warning: declaration of 'remainder' shadows a global declaration
/var/tmp/portage/x11-drivers/xf86-video-intel-2.21.4/work/xf86-video-intel-2.21.4/src/sna/sna_dri.c: In function 'sna_dri_schedule_wait_msc':
/var/tmp/portage/x11-drivers/xf86-video-intel-2.21.4/work/xf86-video-intel-2.21.4/src/sna/sna_dri.c:2235:29: warning: declaration of 'remainder' shadows a global declaration
make[4]: Leaving directory `/var/tmp/portage/x11-drivers/xf86-video-intel-2.21.4/work/xf86-video-intel-2.21.4_build/src/sna'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/x11-drivers/xf86-video-intel-2.21.4/work/xf86-video-intel-2.21.4_build/src/sna'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/x11-drivers/xf86-video-intel-2.21.4/work/xf86-video-intel-2.21.4_build/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/x11-drivers/xf86-video-intel-2.21.4/work/xf86-video-intel-2.21.4_build'
make: *** [all] Error 2
 * ERROR: x11-drivers/xf86-video-intel-2.21.4 failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=x11-drivers/xf86-video-intel-2.21.4'`,
 * the complete build log and the output of `emerge -pqv '=x11-drivers/xf86-video-intel-2.21.4'`.
 * The complete build log is located at '/var/log/portage/x11-drivers:xf86-video-intel-2.21.4:20130321-195553.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/x11-drivers/xf86-video-intel-2.21.4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-drivers/xf86-video-intel-2.21.4/temp/environment'.
 * Working directory: '/var/tmp/portage/x11-drivers/xf86-video-intel-2.21.4/work/xf86-video-intel-2.21.4_build'
 * S: '/var/tmp/portage/x11-drivers/xf86-video-intel-2.21.4/work/xf86-video-intel-2.21.4'



My local language version of gcc gives a little bit more info:
Code:

............................
/var/tmp/portage/x11-drivers/xf86-video-intel-2.21.4/work/xf86-video-intel-2.21.4/src/sna/gen4_vertex.c:1561:1: internal compiler error: in referenced_var_lookup, at tree-dfa.c:519
Please submit a full bug report,............




Here is the output of emerge -pqv:


# emerge -pqv 'x11-drivers/xf86-video-intel-2.21.4

Code:


[ebuild     U ] x11-drivers/xf86-video-intel-2.21.4 [2.21.3] USE="dri sna udev -glamor -uxa -xvmc"

 * IMPORTANT: 9 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.


This is what I get with emerge --info:
Code:

# emerge --info 'x11-drivers/xf86-video-intel-2.21.4



Portage 2.1.11.57 (default/linux/x86/13.0/desktop, gcc-4.5.4, glibc-2.16.0, 3.8.3 i686)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.8.3-i686-Intel-R-_Pentium-R-_Dual_CPU_T2390_@_1.86GHz-with-gentoo-2.2
KiB Mem:     2064128 total,   1171164 free
KiB Swap:    1048564 total,   1048564 free
Timestamp of tree: Thu, 21 Mar 2013 15:15:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
ccache version 3.1.9 [enabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/ccache:          3.1.9
dev-util/cmake:           2.8.10.2-r1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.10.3, 1.11.6, 1.13.1
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.5.4
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.8 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /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="-Os -march=pentium4 -fforce-addr -momit-leaf-frame-pointer -frename-registers -ftracer -pipe -DNDEBUG -DG_DISABLE_ASSERT"
DISTDIR="/u1/portage/distfiles"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs ccache collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ http://mirrors.sec.informatik.tu-armstadt.de/gentoo/ http://gentoo.inode.at/ http://distfiles.gentoo.org/ http://www.ibiblio.org/pub/Linux/distributions/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-miror/ "
LANG="pl_PL.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --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="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa berkdb bindist bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dga doc dri dts dvd dvdr emboss encode evo exif fam firefox flac fortran gdbm gif gpm gtk iconv ipv6 jpeg kde lcms ldap libnotify mad mng modules mp3 mp4 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp openssh pam pango pcmcia pcre pdf pic png pnp policykit postgres ppds qt3support qt4 readline samba sasl sdl session slp spell sse ssl startup-notification svg tcpd tiff truetype trusted udev udisks unicode upower usb vorbis wxwidgets x264 x86 xcb xml xv xvid zlib" ABI_X86="32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" 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" 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 ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="pl" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="intel fbdev vga vesa" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON



I am sure that is software/configuration error not hardware (e.g. overheating). I repeated compilation a few times with same effect.
Probably I need newer gcc?

I would really appreciate any help.


Last edited by stt on Tue Apr 02, 2013 10:06 pm; edited 1 time in total
Back to top
View user's profile Send private message
BradN
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2391
Location: Wisconsin (USA)

PostPosted: Sat Mar 30, 2013 7:17 am    Post subject: Reply with quote

I would try newer/older gcc versions, and also if you have unusual cflags set, try without those.
Back to top
View user's profile Send private message
stt
n00b
n00b


Joined: 07 Nov 2006
Posts: 5

PostPosted: Sat Mar 30, 2013 10:02 am    Post subject: Reply with quote

My CFLAGS are listed above.

After booting from LiveCD an chrooting I have this same error. On CD is same gcc-4.5.4.
Back to top
View user's profile Send private message
Gusar
Advocate
Advocate


Joined: 09 Apr 2005
Posts: 2665
Location: Slovenia

PostPosted: Sat Mar 30, 2013 10:29 am    Post subject: Reply with quote

2.21.4 isn't the newest, 2.21.5 is. And it compiles fine with gcc 4.5. So do an emerge --sync and all will be good :)
Back to top
View user's profile Send private message
stt
n00b
n00b


Joined: 07 Nov 2006
Posts: 5

PostPosted: Sat Mar 30, 2013 11:21 pm    Post subject: Reply with quote

Thanks, I will try.
Did you have problems with compiling 2.21.4?
Back to top
View user's profile Send private message
Gusar
Advocate
Advocate


Joined: 09 Apr 2005
Posts: 2665
Location: Slovenia

PostPosted: Sat Mar 30, 2013 11:45 pm    Post subject: Reply with quote

stt wrote:
Did you have problems with compiling 2.21.4?

With gcc 4.5, yes. Newer gcc versions compiled it fine.
Back to top
View user's profile Send private message
stt
n00b
n00b


Joined: 07 Nov 2006
Posts: 5

PostPosted: Tue Apr 02, 2013 10:00 pm    Post subject: Reply with quote

I can confirm, I compiled xf86-video-intel version 2.21.5 .
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