[SCore-users-jp] OpenMP

Taira Sugawara sugawara @ mlab.jks.ynu.ac.jp
2003年 1月 21日 (火) 14:23:34 JST


菅原です。

亀山さんへ。
大した整理もせず、状況も書かずにすいませんでした。

> redhat 7.2/7.3/8.0 いずれも /usr/include/stdio.h に bufo
> という文字列が見付からなかったのですが, どのような環境でコンパイル
> しているのでしょうか?

redhat7.3でSCore5.2.0を使用しています。
OmniはSCore付属のものです。バージョンは1.4aとなっています。

des.cというファイルをコンパイルしようとすると以下のようになります。

$ omcc -omniconfig=scash -o des des.c
Compiling 'des.c'...
/usr/include/stdio.h:620: 'bufo' undeclared here (not in a function)
/usr/include/stdio.h:620: initializer element is not constant
/usr/include/stdio.h:621: 'bufo' undeclared here (not in a function)
/usr/include/stdio.h:621: initializer element is not constant
Error1

そして、なぜかオプション-omnicc=gcc あるいは cc を指定すると、
エラー表示が変わります。デフォルトではccになっているんですよね?

$ omcc -omniconfig=scash -o des des.c -omnicc=gcc
Compiling 'des.c'...
/usr/include/stdio.h:620: 'bufo' undeclared here (not in a function)
/usr/include/stdio.h:621: 'bufo' undeclared here (not in a function)
Error1


> des_opts.o というファイルは omcc によって作成したものでしょうか?

omccで作成しています。

omcc -DRAND -DTERMIO -DDES_PTR -DDES_UNROLL -omniconfig=scash -O3
-fomit-frame-pointer -c -o des_opts.o des_opts.c
Compiling 'des_opts.c'...
des.h:206: warning: decimal constant is so large that it is unsigned
des.h:207: warning: decimal constant is so large that it is unsigned
des.h:208: warning: decimal constant is so large that it is unsigned
des.h:208: warning: decimal constant is so large that it is unsigned
omcc -DRAND -DTERMIO -DDES_PTR -DDES_UNROLL -omniconfig=scash -O3
-fomit-frame-pointer -c -o des_opts.o des_opts.c




菅原 平
sugawara @ mlab.jks.ynu.ac.jp


--------------------- Original Message Ends --------------------



菅原 平
横浜国立大学大学院 環境情報学府
情報メディア環境学専攻 情報メディア学コース 松本研究室
sugawara @ mlab.jks.ynu.ac.jp





SCore-users-jp メーリングリストの案内