(toppers-users 2888) Re: WindowsXpで開発環境を構築したい

jnbswk @ yahoo.co.jp jnbswk @ yahoo.co.jp
2009年 3月 6日 (金) 15:37:44 JST


こんにちは、きくです。

> timer3のディレクトリでmake dependを行うと下記のエラーとなります。
> $ make depend
> rm -f Makefile.depend
> h8300-hms-gcc -E -I. -I../../jsp/include  -I../../jsp/config/h8/akih8_3069f -I..
> /../jsp/config/h8 -I../../device  -DCPU_CLOCK=20000000 -DJSP_KERNEL -DAKI_MONITO
> R -x c-header timer3.cfg > tmpfile1
> ../../jsp/cfg/cfg -s tmpfile1 -c -obj -cpu h8 -system akih8_3069f
> make: ../../jsp/cfg/cfg: Command not found
> make: *** [kernel_cfg.c] Error 127
> 
> そこで、
> /usr/src/configure -C h8 -S akih8_3069f
> を実施すると
> $ /usr/src/jsp/configure -C h8 -S AKIH8_3069F
> configure: Generating Makefile from /usr/src/jsp/sample/Makefile.
> configure: Makefile exists.  Save as Makefile.bak.
> configure: Generating sample1.c from /usr/src/jsp/sample/sample1.c.
> configure: Generating sample1.h from /usr/src/jsp/sample/sample1.h.
> configure: Generating sample1.cfg from /usr/src/jsp/sample/sample1.cfg.
> となり、意に反して動いているサンプルが組み込まれるようです。
> 
> ディレクトリの指定がマズイのではと思い、
> ../../jsp/cfg(<==/usr/src/jsp/とは別のディレクトリです)
> で、make depend後、makeを実施すると、下記エラーが発生します。
> $ make
> g++ -c -g -O2 -Wall -DFILECONTAINER_BINUTILS -I. ./base/parser.cpp
> In file included from ./base/message.h:55,
>                  from ./base/parser.h:47,
>                  from ./base/parser.cpp:44:
> ./base/singleton.h: In static member function `static T* Singleton<T>::createIns
> tance(std::nothrow_t)':
> ./base/singleton.h:230: error: `nothrow' undeclared (first use this function)
> ./base/singleton.h:230: error: (Each undeclared identifier is reported only once
> for each function it appears in.)
> ./base/singleton.h: In static member function `static T* Singleton<T>::createIns
> tance()':
> ./base/singleton.h:249: error: `nothrow' undeclared (first use this function)
> ./base/singleton.h: In static member function `static T* Singleton<T>::getInstan
> ce(std::nothrow_t)':
> ./base/singleton.h:268: error: `nothrow' undeclared (first use this function)
> make: *** [parser.o] Error 1
> 
> 
> 「コンフィギュレータ」「depend」などが、きっちり理解できていないのが
> 最大の原因だと思うのですが、一体どうしたらよいのでしょうか?

ディレクトリの位置を移動したり、Makefileをエディタで書き換えたり、
半ば強引な方法で、動かすことができました。(I/Oも動いてます)

なので環境構築がきちんとできているのかよくわかりません。



そこで次に下記を試してみることにしました。(LANに挑戦)
http://www.laksmido.com/dev/AKI-H8_3069F/TOPPERS/2006062503.html

4.サンプルサーバプログラムの構築のmake dependを実行すると、下記エラーとなります。
$ make depend
rm -f Makefile.depend
h8300-hms-gcc -E -I. -I../include  -I../config/h8/akih8_3069f -I../config/h8 -I.
./tinet/netdev/if_ed -I../tinet  -DCPU_CLOCK=20000000 -DLABEL_ASM -DVECTOR_SIZE=
64 -DNUM_WWW_SRV_TASKS=1                 -DNUM_TCP_ECHO_SRV_TASKS=1      -DNUM_V
RID_TCP_REPS=2           -DNUM_VRID_TCP_CEPS=4           -DNUM_VRID_UDP_CEPS=2 -
DNUM_VRID_TCP6_REPS=2    -DNUM_VRID_TCP6_CEPS=4  -DNUM_VRID_UDP6_CEPS=2  -DUSE_I
PV6_MMTU -DUSE_WWW_SRV -DUSE_TCP_ECHO_SRV1 -DUSE_UDP_ECHO_SRV -DUSE_TCP_ECHO_CLI
 -DUSE_UDP_ECHO_CLI -DUSE_TCP_DISCARD_SRV -DUSE_TCP_DISCARD_CLI -DUSE_UDP_DISCAR
D_CLI -DUSE_NET_CONS -DUSE_DBG_CONS -DUSE_PING -DUSE_NETAPP_SUBR -DUSE_COPYSAVE_
API -DTCP_CFG_RWBUF_CSAVE -DTCP_CFG_SWBUF_CSAVE -DTCP_CFG_EXTENTIONS -DUSE_TCP_E
XTENTIONS -DUDP_CFG_EXTENTIONS -DUSE_UDP_EXTENTIONS  -DSUPPORT_INET4 -DSUPPORT_E
THER -DSUPPORT_TCP -DSUPPORT_UDP -DTCP_CFG_LIBRARY -DUDP_CFG_LIBRARY -DTNCT_MONI
TOR -x c-header tinet_nserv.cfg > tmpfile9
../tinet/cfg/tinet_cfg -s tmpfile9
make: ../tinet/cfg/tinet_cfg: Command not found
make: *** [tinet_kern.cfg] Error 127

やはり環境が正しく構築されていないのでしょうか?
コンフィギュレータの構築がまずいのでしょうか?

度々、申し訳ありませんがアドバイスお願いいたします。

--------------------------------------
Power up the Internet with Yahoo! Toolbar.
http://pr.mail.yahoo.co.jp/toolbar/