[Suzaku:00243] Re: RedHat Linux で uClinux のイメージビルド失敗

Daisuke Kanamaru email@hidden
2005年 2月 18日 (金) 11:44:58 JST


yashi 様

ご連絡ありがとうございます。

> > > 確認のために "/home/hakusan/suzaku/uClinux-dist/user/mtd-utils" にcdして、
> > > "gcc -I/usr/include -c -o build/compr_rtime.o compr_rtime.c" を実行してみましたが、
> > > やはり "build/compr_rtime.o" は出来ていませんでした。
> > > 試しに "gcc -c -o build/compr_rtime.o compr_rtime.c" に変えて実行してみたところ、
> > > 今度は "build/compr_rtime.o" が出来ていました。
> >
> > 結構謎ですね。/usr/includeはシステムインクルードディレクトリなので、-I
> > で指定しなくても、検索対象のパスに追加されるはずです。
>
> 送ってもらった ai.ii と a.iiを見たんですが、違いが見つけられません。上
> 記のように -I/usr/includeを付けたときには object fileができず、外した
> 場合には object fileの生成ができるのであれば、出力に違いがでるはずなん
> ですが…。
>
> 両方ともstderrになにも表示されない時点で、compileは errorを出していな
> いと思われます。
>
> もう一度確認してもらえますか?

了解しました。

もう一度確認してみたところ、object fileの生成される(-I/usr/includeを付けない)場合の方は
同じ場所のメッセージがすべてwarningになっていました。

-----------------
[Linux73 mtd-utils]$ gcc -I/usr/include -c -o build/compr_rtime.o compr_rtime.c
In file included from compr_rtime.c:30:
/usr/include/stdint.h:37: redefinition of `int8_t'
/usr/include/linux/types.h:78: `int8_t' previously declared here
/usr/include/stdint.h:38: redefinition of `int16_t'
/usr/include/linux/types.h:80: `int16_t' previously declared here
/usr/include/stdint.h:39: redefinition of `int32_t'
/usr/include/linux/types.h:82: `int32_t' previously declared here
/usr/include/stdint.h:44: redefinition of `int64_t'
/usr/include/linux/types.h:93: `int64_t' previously declared here
/usr/include/stdint.h:49: redefinition of `uint8_t'
/usr/include/linux/types.h:86: `uint8_t' previously declared here
/usr/include/stdint.h:50: redefinition of `uint16_t'
/usr/include/linux/types.h:87: `uint16_t' previously declared here
/usr/include/stdint.h:52: redefinition of `uint32_t'
/usr/include/linux/types.h:88: `uint32_t' previously declared here
/usr/include/stdint.h:59: redefinition of `uint64_t'
/usr/include/linux/types.h:91: `uint64_t' previously declared here

-----------------
[Linux73 mtd-utils]$ gcc -c -o build/compr_rtime.o compr_rtime.c
In file included from compr_rtime.c:30:
/usr/include/stdint.h:37: warning: redefinition of `int8_t'
/usr/include/linux/types.h:78: warning: `int8_t' previously declared here
/usr/include/stdint.h:38: warning: redefinition of `int16_t'
/usr/include/linux/types.h:80: warning: `int16_t' previously declared here
/usr/include/stdint.h:39: warning: redefinition of `int32_t'
/usr/include/linux/types.h:82: warning: `int32_t' previously declared here
/usr/include/stdint.h:44: warning: redefinition of `int64_t'
/usr/include/linux/types.h:93: warning: `int64_t' previously declared here
/usr/include/stdint.h:49: warning: redefinition of `uint8_t'
/usr/include/linux/types.h:86: warning: `uint8_t' previously declared here
/usr/include/stdint.h:50: warning: redefinition of `uint16_t'
/usr/include/linux/types.h:87: warning: `uint16_t' previously declared here
/usr/include/stdint.h:52: warning: redefinition of `uint32_t'
/usr/include/linux/types.h:88: warning: `uint32_t' previously declared here
/usr/include/stdint.h:59: warning: redefinition of `uint64_t'
/usr/include/linux/types.h:91: warning: `uint64_t' previously declared here

-----------------





suzaku メーリングリストの案内