Subject: cross building -current fails
To: None <port-alpha@netbsd.org>
From: Ray Phillips <r.phillips@jkmrc.uq.edu.au>
List: port-alpha
Date: 12/04/2002 20:50:09
I'm not sure if I should be reporting this to the port-alpha list...
Building a NetBSD/i386 distribution from -current cvs sources checked
out a couple of days ago doesn't work on an alpha. I've read that
building distributions for 64-bit platforms is broken, but this
should have worked shouldn't it?
After checking out the sources I:
# mkdir /usr/obj /usr/tools /usr/i386-DistribDir /usr/i386-ReleaseDir
# cd /usr/src
# ./build.sh -d -D ../i386-DistribDir -R ../i386-ReleaseDir -a i386
which eventually broke with (I don't know how much of this is relevant):
CC=/usr/tools/bin/i386--netbsdelf-gcc
/usr/tools/bin/i386--netbsdelf-lint -chapbxzF -w -X 272 -d
/usr/src/../i386-DistribDir/usr/include -D_LIBC -DLIBC_SCCS
-DSYSLIBC_SCCS -D_REENTRANT -I/usr/src/lib/libc/include -DHESIOD
-DINET6 -DNLS -DYP -D__DBINTERFACE_PRIVATE
-I/usr/src/libexec/ld.elf_so -I/usr/src/lib/libc/dlfcn
-DI18NMODULE_MAJOR=4 -DWITH_RUNE -I/usr/src/lib/libc -DRESOLVSORT -I.
-DPOSIX_MISTAKE -DPORTMAP -DFLOATING_POINT -i
/usr/src/lib/libc/string/Lint_strrchr.c
CC=/usr/tools/bin/i386--netbsdelf-gcc
/usr/tools/bin/i386--netbsdelf-lint -chapbxzF -w -X 272 -d
/usr/src/../i386-DistribDir/usr/include -D_LIBC -DLIBC_SCCS
-DSYSLIBC_SCCS -D_REENTRANT -I/usr/src/lib/libc/include -DHESIOD
-DINET6 -DNLS -DYP -D__DBINTERFACE_PRIVATE
-I/usr/src/libexec/ld.elf_so -I/usr/src/lib/libc/dlfcn
-DI18NMODULE_MAJOR=4 -DWITH_RUNE -I/usr/src/lib/libc -DRESOLVSORT -I.
-DPOSIX_MISTAKE -DPORTMAP -DFLOATING_POINT -i
/usr/src/lib/libc/string/Lint_swab.c
CC=/usr/tools/bin/i386--netbsdelf-gcc
/usr/tools/bin/i386--netbsdelf-lint -chapbxzF -w -X 272 -d
/usr/src/../i386-DistribDir/usr/include -D_LIBC -DLIBC_SCCS
-DSYSLIBC_SCCS -D_REENTRANT -I/usr/src/lib/libc/include -DHESIOD
-DINET6 -DNLS -DYP -D__DBINTERFACE_PRIVATE
-I/usr/src/libexec/ld.elf_so -I/usr/src/lib/libc/dlfcn
-DI18NMODULE_MAJOR=4 -DWITH_RUNE -I/usr/src/lib/libc -DRESOLVSORT -I.
-DPOSIX_MISTAKE -DPORTMAP -DFLOATING_POINT -i
/usr/src/lib/libc/sys/Lint_syscall.c
/usr/tools/bin/i386--netbsdelf-gcc -D_LIBC -DLIBC_SCCS
-DSYSLIBC_SCCS -D_REENTRANT -I/usr/src/lib/libc/include -DHESIOD
-DINET6 -DNLS -DYP -D__DBINTERFACE_PRIVATE
-I/usr/src/libexec/ld.elf_so -I/usr/src/lib/libc/dlfcn
-DI18NMODULE_MAJOR=4 -DWITH_RUNE -I/usr/src/lib/libc -DRESOLVSORT -I.
-DPOSIX_MISTAKE -DPORTMAP -DFLOATING_POINT -nostdinc -isystem
/usr/src/../i386-DistribDir/usr/include -c -traditional-cpp
-DALL_STATE -DUSG_COMPAT -I/usr/src/lib/libc/arch/i386 -nostdinc
-idirafter /usr/src/../i386-DistribDir/usr/include
/usr/src/lib/libc/arch/i386/sys/Ovfork.S
/var/tmp/ccU8lG4q.s: Assembler messages:
/var/tmp/ccU8lG4q.s:771: Error: invalid character '(' in mnemonic
/var/tmp/ccU8lG4q.s:2341: Error: Rest of line ignored. First ignored
character is `('.
/var/tmp/ccU8lG4q.s:2355: Error: invalid character '(' in mnemonic
/var/tmp/ccU8lG4q.s:2370: Error: junk `(__cerror)' after expression
*** Error code 1
Stop.
nbmake: stopped in /usr/src/lib/libc
*** Error code 1
Stop.
nbmake: stopped in /usr/src/lib/libc
*** Error code 1
Stop.
nbmake: stopped in /usr/src
*** Error code 1
Stop.
nbmake: stopped in /usr/src
*** Error code 1
Stop.
nbmake: stopped in /usr/src
ERROR: failed to make release
*** BUILD ABORTED ***
Does someone know of a fix please?
Ray.