(toppers-users 108) gcc の一時ファイルに対するエラーメッセージについて
Imai Kazuhiko
kimai @ mit.pref.miyagi.jp
2001年 3月 8日 (木) 20:20:16 JST
宮城県産業技術総合センターの今井です。
現在、JSPカーネルをSH1へ移植中です。
gccのエラーメッセージの解釈が分からなくなり、質問させて
頂いた次第です。
末尾にmake時のメッセージを添付します。
あらかた正常にコンパイルできているのですが、最後の方で
/tmp/ccqny0ZL.sに対するアセンブラからのエラーメッセージが大
量に出ています。/tmp/ccqny0ZL.sは一時ファイルなのでmakeから
抜けてきた時点で削除されており、内容を確認することができませ
ん。
1行上のkernel_cfg.cのコンパイルと関係あるのでしょうか?
(kernel_cfg.cの何行目でエラーという形のメッセージが表示
されないので、よく分かりません。)
SH3版のサンプルプログラムを流用しています。
変更点はCPUロードアドレスエラーハンドラの登録番号を変えた
くらいです。
みなさんはこのようなエラーメッセージに遭遇したことがあるで
しょうか。
対処方法をご存知の方がいらっしゃいましたら、よろしくお願い
致します。
宮城県産業技術総合センター
今井和彦
kimai @ mit.pref.miyagi.jp
makeのメッセージ
cpp -I. -I../include -I../config/sh1 -I../config/sh1/tokiwa_sh1
-DSUPPORT_CHG_IPM sample1.cfg | ../cfg/cfg
sh-hitachi-elf-gcc -S -m1 -mhitachi -O2 -Wall -DSUPPORT_CHG_IPM
-I. -I../include -I../config/sh1 -I../config/sh1/tokiwa_sh1 -g
-Wall -I../kernel ../config/sh1/makeoffset.c
../utils/genoffset makeoffset.s > offset.h
sh-hitachi-elf-gcc -c -m1 -mhitachi -O2 -Wall -DSUPPORT_CHG_IPM
-I. -I../include -I../config/sh1 -I../config/sh1/tokiwa_sh1 -g
-Wall -I../kernel ../config/sh1/start.S
sh-hitachi-elf-gcc -c -m1 -mhitachi -O2 -Wall -DSUPPORT_CHG_IPM
-I. -I../include -I../config/sh1 -I../config/sh1/tokiwa_sh1 -g
-Wall -I../kernel ../config/sh1/cpu_support.S
sh-hitachi-elf-gcc -c -m1 -mhitachi -O2 -Wall -DSUPPORT_CHG_IPM
-I. -I../include -I../config/sh1 -I../config/sh1/tokiwa_sh1 -g
-Wall -I../kernel ../config/sh1/tokiwa_sh1/sys_support.S
sh-hitachi-elf-gcc -c -m1 -mhitachi -O2 -Wall -DSUPPORT_CHG_IPM
-I. -I../include -I../config/sh1 -I../config/sh1/tokiwa_sh1 -g
-Wall -I../kernel ../kernel/startup.c
sh-hitachi-elf-gcc -c -m1 -mhitachi -O2 -Wall -DSUPPORT_CHG_IPM
-I. -I../include -I../config/sh1 -I../config/sh1/tokiwa_sh1 -g
-Wall -I../kernel ../config/sh1/cpu_config.c
../config/sh1/cpu_config.c: In function `chg_ipm':
../config/sh1/cpu_insn.h:67: warning: `tmp' might be used
uninitialized in this function
../config/sh1/cpu_config.c: In function `get_ipm':
../config/sh1/cpu_insn.h:67: warning: `tmp' might be used
uninitialized in this function
sh-hitachi-elf-gcc -c -m1 -mhitachi -O2 -Wall -DSUPPORT_CHG_IPM
-I. -I../include -I../config/sh1 -I../config/sh1/tokiwa_sh1 -g
-Wall -I../kernel ../config/sh1/tokiwa_sh1/sys_config.c
sh-hitachi-elf-gcc -c -m1 -mhitachi -O2 -Wall -DSUPPORT_CHG_IPM
-I. -I../include -I../config/sh1 -I../config/sh1/tokiwa_sh1 -g
-Wall -I../kernel ../kernel/task.c
../kernel/task.c: In function `_kernel_calltex':
../config/sh1/cpu_insn.h:67: warning: `tmp' might be used
uninitialized in this function
sh-hitachi-elf-gcc -c -m1 -mhitachi -O2 -Wall -DSUPPORT_CHG_IPM
-I. -I../include -I../config/sh1 -I../config/sh1/tokiwa_sh1 -g
-Wall -I../kernel ../kernel/wait.c
sh-hitachi-elf-gcc -c -m1 -mhitachi -O2 -Wall -DSUPPORT_CHG_IPM
-I. -I../include -I../config/sh1 -I../config/sh1/tokiwa_sh1 -g
-Wall -I../kernel ../kernel/time_event.c
../kernel/time_event.c: In function `isig_tim':
../config/sh1/cpu_insn.h:67: warning: `tmp' might be used
uninitialized in this function
sh-hitachi-elf-gcc -c -m1 -mhitachi -O2 -Wall -DSUPPORT_CHG_IPM
-I. -I../include -I../config/sh1 -I../config/sh1/tokiwa_sh1 -g
-Wall -I../kernel kernel_cfg.c
/tmp/ccqny0ZL.s: Assembler messages:
/tmp/ccqny0ZL.s:2013: Error: invalid operands for opcode
/tmp/ccqny0ZL.s:2015: Error: invalid operands for opcode
/tmp/ccqny0ZL.s:2023: Error: invalid operands for opcode
/tmp/ccqny0ZL.s:2025: Error: invalid operands for opcode
/tmp/ccqny0ZL.s:2036: Error: invalid operands for opcode
/tmp/ccqny0ZL.s:2047: Error: Bad expression
/tmp/ccqny0ZL.s:2050: Error: invalid operands for opcode
/tmp/ccqny0ZL.s:2061: Error: invalid operands for opcode
/tmp/ccqny0ZL.s:2098: Error: invalid operands for opcode
/tmp/ccqny0ZL.s:2100: Error: invalid operands for opcode
/tmp/ccqny0ZL.s:2108: Error: invalid operands for opcode
/tmp/ccqny0ZL.s:2110: Error: invalid operands for opcode
/tmp/ccqny0ZL.s:2121: Error: invalid operands for opcode
/tmp/ccqny0ZL.s:2132: Error: Bad expression
/tmp/ccqny0ZL.s:2135: Error: invalid operands for opcode
/tmp/ccqny0ZL.s:2146: Error: invalid operands for opcode
/tmp/ccqny0ZL.s:2183: Error: invalid operands for opcode
/tmp/ccqny0ZL.s:2185: Error: invalid operands for opcode
/tmp/ccqny0ZL.s:2193: Error: invalid operands for opcode
/tmp/ccqny0ZL.s:2195: Error: invalid operands for opcode
/tmp/ccqny0ZL.s:2206: Error: invalid operands for opcode
/tmp/ccqny0ZL.s:2217: Error: Bad expression
/tmp/ccqny0ZL.s:2220: Error: invalid operands for opcode
/tmp/ccqny0ZL.s:2231: Error: invalid operands for opcode
/tmp/ccqny0ZL.s:2288: Error: invalid operands for opcode
/tmp/ccqny0ZL.s:2290: Error: invalid operands for opcode
/tmp/ccqny0ZL.s:2291: Error: Bad expression
/tmp/ccqny0ZL.s:2291: Error: syntax error in @(disp,[Rn, gbr, pc])
/tmp/ccqny0ZL.s:2291: Error: expecting )
/tmp/ccqny0ZL.s:2291: Error: invalid operands for opcode
/tmp/ccqny0ZL.s:2299: Error: invalid operands for opcode
/tmp/ccqny0ZL.s:2301: Error: invalid operands for opcode
/tmp/ccqny0ZL.s:2308: Error: invalid operands for opcode
/tmp/ccqny0ZL.s:2314: Error: invalid operands for opcode
/tmp/ccqny0ZL.s:2325: Error: Bad expression
/tmp/ccqny0ZL.s:2328: Error: invalid operands for opcode
/tmp/ccqny0ZL.s:2335: Error: invalid operands for opcode
/tmp/ccqny0ZL.s:2341: Error: invalid operands for opcode
make: *** [kernel_cfg.o] Error 1
-------------- next part --------------
テキスト形式以外の添付ファイルを保管しました...
ファイル名: Makefile
型: application/octet-stream
サイズ: 7272 バイト
説明: Makefile
URL: <http://www.toppers.jp/pipermail/users/attachments/20010308/8332cf6e/attachment.obj>
-------------- next part --------------
テキスト形式以外の添付ファイルを保管しました...
ファイル名: sample1.c
型: application/octet-stream
サイズ: 9480 バイト
説明: sample1.c
URL: <http://www.toppers.jp/pipermail/users/attachments/20010308/8332cf6e/attachment-0001.obj>
-------------- next part --------------
テキスト形式以外の添付ファイルを保管しました...
ファイル名: sample1.cfg
型: application/octet-stream
サイズ: 800 バイト
説明: sample1.cfg
URL: <http://www.toppers.jp/pipermail/users/attachments/20010308/8332cf6e/attachment-0002.obj>
-------------- next part --------------
テキスト形式以外の添付ファイルを保管しました...
ファイル名: sample1.h
型: application/octet-stream
サイズ: 668 バイト
説明: sample1.h
URL: <http://www.toppers.jp/pipermail/users/attachments/20010308/8332cf6e/attachment-0003.obj>
-------------- next part --------------
テキスト形式以外の添付ファイルを保管しました...
ファイル名: kernel_cfg.c
型: application/octet-stream
サイズ: 3630 バイト
説明: kernel_cfg.c
URL: <http://www.toppers.jp/pipermail/users/attachments/20010308/8332cf6e/attachment-0004.obj>