Subject: cross compile problem in -current libc/statfs
To: None <>
From: Alexander Bochmann <>
List: port-hpcmips
Date: 09/05/2004 20:59:31

I was just trying to compile NetBSD-current sources, 
but a " build" fails with the error below.
I'm cross-building from an i386 Linux host.

Error message (in dependall/do-lib-libc phase):

--- >>> cut here >>> ---
#   compile  libc/statfs.o
/space/z50/cross/bin/mipsel--netbsd-gcc  -I/space/z50/src/lib/libc/arch/mips -nostdinc -idirafter /space/z50/build/usr/include  -D_LIBC -DLIBC_SCCS -DSYSLIBC_SCCS -D_REENTRANT -I/space/z50/src/lib/libc/include -I/space/z50/src/lib/libc -DINET6 -DNLS -DYP -D__DBINTERFACE_PRIVATE -DI18NMODULE_MAJOR=4 -DCITRUS -I/space/z50/src/libexec/ld.elf_so -I/space/z50/src/lib/libc/dlfcn -DCITRUS_ICONV -DWITH_RUNE -I/space/z50/src/lib/libc -DPOSIX_MISTAKE -DCOMPAT__RES -DPORTMAP -DFLOATING_POINT   -nostdinc -isystem /space/z50/build/usr/include -c -traditional-cpp    statfs.S -o statfs.o.tmp
statfs.S: Assembler messages:
statfs.S:2: Error: absolute expression required `li'

*** Failed target:  statfs.o
*** Failed command: /space/z50/cross/bin/mipsel--netbsd-gcc -I/space/z50/src/lib/libc/arch/mips -nostdinc -idirafter /space/z50/build/usr/include -D_LIBC -DLIBC_SCCS -DSYSLIBC_SCCS -D_REENTRANT -I/space/z50/src/lib/libc/include -I/space/z50/src/lib/libc -DINET6 -DNLS -DYP -D__DBINTERFACE_PRIVATE -DI18NMODULE_MAJOR=4 -DCITRUS -I/space/z50/src/libexec/ld.elf_so -I/space/z50/src/lib/libc/dlfcn -DCITRUS_ICONV -DWITH_RUNE -I/space/z50/src/lib/libc -DPOSIX_MISTAKE -DCOMPAT__RES -DPORTMAP -DFLOATING_POINT -nostdinc -isystem /space/z50/build/usr/include -c -traditional-cpp statfs.S -o statfs.o.tmp
*** Error code 1

nbmake: stopped in /space/z50/src/lib/libc
--- <<< cut here <<< ---

Anyone else with a similar problem?