Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 224543 - net-wireless/madwifi-ng will not compile due to wrong arch
Summary: net-wireless/madwifi-ng will not compile due to wrong arch
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-01 21:51 UTC by Steven Oliver
Modified: 2008-06-08 07:35 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 Steven Oliver 2008-06-01 21:51:10 UTC
>>> Starting src_compile
 * Preparing ath_hal module
make -j2 HOSTCC=x86_64-pc-linux-gnu-gcc CC=x86_64-pc-linux-gnu-gcc LDFLAGS= KERNELPATH=/lib/modules/2.6.24-gentoo-r8/build all
../scripts/get_arch.mk:44: *** ARCH mismatch: supplied "x86", determined "x86_64".  Stop.

!!! ERROR in net-wireless/madwifi-ng-0.9.3.3:
!!! In linux-mod_src_compile at line 3491
!!! Unable to emake HOSTCC=x86_64-pc-linux-gnu-gcc CC=x86_64-pc-linux-gnu-gcc LDFLAGS=  KERNELPATH=/lib/modules/2.6.24-gentoo-r8/build all

!!! Call stack:
!!!    * linux-mod_src_compile (/var/tmp/paludis/net-wireless-madwifi-ng-0.9.3.3/temp/loadsaveenv:3491)
!!!    * src_compile (/var/tmp/paludis/net-wireless-madwifi-ng-0.9.3.3/temp/loadsaveenv:4406)
!!!    * ebuild_f_compile (/usr/libexec/paludis/0/src_compile.bash:49)
!!!    * ebuild_main (/usr/libexec/paludis/ebuild.bash:460)
!!!    * main (/usr/libexec/paludis/ebuild.bash:479)

diefunc: making ebuild PID 12846 exit with error
die trap: exiting with error.

Install error:
  * In program paludis -i madwifi-ng:
  * When performing install action from command line:
  * When executing install task:
  * When installing 'net-wireless/madwifi-ng-0.9.3.3:0::gentoo':
  * Install error: Install failed for 'net-wireless/madwifi-ng-0.9.3.3:0::gentoo'

It would appear that the madwifi-ng package has been coded to only compile on x86 systems.

Reproducible: Always

Steps to Reproduce:
1. Compile madwifi-ng on x86_64 system
2.
3.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2008-06-01 23:32:15 UTC
Please post something resembling emerge --info. Also, check that your kernel sources are in proper order and that the /usr/src/linux symlink is set correctly.
Comment 2 Steven Oliver 2008-06-02 01:00:13 UTC
paludis 0.26.2
Paludis build information:
    Compiler:
        CXX:                   x86_64-pc-linux-gnu-g++ 4.1.2 (Gentoo 4.1.2 p1.1)
        CXXFLAGS:              -O2 -pipe
        LDFLAGS:               
        DATE:                  2008-05-30T16:16:05-0400

    Libraries:
        C++ Library:           GNU libstdc++ 20070214

    Reduced Privs:
        reduced_uid:           1000
        reduced_uid->name:     steveno
        reduced_uid->dir:      /home/steveno
        reduced_gid:           1000
        reduced_gid->name:     steveno

    Paths:
        DATADIR:               /usr/share
        LIBDIR:                /usr/lib64
        LIBEXECDIR:            /usr/libexec
        SYSCONFDIR:            /etc
        PYTHONINSTALLDIR:      
        RUBYINSTALLDIR:        /usr/lib64/ruby/site_ruby/1.8/x86_64-linux

Repository virtuals:
    format:                    virtuals

Repository installed-virtuals:
    format:                    installed_virtuals
    root:                      /

Repository gentoo:
    format:                    ebuild
    location:                  /usr/portage
    append_repository_name_to_write_cache: true
    binary_destination:        false
    binary_keywords:           
    binary_uri_prefix:         
    builddir:                  /var/tmp/paludis
    cache:                     /usr/portage/metadata/cache
    distdir:                   /usr/portage/distfiles
    eapi_when_unknown:         0
    eapi_when_unspecified:     0
    eclassdirs:                /usr/portage/eclass
    ignore_deprecated_profiles: false
    layout:                    traditional
    names_cache:               /usr/portage/.cache/names
    newsdir:                   /usr/portage/metadata/news
    profile_eapi:              0
    profiles:                  /usr/portage/profiles/default-linux/amd64/2007.0/
desktop
    securitydir:               /usr/portage/metadata/glsa
    setsdir:                   /usr/portage/sets
    sync:                      rsync://rsync.namerica.gentoo.org/gentoo-portage
    sync_options:              
    use_manifest:              use
    write_cache:               /var/cache/paludis/metadata

    Package information:
        app-admin/eselect-compiler: (none)
        app-shells/bash:       3.2_p33
        dev-java/java-config:  (none)
        dev-lang/python:       2.4.4-r13
        dev-python/pycrypto:   2.0.1-r6
        dev-util/ccache:       (none)
        dev-util/confcache:    (none)
        sys-apps/baselayout:   1.12.11.1
        sys-apps/openrc:       (none)
        sys-apps/sandbox:      1.2.18.1-r2
        sys-devel/autoconf:    2.13 2.61-r1
        sys-devel/automake:    1.10.1 1.5 1.7.9-r1 1.8.5-r3 1.9.6-r2
        sys-devel/binutils:    2.18-r1
        sys-devel/gcc-config:  1.4.0-r4
        sys-devel/libtool:     1.5.26
        virtual/os-headers:    2.6.23-r3 (for sys-kernel/linux-headers::installe
d)

Repository installed:
    format:                    vdb
    location:                  /var/db/pkg
    builddir:                  /var/tmp/paludis
    names_cache:               /var/db/pkg/.cache/names
    provides_cache:            /var/db/pkg/.cache/provides
    root:                      /


--------------

I can post emerge --info too, but since I do not really use I do not know how useful it will be.
Comment 3 Steven Oliver 2008-06-02 01:07:34 UTC
I've only got one set of kernel sources, and according to eselect the symlink points to them. 

As far at they being in "proper order," I can only assume they are. Unless this could relate to the wrong options being built in. 
Comment 4 MickKi 2008-06-07 17:26:59 UTC
The problem is not x86_64 specific.  It fails with vanilla x86 too and it seems that it will fail with anything other than i386:
==========================================
* Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found kernel object directory:
 *     /lib/modules/2.6.24-gentoo-r8/build
 * Found sources for kernel version:
 *     2.6.24-gentoo-r8
 * Checking for suitable kernel configuration options...
  [ ok ]
>>> Unpacking source...
>>> Unpacking madwifi-0.9.3.3.tar.bz2 to /var/tmp/portage/net-wireless/madwifi-ng-0.9.3.3/work
 * Applying madwifi-ng-0.9.3-uudecode-gcda-fix.patch ...
  [ ok ]
 * Converting madwifi-0.9.3.3/ath/Makefile to use M= instead of SUBDIRS= ...
  [ ok ]
 * Converting madwifi-0.9.3.3/ath_hal/Makefile to use M= instead of SUBDIRS= ...
  [ ok ]
 * Converting madwifi-0.9.3.3/net80211/Makefile to use M= instead of SUBDIRS= ...
  [ ok ]
 * Converting madwifi-0.9.3.3/ath_rate/Makefile to use M= instead of SUBDIRS= ...
  [ ok ]
 * Converting madwifi-0.9.3.3/ath_rate/amrr/Makefile to use M= instead of SUBDIRS= ...
  [ ok ]
 * Converting madwifi-0.9.3.3/ath_rate/onoe/Makefile to use M= instead of SUBDIRS= ...
  [ ok ]
 * Converting madwifi-0.9.3.3/ath_rate/sample/Makefile to use M= instead of SUBDIRS= ...
  [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/net-wireless/madwifi-ng-0.9.3.3/work/madwifi-0.9.3.3 ...
 * Preparing ath_hal module
../scripts/get_arch.mk:44: *** ARCH mismatch: supplied "x86", determined "i386".  Stop.
 * 
 * ERROR: net-wireless/madwifi-ng-0.9.3.3 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3184:  Called linux-mod_src_compile
 *             environment, line 2433:  Called die
 * The specific snippet of code:
 *               eval "emake HOSTCC=\"$(tc-getBUILD_CC)\"                                               CC=\"$(get-KERNEL_CC)\"         
                                        LDFLAGS=\"$(get_abi_LDFLAGS)\"                                          ${BUILD_FIXES}          
                                ${BUILD_PARAMS}                                                 ${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CC="$(get-KERNEL_CC)" LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}";
 *  The die message:
 *   Unable to emake HOSTCC=i686-pc-linux-gnu-gcc CC=i686-pc-linux-gnu-gcc LDFLAGS=  KERNELPATH=/lib/modules/2.6.24-gentoo-r8/build all
==========================================

This is my emerge-info:
==========================================
# emerge --info
Portage 2.1.4.4 (default/linux/x86/2008.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r8 i686)
=================================================================
System uname: 2.6.24-gentoo-r8 i686 Intel(R) Pentium(R) III Mobile CPU 1066MHz
Timestamp of tree: Sat, 07 Jun 2008 06:16:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-lang/python:     2.4.4-r13
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium3 -fomit-frame-pointer -msse -mmmx -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium3 -fomit-frame-pointer -msse -mmmx -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch userlocales userpriv usersandbox"
GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo/ http://mirror.ovh.net/gentoo-distfiles/ http://gentoo.tiscali.nl/ http://gentoo.mirror.solnet.ch http://gentoo.virginmedia.com/ http://ftp.heanet.ie/pub/gentoo/ http://gentoo.intergenia.de"
LINGUAS="en en_GB el"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --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 aalib acl acpi alsa asf berkdb bluetooth branding bzip2 cairo ccache cdparanoia cdr cli cpudetection cracklib crypt css cups curl dbus divx dri dts dvd dvdr dvdread emboss encode evo fam ffmpeg firefox flac fortran gdbm gif gmedia gpm gstreamer gtalk hal hpn iconv idea imagemagick imlib inject irda irmc isdnlog jabber jpeg kde kerberos ldap libnotify live lm_sensors logrotate mad matroska midi mikmod mjpeg mmx mng modplug mp3 mpeg mplayer mudflap ncurses nls nptl nptlonly nsplugin ntfs ogg opengl openmp pam pcmcia pcre pda pdf perl pmu png ppds pppd python qt3 qt3support qt4 quicktime readline real realmedia reflection reiserfs rt2500usb rtsp scanner sdl session smime speex spell spl sse ssl startup-notification svg svga tcpd theora tidy tiff truetype unicode usb vcd vidix vorbis vram wifi win32codecs wmf wmp x264 x86 xcomposite xine xml xorg xv xvid xvmc yv12 zlib" ALSA_CARDS="maestro3" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter 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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB el" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
==========================================

Please let me know if you need more info.

PS.  Is the CONFIG_KMOD necessary? It first failed asking me to set it in the kernel.
-- 
Regards,
Mick
Comment 5 MickKi 2008-06-08 07:35:27 UTC
Tried emerging net-wireless/madwifi-ng-0.9.4 (~) and it emerges fine without this i386 problem.
-- 
Regards,
Mick