• ベストアンサー

MAC OSXのgcc

mac OSXにfinkからxfree86をインストールしようとしましたが、 "WARNING: You are using a version of gcc which is known to produce incorrect output from C++ code under certain circumstances." なるエラーメッセージがでます。OSXの適切なgccって何でしょうか?ちなみにOSのバージョンは10.3で、gccは3.3です。 どうぞよろしくお願いします。

質問者が選んだベストアンサー

  • ベストアンサー
  • aton
  • ベストアンサー率47% (160/334)
回答No.2

No.1のatonです。 finkのページで既知の問題として報告されていました。 (参考URLの2004-10-15,2004-11-20の項) Appleから提供されているgcc3のアップデータを適用することで解決されるようです。

参考URL:
http://fink.sourceforge.net/news/index.php?phpLang=ja
stkkmo
質問者

お礼

aton様 ご回答ありがとうございまいした。教えてもらった通りにしたらうまくいきました。どうもありがとうございました。

その他の回答 (1)

  • aton
  • ベストアンサー率47% (160/334)
回答No.1

Mac OS Xには標準でXcodeという開発ツールが付属していて,その中にgccが入っているので,「OSXの適切なgcc」は,Xcodeに含まれているもの,ということになるかと思います。 ちなみに10.3のXcodeに入っているgccは,version 3.3のようです。 stkkmoさんの gcc 3.3 は,Xcodeからインストールされたものではないのでしょうか?

参考URL:
http://www.vigs.com/hpmake/c/1mac.htm
stkkmo
質問者

補足

atonさん ご回答ありがとうございました。ご指摘通りXcodeからgccをインストールしましたが同じエラーメッセージがでました。(gcc -v して得られる)バージョン情報が教えてもらったHPと同じなので無視してもいいのでしょうか???

関連するQ&A

  • gccでコンパイル時のエラー

    // test.cpp #include <stdio> using namespace std; int main(int argc, char *argv[]) { printf("test\n"); return 0; } 上記コードをコンパイルしたいのですが make -k g++ -g -O2 -Wall -I. -c test.cpp -o test.obj test.cpp:2:17: stdio: No such file or directory test.cpp: In function `int main(int, char**)': test.cpp:7: error: `printf' was not declared in this scope test.cpp:7: warning: unused variable 'printf' make: *** [test.obj] Error 1 make: Target `all' not remade because of errors. となります。 #include <stdio> using namespace std; を #include <stdio.h> // using namespace std; にすれば正常に終了するのですがなぜでしょうか? gccはMingw5.1.6からインストールしたもので、 バージョンはgcc3.4.5です。 Meadow上から実行しました。 回答よろしくお願い致します。

  • X-windowが起動しない

    こんにちは。 勉強の為に、Redhat LINUXが入った中古PCを購入した初心者です。 GUI画面を出そうと、startxのコマンドを打ってみたのですが、下記のようなメッセージが出て、うまくいきません。X-Windowが起動が必要であるというレベルまでしか分かりませんで、どうすればGUIの画面を出すことができるのでしょうか。 ご存知の方、いらっしゃいましたらご教授頂けますでしょうか。 よろしくお願い致します。 ----<以下、startxコマンドを打った後出たメッセージ>----------------- Before reporting problems, check http://www.XFree86.Org/ to make sure that you have the latest version. Module Loader present OS Kernel:Linux version 2.4.20-8(bhcompile@porky.devel.redhat.com)(gcc version 3.2.2 20030222) (Red Hat Linux 3.2.2-5))#1 Thu Mar 13 17:54:20 EST 2003 Makers:(--)probed,(**)from config file,(--)default setting, (**)from command line,(!!)notice,(II)informational (WW)warning,(EE)error,(NI)not implemented,(??)unknown (==)Log file:"/var/log/XFree86.0.log", Time Sun Jan 20 13:47:23 2008 (==)Using config file:"/etc/X11/XF86Config" Fatal server error: xf86penConsole:Cannot open virtual console 3 (input/output error) ----------------------------------------------------- どうぞ、宜しくお願い致します。

  • OSXのgcc

    10.1.5を使ってます。 このバージョンで使えるgccのバイナリってどこかから落とせるんでしょうか? 教えて下さい。

    • ベストアンサー
    • Mac
  • k-skyフォームという無料配布のPHPを使っていましたが、最近グーグ

    k-skyフォームという無料配布のPHPを使っていましたが、最近グーグルクロームというブラウザでは文字化けが出てしまい困っています。何か解消法ありますでしょうか。 配布元→ http://www.k-sky.biz/ 設置したページはこちらです。↓ http://trance.under.jp/TBmailform/form.php 知り合いに聞いて、HTMLファイルの<head>内に <meta http-equiv="Content-Type" content="text/html; charset=euc-jp"> を入れ替えたら文字化けは治ったのですが、送信の際、下記の様な送信エラーが出てしまいます。 何かいい方法ありますでしょうか。 Warning: mb_send_mail() [function.mb-send-mail]: SAFE MODE Restriction in effect. The fifth parameter is disabled in SAFE MODE. in /home/users/1/under.jp-trance/web/TBmailform/send.php(1) : eval()'d code on line 199 Warning: mb_send_mail() [function.mb-send-mail]: SAFE MODE Restriction in effect. The fifth parameter is disabled in SAFE MODE. in /home/users/1/under.jp-trance/web/TBmailform/send.php(1) : eval()'d code on line 210 Warning: Cannot modify header information - headers already sent by (output started at /home/users/1/under.jp-trance/web/TBmailform/send.php(1) : eval()'d code:199) in /home/users/1/under.jp-trance/web/TBmailform/send.php(1) : eval()'d code on line 212 他に何か伝えないと判らないものがあれば追記しますので 宜しくお願い致します。

    • 締切済み
    • PHP
  • OSX gcc コアファイルってどうやって出すの?

    OSX gcc コアファイルってどうやって出すの? MacOSX(10.6.4)でバンドルのgccでコンパイルしたバイナリを実行すると Segmentation fault で落ちてしまいます。 makefileのCFLAGSに-gとか、-ggdbとか、-dHなど試してるのですが、coreファイルができません。 coreファイルはカレント、/coresなど探しました。 MacOSXで、バンドルのgccだとcoreファイルって、どうやって出すんですか?

  • texshopについて

    Mac OS XにTexshopをインストールしました。 英字はpdfにできるのですが、日本語を入力するとコンパイルできません。 なぜでしょうか??? ### platex tex.tex This is pTeX, Version 3.141592-p3.1.10 (utf8) (Web2C 7.5.4) (./tex.tex pLaTeX2e <2006/01/04>+0 (based on LaTeX2e <2005/12/01> patch level 0) (/usr/local/teTeX/share/texmf-local/tex/latex/base/book.cls Document Class: book 2005/09/16 v1.4f Standard LaTeX document class (/usr/local/teTeX/share/texmf-local/tex/latex/base/bk10.clo)) (./tex.aux) LaTeX Font Warning: Font shape `JT1/mc/m/sl' undefined (Font) using `JT1/mc/m/n' instead on input line 7. LaTeX Font Warning: Font shape `JY1/mc/m/sl' undefined (Font) using `JY1/mc/m/n' instead on input line 7. [1] (./tex.aux) LaTeX Font Warning: Some font shapes were not available, defaults substituted. ) Output written on tex.dvi (1 page, 272 bytes). Transcript written on tex.log. ### dvipdfmx tex.dvi tex.dvi -> tex.pdf [1 ** WARNING ** Could not locate a virtual/physical font for TFM "rml". ** WARNING ** >> This font is mapped to a physical font "HiraMinPro-W3". ** WARNING ** >> Please check if kpathsea library can find this font: HiraMinPro-W3 ** ERROR ** Cannot proceed without .vf or "physical" font for PDF output... Output file removed. ### dvipdfmx error

    • ベストアンサー
    • Mac
  • pylearn2 インストール失敗

    >>python setup.py install を実行した所、 running install Because Pylearn2 is under heavy development, we generally do not advice using the `setup.py install` command. Please consider using the `setup.py develop` command instead for the following reasons: 1. Using `setup.py install` creates a copy of the Pylearn2 source code in your Python installation path. In order to update Pylearn2 afterwards you will need to rerun `setup.py install` (!). Simply using `git pull` to update your local copy of Pylearn2 code will not suffice. 2. When using `sudo` to install Pylearn2, all files, including the tutorials, will be copied to a directory owned by root. Not only is running tutorials as root unsafe, it also means that all Pylearn2-related environment variables which were defined for the user will be unavailable. Pressing enter will continue the installation of Pylearn2 in `develop` mode instead. Note that this means that you need to keep this folder with the Pylearn2 code in its current location. If you know what you are doing, and are very sure that you want to install Pylearn2 using the `install` command instead, please type `install`. Installation mode: [develop]/install/cancel: と、出力されinstallを実行した所、 running build running build_py running build_ext building 'pylearn2.utils._window_flip' extension C compiler: gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -isysroot /Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes compile options: '-I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c' gcc-4.2: pylearn2/utils/_window_flip.c i686-apple-darwin10-gcc-4.2.1: pylearn2/utils/_window_flip.c: No such file or directory i686-apple-darwin10-gcc-4.2.1: no input files i686-apple-darwin10-gcc-4.2.1: pylearn2/utils/_window_flip.c: No such file or directory i686-apple-darwin10-gcc-4.2.1: no input files lipo: can't figure out the architecture type of: /var/folders/i0/i013vMBRH8O06CgW9BFy3E+++TM/-Tmp-//ccGQGOMD.out i686-apple-darwin10-gcc-4.2.1: pylearn2/utils/_window_flip.c: No such file or directory i686-apple-darwin10-gcc-4.2.1: no input files i686-apple-darwin10-gcc-4.2.1: pylearn2/utils/_window_flip.c: No such file or directory i686-apple-darwin10-gcc-4.2.1: no input files lipo: can't figure out the architecture type of: /var/folders/i0/i013vMBRH8O06CgW9BFy3E+++TM/-Tmp-//ccGQGOMD.out error: Command "gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -isysroot /Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c pylearn2/utils/_window_flip.c -o build/temp.macosx-10.6-intel-2.7/pylearn2/utils/_window_flip.o" failed with exit status 1 とgcc4.2の部分でエラーが発生しました。 最新のgccは4.9であるため、バージョンによる失敗なんでしょうか? ちなみにdevelopを実行しても同様です。 対応策をよろしくお願い致します。

  • Mac OSX

    現在、OS9.1から、OSxへの入れ替えを検討しています。 しかし、OS9.1とOSXはソフトの互換性がないと噂を聞きました。 主に使用しているソフトは イラストレーター9 フォトショップ5 などです。 これらは、OSXにインストールして問題なく使用できるのでしょうか。

  • Mac OSX

    Mac OSX10.7.4を使用。 NONMEMというソフトをインストールしようとしています。 ターミナルを使っているのですが、 最初の方でストップして先に進むことができません。 The directory /opt/nm72 does not exist. Step 1. Creating /opt/nm72 mkdir: /opt: No such file or directory Cannot create /opt/nm72 という部分で止まってそれ以上進めないのですが、なにか対策はありますでしょうか? よろしければ教えてください。 必要な情報があれば答えますのでお願いします。

    • ベストアンサー
    • Mac
  • MAC OSXを10.5から10.4に戻したいです

    PowerMac G5 Dual2.0を使っています。 以前OSを10.5.6にバージョンアップしましたが、周辺機器が使えなくなりました。 もとに戻したいのですが、初めてなので、丁寧に教えて下さい。 お願いします。尚、インストールディスクは有ります

    • ベストアンサー
    • Mac