[Pkg-alsa-devel] Bug#187831: marked as done (sparc64 compilation problems and fixes)
Debian Bug Tracking System
owner@bugs.debian.org
Fri Sep 24 00:03:15 UTC 2004
Your message dated Thu, 23 Sep 2004 18:34:19 +0200
with message-id <1095957259.3391.158.camel@thanatos>
and subject line Closing obsolete bug reports against alsa-source
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--------------------------------------
Received: (at submit) by bugs.debian.org; 6 Apr 2003 10:33:58 +0000
>From fabbione@fabbione.net Sun Apr 06 05:33:57 2003
Return-path: <fabbione@fabbione.net>
Received: from port5.ds1-sby.adsl.cybercity.dk (trider-g7.fabbione.net) [212.242.169.198]
by master.debian.org with esmtp (Exim 3.12 1 (Debian))
id 1927TI-0004Pp-00; Sun, 06 Apr 2003 05:33:57 -0500
Received: from mazinga.int.fabbione.net (port5.ds1-sby.adsl.cybercity.dk [212.242.169.198])
by trider-g7.fabbione.net (Postfix) with ESMTP
id 3ED54E8; Sun, 6 Apr 2003 12:33:54 +0200 (CEST)
Received: by mazinga.int.fabbione.net (Postfix, from userid 1000)
id ACB4B10026; Sun, 6 Apr 2003 12:33:53 +0200 (CEST)
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Fabio Massimo Di Nitto <fabbione@fabbione.net>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: sparc64 compilation problems and fixes
X-Mailer: reportbug 2.10.1
Date: Sun, 06 Apr 2003 12:33:53 +0200
Message-Id: <20030406103353.ACB4B10026@mazinga.int.fabbione.net>
Delivered-To: submit@bugs.debian.org
X-Spam-Status: No, hits=-1.1 required=4.0
tests=HAS_PACKAGE,PATCH_UNIFIED_DIFF,SPAM_PHRASE_00_01
version=2.44
X-Spam-Level:
Package: alsa-source
Version: 0.9.2-2
Severity: normal
Tags: patch
Hi all,
at the actual stage it is not possible to build the alsa modules
on a sparc64. Here are some patches to fix most of the problems (there
will be still one issue open but I have no knowledge on how to fix it,
see at the end of the message).
All the patches have been tested only on 2.4.21-pre7 on sparc64
The following patches fix:
*) duplicate definition
diff -Naurd alsa-driver.ORIG/include/adriver.h alsa-driver/include/adriver.h
--- alsa-driver.ORIG/include/adriver.h 2003-03-08 14:38:29.000000000 +0100
+++ alsa-driver/include/adriver.h 2003-04-06 10:36:17.000000000 +0200
@@ -323,7 +323,6 @@
/* vmalloc_to_page wrapper */
#ifndef CONFIG_HAVE_VMALLOC_TO_PAGE
struct page *snd_compat_vmalloc_to_page(void *addr);
-#define vmalloc_to_page(addr) snd_compat_vmalloc_to_page(addr)
#endif
#include "amagic.h"
*) 64bit call to ld
diff -Naurd alsa-driver.ORIG/configure alsa-driver/configure
--- alsa-driver.ORIG/configure 2003-03-19 19:50:30.000000000 +0100
+++ alsa-driver/configure 2003-04-06 10:33:35.000000000 +0200
@@ -3385,7 +3385,7 @@
$CC -m64 -mcmodel=medlow -S -o /dev/null -xc /dev/null >/dev/null 2>&1 && NEW_GCC=y
$LD --version 2>&1 | grep 'elf64_sparc' > /dev/null && NEW_GAS=y
$CC -c -x assembler /dev/null -Wa,--help | grep undeclared-regs > /dev/null || CC_UNDECL="-Wa,--undeclared-regs"
- if test $NEW_GAS != y; then
+ if test $NEW_GAS = y; then
LD=sparc64-linux-ld
else
LD="$LD -m elf64_sparc"
diff -Naurd alsa-driver.ORIG/configure.in alsa-driver/configure.in
--- alsa-driver.ORIG/configure.in 2003-03-19 18:51:40.000000000 +0100
+++ alsa-driver/configure.in 2003-04-06 10:33:51.000000000 +0200
@@ -542,7 +542,7 @@
$CC -m64 -mcmodel=medlow -S -o /dev/null -xc /dev/null >/dev/null 2>&1 && NEW_GCC=y
$LD --version 2>&1 | grep 'elf64_sparc' > /dev/null && NEW_GAS=y
$CC -c -x assembler /dev/null -Wa,--help | grep undeclared-regs > /dev/null || CC_UNDECL="-Wa,--undeclared-regs"
- if test $NEW_GAS != y; then
+ if test $NEW_GAS = y; then
LD=sparc64-linux-ld
else
LD="$LD -m elf64_sparc"
*) sbus dma call
diff -Naurd alsa-driver.ORIG/alsa-kernel/core/memalloc.c alsa-driver/alsa-kernel/core/memalloc.c
--- alsa-driver.ORIG/alsa-kernel/core/memalloc.c 2003-03-05 12:30:15.000000000 +0100
+++ alsa-driver/alsa-kernel/core/memalloc.c 2003-04-06 10:41:05.000000000 +0200
@@ -181,7 +181,7 @@
#endif
#ifdef CONFIG_SBUS
case SNDRV_DMA_TYPE_SBUS:
- snd_free_sbus_pages(dev->dev.sbus, dmab->size, dmab->are, dmab->addr);
+ snd_free_sbus_pages(dev->dev.sbus, dmab->bytes, dmab->area, dmab->addr);
break;
#endif
default:
*) ioctl32 compilation
diff -Naurd alsa-driver.ORIG/alsa-kernel/core/ioctl32/pcm32.c alsa-driver/alsa-kernel/core/ioctl32/pcm32.c
--- alsa-driver.ORIG/alsa-kernel/core/ioctl32/pcm32.c 2003-02-06 18:59:15.000000000 +0100
+++ alsa-driver/alsa-kernel/core/ioctl32/pcm32.c 2003-04-06 11:24:48.000000000 +0200
@@ -138,7 +138,6 @@
struct timeval32 {
s32 tv_sec;
- s32 tv_usec;
} __attribute__((packed));
struct sndrv_pcm_status32 {
@@ -159,9 +158,7 @@
{\
COPY(state);\
COPY(trigger_tstamp.tv_sec);\
- COPY(trigger_tstamp.tv_usec);\
COPY(tstamp.tv_sec);\
- COPY(tstamp.tv_usec);\
COPY(appl_ptr);\
COPY(hw_ptr);\
COPY(delay);\
diff -Naurd alsa-driver.ORIG/alsa-kernel/core/ioctl32/rawmidi32.c alsa-driver/alsa-kernel/core/ioctl32/rawmidi32.c
--- alsa-driver.ORIG/alsa-kernel/core/ioctl32/rawmidi32.c 2003-02-06 18:59:15.000000000 +0100
+++ alsa-driver/alsa-kernel/core/ioctl32/rawmidi32.c 2003-04-06 11:25:09.000000000 +0200
@@ -44,7 +44,6 @@
struct timeval32 {
s32 tv_sec;
- s32 tv_usec;
} __attribute__((packed));
struct sndrv_rawmidi_status32 {
@@ -59,7 +58,6 @@
{\
COPY(stream);\
COPY(tstamp.tv_sec);\
- COPY(tstamp.tv_usec);\
COPY(avail);\
COPY(xruns);\
}
diff -Naurd alsa-driver.ORIG/alsa-kernel/core/ioctl32/timer32.c alsa-driver/alsa-kernel/core/ioctl32/timer32.c
--- alsa-driver.ORIG/alsa-kernel/core/ioctl32/timer32.c 2003-02-06 18:59:16.000000000 +0100
+++ alsa-driver/alsa-kernel/core/ioctl32/timer32.c 2003-04-06 11:25:43.000000000 +0200
@@ -31,7 +31,6 @@
s32 card;
unsigned char id[64];
unsigned char name[80];
- u32 ticks;
u32 resolution;
unsigned char reserved[64];
};
@@ -42,13 +41,11 @@
COPY(card);\
memcpy(dst->id, src->id, sizeof(src->id));\
memcpy(dst->name, src->name, sizeof(src->name));\
- COPY(ticks);\
COPY(resolution);\
}
struct timeval32 {
s32 tv_sec;
- s32 tv_usec;
};
struct sndrv_timer_status32 {
@@ -63,7 +60,6 @@
#define CVT_sndrv_timer_status()\
{\
COPY(tstamp.tv_sec);\
- COPY(tstamp.tv_usec);\
COPY(resolution);\
COPY(lost);\
COPY(overrun);\
With all the patches applied it is possible to compile all the modules
but it is still not possible to run alsa. The problem raises from the
use of virt_to_bus() in the code.
virt_to_bus is not defined in sparc64 arch, and get redefined as:
extern unsigned long virt_to_bus_not_defined_use_pci_map(volatile void *addr);
#define virt_to_bus virt_to_bus_not_defined_use_pci_map
(according to io.h)
and this leads to an unresolved symbol at modules load time.
Regards
Fabio
-- System Information:
Debian Release: testing/unstable
Architecture: sparc
Kernel: Linux mazinga 2.4.21-pre7 #2 Sun Apr 6 09:30:44 CEST 2003 sparc64
Locale: LANG=en_DK, LC_CTYPE=en_DK
Versions of packages alsa-source depends on:
ii bzip2 1.0.2-1 A high-quality block-sorting file
ii debconf 1.2.34 Debian configuration management sy
ii debconf-utils 1.2.34 debconf utilities
ii debhelper 4.1.39 helper programs for debian/rules
ii gcc [c-compiler] 3:3.2.3-0 The GNU C compiler.
ii gcc-3.2 [c-compiler] 1:3.2.3-0pre7 The GNU C compiler
ii gcc-3.3 [c-compiler] 1:3.3-0pre3 The GNU C compiler
ii make 3.80-1 The GNU version of the "make" util
-- debconf information excluded
---------------------------------------
Received: (at 187831-done) by bugs.debian.org; 23 Sep 2004 16:49:41 +0000
>From jdthood@aglu.demon.nl Thu Sep 23 09:49:41 2004
Return-path: <jdthood@aglu.demon.nl>
Received: from post-23.mail.nl.demon.net [194.159.73.193]
by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
id 1CAWmo-0001SD-00; Thu, 23 Sep 2004 09:49:38 -0700
Received: from aglu.demon.nl ([82.161.38.140]:64199 helo=localhost)
by post-23.mail.nl.demon.net with esmtp (Exim 4.34)
id 1CAWmn-000Bsb-9L; Thu, 23 Sep 2004 16:49:37 +0000
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
by localhost (Postfix) with ESMTP id D9F2810D811;
Thu, 23 Sep 2004 18:34:19 +0200 (CEST)
Subject: Closing obsolete bug reports against alsa-source
From: Thomas Hood <jdthood@aglu.demon.nl>
To: 221541-done@bugs.debian.org, 218085-done@bugs.debian.org,
214013-done@bugs.debian.org, 203130-done@bugs.debian.org,
202407-done@bugs.debian.org, 197556-done@bugs.debian.org,
195411-done@bugs.debian.org, 194788-done@bugs.debian.org,
189232-done@bugs.debian.org, 188768-done@bugs.debian.org,
187831-done@bugs.debian.org, 186753-done@bugs.debian.org,
186403-done@bugs.debian.org, 186240-done@bugs.debian.org,
183316-done@bugs.debian.org, 183315-done@bugs.debian.org,
180653-done@bugs.debian.org, 173298-done@bugs.debian.org,
173291-done@bugs.debian.org, 168448-done@bugs.debian.org
Content-Type: text/plain
Message-Id: <1095957259.3391.158.camel@thanatos>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.4.6
Date: Thu, 23 Sep 2004 18:34:19 +0200
Content-Transfer-Encoding: 7bit
Delivered-To: 187831-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-0.2 required=4.0 tests=BAYES_40 autolearn=no
version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level:
X-CrossAssassin-Score: 10
I am closing bug reports against alsa-source that are more than one year
old and that relate to upstream aspects of the package. The reports are
too old to be of any use now.
--
Thomas Hood
More information about the Pkg-alsa-devel
mailing list