[Armadillo:07852] Re: Armadillo440コンパイルエラー【-Wno-suggest-attribute=const】

冨澤 則喜 email@hidden
2012年 1月 25日 (水) 21:09:56 JST


竹之下様

冨澤です。
ご回答ありがとうございます。

エラーになったときに別のコンパイラを
使用しておりません。
aptitude install gccでインストールした
セルフ開発環境で、ビルドしています。

TeraTerm記録を保存していたので、
メールに添付致します。

お手数ですが、よろしくお願い致します。
On Wed, 25 Jan 2012 19:30:05 +0900
Takenoshita Koyo <email@hidden> wrote:

> 竹之下です。
> 
> > "-Wno-suggest-attribute=const"コンパイルテストを
> > してみました。
> >
> > Armadillo440とATDE3 両方とも同じ結果で、
> > 問題ないようです。
> そうすると、エラーになったときには何か別のコンパイラを使用しているのでしょうか?
> 
> [armadillo ~/libvirt-0.9.9]# ./configure
> [armadillo ~/libvirt-0.9.9]# make 2>&1 | tee make.log
> 
> としたときの、config.logとmake.logを添付していただくことはできますか?
> 
> (2012年01月24日 20:21), 冨澤 則喜 wrote:
> > 竹之下様
> >
> > 冨澤です。ご回答ありがとうございました。
> >
> > "-Wno-suggest-attribute=const"コンパイルテストを
> > してみました。
> >
> > Armadillo440とATDE3 両方とも同じ結果で、
> > 問題ないようです。
> > ログを以下に記載します。
> >
> > arm-gccの環境で、コンパイルオプションの
> > 組み合わせによって、出るエラーでしょうか。
> >
> > よろしくお願い致します。
> >
> > 【②Armadillo440】
> >> # touch empty.c
> >> # gcc -E -Wno-suggest-attribute=const empty.c
> >> # 1 "empty.c"
> >> # 1 "<built-in>"
> >> # 1 "<command-line>"
> >> # 1 "empty.c"
> >
> > 【①ATDE3】
> >> email@hidden:/media/hgfs$ touch empty.c
> >> email@hidden:/media/hgfs$ gcc -E -Wno-suggest-attribute=const empty.c
> >> # 1 "empty.c"
> >> # 1 "<built-in>"
> >> # 1 "<command-line>"
> >> # 1 "empty.c"
> >
> > On Tue, 24 Jan 2012 19:36:07 +0900
> > Takenoshita Koyo<email@hidden>  wrote:
> >
> >>
> >>> Armadillo-440上のセルフコンパイル環境で
> >>> configureしています。
> >> Armadillo-440上で下記コマンドを実行すると、どのような結果になりますか?
> >>
> >> $ touch empty.c
> >> $ gcc -E -Wno-suggest-attribute=const empty.c
> >>
> >> 上記コマンドでエラーが発生すれば、configureが
> >>>> checking whether compiler handles -Wno-suggest-attribute=const... yes
> >> と判断するのが、間違っていることになります。
> >>
> >> (2012年01月24日 18:38), 冨澤 則喜 wrote:
> >>> 竹之下様
> >>>
> >>> 冨澤です。ご回答ありがとうございました。
> >>>
> >>> Armadillo-440上のセルフコンパイル環境で
> >>> configureしています。
> >>>
> >>> Armadillo-440上で、wgetしたソースを
> >>> 解凍して、configureしております。
> >>>
> >>> configure環境チェックでは、"yes"になっていました。
> >>> ログを以下に記載します。
> >>>
> >>> ①ATDE3側と②Armadillo440の
> >>> configureログの差分をdiffしましたが、
> >>> "checking whether compiler handles"など
> >>> コンパイラ関連のチェックに差分は、
> >>> ありませんでした。
> >>>
> >>> よろしくお願い致します。
> >>>
> >>> 【configure環境チェック】
> >>>> checking whether compiler handles -Wno-format-nonliteral... yes
> >>>> checking whether compiler handles -Wframe-larger-than=4096... no
> >>>> checking whether compiler handles -Wp,-D_FORTIFY_SOURCE=2... yes
> >>>> checking whether compiler handles -fstack-protector-all... yes
> >>>> checking whether compiler handles --param=ssp-buffer-size=4... yes
> >>>> checking whether compiler handles -fexceptions... yes
> >>>> checking whether compiler handles -fasynchronous-unwind-tables... yes
> >>>> checking whether compiler handles -fdiagnostics-show-option... yes
> >>>> checking whether compiler handles -funit-at-a-time... yes
> >>>> checking whether compiler handles -fipa-pure-const... yes
> >>>> checking whether compiler handles -Wno-suggest-attribute=pure... yes
> >>>> checking whether compiler handles -Wno-suggest-attribute=const... yes
> >>>> checking whether compiler handles -Wno-redundant-decls... yes
> >>>
> >>>
> >>> On Tue, 24 Jan 2012 18:05:13 +0900
> >>> Takenoshita Koyo<email@hidden>   wrote:
> >>>
> >>>> 竹之下です。
> >>>>
> >>>>> "-Wno-suggest-attribute=const"
> >>>>> "-Wno-suggest-attribute=pure"という
> >>>>> コンパイルオプションでエラーが出ております。
> >>>>>> cc1: error: unrecognized command line option "-Wno-suggest-attribute=const"
> >>>>>> cc1: error: unrecognized command line option "-Wno-suggest-attribute=pure"
> >>>> cc1は、"-Wno-suggest-attribute=const"というオプションを認識できない、と言っていますね。
> >>>>
> >>>>> 【開発環境】
> >>>>> ②Armadillo440(コンパイル・エラー)
> >>>>> gcc version 4.3.2 (Debian 4.3.2-1.1)
> >>>> は、どのような環境でしょうか?
> >>>> Armadillo-440上でセルフコンパイル環境を構築されていますか?
> >>>> それとも、ATDE3上でクロスコンパイルされていますか?
> >>>>
> >>>> configureスクリプトで、"-Wno-suggest-attribute=const"が使えるかどうか確認している
> >>>> ようなので、configureが上手く行っていない(configureで確認しているコンパイラと、
> >>>> makeしているときに使っているコンパイラが異なる)か、
> >>>> configureスクリプトにバグがあるのではないかと思います。
> >>>> Armadillo-440用にビルドする際に、再度configureを行っていますか?
> >>>>
> >>>> (2012年01月24日 15:54), 冨澤 則喜 wrote:
> >>>>>
> >>>>> 冨澤と申します。
> >>>>>
> >>>>> Armadillo 440を使用した機器を開発しております。
> >>>>>
> >>>>> Armadillo440コンパイルエラーに
> >>>>> 関して投稿させて頂きました。
> >>>>>
> >>>>> libvirtというソフトウェアを
> >>>>> まずATDE3で、コンパイルしたところ
> >>>>> 問題なく configure&    make出来ました。
> >>>>>
> >>>>> そして、Armadillo440で、ほぼ同じ環境を整えて、
> >>>>> コンパイルした所、以下に記載した
> >>>>> コンパイルエラーが、出ました。
> >>>>>
> >>>>> "-Wno-suggest-attribute=const"
> >>>>> "-Wno-suggest-attribute=pure"という
> >>>>> コンパイルオプションでエラーが出ております。
> >>>>>
> >>>>> 対策をご存知の方が、おられましたら、
> >>>>> お教え願えますよう 宜しくお願い致します。
> >>>>>
> >>>>>
> >>>>> 【開発環境】
> >>>>> ①ATDE3(コンパイル・インストールOK)
> >>>>> gcc version 4.3.2 (Debian 4.3.2-1.1)
> >>>>>
> >>>>> ②Armadillo440(コンパイル・エラー)
> >>>>> gcc version 4.3.2 (Debian 4.3.2-1.1)
> >>>>>
> >>>>> 【コンパイルエラー・ログ】
> >>>>>> util/virkeycode.c: In function '__virKeycodeValueFromString':
> >>>>>> util/virkeycode.c:91: warning: cast increases required alignment of target type [-Wcast-align]
> >>>>>> util/virkeycode.c:94: warning: cast increases required alignment of target type [-Wcast-align]
> >>>>>> util/virkeycode.c: In function '__virKeycodeValueTranslate':
> >>>>>> util/virkeycode.c:127: warning: cast increases required alignment of target type [-Wcast-align]
> >>>>>> util/virkeycode.c:128: warning: cast increases required alignment of target type [-Wcast-align]
> >>>>>> At top level:
> >>>>>> cc1: error: unrecognized command line option "-Wno-suggest-attribute=const"
> >>>>>> cc1: error: unrecognized command line option "-Wno-suggest-attribute=pure"
> >>>>>> make[3]: *** [libvirt_util_la-virkeycode.lo] Error 1
> >>>>>> make[3]: Leaving directory `/root/libvirt-0.9.9/src'
> >>>>>
> >>>>>
> >>>>>
> >>>>> _______________________________________________
> >>>>> armadillo mailing list
> >>>>> email@hidden
> >>>>> http://lists.atmark-techno.com/cgi-bin/mailman/listinfo/armadillo
> >>>>
> >>>>
> >>>> --
> >>>> Koyo Takenoshita
> >>>>
> >>>> _______________________________________________
> >>>> armadillo mailing list
> >>>> email@hidden
> >>>> http://lists.atmark-techno.com/cgi-bin/mailman/listinfo/armadillo
> >>>
> >>>
> >>> _______________________________________________
> >>> armadillo mailing list
> >>> email@hidden
> >>> http://lists.atmark-techno.com/cgi-bin/mailman/listinfo/armadillo
> >>
> >>
> >> --
> >> Koyo Takenoshita
> >>
> >> _______________________________________________
> >> armadillo mailing list
> >> email@hidden
> >> http://lists.atmark-techno.com/cgi-bin/mailman/listinfo/armadillo
> >
> >
> > _______________________________________________
> > armadillo mailing list
> > email@hidden
> > http://lists.atmark-techno.com/cgi-bin/mailman/listinfo/armadillo
> 
> 
> -- 
> Koyo Takenoshita
> 
> _______________________________________________
> armadillo mailing list
> email@hidden
> http://lists.atmark-techno.com/cgi-bin/mailman/listinfo/armadillo

-------------- next part --------------
$B%F%-%9%H7A<00J30$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
$B%U%!%$%kL>(B: libvirt3.zip
$B7?(B:         application/x-zip-compressed
$B%5%$%:(B:     10300 $B%P%$%H(B
$email@hidden@(B:       $BL5$7(B
URL:        <http://lists.atmark-techno.com/pipermail/armadillo/attachments/20120125/021c3814/attachment.bin>


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