* Problem compiling for linux 2.6
@ 2004-01-28 23:14 Giuliano Pochini
2004-01-29 13:38 ` Takashi Iwai
0 siblings, 1 reply; 3+ messages in thread
From: Giuliano Pochini @ 2004-01-28 23:14 UTC (permalink / raw)
To: Alsa-devel
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
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: Problem compiling for linux 2.6 2004-01-28 23:14 Problem compiling for linux 2.6 Giuliano Pochini @ 2004-01-29 13:38 ` Takashi Iwai 2004-01-29 22:08 ` Giuliano Pochini 0 siblings, 1 reply; 3+ messages in thread From: Takashi Iwai @ 2004-01-29 13:38 UTC (permalink / raw) To: Giuliano Pochini; +Cc: Alsa-devel [-- Attachment #1: Type: text/plain, Size: 1206 bytes --] At Thu, 29 Jan 2004 00:14:16 +0100, Giuliano Pochini wrote: > > > 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 note that --with-isapnp is ignored on 2.6 kernel. the isapnp support depends only on the kernel itself. > [...] > 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. :) does the attached patch work? Takashi [-- Attachment #2: Type: text/plain, Size: 1102 bytes --] Index: alsa-driver/Rules.make =================================================================== RCS file: /suse/tiwai/cvs/alsa/alsa-driver/Rules.make,v retrieving revision 1.34 diff -u -r1.34 Rules.make --- alsa-driver/Rules.make 26 Jan 2004 11:06:03 -0000 1.34 +++ alsa-driver/Rules.make 29 Jan 2004 13:36:40 -0000 @@ -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 ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Problem compiling for linux 2.6 2004-01-29 13:38 ` Takashi Iwai @ 2004-01-29 22:08 ` Giuliano Pochini 0 siblings, 0 replies; 3+ messages in thread From: Giuliano Pochini @ 2004-01-29 22:08 UTC (permalink / raw) To: Takashi Iwai; +Cc: Alsa-devel On Thu, 29 Jan 2004 14:38:14 +0100 Takashi Iwai <tiwai@suse.de> 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. > 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 ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-01-29 22:08 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2004-01-28 23:14 Problem compiling for linux 2.6 Giuliano Pochini 2004-01-29 13:38 ` Takashi Iwai 2004-01-29 22:08 ` Giuliano Pochini
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.