(toppers-users 2023) Re: JSP1.4 で SH 3で開発環境の問題について、助けてください!!!
ykominami
ykominami @ nifty.com
2005年 6月 13日 (月) 11:45:43 JST
小南です。
On Mon, 13 Jun 2005 10:38:36 +0900 (JST)
hendry steven <steven168jp @ yahoo.co.jp> wrote:
> 小南様:
> お返事 ありがとう ございます。
> tmpfileの内容は 二行です:
>
> # 1 "sample1.cfg"
> # 1 "sample1.h" 1
>
> エラー発生した実行のコマンドは 「make depend」です。
> Makefileの内容は 以下です。このMakefileは 「perl
> ../configure -C sh3 -S solution_engine
> 」という
tmpfileの内容が上の二行のみというのは、予想と反していましたが、
これであってもsample1.cfgをCプリプロセスした時の期待される結果
とは明らかに異なります。
toppers-users 2022にて高木さんが指摘されているように、原因はおそ
らく、ソースコードの文字コード、改行コードが、Cプリプロセッサが
期待しているものと異なっているため、適切に処理されなかったのでは
ないかと思われます。
私の環境での実行結果(全部は長いので、ファイルの先頭部分のみ)を以
下に示します。
-------------------------------
私の環境
CPU:sh3
System: ms7727cp01
sh-hitachi-elf-cpp (GCC) 3.4.3
-------------------------------
sample1.cfgの先頭の内容
------------------------------
/*
* @(#) $Id: sample1.cfg,v 1.7 2003/01/06 08:08:26 hiro Exp $
*/
/*
* サンプルプログラム(1)のシステムコンフィギュレーションファイル
*/
#define _MACRO_ONLY
#include "sample1.h"
INCLUDE("\"sample1.h\"");
CRE_TSK(TASK1, { TA_HLNG, (VP_INT) 1, task, MID_PRIORITY, STACK_SIZE, NULL });
-------------------------------
sample1.cfgをCプリプロセスしたtmpfile1の先頭の内容
-------------------------------
# 1 "sample1.cfg"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "sample1.cfg"
# 10 "sample1.cfg"
# 1 "sample1.h" 1
# 45 "sample1.h"
# 1 "../include/t_services.h" 1
# 63 "../include/t_services.h"
# 1 "../include/kernel.h" 1
# 72 "../include/kernel.h"
# 1 "../include/t_stddef.h" 1
# 57 "../include/t_stddef.h"
# 1 "../config/sh3/tool_defs.h" 1
# 58 "../include/t_stddef.h" 2
# 73 "../include/kernel.h" 2
# 1 "../include/itron.h" 1
# 78 "../include/kernel.h" 2
# 1 "../config/sh3/ms7727cp01/sys_defs.h" 1
# 83 "../include/kernel.h" 2
# 1 "../config/sh3/cpu_defs.h" 1
# 84 "../include/kernel.h" 2
# 1 "../include/t_syslog.h" 1
# 89 "../include/kernel.h" 2
# 64 "../include/t_services.h" 2
# 46 "sample1.h" 2
# 11 "sample1.cfg" 2
INCLUDE("\"sample1.h\"");
CRE_TSK(TASK1, { 0x00u, (VP_INT) 1, task, 10, 8192, NULL });
-------------------------------
-------------------------------
小南 ykominami @ nifty.com