Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* linux-2.5.66-bk2 + patch from Marc Zyngier
@ 2003-03-27 10:38 Niki Waibel
  2003-03-27 11:20 ` Marc Zyngier
  0 siblings, 1 reply; 9+ messages in thread
From: Niki Waibel @ 2003-03-27 10:38 UTC (permalink / raw)
  To: axp-list

issues about linux-2.5.66-bk2 + patch from Marc Zyngier (on pc164):

compile errors:
 * alsa sb16 (oss sb16 is ok and works fine)
 * bttv (win tv)
 * matrox framebuffer (seems not to work on all archs)
at the end of the mail you see the exact compile error messages

other issues:
 * if i press caps lock, num lock or scroll lock in
 text mode then the machine freezes. this is no problem
 in XFree86-4.3.0 (also in 2.5.65 and earier versions).
 * compilation needs 2 makefile changes for me (gcc-3.2.2, glibc-2.3.1):
a) remove of ``-nostdinc''. otherwise ``stdarg.h'' which is part of
gcc is not found (maybe a gcc issue)
===
--- linux-2.5.66-bk2.orig/Makefile      2003-03-27 00:17:09.000000000 +0100
+++ linux-2.5.66-bk2/Makefile   2003-03-26 23:45:09.000000000 +0100
@@ -178,6 +178,7 @@
 AFLAGS_KERNEL  =
 
 NOSTDINC_FLAGS  = -nostdinc -iwithprefix include
+NOSTDINC_FLAGS  = -iwithprefix include
 
 CPPFLAGS       := -D__KERNEL__ -Iinclude
 CFLAGS                 := $(CPPFLAGS) -Wall -Wstrict-prototypes -Wno-trigraphs -O2 \
===
b) i get a warning in the alpha kernel part, which is treaded as
error (compilation of *cabriolet*.c afair)
===
diff -r -u linux-2.5.66-bk2.orig/arch/alpha/kernel/Makefile linux-2.5.66-bk2/arch/alpha/kernel/Makefile
--- linux-2.5.66-bk2.orig/arch/alpha/kernel/Makefile    2003-03-27 00:15:26.000000000 +0100
+++ linux-2.5.66-bk2/arch/alpha/kernel/Makefile 2003-03-26 23:22:22.000000000 +0100
@@ -5,6 +5,7 @@
 extra-y                := head.o
 EXTRA_AFLAGS   := $(CFLAGS)
 EXTRA_CFLAGS   := -Werror -Wno-sign-compare
+EXTRA_CFLAGS   := -Wno-sign-compare
 
 obj-y    := entry.o traps.o process.o init_task.o osf_sys.o irq.o \
            irq_alpha.o signal.o setup.o ptrace.o time.o semaphore.o \
===

now working (not working in 2.5.65):
 * r128 framebuffer ... at least compilation works.
 i cannot check yet because some slow guy @ ebay has
 not yet sent me the card ...



compile error messages (alsa, bttv, matroxfb):
Sound  --->Advanced Linux Sound Architecture  --->
===
  gcc -Wp,-MD,sound/core/.memalloc.o.d -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing
 -fno
-common -pipe -mno-fp-regs -ffixed-8 -msmall-data -mcpu=ev56 -Wa,-mev6 -fomit-frame-pointer -iwithprefix include    -DKBUILD_BA
SENAM
E=memalloc -DKBUILD_MODNAME=snd_page_alloc -c -o sound/core/memalloc.o sound/core/memalloc.c
sound/core/memalloc.c: In function `mark_pages':
sound/core/memalloc.c:336: `mem_map' undeclared (first use in this function)
sound/core/memalloc.c:336: (Each undeclared identifier is reported only once
sound/core/memalloc.c:336: for each function it appears in.)
sound/core/memalloc.c:337: invalid use of undefined type `struct page'
sound/core/memalloc.c:339: warning: implicit declaration of function `SetPageReserved'
sound/core/memalloc.c:339: increment of pointer to unknown structure
sound/core/memalloc.c:339: arithmetic on pointer to an incomplete type
sound/core/memalloc.c: In function `unmark_pages':
sound/core/memalloc.c:345: `mem_map' undeclared (first use in this function)
sound/core/memalloc.c:346: invalid use of undefined type `struct page'
sound/core/memalloc.c:348: warning: implicit declaration of function `ClearPageReserved'
sound/core/memalloc.c:348: increment of pointer to unknown structure
sound/core/memalloc.c:348: arithmetic on pointer to an incomplete type
make[2]: *** [sound/core/memalloc.o] Error 1
make[1]: *** [sound/core] Error 2
make: *** [sound] Error 2
niki@alpha-1 ~/linux-2.5.66-bk2 $ 
===

CONFIG_SOUND_TVMIXER
Sound  --->Open Sound System  --->TV card (bt848) mixer support
===
  gcc -Wp,-MD,drivers/media/video/.tvmixer.o.d -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-
alias
ing -fno-common -pipe -mno-fp-regs -ffixed-8 -msmall-data -mcpu=ev56 -Wa,-mev6 -fomit-frame-pointer -iwithprefix include    -DK
BUILD
_BASENAME=tvmixer -DKBUILD_MODNAME=tvmixer -c -o drivers/media/video/tvmixer.o drivers/media/video/tvmixer.c
drivers/media/video/tvmixer.c: In function `tvmixer_ioctl':
drivers/media/video/tvmixer.c:90: structure has no member named `name'
drivers/media/video/tvmixer.c:99: structure has no member named `name'
drivers/media/video/tvmixer.c:146: warning: comparison of distinct pointer types lacks a cast
drivers/media/video/tvmixer.c: In function `tvmixer_adapters':
drivers/media/video/tvmixer.c:240: structure has no member named `name'
drivers/media/video/tvmixer.c: In function `tvmixer_clients':
drivers/media/video/tvmixer.c:264: structure has no member named `name'
drivers/media/video/tvmixer.c:267: structure has no member named `name'
drivers/media/video/tvmixer.c:276: structure has no member named `name'
drivers/media/video/tvmixer.c:301: structure has no member named `name'
drivers/media/video/tvmixer.c:307: structure has no member named `name'
drivers/media/video/tvmixer.c:321: structure has no member named `name'
drivers/media/video/tvmixer.c:321: structure has no member named `name'
drivers/media/video/tvmixer.c: In function `tvmixer_cleanup_module':
drivers/media/video/tvmixer.c:347: structure has no member named `name'
make[3]: *** [drivers/media/video/tvmixer.o] Error 1
make[2]: *** [drivers/media/video] Error 2
make[1]: *** [drivers/media] Error 2
make: *** [drivers] Error 2
niki@alpha-1 ~/linux-2.5.66-bk2 $ 
===

CONFIG_FB_MATROX_MYSTIQUE
Graphics support  --->Matrox acceleration/Mystique support (NEW)
===
make -f scripts/Makefile.build obj=drivers/video/matrox
  gcc -Wp,-MD,drivers/video/matrox/.matroxfb_base.o.d -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-
stric
t-aliasing -fno-common -pipe -mno-fp-regs -ffixed-8 -msmall-data -mcpu=ev56 -Wa,-mev6 -fomit-frame-pointer -iwithprefix include
    -
DKBUILD_BASENAME=matroxfb_base -DKBUILD_MODNAME=matroxfb_base -c -o drivers/video/matrox/matroxfb_base.o drivers/video/matrox/m
atrox
fb_base.c
In file included from drivers/video/matrox/matroxfb_base.c:105:
drivers/video/matrox/matroxfb_base.h:52:25: video/fbcon.h: No such file or directory
drivers/video/matrox/matroxfb_base.h:53:30: video/fbcon-cfb4.h: No such file or directory
drivers/video/matrox/matroxfb_base.h:54:30: video/fbcon-cfb8.h: No such file or directory
drivers/video/matrox/matroxfb_base.h:55:31: video/fbcon-cfb16.h: No such file or directory
drivers/video/matrox/matroxfb_base.h:56:31: video/fbcon-cfb24.h: No such file or directory
drivers/video/matrox/matroxfb_base.h:57:31: video/fbcon-cfb32.h: No such file or directory
In file included from drivers/video/matrox/matroxfb_base.c:105:
drivers/video/matrox/matroxfb_base.h:341: warning: `struct display' declared inside parameter list
drivers/video/matrox/matroxfb_base.h:341: warning: its scope is only this definition or declaration, which is probably not what
 you 
want
drivers/video/matrox/matroxfb_base.h:342: warning: `struct display' declared inside parameter list
drivers/video/matrox/matroxfb_base.h:558: field `dispsw' has incomplete type
drivers/video/matrox/matroxfb_misc.h:11: confused by earlier errors, bailing out
make[3]: *** [drivers/video/matrox/matroxfb_base.o] Error 1
make[2]: *** [drivers/video/matrox] Error 2
make[1]: *** [drivers/video] Error 2
make: *** [drivers] Error 2
niki@alpha-1 ~/linux-2.5.66-bk2 $ 
===
-- 
niki w. waibel - system administrator @ newlogic technologies ag




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: linux-2.5.66-bk2 + patch from Marc Zyngier
  2003-03-27 10:38 linux-2.5.66-bk2 + patch from Marc Zyngier Niki Waibel
@ 2003-03-27 11:20 ` Marc Zyngier
  2003-03-27 11:37   ` Falk Hueffner
  2003-04-03  9:25   ` Niki Waibel
  0 siblings, 2 replies; 9+ messages in thread
From: Marc Zyngier @ 2003-03-27 11:20 UTC (permalink / raw)
  To: Niki Waibel; +Cc: axp-list

>>>>> "Niki" == Niki Waibel <niki.waibel@newlogic.com> writes:

Niki>  * compilation needs 2 makefile changes for me (gcc-3.2.2, glibc-2.3.1):
Niki> a) remove of ``-nostdinc''. otherwise ``stdarg.h'' which is part of
Niki> gcc is not found (maybe a gcc issue)

Irk! You really shouldn't have to do that, or something is really
screwed with your gcc setup.

Here is what I'm using (cross-compiling from x86, since the dual
athlon is so much faster... ;-):
maz@panther:/mnt/i386/linux-2.5$ alpha-linux-gcc -v       
Reading specs from /usr/lib/gcc-lib/alpha-linux/3.2/specs
Configured with: ../src/configure -v --enable-languages=c --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --with-gxx-include-dir=/usr/alpha-linux/include/g++ --enable-shared --with-gnu-as --with-gnu-ld --with-system-zlib --enable-long-long --enable-nls --without-included-gettext --disable-checking --build=i386-linux --host=i386-linux --target=alpha-linux
Thread model: posix
gcc version 3.2 (Debian)

I don't even have stdarg.h in my gcc includes... Which file tries to
include it ?

Niki> b) i get a warning in the alpha kernel part, which is treaded as
Niki> error (compilation of *cabriolet*.c afair)

Better fix the real problem. Having -Werror is a *very* nice thing (at
least it forces people to look at what's going on).

Could you try this (compiles, but otherwise untested, as I have no
PC164):

===== arch/alpha/kernel/sys_cabriolet.c 1.8 vs edited =====
--- 1.8/arch/alpha/kernel/sys_cabriolet.c	Mon Nov  4 16:09:00 2002
+++ edited/arch/alpha/kernel/sys_cabriolet.c	Thu Mar 27 12:06:44 2003
@@ -132,11 +132,14 @@
 	setup_irq(16+4, &isa_cascade_irqaction);
 }
 
+#ifndef CONFIG_ALPHA_PC164
+/* PC164 is the only case we don't want this to be defined */
 static void __init
 cabriolet_init_irq(void)
 {
 	common_init_irq(srm_device_interrupt);
 }
+#endif
 
 #if defined(CONFIG_ALPHA_GENERIC) || defined(CONFIG_ALPHA_PC164)
 /* In theory, the PC164 has the same interrupt hardware as the other

Thanks,

        M.
-- 
Places change, faces change. Life is so very strange.




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: linux-2.5.66-bk2 + patch from Marc Zyngier
  2003-03-27 11:20 ` Marc Zyngier
@ 2003-03-27 11:37   ` Falk Hueffner
  2003-03-27 11:51     ` Marc Zyngier
  2003-04-03  9:25   ` Niki Waibel
  1 sibling, 1 reply; 9+ messages in thread
From: Falk Hueffner @ 2003-03-27 11:37 UTC (permalink / raw)
  To: axp-list; +Cc: Niki Waibel

Marc Zyngier <mzyngier@freesurf.fr> writes:

> Here is what I'm using (cross-compiling from x86, since the dual
> athlon is so much faster... ;-):

By the way, I wouldn't recommend using a 32->64 bit cross compiled
kernel for production use... some optimizations are disabled, because
the calculations are to messy, and it is generally not well tested.

-- 
	Falk




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: linux-2.5.66-bk2 + patch from Marc Zyngier
  2003-03-27 11:37   ` Falk Hueffner
@ 2003-03-27 11:51     ` Marc Zyngier
  0 siblings, 0 replies; 9+ messages in thread
From: Marc Zyngier @ 2003-03-27 11:51 UTC (permalink / raw)
  To: axp-list

>>>>> "Falk" == Falk Hueffner <falk.hueffner@student.uni-tuebingen.de> writes:

Falk> Marc Zyngier <mzyngier@freesurf.fr> writes:
>> Here is what I'm using (cross-compiling from x86, since the dual
>> athlon is so much faster... ;-):

Falk> By the way, I wouldn't recommend using a 32->64 bit cross
Falk> compiled kernel for production use... some optimizations are
Falk> disabled, because the calculations are to messy, and it is
Falk> generally not well tested.

Well, given the state of 2.5.x, it's no big deal :-).

Anyway, I'm using it daily to test 2.5 on 4 different Alpha plateforms
(Jensen, AS255, AS500, AS1000), and I have yet to find a bug I could
blame the cross-compiler for.

And when in doubt, I'm always switching back to the native compiler
(and to 1/2 hour compile times, instead of 2 minutes... ;-).

        M.
-- 
Places change, faces change. Life is so very strange.




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: linux-2.5.66-bk2 + patch from Marc Zyngier
  2003-03-27 11:20 ` Marc Zyngier
  2003-03-27 11:37   ` Falk Hueffner
@ 2003-04-03  9:25   ` Niki Waibel
  2003-04-03  9:39     ` Marc Zyngier
  1 sibling, 1 reply; 9+ messages in thread
From: Niki Waibel @ 2003-04-03  9:25 UTC (permalink / raw)
  To: Marc Zyngier; +Cc: axp-list

this (working) patch is still not in linux-2.5.66-bk8.
who will check it in?

niki

On 27-Mar-2003 Marc Zyngier wrote:
>>>>>> "Niki" == Niki Waibel <niki.waibel@newlogic.com> writes:
> 
> Niki>  * compilation needs 2 makefile changes for me (gcc-3.2.2, glibc-2.3.1):
> Niki> a) remove of ``-nostdinc''. otherwise ``stdarg.h'' which is part of
> Niki> gcc is not found (maybe a gcc issue)
> 
> Irk! You really shouldn't have to do that, or something is really
> screwed with your gcc setup.
> 
> Here is what I'm using (cross-compiling from x86, since the dual
> athlon is so much faster... ;-):
> maz@panther:/mnt/i386/linux-2.5$ alpha-linux-gcc -v       
> Reading specs from /usr/lib/gcc-lib/alpha-linux/3.2/specs
> Configured with: ../src/configure -v --enable-languages=c --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man
> --with-gxx-include-dir=/usr/alpha-linux/include/g++ --enable-shared --with-gnu-as --with-gnu-ld --with-system-zlib
> --enable-long-long --enable-nls --without-included-gettext --disable-checking --build=i386-linux --host=i386-linux
> --target=alpha-linux
> Thread model: posix
> gcc version 3.2 (Debian)
> 
> I don't even have stdarg.h in my gcc includes... Which file tries to
> include it ?
> 
> Niki> b) i get a warning in the alpha kernel part, which is treaded as
> Niki> error (compilation of *cabriolet*.c afair)
> 
> Better fix the real problem. Having -Werror is a *very* nice thing (at
> least it forces people to look at what's going on).
> 
> Could you try this (compiles, but otherwise untested, as I have no
> PC164):
> 
> ===== arch/alpha/kernel/sys_cabriolet.c 1.8 vs edited =====
> --- 1.8/arch/alpha/kernel/sys_cabriolet.c     Mon Nov  4 16:09:00 2002
> +++ edited/arch/alpha/kernel/sys_cabriolet.c  Thu Mar 27 12:06:44 2003
> @@ -132,11 +132,14 @@
>       setup_irq(16+4, &isa_cascade_irqaction);
>  }
>  
> +#ifndef CONFIG_ALPHA_PC164
> +/* PC164 is the only case we don't want this to be defined */
>  static void __init
>  cabriolet_init_irq(void)
>  {
>       common_init_irq(srm_device_interrupt);
>  }
> +#endif
>  
>  #if defined(CONFIG_ALPHA_GENERIC) || defined(CONFIG_ALPHA_PC164)
>  /* In theory, the PC164 has the same interrupt hardware as the other
> 
> Thanks,
> 
>         M.
> -- 
> Places change, faces change. Life is so very strange.




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: linux-2.5.66-bk2 + patch from Marc Zyngier
  2003-04-03  9:25   ` Niki Waibel
@ 2003-04-03  9:39     ` Marc Zyngier
  2003-04-03 10:36       ` Ivan Kokshaysky
  0 siblings, 1 reply; 9+ messages in thread
From: Marc Zyngier @ 2003-04-03  9:39 UTC (permalink / raw)
  To: Niki Waibel; +Cc: axp-list

>>>>> "Niki" == Niki Waibel <niki.waibel@newlogic.com> writes:

Niki> this (working) patch is still not in linux-2.5.66-bk8.
Niki> who will check it in?

Frankly, I don't know.

Linus seems to ignore my patches at the moment, and nobody seems to
care about the cond_syscall stuff (which prevents 2.5.66 from building
on every single alpha variant).

I'll repost it on lkml, and see what happends.

        M.
-- 
Places change, faces change. Life is so very strange.




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: linux-2.5.66-bk2 + patch from Marc Zyngier
  2003-04-03  9:39     ` Marc Zyngier
@ 2003-04-03 10:36       ` Ivan Kokshaysky
  2003-04-03 11:19         ` Marc Zyngier
  0 siblings, 1 reply; 9+ messages in thread
From: Ivan Kokshaysky @ 2003-04-03 10:36 UTC (permalink / raw)
  To: axp-list

On Thu, Apr 03, 2003 at 11:39:02AM +0200, Marc Zyngier wrote:
> Linus seems to ignore my patches at the moment, and nobody seems to
> care about the cond_syscall stuff (which prevents 2.5.66 from building
> on every single alpha variant).
> 
> I'll repost it on lkml, and see what happends.

The correct fix is just to move sys_sendmsg/sys_recvmsg prototypes
from socket.h to net/compat.c (which is the only user of those).
That's what Richard has in his tree, I guess.

Ivan.




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: linux-2.5.66-bk2 + patch from Marc Zyngier
  2003-04-03 10:36       ` Ivan Kokshaysky
@ 2003-04-03 11:19         ` Marc Zyngier
  2003-04-03 12:12           ` Ivan Kokshaysky
  0 siblings, 1 reply; 9+ messages in thread
From: Marc Zyngier @ 2003-04-03 11:19 UTC (permalink / raw)
  To: axp-list

>>>>> "Ivan" == Ivan Kokshaysky <ink@jurassic.park.msu.ru> writes:

Ivan> The correct fix is just to move sys_sendmsg/sys_recvmsg
Ivan> prototypes from socket.h to net/compat.c (which is the only user
Ivan> of those).

Doesn't it break glibc build ?

        M.
-- 
Places change, faces change. Life is so very strange.




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: linux-2.5.66-bk2 + patch from Marc Zyngier
  2003-04-03 11:19         ` Marc Zyngier
@ 2003-04-03 12:12           ` Ivan Kokshaysky
  0 siblings, 0 replies; 9+ messages in thread
From: Ivan Kokshaysky @ 2003-04-03 12:12 UTC (permalink / raw)
  To: axp-list

On Thu, Apr 03, 2003 at 01:19:38PM +0200, Marc Zyngier wrote:
> Doesn't it break glibc build ?

Definitely not.

Ivan.




^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2003-04-03 12:13 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-27 10:38 linux-2.5.66-bk2 + patch from Marc Zyngier Niki Waibel
2003-03-27 11:20 ` Marc Zyngier
2003-03-27 11:37   ` Falk Hueffner
2003-03-27 11:51     ` Marc Zyngier
2003-04-03  9:25   ` Niki Waibel
2003-04-03  9:39     ` Marc Zyngier
2003-04-03 10:36       ` Ivan Kokshaysky
2003-04-03 11:19         ` Marc Zyngier
2003-04-03 12:12           ` Ivan Kokshaysky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox