Subject: Compile with soft-float?
To: None <port-hpcmips@netbsd.org>
From: Bernd Sieker <bsieker@freenet.de>
List: port-hpcmips
Date: 09/12/2003 10:55:40
Hi,

Since the VR4121 CPU has no FPU, I would like to build packages
for it with soft floating point routines, to get rid of the insane
amount of FP exceptions when running, e. g. links -g.

I have installed the cpuflags script from pkgsrc and added the
appropriate lines to /etc/mk.conf.

However, when I build links with the modifled mk.conf, it _compiles_
the source files with "-mcpu=r4100 -mips2" (which implies -msoft-float,
as far as I can see), but when linking, it is missing the appropriate
FP emulation library, and tells me about hundreds of unresolved
symbols:

[...]
bfu.o: In function `check_float':
bfu.c(.text+0x81cc): undefined reference to `dpmul'
bfu.c(.text+0x81f0): undefined reference to `litodp'
bfu.c(.text+0x8214): undefined reference to `dpcmp'
bfu.c(.text+0x8240): undefined reference to `dpmul'
bfu.c(.text+0x8260): undefined reference to `litodp'
bfu.c(.text+0x8284): undefined reference to `dpcmp'
builtin.o: In function `js_intern_fupcall':
builtin.c(.text+0x4d44): undefined reference to `dpcmp'
builtin.c(.text+0x4d78): undefined reference to `dpcmp'
builtin.c(.text+0x4dc4): undefined reference to `dpcmp'
builtin.c(.text+0x4e94): undefined reference to `dpcmp'
builtin.o(.text+0x54e8):builtin.c: more undefined references to `dpcmp' follow
builtin.o: In function `js_intern_fupcall':
[...]

and so on ...


I can't find a single reference on google that connects "hpcmips"
and "dpmul", so I'm totally at a loss as to how to proceed.

Has anyone else tried to build packages for hpcmips with soft-float?
And succeeded?


Kind regards,
Bernd

-- 
Bernd Sieker

Where would you have rather been today, tomorrow? NetBSD.
		-- Allen Briggs