The error is the following: make[1]: Entering directory `/usr/src/wireless-testing' CC [M] /var/tmp/portage/x11-drivers/ati-drivers-12.2/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o CC [M] /var/tmp/portage/x11-drivers/ati-drivers-12.2/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.o CC [M] /var/tmp/portage/x11-drivers/ati-drivers-12.2/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_agp.o CC [M] /var/tmp/portage/x11-drivers/ati-drivers-12.2/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_debug.o CC [M] /var/tmp/portage/x11-drivers/ati-drivers-12.2/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_ioctl.o CC [M] /var/tmp/portage/x11-drivers/ati-drivers-12.2/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_io.o CC [M] /var/tmp/portage/x11-drivers/ati-drivers-12.2/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_pci.o CC [M] /var/tmp/portage/x11-drivers/ati-drivers-12.2/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_str.o CC [M] /var/tmp/portage/x11-drivers/ati-drivers-12.2/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_iommu.o CC [M] /var/tmp/portage/x11-drivers/ati-drivers-12.2/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl.o CC [M] /var/tmp/portage/x11-drivers/ati-drivers-12.2/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_wait.o /var/tmp/portage/x11-drivers/ati-drivers-12.2/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function ‘kasInitExecutionLevels’: /var/tmp/portage/x11-drivers/ati-drivers-12.2/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:4184:5: error: ‘cpu_possible_map’ undeclared (first use in this function) /var/tmp/portage/x11-drivers/ati-drivers-12.2/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:4184:5: note: each undeclared identifier is reported only once for each function it appears in /var/tmp/portage/x11-drivers/ati-drivers-12.2/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:4184:5: warning: left-hand operand of comma expression has no effect make[2]: *** [/var/tmp/portage/x11-drivers/ati-drivers-12.2/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o] Error 1 make[1]: *** [_module_/var/tmp/portage/x11-drivers/ati-drivers-12.2/work/common/lib/modules/fglrx/build_mod/2.6.x] Error 2
Did you try 12.3 yet?
(In reply to comment #1) > Did you try 12.3 yet? Yes, same result
Ok this should not be hard to fix I hope. If I understand this well https://lkml.org/lkml/2012/4/10/485 adding back the #define line of cpi_possibile_map in the firegl_public.c file should fix the problem. No other file seems to use this. Something like: #ifndef cpu_possible_map #define cpu_possible_map (*(cpumask_t *)cpu_possible_mask) #endif Until AMD fixes the problem. Fabio if you have time can you test this? I will test it here too and if it doesn't break something I will make a patch and I will upload it.
Seems to work for me. Uploaded to X11 overlay
Now it compiles but there is an undefined symbol, old_rsp, which causes problems during module loading. This is the warning I get during the compilation: Building modules, stage 2. MODPOST 1 modules WARNING: "old_rsp" [/var/tmp/portage/x11-drivers/ati-drivers-12.4/work/common/lib/modules/fglrx/build_mod/2.6.x/fglrx.ko] undefined! CC /var/tmp/portage/x11-drivers/ati-drivers-12.4/work/common/lib/modules/fglrx/build_mod/2.6.x/fglrx.mod.o LD [M] /var/tmp/portage/x11-drivers/ati-drivers-12.4/work/common/lib/modules/fglrx/build_mod/2.6.x/fglrx.ko
(In reply to comment #5) > WARNING: "old_rsp" > [/var/tmp/portage/x11-drivers/ati-drivers-12.4/work/common/lib/modules/fglrx/ > build_mod/2.6.x/fglrx.ko] undefined! This is something i cannot reproduce with git-sources-3.4_rc4. In addition old_rsp is mentioned nowhere in the fglrx source code, and looking in the propertary library with nm i see no old_rsp symbol there too. Can you give me some more info about this wireless-testing kernel you are using?
(In reply to comment #6) > (In reply to comment #5) > > WARNING: "old_rsp" > > [/var/tmp/portage/x11-drivers/ati-drivers-12.4/work/common/lib/modules/fglrx/ > > build_mod/2.6.x/fglrx.ko] undefined! > > This is something i cannot reproduce with git-sources-3.4_rc4. In addition > old_rsp is mentioned nowhere in the fglrx source code, and looking in the > propertary library with nm i see no old_rsp symbol there too. > > Can you give me some more info about this wireless-testing kernel you are > using? I'm able to reproduce the issue also with the plain linux tree http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git so it's not related to the wireless-testing.git tree. Both trees are at version 3.4-rc5 but I tried also with 3.4-rc4 so it doesn't depend on the verison. Are you using a 32 or 64 bit system? I'm on 64 bit.
Please attach your kernel .config
Created attachment 310893 [details] config-3.4.0-rc5.gz Here is the current kernel config
I'm on 64 bit and I'm not able to reproduce even with your kernel config (but I called make oldconfig before make modules and your config was not clean for 3.4-rc4 here. Be aware I just compiled it (not tested at runtime), but I don't see the compilation WARNING you do.
Created attachment 310961 [details] ati-drivers-12.4-build.log.gz here is the build log I get with plain 3.4.0-rc4 kernel
After apply that patch so ati-drivers builds, I see the same WARNING with gentoo-sources-3.4.0 and ati-drivers-12.4
Created attachment 312739 [details] Failing x86_64 gentoo-sources-3.4.0 configuration
Created attachment 312745 [details] Failing config-3.4.0 with ati-drivers-12.4 Same here. Unknown symbol old_rsp. Config attached.
Not to add any confusion to this bug thread, but I'm getting the same error with 3.4.0-gentoo and x11-drivers/ati-drivers-12.4. The message appears at the end of compilation and if you're not paying attention it's easily missed. * Updating module dependencies for 3.4.0-gentoo ... ignored deprecated option -r WARNING: //lib/modules/3.4.0-gentoo/video/fglrx.ko needs unknown symbol old_rsp [ ok ] * Adding module to moduledb. Switching to ati OpenGL interface... done Switching to amd OpenCL interface... done The result is the fglrx module doesn't load. I first had this error with sys-kernel/git-sources-3.4_rc1 several months ago, but didn't report it since it was a future kernel and I figured it would be fixed before 3.4 was released. root@gentoo-gateway script # emerge --info =x11-drivers/ati-drivers-12.4 Portage 2.2.0_alpha107 (default/linux/amd64/10.0/desktop, gcc-4.5.3, glibc-2.15-r2, 3.4.0-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-3.4.0-gentoo-x86_64-AMD_Phenom-tm-_9150e_Quad-Core_Processor-with-gentoo-2.1 Timestamp of tree: Tue, 22 May 2012 19:45:01 +0000 app-shells/bash: 4.2_p28 dev-java/java-config: 2.1.11-r3 dev-lang/python: 2.7.3-r2, 3.2.3-r1 dev-util/cmake: 2.8.8-r2 dev-util/pkgconfig: 0.26 sys-apps/baselayout: 2.1-r1 sys-apps/openrc: 0.10 sys-apps/sandbox: 2.5 sys-devel/autoconf: 2.13, 2.69 sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.5 sys-devel/binutils: 2.22-r1 sys-devel/gcc: 4.5.3-r2 sys-devel/gcc-config: 1.7.1 sys-devel/libtool: 2.4.2 sys-devel/make: 3.82-r3 sys-kernel/linux-headers: 3.4 (virtual/os-headers) sys-libs/glibc: 2.15-r2 Repositories: gentoo x11 wish xarthisius mozilla gentoo-gateway Installed sets: ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=native -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /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="-O2 -march=native -pipe" DISTDIR="/home/portage/distfiles" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch parse-eapi-ebuild-head preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="" GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo ftp://mirror.datapipe.net/gentoo http://mirror.lug.udel.edu/pub/gentoo/ http://chi-10g-1-mirror.fastsoft.net/pub/linux/gentoo/gentoo-distfiles/ http://gentoo.mirrors.pair.com/ ftp://gentoo.mirrors.pair.com/" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en en_US" MAKEOPTS="-j5" 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="/var/lib/layman/x11 /var/lib/layman/wish /var/lib/layman/xarthisius /var/lib/layman/mozilla /usr/local/portage" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" USE="X a52 aac acl acpi additions alsa amd64 apng auto-hinter automount bindist branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dirac dri dts dvd dvdr emboss encode exif extras fam ffmpeg firefox flac fontconfig fortran gd gdbm gif gnome gpm gtk gusb hddtemp iconv introspection iostats ipv6 java jpeg kdrive lcms ldap libnotify live lm_sensors lock lua lua-cairo lua-imlib lxde mad math mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses network nls nptl ogg opengl openmp orc pam pango pcre pdf png policykit ppds pppd pulseaudio python qt-bundled qt3support qt4 readline rss scanner sdl session shared-dricore sound sox spell sqlite sse sse2 ssl startup-notification static-libs svg tcpd threads tiff truetype udev udisks unicode upower usb utp v4l vorbis wxwidgets x264 xcb xml xorg xulrunner xv xvid zlib" 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" 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="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" INPUT_DEVICES="evdev mouse keyboard" KERNEL="linux" LCD_DEVICES="ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev fglrx vesa r600 radeon" 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" USE_PYTHON="2.7 3.2" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
gentoo-sources-3.4.0, (mostly amd64, some ~amd64 including gcc) different failure - module does not even build; * Preparing fglrx module make -j1 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- 'LDFLAGS=-m elf_x86_64' GCC_VER_MAJ=4 KVER=3.4.0-gentoo KDIR=/usr/src/linux 'CFLAGS_MODULE+=-DMODULE -DATI -DFGL' CFLAGS_MODULE+=-DCOMPAT_ALLOC_USER_SPACE=arch_compat_alloc_user_space kmod_build make -C /usr/src/linux M=/var/tmp/portage/x11-drivers/ati-drivers-12.4/work/common/lib/modules/fglrx/build_mod/2.6.x modules make[1]: Entering directory `/usr/src/linux-3.4.0-gentoo' CC [M] /var/tmp/portage/x11-drivers/ati-drivers-12.4/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o /var/tmp/portage/x11-drivers/ati-drivers-12.4/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function ‘kasInitExecutionLevels’: /var/tmp/portage/x11-drivers/ati-drivers-12.4/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:4157:47: error: ‘cpu_possible_map’ undeclared (first use in this function) /var/tmp/portage/x11-drivers/ati-drivers-12.4/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:4157:47: note: each undeclared identifier is reported only once for each function it appears in /var/tmp/portage/x11-drivers/ati-drivers-12.4/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:4157:66: warning: left-hand operand of comma expression has no effect make[2]: *** [/var/tmp/portage/x11-drivers/ati-drivers-12.4/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o] Error 1 make[1]: *** [_module_/var/tmp/portage/x11-drivers/ati-drivers-12.4/work/common/lib/modules/fglrx/build_mod/2.6.x] Error 2 make[1]: Leaving directory `/usr/src/linux-3.4.0-gentoo' make: *** [kmod_build] Error 2 * ERROR: x11-drivers/ati-drivers-12.4 failed (compile phase): * emake failed
Ok now I'm able to reproduce the issue (with gentoo-source 3.4.0). I have found a fix on a pastebin ( original URL http://pastebin.com/raw.php?i=5aERc48H , thank you ). I've included the patch and commited on the X11 overlay a new ebuild.
this is now in the main portage tree. If the problem is not solved please reopen or ask for reopen. Cheers
tested, thanks!