Subject: TX3912 kernel compile failed with 2002/01/27 source
To: None <port-hpcmips@netbsd.org>
From: FUKAUMI Naoki <naoki@fukaumi.org>
List: port-hpcmips
Date: 01/28/2002 14:01:15
TX3912 kernel compile was failed. Error messages are...
/home/tools/bin/mipsel--netbsd-gcc -mips2 -EL -G 18 -mno-abicalls -mno-half-pic -ffreestanding -Os -mmemcpy -Werror -Wall -Wno-main -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wno-uninitialized -Dhpcmips -I. -I/usr/src/sys/arch -I/usr/src/sys -nostdinc -DNOFPU -DSOFTFLOAT -DMIPS1 -DENABLE_MIPS_TX3900 -DKSEG2IOBUFSIZE="0x8000000" -DTX391X -DSERIALCONSSLOT="0" -DDIAGNOSTIC -DDEBUG -DMSGBUFSIZE="0xfffe" -DIT8368E_LEGACY_MODE -DMAXUSERS=16 -D_KERNEL -D_KERNEL_OPT -c vers.c
/home/tools/bin/mipsel--netbsd-ld -T /usr/src/sys/arch/mips/conf/kern.ldscript -Ttext 0x80030000 -e start -EL -G 18 --oformat elf32-littlemips -x -o netbsd ${SYSTEM_OBJ} vers.o
fil.o: In function `fr_makefrip':
/usr/src/sys/netinet/fil.c(.text+0x5c): relocation truncated to fit: R_MIPS_GPREL16 ipl_unreach
fil.o: In function `fr_check':
/usr/src/sys/netinet/fil.c(.text+0x142c): relocation truncated to fit: R_MIPS_GPREL16 ipauth
fil.o: In function `fr_getstat':
/usr/src/sys/netinet/fil.c(.text+0x2318): relocation truncated to fit: R_MIPS_GPREL16 fr_nat_lock
/usr/src/sys/netinet/fil.c(.text+0x231c): relocation truncated to fit: R_MIPS_GPREL16 fr_frag_lock
/usr/src/sys/netinet/fil.c(.text+0x2320): relocation truncated to fit: R_MIPS_GPREL16 fr_auth_lock
/usr/src/sys/netinet/fil.c(.text+0x23bc): relocation truncated to fit: R_MIPS_GPREL16 ipl_frouteok
/usr/src/sys/netinet/fil.c(.text+0x23c4): relocation truncated to fit: R_MIPS_GPREL16 ipl_frouteok
/usr/src/sys/netinet/fil.c(.text+0x23cc): relocation truncated to fit: R_MIPS_GPREL16 fr_running
ip_fil.o: In function `iplioctl':
/usr/src/sys/netinet/ip_fil.c(.text+0x974): relocation truncated to fit: R_MIPS_GPREL16 fr_nat_lock
/usr/src/sys/netinet/ip_fil.c(.text+0x978): relocation truncated to fit: R_MIPS_GPREL16 fr_frag_lock
/usr/src/sys/netinet/ip_fil.c(.text+0x97c): relocation truncated to fit: R_MIPS_GPREL16 fr_auth_lock
ip_fil.o: In function `frrequest':
/usr/src/sys/netinet/ip_fil.c(.text+0xce0): relocation truncated to fit: R_MIPS_GPREL16 ipauth
ip_proxy.o: In function `ippr_ftp_port':
/usr/src/sys/netinet/ip_ftp_pxy.c(.text+0x49c): relocation truncated to fit: R_MIPS_GPREL16 fr_defnatage
ip_proxy.o: In function `ippr_ftp_pasv':
/usr/src/sys/netinet/ip_ftp_pxy.c(.text+0xae8): relocation truncated to fit: R_MIPS_GPREL16 fr_defnatage
ip_proxy.o: In function `ippr_rcmd_portmsg':
/usr/src/sys/netinet/ip_rcmd_pxy.c(.text+0x1798): relocation truncated to fit: R_MIPS_GPREL16 fr_defnatage
ip_proxy.o: In function `ippr_raudio_in':
/usr/src/sys/netinet/ip_raudio_pxy.c(.text+0x1e94): relocation truncated to fit: R_MIPS_GPREL16 fr_defnatage
/usr/src/sys/netinet/ip_raudio_pxy.c(.text+0x1f2c): relocation truncated to fit: R_MIPS_GPREL16 fr_defnatage
*** Error code 1
I commented out 'options DIAGNOSTIC' line from TX3912 config file.
/home/tools/bin/mipsel--netbsd-gcc -mips2 -EL -G 18 -mno-abicalls -mno-half-pic -ffreestanding -Os -mmemcpy -Werror -Wall -Wno-main -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wno-uninitialized -Dhpcmips -I. -I/usr/src/sys/arch -I/usr/src/sys -nostdinc -DNOFPU -DSOFTFLOAT -DMIPS1 -DENABLE_MIPS_TX3900 -DKSEG2IOBUFSIZE="0x8000000" -DTX391X -DSERIALCONSSLOT="0" -DDEBUG -DMSGBUFSIZE="0xfffe" -DIT8368E_LEGACY_MODE -DMAXUSERS=16 -D_KERNEL -D_KERNEL_OPT -c /usr/src/sys/arch/hpcmips/tx/tx39io.c
/usr/src/sys/arch/hpcmips/tx/tx39io.c: In function `tx391x_io_out':
/usr/src/sys/arch/hpcmips/tx/tx39io.c:313: `devname' undeclared (first use in this function)
/usr/src/sys/arch/hpcmips/tx/tx39io.c:313: (Each undeclared identifier is reported only once
/usr/src/sys/arch/hpcmips/tx/tx39io.c:313: for each function it appears in.)
GENERIC and TX3922 kernel was NO problem.
--
FUKAUMI Naoki