Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 448570 - x11-drivers/xf86-video-intel-2.20.13[sna] fails to compile on IA64
Summary: x11-drivers/xf86-video-intel-2.20.13[sna] fails to compile on IA64
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: 449816
Blocks: 440872
  Show dependency tree
Reported: 2012-12-25 18:17 UTC by Agostino Sarubbo
Modified: 2013-01-02 20:49 UTC (History)
1 user (show)

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

build.log (xf86-video-intel-2.20.13:20121225-174120.log,101.87 KB, text/plain)
2012-12-25 18:17 UTC, Agostino Sarubbo
patch (0001-sna-Rewrite-__fls-without-x86-assembly.patch,1.01 KB, patch)
2013-01-02 02:15 UTC, Matt Turner
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2012-12-25 18:17:18 UTC
Created attachment 333332 [details]

Portage (default/linux/ia64/10.0, gcc-4.5.4, glibc-2.15-r3, 3.5.7-gentoo ia64)
System uname: Linux-3.5.7-gentoo-ia64-Dual-Core_Intel-R-_Itanium-R-_Processor_9040-with-gentoo-2.1
Timestamp of tree: Tue, 25 Dec 2012 17:00:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p37
dev-lang/python:          2.7.3-r2, 3.2.3
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.4
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.4-r2 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo
CFLAGS="-O2 -pipe -mtune=itanium2"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /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/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -mtune=itanium2"
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 protect-owned sandbox sfperms split-log strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
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"
USE="acl berkdb bzip2 cli cracklib crypt cups cxx dri fortran gdbm gpm ia64 iconv ipv6 modules mudflap ncurses nls nptl openmp pam pcre pppd readline session ssl tcpd unicode zlib" ALSA_CARDS="hda-intel" 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="am fil zh af ca cs da de el es et gl hu nb nl pl pt ro ru sk sl sv uk bg cy en eo fo ga he id ku lt lv mk ms nn sw tn zu ja zh_TW en_GB pt_BR ko zh_CN ar en_CA fi kk oc sr tr fa wa nds as be bn bn_BD bn_IN en_US es_AR es_CL es_ES es_MX eu fy fy_NL ga_IE gu gu_IN hi hi_IN is ka kn ml mr nn_NO or pa pa_IN pt_PT rm si sq sv_SE ta ta_LK te th vi ast dz km my om sh ug uz ca@valencia sr@ijekavian sr@ijekavianlatin sr@latin csb hne mai se es_LA fr_CA zh_HK br la no es_CR et_EE sr_CS bo hsb hy mn sr@Latn lb ne bs tg uz@cyrillic xh be_BY brx ca_XV dgo en_ZA gd kok ks ky lo mni nr ns pap ps rw sa_IN sat sd ss st sw_TZ ti ts ve mt ia az me tl ak hy_AM lg nso son ur_PK it fr nb nb_NO hr nan ur tk cs_CZ da_DK de_1901 de_CH en_AU lt_LT pl_PL sa sk_SK th_TH ta_IN tt sco ha mi ven ar_SY el_GR ro_RO ru_RU sl_SI uk_UA vi_VN ar_SY te_IN de_DE es_VE fa_IR fr_FR hu_HU id_ID it_IT ja_JP ka_GE nl_NL sr_BA sr_RS ca_ES fi_FI he_IL jv ru_gold yi eu_ES" PHP_TARGETS="php5-3 php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU"
USE_PYTHON="2.7 3.2"
Comment 1 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-12-25 20:06:28 UTC
What if you build with USE="-sna"?
Comment 2 Agostino Sarubbo gentoo-dev 2012-12-25 20:55:38 UTC
(In reply to comment #1)
> What if you build with USE="-sna"?

with glamor and uxa fails to configure in different want different bugs filed?
Comment 3 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-12-25 21:34:07 UTC
Yes, please.

Problem appears to be following inline assembly in kgem.c
constant inline static unsigned long __fls(unsigned long word)
	asm("bsr %1,%0"
	    : "=r" (word)
	    : "rm" (word));
	return word;
Comment 4 Matt Turner gentoo-dev 2013-01-02 02:15:48 UTC
Created attachment 334012 [details, diff]

This should do it. Please confirm and I'll send it upstream.
Comment 5 Agostino Sarubbo gentoo-dev 2013-01-02 08:55:41 UTC
(In reply to comment #4)
> Created attachment 334012 [details, diff] [details, diff]
> patch
> This should do it. Please confirm and I'll send it upstream.

It works...
Comment 6 Matt Turner gentoo-dev 2013-01-02 16:58:32 UTC
Patch as been committed:

Also no one seems to know what -intel graphics are used in ia64 systems. It's possible that it was only gen1 graphics which don't use SNA.
Comment 7 Matt Turner gentoo-dev 2013-01-02 20:49:37 UTC
Fixed, but shouldn't have. :(