I cannot emerge linux-wlan-ng, the emerge fails with errors, some of them not related to kernel 2.6.0-test2. BTW, linux-wlan-ng compiles successful if done by hand (I mean, not using emerge). Have a look to "Actual Results" and note all the configure errors. The "Expected Results" is done by untarring the archive and giving same configurations parameters by hand. Reproducible: Always Steps to Reproduce: 1. emerge linux-wlan-ng 2. 3. Actual Results: >>> Source unpacked. mv: impossibile fare stat di `default.config': No such file or directory -------------- Linux WLAN Configuration Script ------------- The default responses are correct for most users. Build Prism2.x PCMCIA Card Services (_cs) driver? (y/n) [n] Build Prism2 PLX9052 based PCI (_plx) adapter driver? (y/n) [n] Build Prism2.5 native PCI (_pci) driver? (y/n) [y] Build Prism2.5 USB (_usb) driver? (y/n) [y] Linux source directory [/usr/src/linux] make[1]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule . Makefile:272: arch/x86/Makefile: No such file or directory make[2]: *** No rule to make target `arch/x86/Makefile'. Stop. make[1]: *** [get_options] Error 2 ./Configure: line 306: scripts/make.opts: No such file or directory The kernel source tree is version . Kernel 2.5/2.6 support is highly experimental. WARNING: the current running kernel is actually version 2.6.0-test2. The current kernel build date is Sat Aug 2 13:21:33 2003. ./Configure: line 360: [: too many arguments ./Configure: line 398: scripts/make.opts: No such file or directory Alternate target install root directory on host [/home/portage/linux-wlan-ng-0.2 .1_pre11/image/] Module install directory [/lib/modules/] It looks like you have a System V init file setup. Prefix for build host compiler? (rarely needed) [] Build for debugging (see doc/config.debug) (y/n) [n] Configuration successful. set -e; for d in src doc man etc; do make -C $d ; done make[1]: Entering directory `/home/portage/linux-wlan-ng-0.2.1_pre11/work/linux- wlan-ng-0.2.1-pre11/src' set -e; for d in mkmeta p80211 prism2 shared wlanctl wland nwepgen wlancfg; do m ake -C $d ; done make[2]: Entering directory `/home/portage/linux-wlan-ng-0.2.1_pre11/work/linux- wlan-ng-0.2.1-pre11/src/mkmeta' gcc -E -M -I../include -I/usr/src/linux/include -D__LINUX_WLAN__ ../shared/p8021 1types.c ../shared/p80211metamsg.c ../shared/p80211metamib.c ../shared/p80211met a.c mkmetadef.c ../shared/p80211types.c ../shared/p80211metamsg.c ../shared/p80 211metamib.c ../shared/p80211meta.c mkmetastruct.c > .depend mkdir -p obj gcc -c -I../include -I/usr/src/linux/include -D__LINUX_WLAN__ ../shared/p80211t ypes.c -o obj/p80211types.o gcc -c -I../include -I/usr/src/linux/include -D__LINUX_WLAN__ ../shared/p80211m etamsg.c -o obj/p80211metamsg.o gcc -c -I../include -I/usr/src/linux/include -D__LINUX_WLAN__ ../shared/p80211m etamib.c -o obj/p80211metamib.o gcc -c -I../include -I/usr/src/linux/include -D__LINUX_WLAN__ ../shared/p80211m eta.c -o obj/p80211meta.o gcc -c -I../include -I/usr/src/linux/include -D__LINUX_WLAN__ mkmetadef.c -o ob j/mkmetadef.o gcc -c -I../include -I/usr/src/linux/include -D__LINUX_WLAN__ mkmetastruct.c -o obj/mkmetastruct.o gcc -o mkmetadef obj/p80211types.o obj/p80211metamsg.o obj/p80211metamib.o obj/ p80211meta.o obj/mkmetadef.o gcc -o mkmetastruct obj/p80211types.o obj/p80211metamsg.o obj/p80211metamib.o o bj/p80211meta.o obj/mkmetastruct.o cat mkmetadefhead.txt > ../include/wlan/p80211metadef.h ./mkmetadef >> ../include/wlan/p80211metadef.h cat mkmetastructhead.txt > ../include/wlan/p80211metastruct.h ./mkmetastruct >> ../include/wlan/p80211metastruct.h echo "#endif" >> ../include/wlan/p80211metastruct.h echo "#endif" >> ../include/wlan/p80211metadef.h make[2]: Leaving directory `/home/portage/linux-wlan-ng-0.2.1_pre11/work/linux-w lan-ng-0.2.1-pre11/src/mkmeta' make[2]: Entering directory `/home/portage/linux-wlan-ng-0.2.1_pre11/work/linux- wlan-ng-0.2.1-pre11/src/p80211' if test ! -d /home/portage/linux-wlan-ng-0.2.1_pre11/work/linux-wlan-ng-0.2.1-pr e11/src/p80211/../.tmp_versions; then \ cp -rf /usr/src/linux/.tmp_versions /home/portage/linux-wlan-ng-0.2.1_pr e11/work/linux-wlan-ng-0.2.1-pre11/src/p80211/../ ; \ fi make -C /usr/src/linux SUBDIRS=/home/portage/linux-wlan-ng-0.2.1_pre11/work/linu x-wlan-ng-0.2.1-pre11/src/p80211 WLAN_SRC=/home/portage/linux-wlan-ng-0.2.1_pre1 1/work/linux-wlan-ng-0.2.1-pre11/src/p80211/ \ MODVERDIR=/home/portage/linux-wlan-ng-0.2.1_pre11/work/linux-wlan-ng-0.2 .1-pre11/src/p80211/../.tmp_versions modules make[3]: Entering directory `/home/linux-2.6.0-test2' Makefile:272: arch/x86/Makefile: No such file or directory make[3]: *** No rule to make target `arch/x86/Makefile'. Stop. make[3]: Leaving directory `/home/linux-2.6.0-test2' make[2]: *** [default] Error 2 make[2]: Leaving directory `/home/portage/linux-wlan-ng-0.2.1_pre11/work/linux-w lan-ng-0.2.1-pre11/src/p80211' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/portage/linux-wlan-ng-0.2.1_pre11/work/linux-w lan-ng-0.2.1-pre11/src' make: *** [all] Error 2 !!! ERROR: net-wireless/linux-wlan-ng-0.2.1_pre11 failed. !!! Function src_compile, Line 169, Exitcode 2 !!! failed compiling Expected Results: cerrito linux-wlan-ng-0.2.1-pre11 # ./Configure -------------- Linux WLAN Configuration Script ------------- The default responses are correct for most users. Build Prism2.x PCMCIA Card Services (_cs) driver? (y/n) [n]: Build Prism2 PLX9052 based PCI (_plx) adapter driver? (y/n) [n]: Build Prism2.5 native PCI (_pci) driver? (y/n) [y]: y Build Prism2.5 USB (_usb) driver? (y/n) [n]: y Linux source directory [/usr/src/linux]: The kernel source tree is version 2.6.0-test2. Kernel 2.5/2.6 support is highly experimental. The current kernel build date is Sat Aug 2 13:21:33 2003. Alternate target install root directory on host []: /home/portage/linux-wlan-ng-0.2.1_pre11/image/ Module install directory [/lib/modules/2.6.0-test2]: /lib/modules It looks like you have a System V init file setup. Prefix for build host compiler? (rarely needed) []: Build for debugging (see doc/config.debug) (y/n) [n]: Configuration successful. cerrito linux-wlan-ng-0.2.1-pre11 # make all set -e; for d in src doc man etc; do make -C $d ; done make[1]: Entering directory `/root/linux-wlan-ng-0.2.1-pre11/src' set -e; for d in mkmeta p80211 prism2 shared wlanctl wland nwepgen wlancfg; do make -C $d ; done make[2]: Entering directory `/root/linux-wlan-ng-0.2.1-pre11/src/mkmeta' gcc -E -M -I../include -I/usr/src/linux/include -D__LINUX_WLAN__ ../shared/p80211types.c ../shared/p80211metamsg.c ../shared/p80211metamib.c ../shared/p80211meta.c mkmetadef.c ../shared/p80211types.c ../shared/p80211metamsg.c ../shared/p80211metamib.c ../shared/p80211meta.c mkmetastruct.c > .depend mkdir -p obj make[2]: Leaving directory `/root/linux-wlan-ng-0.2.1-pre11/src/mkmeta' make[2]: Entering directory `/root/linux-wlan-ng-0.2.1-pre11/src/p80211' if test ! -d /root/linux-wlan-ng-0.2.1-pre11/src/p80211/../.tmp_versions; then \ cp -rf /usr/src/linux/.tmp_versions /root/linux-wlan-ng-0.2.1-pre11/src/p80211/../ ; \ fi make -C /usr/src/linux SUBDIRS=/root/linux-wlan-ng-0.2.1-pre11/src/p80211 WLAN_SRC=/root/linux-wlan-ng-0.2.1-pre11/src/p80211/ \ MODVERDIR=/root/linux-wlan-ng-0.2.1-pre11/src/p80211/../.tmp_versions modules make[3]: Entering directory `/home/linux-2.6.0-test2' make[4]: `arch/i386/kernel/asm-offsets.s' is up to date. *** Warning: Overriding SUBDIRS on the command line can cause *** inconsistencies Building modules, stage 2. MODPOST make[3]: Leaving directory `/home/linux-2.6.0-test2' make[2]: Leaving directory `/root/linux-wlan-ng-0.2.1-pre11/src/p80211' make[2]: Entering directory `/root/linux-wlan-ng-0.2.1-pre11/src/prism2' set -e; for d in driver ridlist; do make -C $d ; done make[3]: Entering directory `/root/linux-wlan-ng-0.2.1-pre11/src/prism2/driver' if test ! -d /root/linux-wlan-ng-0.2.1-pre11/src/prism2/driver/../../.tmp_versions; then \ cp -rf /usr/src/linux/.tmp_versions /root/linux-wlan-ng-0.2.1-pre11/src/prism2/driver/../../ ; \ fi make -C /usr/src/linux SUBDIRS=/root/linux-wlan-ng-0.2.1-pre11/src/prism2/driver WLAN_SRC=/root/linux-wlan-ng-0.2.1-pre11/src/prism2/driver/ \ MODVERDIR=/root/linux-wlan-ng-0.2.1-pre11/src/prism2/driver/../../.tmp_versions modules make[4]: Entering directory `/home/linux-2.6.0-test2' make[5]: `arch/i386/kernel/asm-offsets.s' is up to date. *** Warning: Overriding SUBDIRS on the command line can cause *** inconsistencies CC [M] /root/linux-wlan-ng-0.2.1-pre11/src/prism2/driver/prism2_usb.o Building modules, stage 2. MODPOST CC /root/linux-wlan-ng-0.2.1-pre11/src/prism2/driver/prism2_usb.mod.o LD [M] /root/linux-wlan-ng-0.2.1-pre11/src/prism2/driver/prism2_usb.ko make[4]: Leaving directory `/home/linux-2.6.0-test2' make[3]: Leaving directory `/root/linux-wlan-ng-0.2.1-pre11/src/prism2/driver' make[3]: Entering directory `/root/linux-wlan-ng-0.2.1-pre11/src/prism2/ridlist' mkdir -p obj make[3]: Leaving directory `/root/linux-wlan-ng-0.2.1-pre11/src/prism2/ridlist' make[2]: Leaving directory `/root/linux-wlan-ng-0.2.1-pre11/src/prism2' make[2]: Entering directory `/root/linux-wlan-ng-0.2.1-pre11/src/shared' Nothing to do... make[2]: Leaving directory `/root/linux-wlan-ng-0.2.1-pre11/src/shared' make[2]: Entering directory `/root/linux-wlan-ng-0.2.1-pre11/src/wlanctl' make[2]: `wlanctl' is up to date. make[2]: Leaving directory `/root/linux-wlan-ng-0.2.1-pre11/src/wlanctl' make[2]: Entering directory `/root/linux-wlan-ng-0.2.1-pre11/src/wland' make[2]: `wland' is up to date. make[2]: Leaving directory `/root/linux-wlan-ng-0.2.1-pre11/src/wland' make[2]: Entering directory `/root/linux-wlan-ng-0.2.1-pre11/src/nwepgen' make[2]: `nwepgen' is up to date. make[2]: Leaving directory `/root/linux-wlan-ng-0.2.1-pre11/src/nwepgen' make[2]: Entering directory `/root/linux-wlan-ng-0.2.1-pre11/src/wlancfg' make[2]: `wlancfg' is up to date. make[2]: Leaving directory `/root/linux-wlan-ng-0.2.1-pre11/src/wlancfg' make[1]: Leaving directory `/root/linux-wlan-ng-0.2.1-pre11/src' make[1]: Entering directory `/root/linux-wlan-ng-0.2.1-pre11/doc' Nothing to do... make[1]: Leaving directory `/root/linux-wlan-ng-0.2.1-pre11/doc' make[1]: Entering directory `/root/linux-wlan-ng-0.2.1-pre11/man' Nothing to do... make[1]: Leaving directory `/root/linux-wlan-ng-0.2.1-pre11/man' make[1]: Entering directory `/root/linux-wlan-ng-0.2.1-pre11/etc' set -e; for d in pcmcia wlan; do make -C $d all; done make[2]: Entering directory `/root/linux-wlan-ng-0.2.1-pre11/etc/pcmcia' Nothing to do make[2]: Leaving directory `/root/linux-wlan-ng-0.2.1-pre11/etc/pcmcia' make[2]: Entering directory `/root/linux-wlan-ng-0.2.1-pre11/etc/wlan' echo "Nothing to do" Nothing to do make[2]: Leaving directory `/root/linux-wlan-ng-0.2.1-pre11/etc/wlan' make[1]: Leaving directory `/root/linux-wlan-ng-0.2.1-pre11/etc' cerrito linux-wlan-ng-0.2.1-pre11 # cerrito linux-wlan-ng-0.2.1-pre11 # emerge info Portage 2.0.48-r7 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1) ================================================================= System uname: 2.6.0-test2 i686 Intel(R) Pentium(R) III Mobile CPU 1200MHz GENTOO_MIRRORS="http://mi.mirror.garr.it/mirrors/gentoo http://212.219.56.162/sites/www.ibiblio.org/gentoo/ http://194.83.57.2/sites/www.ibiblio.org/gentoo/ http://194.83.57.3/sites/www.ibiblio.org/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://ftp.flashnet.it/mirror/12/sunsite.unc.edu/Gentoo http://ibiblio.org/pub/Linux/ftp.edisontel.com/pub/Sunsite_Mirror http://sunsite.cnlab-switch.ch/ftp/mirror/gentoo ftp://sunsite.cnlab-switch.ch/mirror/gentoo http://www.ibiblio.org/pub/Linux/distributions/gentoo http://gentoo.oregonstate.edu " CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/home/portdir" DISTDIR="/home/portdir/distfiles" PKGDIR="/home/portdir/packages" PORTAGE_TMPDIR="/home" PORTDIR_OVERLAY="/root/ebuilds" USE="oss 3dnow foomaticdb gnome mad mikmod aalib tcltk guile ruby sdl perl gtk qt x86 acpi acl alsa apm avi berkdb bonobo cdr crypt cups directfb dga dvd encode gdbm gif gpm fbcon krb4 kerberos imlib java jpeg gtk2 gtkhtml ldap libg++ libwww miknod mmx motif mozilla mpeg ncurses nls oggvorbis opengl pam pdflib png pnp python quicktime radeon readline samba slang spell sse ssl svga tcpd truetype usb X xml2 xmms xv zlib kde arts -esd" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=pentium3 -mfpmath=sse -O2 -pipe -fomit-frame-pointer -mmmx -msse -falign-functions=4 -fforce-addr" CXXFLAGS="-march=pentium3 -mfpmath=sse -O2 -pipe -fomit-frame-pointer -mmmx -msse -falign-functions=4 -fforce-addr" ACCEPT_KEYWORDS="x86 ~x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache"
I have the same problem. I figured out that it was the ARCH variable that interfered with the kernel buildsystem thus this error: Makefile:272: arch/x86/Makefile: No such file or directory When I unset the ARCH variable in the ebuild it seems to compile but I get a sandbox violation instead when the kernel buildsystem is about to perform stage 2 of the module building. Just some additional info, I don't know how to fix it.
Ok, I had some time to fix this now however I did it against linux-wlan-ng-0.2.1_pre13 since it was the only version that seemed to work with linux-2.6.0-test7. Note, this is a strange way to fix it... 1. Copy pre11 to pre13 and make all that other stuff (digest). 2. Add an "unset ARCH" into the ebuild after the MY_ARCH assignment. 3. Get the Configure file from the pcmcia_cs package, edit it by removing the test that tests for the right version of module utilities. It might be updated in a later pcmcia_cs but I didn't bother to look. 4. I added a "cp <the edited pcmcia_cs Configure file > ." before the place where it gets called in the ebuild. 5. DISABLE_SANDBOX=1 emerge linux-wlan-ng It worked!
DISABLE_SANDBOX=1 is wrong, it should be SANDBOX_DISABLED=1. Sorry!
Why do you need SANDBOX_DISABLED=1?
I think I've found the probelm. There are too many "mv default.config config.in". This little patch seems to solve all problems. Can someone test it?
Created attachment 19805 [details, diff] patch
Okay. 0.2.1_pre17 is in portage now with unsetting ARCH, using sed-4 so we can avoid all the annoying copies of that one file. There's info in the pkg_postinst about the sandbox issues, but i'll add a check for sandbox and 2.6 and die if it's a problem and let people know. Closing this mishmash of bugs as FIXED. reopen if there's still problems.