Problem compiling for linux 2.6
It fails at line #113 of /Makefile :
@for d in $(SUBDIRS); do if ! $(MAKE) -C $$d prepare; then exit 1; fi; done
I have no idea why $(SUBDIRS) is an empty string:
[Giu@Jay alsa-driver-1.0.2]$ ./cvscompile --with-cards=powermac --with-isapnp=no --with-sequencer=no --with-oss=no --with-kernel=/opt/KernelSrc/l26 --with-debug=full [...]
copying file alsa-kernel/core/memalloc.c
patching file memalloc.c/bin/sh: -c: line 1: syntax error near unexpected token `;'/bin/sh: -c: line 1: `for d in ; do make -C $d prepare; done'
make[1]: *** [prepare] Error 2
make[1]: Leaving directory `/home/Giu/soft/alsa-driver-1.0.2/acore'
make: *** [dep] Error 1
[Giu@Jay alsa-driver-1.0.2]$ uname -a
Linux Jay 2.6.2-rc1-ben1 #2 SMP Wed Jan 28 22:19:17 CET 2004 ppc unknown
I'm using ALSA-1.0.2 after it was reuploaded. With linux 2.4 is compile just fine as usual. I'm using 2.6 for the first time... maybe I forgot to install/update something. :)
--
Giuliano.
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
At Thu, 29 Jan 2004 00:14:16 +0100,
Quoted 10 lines · Giuliano Pochini
It fails at line #113 of /Makefile :
@for d in $(SUBDIRS); do if ! $(MAKE) -C $$d prepare; then exit 1; fi; doneI have no idea why $(SUBDIRS) is an empty string:
[Giu@Jay alsa-driver-1.0.2]$ ./cvscompile --with-cards=powermac --with-isapnp=no --with-sequencer=no --with-oss=no --with-kernel=/opt/KernelSrc/l26 --with-debug=full
note that --with-isapnp is ignored on 2.6 kernel. the isapnp support depends only on the kernel itself.
Quoted 11 lines
[...]
copying filealsa-kernel/core/memalloc.c
patching filememalloc.c/bin/sh: -c: line 1: syntax error near unexpected token `;'/bin/sh: -c: line 1: `for d in ; do make -C $d prepare; done'
make[1]: *** [prepare] Error 2
make[1]: Leaving directory `/home/Giu/soft/alsa-driver-1.0.2/acore'
make: *** [dep] Error 1
[Giu@Jay alsa-driver-1.0.2]$ uname -a
Linux Jay 2.6.2-rc1-ben1 #2 SMP Wed Jan 28 22:19:17 CET 2004 ppc unknown
Quoted 3 lines
I'm using ALSA-1.0.2 after it was reuploaded. With linux 2.4 is compile just fine as usual. I'm using 2.6 for the first time... maybe I forgot to install/update something. :)
does the attached patch work?
Takashi
Index: alsa-driver/Rules.make
===================================================================
RCS file: /suse/tiwai/cvs/alsa/alsa-driver/Rules.make,v retrieving revision 1.34
Rules.make +5 -4
@@ -17,8 +17,9 @@ # apply patches beforehand prepare: $(clean-files) @for d in $(patsubst %/,%,$(filter %/, $(obj-y))) \ - $(patsubst %/,%,$(filter %/, $(obj-m))); do \ - $(MAKE) -C $$d prepare; \ + $(patsubst %/,%,$(filter %/, $(obj-m))) DUMMY; do \ + echo $$d; \ + if [ $$d != DUMMY ]; then $(MAKE) -C $$d prepare; fi; \ done ALL_MOBJS := $(filter-out $(obj-y), $(obj-m))
@@ -29,8 +30,8 @@ cp $(ALL_MOBJS:.o=.ko) $(DESTDIR)$(moddir)/$(MODCURDIR) endif @for d in $(patsubst %/,%,$(filter %/, $(obj-y))) \ - $(patsubst %/,%,$(filter %/, $(obj-m))); do \ - $(MAKE) -C $$d modules_install; \ + $(patsubst %/,%,$(filter %/, $(obj-m))) DUMMY; do \ + if [ $$d != DUMMY ]; then $(MAKE) -C $$d modules_install; fi; \ done else
Quoted 2 lines · On Thu, 29 Jan 2004 14:38:14 +0100 Takashi Iwai <[email protected]> wrote:
note that --with-isapnp is ignored on 2.6 kernel. the isapnp support depends only on the kernel itself.
Ok, I used that option only to avoid compiling useless stuff.
Quoted 1 line
does the attached patch work?
Yes it works. I compiled the modules successfully, after a few minor changes to my code. Thanks.
It only complains about SUBDIRS, but it seems harmless:
Building modules, stage 2./home/Giu/l26/scripts/Makefile.modpost:17: *** Uh-oh, you have stale module entries. You messed with SUBDIRS, /home/Giu/l26/scripts/Makefile.modpost:18: do not complain if something goes wrong.
MODPOST
--
Giuliano.
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn