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

Takenoshita Koyo email@hidden
2012年 1月 24日 (火) 18:05:13 JST


竹之下です。

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