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

Bug 47627

Summary: gentoo-dev-sources 2.6.5 won't compile with IOMMU disabled.
Product: Gentoo Linux Reporter: Willie Sippel <willie>
Component: [OLD] Core systemAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: major    
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Willie Sippel 2004-04-12 13:30:42 UTC
Trying to compile the gentoo-dev-sources-2.6.5 with IOMMU disabled, I get this error:
  LD      .tmp_vmlinux1
arch/x86_64/kernel/built-in.o(.init.text+0x5467): In function `check_ioapic':
: undefined reference to `iommu_aperture_allowed'
arch/x86_64/kernel/built-in.o(.init.text+0x547f): In function `check_ioapic':
: undefined reference to `iommu_aperture_disabled'
make: *** [.tmp_vmlinux1] Error 1

I thought this was a general kernel bug, and posted on the kernel.org bugzilla, and got this reply:
2.6.5 doesn't have iommu_aperture_allowed. You are using a non standard tree.It's only in the x86_64-2.6.5rc-1 patchkit. I fixed it there.

I need to disable IOMMU, 'cause my soundcard (ice1712) uses 28bit busmaster transfer, and that's only available without IOMMU (maybe an ALSA bug)...

Reproducible: Always
Steps to Reproduce:
1. Try compiling the kernel without IOMMU...
Actual Results:  
 

Expected Results:  
 

Portage 2.0.50-r5 (default-amd64-2004.0, gcc-3.3.3, glibc-2.3.2-r9, 
2.6.4-gentoo-r1) 
================================================================= 
System uname: 2.6.4-gentoo-r1 x86_64 5 
Gentoo Base System version 1.4.3.13 
Autoconf: sys-devel/autoconf-2.58-r1 
Automake: sys-devel/automake-1.8.3 
ACCEPT_KEYWORDS="amd64" 
AUTOCLEAN="yes" 
CFLAGS="-O3 -pipe -ffast-math -funroll-loops -fomit-frame-pointer -msse2 " 
CHOST="x86_64-pc-linux-gnu" 
COMPILER="gcc3" 
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-O3 -pipe -ffast-math -funroll-loops -fomit-frame-pointer -msse2 " 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs ccache sandbox" 
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ 
http://gentoo.oregonstate.edu 
http://www.ibiblio.org/pub/Linux/distributions/gentoo" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" 
USE="X acl acpi alsa amd64 apm arts artswrappersuid avi berkdb cdr crypt cups 
dga dvd dvdr encode faad flac foomaticdb gdbm gif gpm gtk2 guile imagemagick 
imlib ipv6 jack java joystick jpeg kde ladcca lcms libg++ libwww linguas_de 
mad mikmod motif mpeg multilib ncurses nls nogcj nptl oggvorbis opengl oss pam 
pdflib perl png python qt quicktime readline sdk sdl slang speex spell ssl 
tcltk tcpd tetex tiff truetype usb wacom wmf wxwindows xml xml2 xmms xslt xv 
zlib"
Comment 1 Travis Tilley (RETIRED) gentoo-dev 2004-04-12 14:35:55 UTC

*** This bug has been marked as a duplicate of 47302 ***