Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Missing data types?
@ 1998-08-08  0:01 Larry Creech
  1998-08-08  0:46 ` Quant-X Alpha Linux Support
  1998-08-08  0:53 ` Michal Jaegermann
  0 siblings, 2 replies; 3+ messages in thread
From: Larry Creech @ 1998-08-08  0:01 UTC (permalink / raw)
  To: axp-list

I've been trying to compile the 2.1.1xx kernels. I have no problem on the 
Intel box, but trying to compile the same video for linux driver for the 
Alpha I get these errors:

drivers/char/char.a(radio-aztech.o): In function `az_setfreq':
radio-aztech.c(.text+0x2f0): undefined reference to `__floatdidf'
radio-aztech.c(.text+0x2f4): undefined reference to `__floatdidf'
radio-aztech.c(.text+0x31c): undefined reference to `__floatdidf'
radio-aztech.c(.text+0x320): undefined reference to `__floatdidf'
radio-aztech.c(.text+0x334): undefined reference to `__adddf3'
radio-aztech.c(.text+0x338): undefined reference to `__adddf3'
radio-aztech.c(.text+0x350): undefined reference to `__muldf3'
radio-aztech.c(.text+0x354): undefined reference to `__muldf3'
radio-aztech.c(.text+0x36c): undefined reference to `__muldf3'
radio-aztech.c(.text+0x370): undefined reference to `__muldf3'
radio-aztech.c(.text+0x380): undefined reference to `__fixunsdfdi'
radio-aztech.c(.text+0x384): undefined reference to `__fixunsdfdi'
make: *** [vmlinux] Error 1
[root@gpspc-lcc linux]# 


I've done a recursive grep though the filesystem trying to find them, but 
no luck.


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

* Re: Missing data types?
  1998-08-08  0:01 Missing data types? Larry Creech
@ 1998-08-08  0:46 ` Quant-X Alpha Linux Support
  1998-08-08  0:53 ` Michal Jaegermann
  1 sibling, 0 replies; 3+ messages in thread
From: Quant-X Alpha Linux Support @ 1998-08-08  0:46 UTC (permalink / raw)
  To: axp-list

Hi !

> I've been trying to compile the 2.1.1xx kernels. I have no problem on the 
> Intel box, but trying to compile the same video for linux driver for the 
> Alpha I get these errors:
> 
> drivers/char/char.a(radio-aztech.o): In function `az_setfreq':
> radio-aztech.c(.text+0x2f0): undefined reference to `__floatdidf'


> I've done a recursive grep though the filesystem trying to find them, but 
> no luck.

The problem is easy: radio-aztech.c uses floating-point code in kernel
which is not allowed. We use -msoft-float to dedect this. __floatdidf
is a emulation call but the kernel will not be linked against fp-emu code.

The fix is easy:

--- linux/drivers/char/radio-aztech.c~	Mon Jul 20 22:17:01 1998
+++ linux/drivers/char/radio-aztech.c	Sat Aug  8 02:44:21 1998
@@ -113,7 +113,7 @@
 {
 	int  i;
 
-	frequency = (frequency / 16.0) * 100;	/* massage data a bit */
+	frequency = (frequency * 100 + 8) / 16;	/* massage data a bit */
   
 	frequency += 1070;		/* tuning needs 24 data bits  */
 	frequency /= 5;
 

ciao -
  Stefan.

-- 

Quant-X Service &                         Ph:  (+43) 4212 6004-0
Consulting Ges.m.b.H.                     Fax: (+43) 4212 600420
http://www.quant-x.com                    Email: support@quant-x.com


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

* Re: Missing data types?
  1998-08-08  0:01 Missing data types? Larry Creech
  1998-08-08  0:46 ` Quant-X Alpha Linux Support
@ 1998-08-08  0:53 ` Michal Jaegermann
  1 sibling, 0 replies; 3+ messages in thread
From: Michal Jaegermann @ 1998-08-08  0:53 UTC (permalink / raw)
  To: axp-list

Larry Creech wrote:
> 
> I've been trying to compile the 2.1.1xx kernels. I have no problem on the 
> Intel box, but trying to compile the same video for linux driver for the 
> Alpha I get these errors:
> 
> drivers/char/char.a(radio-aztech.o): In function `az_setfreq':
> radio-aztech.c(.text+0x2f0): undefined reference to `__floatdidf'
> radio-aztech.c(.text+0x2f4): undefined reference to `__floatdidf'
....

It looks like that this radio-aztech driver attempts to perform
some floating poing operations when in kernel mode.  This is
a big NO-NO as a status of floating point registers is undefined
when in kernel and this is a bug in a driver.  If you really
need this driver then you have to fix it (look for numeric constants
with '.' in them - most likely).

  Michal


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

end of thread, other threads:[~1998-08-08  0:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-08-08  0:01 Missing data types? Larry Creech
1998-08-08  0:46 ` Quant-X Alpha Linux Support
1998-08-08  0:53 ` Michal Jaegermann

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