Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 154229 - media-libs/svgalib-1.9.25 - building kernel module failed as ARCH is not set properly
Summary: media-libs/svgalib-1.9.25 - building kernel module failed as ARCH is not set ...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-06 03:39 UTC by Mari Donkers
Modified: 2006-11-08 18:04 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mari Donkers 2006-11-06 03:39:23 UTC
Attempted an emerge k3b

This went on for a while but at the end resulted in an error message
The error message indicates that a subdirectory arch/x86 cannot be found in
the kernel.

To work around this I tried a "ln -s i386 x86", then it it compiled okay.

I am not sure where to file this bug as I do not know if there should be
an arch/x86 in the kernel source tree or if the svgalib_helper module
incorrectly assumes there should be such a subdirectory.

**************************************************************************
Portage 2.1.1-r1 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r8 i686)
=================================================================
System uname: 2.6.17-gentoo-r8 i686 Pentium III (Coppermine)
Gentoo Base System version 1.12.6
Last Sync: Sun, 05 Nov 2006 18:50:01 +0000
ccache version 2.3 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="pentium3-pc-linux-gnu"
CFLAGS="-O3 -march=pentium3 -mtune=pentium3 -msse -mmmx -pipe"
CHOST="pentium3-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O3 -march=pentium3 -mtune=pentium3 -msse -mmmx -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict userfetch"
GENTOO_MIRRORS="ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://mirror.scarlet-internet.nl/pub/gentoo "
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 X Xaw3d a52 aac aalib acpi adns aim alsa apache2 apm arts audiofile bcmath berkdb bindist bitmap-fonts bzip2 calendar caps cdparanoia cdr cli cracklib crypt cscope ctype cups curl curlwrappers dbus dga dio directfb dlloader doc dri dts dv dvb dvd dvdr dvdread elibc_glibc encode esd examples exif expat fam fastcgi fbcon ffmpeg fftw firefox flac flash flatfile foomaticdb fortran ftp gcj gd gdbm geoip ggi gif ginac glut gmp gnutls gphoto2 gpm graphviz gstreamer gtk gtk2 gtkhtml guile icc iconv icq idn ieee1394 imagemagick imlib input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog jabber jack java javascript jbig jikes jpeg jpeg2k junit kde kdexdeltas kernel_linux ladspa lapack lash lcms ldap lesstif libcaca libg++ libgda libwww lua m17n-lib mad maildir mailwrapper matroska mbox mcal mcve memlimit mhash mikmod milter mime ming mmap mmx mng mono motif mp3 mpeg mpi mplayer msession msn mysql mysqli nas ncurses netcdf nis nls nocd nptl nptlonly nsplugin ocaml ofx ogg openal opengl osc oscar oss pam pcmcia pcntl pcre pda pdf perl pfpro php plotutils png portaudio posix ppds pppd prelude profile python qt3 qt4 quicktime readline reflection ruby samba sasl scanner sdl session sharedext shorten simplexml slang slp sndfile snmp soap sockets socks5 source sox speex spell spl sse ssl startup-notification svg svga symlink sysvipc szip tcl tcpd test tetex theora threads tidy tiff tk tokenizer truetype truetype-fonts type1-fonts udev unicode usb userland_GNU vcd verbose vhosts video_cards_apm video_cards_ark video_cards_ati video_cards_chips video_cards_cirrus video_cards_cyrix video_cards_dummy video_cards_fbdev video_cards_glint video_cards_i128 video_cards_i740 video_cards_i810 video_cards_imstt video_cards_mga video_cards_neomagic video_cards_nsc video_cards_nv video_cards_rendition video_cards_s3 video_cards_s3virge video_cards_savage video_cards_siliconmotion video_cards_sis video_cards_sisusb video_cards_tdfx video_cards_tga video_cards_trident video_cards_tseng video_cards_v4l video_cards_vesa video_cards_vga video_cards_via video_cards_vmware video_cards_voodoo videos vim-syntax vorbis wddx wifi win32codecs wmf wxwindows xface xine xinetd xml xmlrpc xorg xosd xpm xprint xsl xv xvid yahoo zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

**************************************************************************
wrapdemo.c: In function 'main':
wrapdemo.c:629: warning: 'return' with no value, in function returning non-void
# chown root wrapdemo
# chmod u+s wrapdemo
make[1]: Leaving directory `/var/tmp/portage/svgalib-1.9.25/work/svgalib-1.9.25/threeDKit'
 * Preparing svgalib_helper module
make -C /usr/src/linux SUBDIRS=/var/tmp/portage/svgalib-1.9.25/work/svgalib-1.9.25/kernel/svgalib_helper CLASS_CFLAGS= modules
make[1]: Entering directory `/usr/src/linux-2.6.17-gentoo-r8'
Makefile:486: /usr/src/linux-2.6.17-gentoo-r8/arch/x86/Makefile: No such file or directory
make[1]: *** No rule to make target `/usr/src/linux-2.6.17-gentoo-r8/arch/x86/Makefile'.  Stop.
make[1]: Leaving directory `/usr/src/linux-2.6.17-gentoo-r8'
make: *** [default] Error 2

!!! ERROR: media-libs/svgalib-1.9.25 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  svgalib-1.9.25.ebuild, line 78:   Called linux-mod_src_compile
  linux-mod.eclass, line 482:   Called die

!!! Unable to make  KDIR=/usr/src/linux default.
!!! If you need support, post the topmost build error, and the call stack if relevant.
**************************************************************************
Comment 1 Mari Donkers 2006-11-08 17:42:07 UTC
Additional comments...

I hope the CHOST setting - a 'misguided attempt at optimization' - that I had in my /etc/make.conf isn't the cause of the error:

CHOST="pentium3-pc-linux-gnu"

instead of the default:

CHOST="i686-pc-linux-gnu"

I have since removed this and reverted to the default because kernel modules complained about it (the nvidia kernel module would not load at all); the error message in /var/log/messages:

Nov  8 00:34:59 localhost nvidia: version magic '2.6.17-gentoo-r8 SMP mod_unload 686 4KSTACKS gcc-4.1'
should be '2.6.17-gentoo-r8 SMP mod_unload PENTIUMIII 4KSTACKS gcc-4.1'
Comment 2 SpanKY gentoo-dev 2006-11-08 18:04:32 UTC
that'd prob be why