Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 120290 - net-wireless/madwifi-driver-0.1401.20060117 missing "&&" in script get_arch_target.sh - line 19
Summary: net-wireless/madwifi-driver-0.1401.20060117 missing "&&" in script get_arch_t...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: Mobile Herd (OBSOLETE)
URL:
Whiteboard:
Keywords:
: 120291 120293 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-01-25 04:45 UTC by Lupo
Modified: 2006-02-01 06:05 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 Lupo 2006-01-25 04:45:28 UTC
>>> Unpacking source...
>>> Unpacking madwifi-ng-r1401-20060117.tar.gz to /var/tmp/portage/madwifi-driver-0.1401.20060117/work
 * Converting madwifi-ng-r1401-20060117/ath/Makefile to use M= instead of SUBDIRS= ...                 [ ok ]
 * Converting madwifi-ng-r1401-20060117/ath_hal/Makefile to use M= instead of SUBDIRS= ...             [ ok ]
 * Converting madwifi-ng-r1401-20060117/net80211/Makefile to use M= instead of SUBDIRS= ...            [ ok ]
 * Converting madwifi-ng-r1401-20060117/ath_rate/amrr/Makefile to use M= instead of SUBDIRS= ...       [ ok ]
 * Converting madwifi-ng-r1401-20060117/ath_rate/onoe/Makefile to use M= instead of SUBDIRS= ...       [ ok ]
 * Converting madwifi-ng-r1401-20060117/ath_rate/sample/Makefile to use M= instead of SUBDIRS= ...     [ ok ]
>>> Source unpacked.
./scripts/get_arch_target.sh: line 19: test: too many arguments
Makefile.inc:135: *** Cannot determine kernel architecture, please set ARCH.  Schluss.

!!! ERROR: net-wireless/madwifi-driver-0.1401.20060117 failed.
!!! Function src_compile, Line 78, Exitcode 2
!!! emake info failed
!!! If you need support, post the topmost build error, NOT this status message.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-01-25 04:49:11 UTC
*** Bug 120291 has been marked as a duplicate of this bug. ***
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-01-25 04:53:05 UTC
1/ Don't use refresh/back button after submitting a bug
2/ Use short summary and always include ebuild name and version there
3/ Always include emerge --info in your bug reports
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-01-25 04:53:40 UTC
*** Bug 120293 has been marked as a duplicate of this bug. ***
Comment 4 Lupo 2006-01-25 05:08:00 UTC
emerge info:

Portage 2.0.54 (default-linux/ppc/2005.1/ppc/G4, gcc-3.4.4, glibc-2.3.5-r3, 2.6.15-nitro3 ppc)
=================================================================
System uname: 2.6.15-nitro3 ppc 7410, altivec supported
Gentoo Base System version 1.12.0_pre14
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="ppc"
AUTOCLEAN="yes"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -pipe -mcpu=7400 -maltivec -mabi=altivec -pipe -mpowerpc-gfxopt -fsigned-char -ffast-math -fomit-frame-pointer"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -pipe -mcpu=7400 -maltivec -mabi=altivec -pipe -mpowerpc-gfxopt -fsigned-char -ffast-math -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://gentoo.inode.at/source/ http://gd.tuwien.ac.at/opsys/linux/gentoo/ ftp://gd.tuwien.ac.at/opsys/linux/gentoo/ http                                        ://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://gentoo.itdnet.net/gentoo/ ht                                        tp://gentoo.ITDNet.net/gentoo http://mirror.uni-c.dk/pub/gentoo/ http://ftp.linux.ee/pub/gentoo/distfiles/ ftp://ftp.linux.ee/pub/gento                                        o/distfiles/ http://trumpetti.atm.tut.fi/gentoo/ ftp://trumpetti.atm.tut.fi/gentoo/ http://mirror.ovh.net/gentoo-distfiles/ ftp://mirro                                        r.ovh.net/gentoo-distfiles/ http://gentoo.modulix.net/gentoo/ http://ftp.club-internet.fr/pub/mirrors/gentoo ftp://ftp.tu-clausthal.de/                                        pub/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ f                                        tp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gen                                        too ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp.join.uni-mue                                        nster.de/pub/linux/distributions/gentoo ftp://ftp6.uni-muenster.de/pub/linux/distributions/gentoo http://mirrors.sec.informatik.tu-darm                                        stadt.de/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.gen                                        too.mesh-solutions.com/gentoo/ http://pandemonium.tiscali.de/pub/gentoo/ ftp://pandemonium.tiscali.de/pub/gentoo/ ftp://ftp.rz.tu-bs.de                                        /pub/mirror/ftp.gentoo.org/gentoo-distfiles/ http://gentoo.intergenia.de ftp://files.gentoo.gr ftp://ftp.ntua.gr/pub/linux/gentoo/"
LANG="de_DE"
LC_ALL="de_DE"
LINGUAS="de fi en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="ppc 16bit 7zip X a52 aac aalib aim alsa altivec aotuv apm asf audiofile automount bash-completion berkdb bigger-fonts bitmap-fonts                                         bl bluetooth bmp bootsplash browserplugin bzip2 caps cardbus cdb cdda cddb cdio cdparanoia clamav clamd cle266 commercial corba cpudet                                        ection crypt css cups curl daap dbus dcc disk-cache djbfft dri dtaus dts dv dvb dvd dvdread edl eds encode escreen esd ethereal etwin e                                        xif expat fame fat fbcon fbsplash ffmpeg finger flac fltk font-server fontconfig foomaticdb fortran fping fpx ftp fuse gd gdbm geldkart                                        e ggi gif gimp gimpprint glut glx gmp gnutls gphoto2 gpm gs gstreamer gtk gtk2 gzip hal hbci hfs hpn httpd ibam icq idn ieee1394 imagem                                        agick imap imlib ipv6 irc irda jabber java javacomm javascript jfs jikes john jp2 jpeg jpeg2k lcms ldapsam libcaca libclamav libdsk lib                                        www live lj lzo mad madwifi maps matroska mbox metar mikmod mjpeg mng mod motif mozcalendar mozilla moznocompose moznoirc moznomail moz                                        sha1 mozsvg mp3 mpeg mpi msn multicall nas ncurses network nls nocd nptl nptlonly nsplugin ntfs oav offensive ogg oggvorbis openal open                                        gl openssh openssl osc oscar oss pam pda pdflib perl physfs plugin pmu png pnp portaudio ppcsha1 ppds python pyzor quicktime quotas quo                                        tes razor readline recode reiser4 reiserfs remote ruby samba sasl screen sdl sensord sftp sftplogging shorten shout skins slp sms sndfi                                        le sounds soundtouch spamassassin speex spell ssl stats stream subject-rewrite subtitles svg swat sylpheed symlink sysfs szip tcltk tga                                         theora threads tiff timidity toolbar tools truetype truetype-fonts type1-fonts udev usb userlocales vcd vcdimager videos vlm vorbis wi                                        fi winbind wma123 wmf wxwindows xanim xface xforms xfs xgetdefault xine xml2 xmms xosd xpm xprint xscreensaver xv xvid yahoo yv12 zlib                                         linguas_de linguas_fi linguas_en userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS

(In reply to comment #3)
> *** Bug 120293 has been marked as a duplicate of this bug. ***
> 


 

Comment 5 Henrik Brix Andersen 2006-01-25 05:36:18 UTC
Please attach the full output of `emerge madwifi-driver`.
Comment 6 Lupo 2006-01-25 05:40:36 UTC
(In reply to comment #5)
> Please attach the full output of `emerge madwifi-driver`.
> 

Ok, here the complete output:

emerge madwifi-driver
Calculating dependencies ...done!
>>> emerge (1 of 1) net-wireless/madwifi-driver-0.1401.20060117 to /
>>> md5 files   ;-) madwifi-driver-0.1_pre20051111.ebuild
>>> md5 files   ;-) madwifi-driver-0.1_pre20050420-r1.ebuild
>>> md5 files   ;-) madwifi-driver-0.1401.20060117.ebuild
>>> md5 files   ;-) files/digest-madwifi-driver-0.1_pre20051111
>>> md5 files   ;-) files/digest-madwifi-driver-0.1_pre20050420-r1
>>> md5 files   ;-) files/digest-madwifi-driver-0.1401.20060117
>>> md5 src_uri ;-) madwifi-ng-r1401-20060117.tar.gz
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     2.6.15-nitro3
 * Checking for suitable kernel configuration options:
>>> Unpacking source...
>>> Unpacking madwifi-ng-r1401-20060117.tar.gz to /var/tmp/portage/madwifi-driver-0.1401.20060117/work
 * Converting madwifi-ng-r1401-20060117/ath/Makefile to use M= instead of SUBDIRS= ...                                                                                   [ ok ]
 * Converting madwifi-ng-r1401-20060117/ath_hal/Makefile to use M= instead of SUBDIRS= ...                                                                               [ ok ]
 * Converting madwifi-ng-r1401-20060117/net80211/Makefile to use M= instead of SUBDIRS= ...                                                                              [ ok ]
 * Converting madwifi-ng-r1401-20060117/ath_rate/amrr/Makefile to use M= instead of SUBDIRS= ...                                                                         [ ok ]
 * Converting madwifi-ng-r1401-20060117/ath_rate/onoe/Makefile to use M= instead of SUBDIRS= ...                                                                         [ ok ]
 * Converting madwifi-ng-r1401-20060117/ath_rate/sample/Makefile to use M= instead of SUBDIRS= ...                                                                       [ ok ]
>>> Source unpacked.
./scripts/get_arch_target.sh: line 19: test: too many arguments
Makefile.inc:135: *** Cannot determine kernel architecture, please set ARCH.  Schluss.

!!! ERROR: net-wireless/madwifi-driver-0.1401.20060117 failed.
!!! Function src_compile, Line 78, Exitcode 2
!!! emake info failed
!!! If you need support, post the topmost build error, NOT this status message.


Comment 7 Lupo 2006-01-25 06:39:43 UTC
Ok,

after adding the "&&" in line 19 and doing a "ebuild madwifi-driver-0.1401.20060117.ebuild merge" (thx for the tip JoseJX!) i get following error:

ebuild madwifi-driver-0.1401.20060117.ebuild merge
Disabling noauto in features... merge disables it. (qmerge doesn't)
>>> md5 files   ;-) madwifi-driver-0.1_pre20051111.ebuild
>>> md5 files   ;-) madwifi-driver-0.1_pre20050420-r1.ebuild
>>> md5 files   ;-) madwifi-driver-0.1401.20060117.ebuild
>>> md5 files   ;-) files/digest-madwifi-driver-0.1_pre20051111
>>> md5 files   ;-) files/digest-madwifi-driver-0.1_pre20050420-r1
>>> md5 files   ;-) files/digest-madwifi-driver-0.1401.20060117
>>> md5 src_uri ;-) madwifi-ng-r1401-20060117.tar.gz
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     2.6.15-nitro3
 * Checking for suitable kernel configuration options:
>>> Checking madwifi-ng-r1401-20060117.tar.gz's mtime...
>>> WORKDIR is up-to-date, keeping...
The following settings will be used for compilation:
TARGET       : powerpc-be-elf
OS           : linux
ARCH         : ppc
BUS          : PCI
KERNELRELEASE: 2.6.15-nitro3
KERNELPATH   : /usr/src/linux
KERNELCONF   : /usr/src/linux/.config
MODULEPATH   : /lib/modules/2.6.15-nitro3/net
KMODSUF      : ko
 * Preparing ath_hal module
cp -f ./../hal/public/powerpc-be-elf.opt_ah.h opt_ah.h
/usr/bin/uudecode ./../hal/public/powerpc-be-elf.hal.o.uu
cp -f ./../hal/linux/ah_osdep.c ah_osdep.c
make -C /usr/src/linux M=/var/tmp/portage/madwifi-driver-0.1401.20060117/work/madwifi-ng-r1401-20060117/ath_hal MODVERDIR=/var/tmp/portage/madwifi-driver-0.1401.20060117/work/madwifi-ng-r1401-20060117/ath_hal/../symbols modules
make[1]: Entering directory `/usr/src/linux-2.6.15-nitro3'
  CC [M]  /var/tmp/portage/madwifi-driver-0.1401.20060117/work/madwifi-ng-r1401-20060117/ath_hal/ah_osdep.o
/var/tmp/portage/madwifi-driver-0.1401.20060117/work/madwifi-ng-r1401-20060117/ath_hal/ah_osdep.c: In function `ath_hal_reg_write':
/var/tmp/portage/madwifi-driver-0.1401.20060117/work/madwifi-ng-r1401-20060117/ath_hal/ah_osdep.c:330: warning: passing arg 2 of `writel' makes pointer from integer without a cast
/var/tmp/portage/madwifi-driver-0.1401.20060117/work/madwifi-ng-r1401-20060117/ath_hal/ah_osdep.c:330: warning: passing arg 2 of `writel' makes pointer from integer without a cast
/var/tmp/portage/madwifi-driver-0.1401.20060117/work/madwifi-ng-r1401-20060117/ath_hal/ah_osdep.c: In function `ath_hal_reg_read':
/var/tmp/portage/madwifi-driver-0.1401.20060117/work/madwifi-ng-r1401-20060117/ath_hal/ah_osdep.c:339: warning: passing arg 1 of `readl' makes pointer from integer without a cast
/var/tmp/portage/madwifi-driver-0.1401.20060117/work/madwifi-ng-r1401-20060117/ath_hal/ah_osdep.c:339: warning: passing arg 1 of `readl' makes pointer from integer without a cast
Comment 8 Henrik Brix Andersen 2006-01-25 07:05:48 UTC
-nitro is not a supported kernel under Gentoo Linux.

Can you reproduce this with either gentoo-sources-2.6.15-r1 or vanilla-sources-2.6.15.1?
Comment 9 Lupo 2006-01-25 07:23:52 UTC
(In reply to comment #8)
> -nitro is not a supported kernel under Gentoo Linux.
> 
> Can you reproduce this with either gentoo-sources-2.6.15-r1 or
> vanilla-sources-2.6.15.1?
> 

I will try it with gentoo-sources tonight. Compiling a kernel on this machine takes a hour... ;)
Will report after trying it.

Greetings,
Lupo
Comment 10 Lupo 2006-01-25 15:11:35 UTC
Ok, with gentoo-sources-2.6.15-r1:

 ebuild madwifi-driver-0.1401.20060117.ebuild merge
Disabling noauto in features... merge disables it. (qmerge doesn't)
>>> md5 files   ;-) madwifi-driver-0.1_pre20051111.ebuild
>>> md5 files   ;-) madwifi-driver-0.1_pre20050420-r1.ebuild
>>> md5 files   ;-) madwifi-driver-0.1401.20060117.ebuild
>>> md5 files   ;-) files/digest-madwifi-driver-0.1_pre20051111
>>> md5 files   ;-) files/digest-madwifi-driver-0.1_pre20050420-r1
>>> md5 files   ;-) files/digest-madwifi-driver-0.1401.20060117
>>> md5 src_uri ;-) madwifi-ng-r1401-20060117.tar.gz
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     2.6.15-gentoo-r1
 * Checking for suitable kernel configuration options:
>>> Checking madwifi-ng-r1401-20060117.tar.gz's mtime...
>>> WORKDIR is up-to-date, keeping...
The following settings will be used for compilation:
TARGET       : powerpc-be-elf
OS           : linux
ARCH         : ppc
BUS          : PCI
KERNELRELEASE: 2.6.15-gentoo-r1
KERNELPATH   : /usr/src/linux
KERNELCONF   : /usr/src/linux/.config
MODULEPATH   : /lib/modules/2.6.15-gentoo-r1/net
KMODSUF      : ko
 * Preparing ath_hal module
cp -f ./../hal/public/powerpc-be-elf.opt_ah.h opt_ah.h
/usr/bin/uudecode ./../hal/public/powerpc-be-elf.hal.o.uu
cp -f ./../hal/linux/ah_osdep.c ah_osdep.c
make -C /usr/src/linux M=/var/tmp/portage/madwifi-driver-0.1401.20060117/work/madwifi-ng-r1401-20060117/ath_hal MODVERDIR=/var/tmp/portage/madwifi-driver-0.1401.20060117/work/madwifi-ng-r1401-20060117/ath_hal/../symbols modules
make[1]: Entering directory `/usr/src/linux-2.6.15-gentoo-r1'
  CC [M]  /var/tmp/portage/madwifi-driver-0.1401.20060117/work/madwifi-ng-r1401-20060117/ath_hal/ah_osdep.o
/var/tmp/portage/madwifi-driver-0.1401.20060117/work/madwifi-ng-r1401-20060117/ath_hal/ah_osdep.c: In function `ath_hal_reg_write':
/var/tmp/portage/madwifi-driver-0.1401.20060117/work/madwifi-ng-r1401-20060117/ath_hal/ah_osdep.c:330: warning: passing arg 2 of `writel' makes pointer from integer without a cast
/var/tmp/portage/madwifi-driver-0.1401.20060117/work/madwifi-ng-r1401-20060117/ath_hal/ah_osdep.c:330: warning: passing arg 2 of `writel' makes pointer from integer without a cast
/var/tmp/portage/madwifi-driver-0.1401.20060117/work/madwifi-ng-r1401-20060117/ath_hal/ah_osdep.c: In function `ath_hal_reg_read':
/var/tmp/portage/madwifi-driver-0.1401.20060117/work/madwifi-ng-r1401-20060117/ath_hal/ah_osdep.c:339: warning: passing arg 1 of `readl' makes pointer from integer without a cast
/var/tmp/portage/madwifi-driver-0.1401.20060117/work/madwifi-ng-r1401-20060117/ath_hal/ah_osdep.c:339: warning: passing arg 1 of `readl' makes pointer from integer without a cast
make[2]: *** [/var/tmp/portage/madwifi-driver-0.1401.20060117/work/madwifi-ng-r1401-20060117/ath_hal/ah_osdep.o] Error 1
make[1]: *** [_module_/var/tmp/portage/madwifi-driver-0.1401.20060117/work/madwifi-ng-r1401-20060117/ath_hal] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.15-gentoo-r1'
make: *** [all] Fehler 2

!!! ERROR: net-wireless/madwifi-driver-0.1401.20060117 failed.
!!! Function linux-mod_src_compile, Line 505, Exitcode 2
!!! Unable to make                                  TOUT=/var/tmp/portage/madwifi-driver-0.1401.20060117/temp/.tmp_gas_check TOUT=/var/tmp/portage/madwifi-driver-0.1401.20060117/temp/.tmp_gas_check TOUT=/var/tmp/portage/madwifi-driver-0.1401.20060117/temp/.tmp_gas_check KERNELPATH=/usr/src/linux ATH_RATE=ath_rate/sample all.
!!! If you need support, post the topmost build error, NOT this status message.

hermes #



So it's not kernel related i think.

Greetings,
Lupo 
Comment 11 Henrik Brix Andersen 2006-01-27 07:43:42 UTC
Reopening.
Comment 12 Lupo 2006-01-27 07:48:53 UTC
(In reply to comment #11)
> Reopening.
> 

Thank you Henrik.

This error seems to be reproducable like one can see in this Thread:
http://forums.gentoo.org/viewtopic.php?p=3063650#3063650


Greetings,
Lupo
Comment 13 Henrik Brix Andersen 2006-02-01 06:05:39 UTC
Fixed in net-wireless/madwifi-driver-0.1420.20060201. Thank you for reporting this.