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

冨澤 則喜 email@hidden
2012年 1月 24日 (火) 18:38:06 JST


竹之下様

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

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 メーリングリストの案内