hns - 日記自動生成システム - Version 2.19.9

先月 2002年04月 来月
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
Namazu for hns による簡易全文検索
詳しくは 詳細指定/ヘルプを参照して下さい
検索式:

2002年04月19日(金) 旧暦 [n年日記]

#1 [NetBSD] pkg_add gcc3

makoto@u 8:06:51/020419(/home/makoto)# pkg_add /a/j/ftp/pub/NetBSD/packages/1.5ZA/gcc-3.0.4.tgz
pkg_add: Overwriting /usr/pkg/bin/c++filt - pkg binutils-2.11.2 bogus/conflicting?
pkg_add: Overwriting /usr/pkg/lib/libiberty.a - pkg binutils-2.11.2 bogus/conflicting?
makoto@u 8:08:49/020419(/home/makoto)# ln /usr/pkg/bin/gcc /usr/pkg/bin/gcc3
makoto@u 8:09:01/020419(/home/makoto)# rehash
makoto@u 8:09:03/020419(/home/makoto)# which gcc3
/usr/pkg/bin/gcc3
in GENERIC, have following line makeoptions CC="gcc3"

building GENERIC kernel:

gcc3 -D_LOCORE -I. -I../../../../arch -I../../../.. -nostdinc -DDIAGNOSTIC -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -Dmacppc -c ../../../../arch/macppc/macppc/locore.S
gcc3: 1: Syntax error: "(" unexpected
*** Error code 2

gcc3 --version ?:

ttyp7:makoto@u 8:12:46/020419(...compile/GENERIC)> gcc3 --version
/usr/pkg/bin/gcc3: Exec format error. Binary file not executable.
ttyp7:makoto@u 8:12:54/020419(...compile/GENERIC)> file /usr/pkg/bin/gcc3
/usr/pkg/bin/gcc3: ELF 32-bit MSB executable, PowerPC or cisco 4500, version 1 (SYSV), dynamically linked (uses shared libs), not stripped

on the different machine of 20020407-1.5ZC + snap-020328:

> cat conf/GENERIC-gcc3
include "arch/macppc/conf/GENERIC"
makeoptions      CC="gcc3"
CC=gcc3 /export/20020414/tools/tools.NetBSD-1.5ZC-powerpc/bin/nbmkdep -a -D_LOCORE -I../../../../../../lib/libkern/arch/powerpc -I../../. -I../.. /../../../../arch -I../../../../../.. -nostdinc -DDIAGNOSTIC -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -Dmacppc -traditional-cpp ../../../../../.. /lib/libkern/arch/powerpc/ffs.S ../../../../../../lib/libkern/arch/powerpc/strlen.S

/export/20020414/tools/tools.NetBSD-1.5ZC-powerpc/bin/nbmkdep: not found ~ *** Error code 127

ignoring to do nbmake:

gcc3 -O2 -pipe -Werror -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-uninitialized -Wno-main -msoft-float -ffreestanding -I. -I../../../../arch -I../../../.. -nostdinc -DDIAGNOSTIC -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -Dmacppc -c /export/20020414/sys/arch/macppc/compile/GENERIC-gcc3/../../../../dev/ic/isp.c /export/20020414/sys/dev/ic/isp.c: In function `isp_parse_nvram_1080': /export/20020414/sys/dev/ic/isp.c:6035: structure has no member named `isq_async_data_setup' *** Error code 1

comment out line 6035:

/export/20020414/sys/dev/ic/tulip.c:5185:1: "TULIP_SET" redefined
../../../../dev/ic/tulipvar.h:564:1: this is the location of the previous definition
/export/20020414/sys/dev/ic/tulip.c:5188:1: warning: "TULIP_CLR" redefined

Manully compile without -Werrror:

cc1: warnings being treated as errors
/export/20020414/sys/kern/subr_disk.c: In function `diskerr':
/export/20020414/sys/kern/subr_disk.c:348: warning: zero-length format string

the same thing, without -Werror:

gcc3 -D_LOCORE -I../../../../../../lib/libkern/arch/powerpc -I../../. -I../../../../../../arch -I../../../../../.. -nostdinc -DDIAGNOSTIC -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -Dmacppc -c -traditional-cpp ../../../../../../lib/libkern/arch/powerpc/bzero.S
../../../../../../lib/libkern/arch/powerpc/bzero.S: Assembler messages:
../../../../../../lib/libkern/arch/powerpc/bzero.S:52: Error: unsupported relocation against r0

#2 [NetBSD] ETHER_MAX_FRAME(ifp, etype, hasfcs)

#define ETHER_MAX_FRAME(ifp, etype, hasfcs)                     \
        ((ifp)->if_mtu + ETHER_HDR_LEN +                        \
         ((hasfcs) ? ETHER_CRC_LEN : 0) +                       \
         (((etype) == ETHERTYPE_VLAN) ? ETHER_VLAN_ENCAP_LEN : 0))



最近の日記
2024年03月10日
停電 (瞬電)
2024年03月03日
the second try on bare-metal
useradd
2024年02月29日
opendkim and senmail
2024年01月24日
chat/iam 0.0.8
2024年01月21日
uselocale vs setlocale (textproc/R-readxl)
以上、1 日分です。
タイトル一覧
カテゴリ分類
Powered by hns-2.19.9, HyperNikkiSystem Project

Count.cgi (since 2000/02/05)