トップ «前の日記(2006年10月20日) 最新 次の日記(2006年10月23日)» 編集
2003|01|02|03|04|05|06|07|08|09|10|11|12|
2004|01|02|03|04|05|06|07|08|09|10|11|12|
2005|01|02|03|04|05|06|07|08|09|10|11|12|
2006|01|02|03|04|05|06|07|08|09|10|11|12|
2007|01|02|03|04|05|06|07|08|09|10|11|12|
2008|01|02|03|04|05|06|07|08|10|12|
2009|02|03|06|07|10|11|12|
2010|01|02|03|04|07|09|10|11|12|
2011|01|03|04|05|06|07|08|10|
2012|01|06|08|09|10|12|
2013|01|02|03|04|07|09|11|12|
2014|01|03|04|05|06|09|
2015|04|
2016|01|08|
ここは旧えびめもです。えびめも2に移行します(2016/12/1)

2006年10月22日

gdb-6.3 sh4/sh3 Cygwin 続き

とりあえずコンパイルが通った。通っただけでまだ細かくは試していない。
../configure --prefix=/usr --disable-maintainer-mode  \
--disable-gdbtk --disable-tui --disable-nls  --target=sh4-linux
すると
gcc -c -g -O2     -I. -I../../gdb -I../../gdb/config -DLOCALEDIR="\"/usr/share/l
ocale\"" -DHAVE_CONFIG_H -I../../gdb/../include/opcode  -I../bfd -I../../gdb/../bfd -I../.
./gdb/../include -I../intl -I../../gdb/../intl  -DMI_OUT=1 -DTUI=1 -Wimplicit -Wreturn-typ
e -Wcomment -Wtrigraphs -Wformat -Wparentheses -Wpointer-arith -Wuninitialized -Wformat-no
nliteral -Wunused-label -Wunused-function  ../../gdb/sh-linux-tdep.c
../../gdb/sh-linux-tdep.c:40:24: sys/ptrace.h: No such file or directory
../../gdb/sh-linux-tdep.c:43:22: sys/user.h: No such file or directory
../../gdb/sh-linux-tdep.c:44:25: sys/syscall.h: No such file or directory
../../gdb/sh-linux-tdep.c:218: error: `__NR_sigreturn' undeclared here (not in a function)
../../gdb/sh-linux-tdep.c:218: error: initializer element is not constant
../../gdb/sh-linux-tdep.c:218: error: (near initialization for `linux_sigtramp_code[7]')
../../gdb/sh-linux-tdep.c:286: error: `__NR_rt_sigreturn' undeclared here (not in a function)
../../gdb/sh-linux-tdep.c:286: error: initializer element is not constant
../../gdb/sh-linux-tdep.c:286: error: (near initialization for `linux_rt_sigtramp_code[7]')
../../gdb/sh-linux-tdep.c:394: warning: 'sh_linux_write_pc' defined but not used
って止まってしまうので、/usr/sh4-linux/include をインクルードパスの頭に追加してこの行だけやりすごし、先に進む(強引)
bash-3.1$ cd gdb/
bash-3.1$ gcc -c -g -O2  -I/usr/sh4-linux/include/   -I. -I../../gdb \
-I../../gdb/config -DLOCALEDIR="\"/usr/share/locale\"" -DHAVE_CONFIG_H \
-I../../gdb/../include/opcode  -I../bfd -I../../gdb/../bfd \
-I../../gdb/../include -I../intl -I../../gdb/../intl  -DMI_OUT=1 -DTUI=1 \
-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses \
-Wpointer-arith -Wuninitialized -Wformat-nonliteral -Wunused-label \
-Wunused-function  ../../gdb/sh-linux-tdep.c
../../gdb/sh-linux-tdep.c:63:1: warning: "REG_FPREG0" redefined
In file included from /usr/sh4-linux/include/asm/user.h:6,
                 from /usr/sh4-linux/include/sys/user.h:24,
                 from ../../gdb/sh-linux-tdep.c:43:
/usr/sh4-linux/include/asm/ptrace.h:42:1: warning: this is the location of the previous definition
../../gdb/sh-linux-tdep.c:64:1: warning: "REG_FPREG15" redefined
/usr/sh4-linux/include/asm/ptrace.h:43:1: warning: this is the location of the previous definition
../../gdb/sh-linux-tdep.c:68:1: warning: "REG_FPSCR" redefined
/usr/sh4-linux/include/asm/ptrace.h:46:1: warning: this is the location of the previous definition
../../gdb/sh-linux-tdep.c:69:1: warning: "REG_FPUL" redefined
/usr/sh4-linux/include/asm/ptrace.h:40:1: warning: this is the location of the previous definition
../../gdb/sh-linux-tdep.c:394: warning: 'sh_linux_write_pc' defined but not used
bash-3.1$ cd ..
bash-3.1$ make
ワーニングは出るけどオブジェクトはできるようだ。んでmake続行