(toppers-users 2707) UbuntuでJSPシミュレーション環境のインストールについての質問
moneyqb
moneyqb @ gmail.com
2008年 1月 11日 (金) 00:24:45 JST
TOPPERSの皆様
センヒョウです。
はじめましてどうもよろしくお願いします。
jsp-1.4.3をUbuntu7.04にインストールするときに、
コンパイルでさえできませんでした。
助けていただけませんか。
手順は下記の通りです:
1.configure -C linux
2.make depend
3.make
上記の3で、下記のエラーがでました:
-------------------------------
gcc -c -g -O2 -DGDB_STUB -I. -I../include -I../config/linux
sample1.c
In file included from ../include/kernel.h:83,
In file included from ../kernel/task.c:47:
../config/linux/cpu_context.h: In function ‘activate_context’:
../config/linux/cpu_context.h:74: error: ‘JB_PC’ undeclared (first use
in this function)
../config/linux/cpu_context.h:74: error: (Each undeclared identifier is
reported only once
../config/linux/cpu_context.h:74: error: for each function it appears
in.)
../config/linux/cpu_context.h:75: error: ‘JB_SP’ undeclared (first use
in this function)
make: *** [tskini.o] エラー 1
-------------------------------
自分のマシンのUbuntuシステムにsetjmp.hには
JB_PCとJB_SPの定義はないですので、
cpu_context.hにJB_PCとJB_SPの定義を追加しました:
------------------------------
#define JB_SP 4
#define JB_PC 5
------------------------------
そして、makeをかけると、また別のエラーが起きました:
--------------------------------
gcc -S -g -O2 -DGDB_STUB -I. -I../include -I../config/linux
-I../kernel kernel_chk.c
In file included from ../include/kernel.h:83,
from ../kernel/jsp_kernel.h:61,
from kernel_chk.c:1:
../config/linux/cpu_defs.h: In function ‘kernel_abort’:
../config/linux/cpu_defs.h:88: 警告: incompatible implicit declaration
of built-in function ‘exit’
../utils/gencheck kernel_chk.s > tmpfile2
mv tmpfile2 jsp.chk
gcc -g -O2 -DGDB_STUB -I. -I../include -I../config/linux -o jsp \
sample1.o timer.o linux_serial.o
linux_sigio.o logtask.o log_output.o vasyslog.o t_perror.o strerror.o
kernel_cfg.o libkernel.a -lgcc
libkernel.a(startup.o): In function `call_atexit':
/home/moneyqb/work/jsp/poi/../config/linux/tool_config.h:70: undefined
reference to `software_term_hook'
collect2: ld はステータス 1 で終了しました
make: *** [jsp] エラー 1
---------------------------------
いろいろ調べましたが、解決はできていません。
悩んでいる所です。
助けていただけませんか。
以上、よろしくお願いいたします。