• 締切済み

コンパイルが終わらない

VAIOでWindowsMeとRedHatLinux7.2をデュアルブートで使っています。ある言語処理系(ソースはC++)をインストールしようとしたところ、configureは成功するのですがmakeがさっぱり終わりません。 g++3 -DHAVE_CONFIG_H -DPKGDATADIR="\"/home/users/***/share/***\"" -I. -I/usr/local/include -Wno-deprecated -g -O2 -fstrict-aliasing -W -Wall -c yacc.cc というメッセージが出て20分くらい音沙汰がなく、辛抱強く待っているとなぜか画面が真っ暗になってしまいました。その間オブジェクトファイルを作っていたような様子もありません。他の環境でも、同じものをインストールするとこの画面で1,2分待たされるので「ノートPCだし、遅いだけだろう」と思って待っていたのですが…これって単なるパワー不足なんでしょうか?ちなみにPCは3年位前に買ったノートなので、かなりおんぼろかもしれません。

みんなの回答

  • terra5
  • ベストアンサー率34% (574/1662)
回答No.1

具体的に何をコンパイルしているのか、具体的なマシンの型番かCPU、メモリサイズ等程度は書いてもらわないとなんとも判断できません。 他の環境も具体的に書いていないですし。 おそらく、時間がかかっているだけだろうと思いますが。 画面が暗くなるのは単にパワーセーブ機能か何かのような気がしますし。

関連するQ&A

  • C++でコンパイルするとwarningが出ます

    C++初心者です。 C++でコンパイルすると以下のようなwarningメッセージが出るのですが、どういう意味なんでしょうか?解決策があれば教えてください。 プログラム(sample.cpp) #include <iostream.h> main(){ cout << " sample \n"; } warningメッセージ In file included from /usr/include/c++/3.3.1/backward/iostream.h:31, from sample.cpp:1: /usr/include/c++/3.3.1/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider usin g one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <s stream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated

  • Debian玄箱にドライバコンパイル不調

    Debian lenny化 した玄箱(初代)にEPSON KOWA ( 現:エプソンアヴァシス株式会社)のプリンタドライバソースファイルをコンパイル中に errorが表示されうまく適用できません。 EPSON PM-950C用のドライバのソースファイルをコンパイル中に”./libcbt.a: could not read symbols: File in wrong format”と表示されうまくいかない まず、rpm ではなく、ソースファイル「pips950-2.5.2.tar.gz」をダウンロードし、 /usr/src/pips950-2.5.2 に展開しています。 上記のエラー「 ./libcbt.a: could not read symbols: File in wrong format 」の対処方法をご教示ください。 直前のメッセージを字数制限までコピーします。 make[3]: Entering directory `/usr/src/pips950-2.5.2/ekpd' gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -Wall -c cbtd.c gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -Wall -c cbtd_comserv.c cbtd_comserv.c: In function 'comserv_thread': cbtd_comserv.c:158: warning: pointer targets in passing argument 3 of 'accept' differ in signedness gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -Wall -c cbtd_datatrans.c gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -Wall -c cbtd_setup.c cbtd_setup.c: In function 'parameter_setup': cbtd_setup.c:85: warning: pointer targets in passing argument 4 of 'get_parameter' differ in signedness gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -Wall -c cbtd_signal.c gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -Wall -c cbtd_thread.c gcc -g -O2 -Wall -o ekpd cbtd.o cbtd_comserv.o cbtd_datatrans.o cbtd_setup.o cbtd_signal.o cbtd_thread.o ./libcbt.a -lpthread -ldl /usr/bin/ld: ./libcbt.a(cbtd_wrapper.o): Relocations in generic ELF (EM: 3) /usr/bin/ld: ./libcbt.a(cbtd_wrapper.o): Relocations in generic ELF (EM: 3) ./libcbt.a: could not read symbols: File in wrong format collect2: ld returned 1 exit status make[3]: *** [ekpd] Error 1 make[3]: Leaving directory `/usr/src/pips950-2.5.2/ekpd' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/src/pips950-2.5.2/ekpd' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/src/pips950-2.5.2' make: *** [all-recursive-am] Error 2

  • C++コンパイルエラーの原因を教えてください

    Cには詳しいのですが、C++があまりよくわかっておらず、質問させてください。 今回、手に入れたC++のあるプログラムをmakeしています(x86_64 Linux)。 以下のようなエラーが出てコンパイルできないのですが、何が悪いのか全く理解できず困っています。 他の環境ではコンパイルできているらしいので、わたしの環境の何が悪いのか、考えられることがありましたら、何でも書き込んでいただけると嬉しいです。 よろしくお願いします。 g++ -c -I../MathUtils -I../CommonUtils -DHAVE_ZLIB -DHAVE_BZLIB -fomit-frame-pointer -O2 -DFTYPE=float -Wall -Wsign-compare -Wpointer-arith -pedantic -DHAVE_PGPLOT -I. -DHAVE_FFTW -o analyse_image.o analyse_image.cpp In file included from analyse_image.cpp:21: Tools.h:16:15: warning: anonymous variadic macros were introduced in C99 analyse_image.cpp: In function ‘int main(int, char**)’: analyse_image.cpp:114: error: ‘strcmp’ was not declared in this scope analyse_image.cpp:205: error: ‘exit’ was not declared in this scope analyse_image.cpp:209: error: ‘strstr’ was not declared in this scope analyse_image.cpp:216: error: ‘exit’ was not declared in this scope analyse_image.cpp:457: error: ‘strlen’ was not declared in this scope make: *** [analyse_image.o] Error 1

  • MySQLのコンパイル

    MySQL-5.0.16をインストールし、下記のようにconfigureを実行したところ、「C compiler が見つからない」旨のメッセージが出て先へ進めません。 yum で gcc や cc のインストールを試みてもうまくいきません。 どなたか、良いアドバイスをお願いします。 OSはFedoraCore4の英語バージョンです。 [root@Linux mysql-5.0.16]# ./configure --prefix=/usr/local/mysql --with-charset=ujis --with-extra-charset=all ------------------------------------------------- checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking "character sets"... default: ujis, collation: ujis_japanese_ci; compiled in: ujis latin1 utf8 checking whether to compile national Unicode collations... yes checking whether build environment is sane... yes checking whether make sets $(MAKE)... (cached) yes checking for gawk... (cached) gawk checking for gcc... no checking for cc... no checking for cc... no checking for cl... no configure: error: no acceptable C compiler found in $PATH See `config.log' for more details. ----------------------------------------------------

  • g++について

    FedoreCore3にjikestというソフトをインストールしようとしています。 このソフトをダウンロードしてきてconfigureしようとするとエラーがでてきてしまい先にすすめません。 ターミナルではこのように出力されます。 checking for C++ compiler default output file name... configure: error: C++ compiler cannot create executables See `config.log' for more details. そしてconfig.logをみてみると configure:2023: checking for C++ compiler version configure:2026: g++ --version </dev/null >&5 ./configure: line 2027: g++: command not found configure:2029: $? = 127 configure: failed program was: というように記述されています g++がどうやらインストールされていないのでこのようなことになっているようなのですが、 g++をどこからどのようにインストールすればいいのかわかりません。 どなたかアドバイスおねがいします。

  • FedoraCoreでのコンパイル失敗

    FC11でPoundというソフトウェアをインストールしようと思っています。 http://www.eitaro-saba.com/2006/07/pound-のインストール/ 上記のサイトを参考にインストールし ./configure --with-ssl=/usr/include/openssl/ からmakeのコマンドを打ったところで「make: *** ターゲットが指定されておらず, makefile も見つかりません. 中止.」というエラーが発生し、悩んでいます。 ./configure --with-ssl=/usr/include/openssl/を打ったあとは以下のような反応が返ってきています。 checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for a BSD-compatible install... /usr/bin/install -c checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu configure: *** Checking for threads library and/or flags *** checking for the pthreads library -lpthreads... no checking whether pthreads work without any flags... no checking whether pthreads work with -Kthread... no checking whether pthreads work with -kthread... no checking for the pthreads library -llthread... no checking whether pthreads work with -pthread... yes checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE checking if more special flags are required for pthreads... no checking for cc_r... gcc configure: *** Parsing options *** configure: *** Checking for libraries *** checking for dlopen in -ldl... yes checking for socket in -lsocket... no checking for hstrerror in -lresolv... yes checking for BIO_new in -lcrypto... no Missing OpenSSL (-lcrypto) - aborted どこが問題なのでしょうか?よろしくお願いします。

  • clock関数のコンパイルエラーで

    こんにちは。 C++プログラムの実行時間計測リスト #include<iostream.h> #include<time.h> int main(void){ clock_t start_time=clock(); int i; //ココから //計測したい処理を書く //ココまで cerr<<clock()-start_time<<"マイクロ秒"<<endl; return 0; } をRedHat9上でコンパイルしようとすると $gcc -o clock clock.cc /usr/include/c++/3.2.2/backward/iostream.h:31 から include されたファイル中, clock.cc:1 から: /usr/include/c++/3.2.2/backward/backward_warning.h:32:2: 警告: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated. /tmp/ccoZe32a.o(.text+0x1c): In function `main': : undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::endl<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&)' /tmp/ccoZe32a.o(.text+0x3b): In function `main': : undefined reference to `std::cerr' /tmp/ccoZe32a.o(.text+0x40): In function `main': : undefined reference to `std::basic_ostream<char, std::char_traits<char> >::operator<<(long)' : collect2: ld はステータス 1 で終了しました となってしまいます。これはどうすればコンパイルできるようになるのでしょうか?

  • MacにStarRubyをインストール

    当方Macとプログラミング初心者です。 2ヶ月くらい前からうちのMac(Core i5 2.4GHz、10.6.7)にStarRubyをインストールしようと奮戦しているのですが、まったくうまくいきません。 ライブラリ等はMacPortsを利用しインストールしたのですが、extconf.rbを実行し、makeした所でエラーが出ます。 $ ruby extconf.rb checking for png.h... yes checking for zlib.h... yes checking for Mix_OpenAudio() in -lSDL_mixer... yes checking for TTF_Init() in -lSDL_ttf... yes checking for fontconfig/fontconfig.h... yes checking for FcInit() in -lfontconfig... yes checking for main() in -lGL... yes creating Makefile $ make /usr/bin/gcc-4.2 -I. -I. -I/opt/local/lib/ruby/1.8/i686-darwin10 -I. -DHAVE_PNG_H -DHAVE_ZLIB_H -DHAVE_FONTCONFIG_FONTCONFIG_H -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -I/opt/local/include -fno-common -pipe -O2 -arch x86_64 -fno-common -pipe -fno-common -I/opt/local/include/libpng14 -I/opt/local/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -I/opt/local/include -finline-functions -Wall -W -Wpointer-arith -Wunused-parameter -pedantic -std=c99 -funit-at-a-time -arch x86_64 -c ./src/texture.c ./src/texture.c: In function ‘Texture_s_load’: ./src/texture.c:326: warning: implicit declaration of function ‘png_set_gray_1_2_4_to_8’ ./src/texture.c:329: warning: ‘num_palette’ is deprecated (declared at /opt/local/include/png.h:660) ./src/texture.c:331: warning: ‘palette’ is deprecated (declared at /opt/local/include/png.h:658) ./src/texture.c:332: warning: ‘num_trans’ is deprecated (declared at /opt/local/include/png.h:662) ./src/texture.c:333: error: ‘png_info’ has no member named ‘trans’ ./src/texture.c:334: warning: ‘num_palette’ is deprecated (declared at /opt/local/include/png.h:660) make: *** [texture.o] Error 1 libpngが怪しそうなのですが、何ぶん知識が浅いのでさっぱりです。 環境変数の設定はしてあります。 一体何がいけないのでしょう。こちらの環境に依るものなのでしょうか。 回答宜しくお願いします。

    • ベストアンサー
    • Ruby
  • backward_warning.hによる警告

    こんにちは。 独自で作成した、C:\Emacs_for_Windows\My_C++_Header_for_Bash.hというファイルパスを持つヘッダファイルをインクルードしているC++のソースファイルのtest.cppを、Cygwinのbash上で、g++コマンドを使い、 g++ test.cpp のようにビルドしたところ、以下のような警告が出ました。 ------------------------------------------------------------ bin/../lib/gcc/i686-pc-cygwin/4.3.4/include/c++/backward/strstream:51 から include されたファイル中, C:\Emacs_for_Windows\My_C++_Header_for_Bash.h:35 から, test.cpp:2 から: /bin/../lib/gcc/i686-pc-cygwin/4.3.4/include/c++/backward/backward_warning.h:33:2: 警告: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. ------------------------------------------------------------ Borland C++ Compiler 5.5 のbcc32コマンドでは、こういった警告は出ません。 /bin/../lib/gcc/i686-pc-cygwin/4.3.4/include/c++/backward/backward_warning.h:33 を参考に、backward_warning.hの33行目以降をみると、以下のようになっていました。 ------------------------------------------------------------ #ifdef __DEPRECATED 33 #warning \ 34 This file includes at least one deprecated or antiquated header which \ 35 may be removed without further notice at a future date. Please use a \ 36 non-deprecated interface with equivalent functionality instead. For a \ 37 listing of replacement headers and interfaces, consult the file \ 38 backward_warning.h. To disable this warning use -Wno-deprecated. ------------------------------------------------------------ どうやら「__DEPRECATED」が定義されているので、こういった警告が出ているようなのですが、 __DEPRECATEDの意味が分かりません。 警告の指示通り、-Wno-deprecatedを付けたままC++開発を続けて問題ないのでしょうか? ちなみに、C:\Emacs_for_Windows\My_C++_Header_for_Bash.hの内容は以下の通りです。 ------------------------------------------------------------ #ifndef MYHEADER_H #define MYHEADER_H //C言語のヘッダファイル #include <stdio.h> #include <stdlib.h> #include <ctype.h> #include <string.h> #include <time.h> #include <math.h> #include <stddef.h> //C++言語のヘッダの標準識別子 #include <iostream> #include <fstream> #include <cctype> #include <cstring> #include <cstdlib> #include <ctime> #include <cstdio> #include <new> #include <iomanip> #include <strstream> #include <typeinfo> //STLに関するヘッダ #include <string> #include <vector> #include <deque> #include <list> #include <set> #include <map> #include <algorithm> #include <functional> #include <utility> #include <numeric> #include <cassert> #include <iterator> //namespaceの解決 using namespace std; #endif ------------------------------------------------------------ 以上の件について何かご存知の方がいらっしゃれば、是非教えて頂きたいと思います。 では、よろしくお願い致します。

  • 日本語係り受け解析器CaboChaのmakeに失敗する

    日本語係り受け解析器CaboChaをインストールしたいのですが、makeに失敗します。 makeを成功させるには何が必要なのでしょうか? お知恵を貸して下さい。 コンパイル環境 OS CentOS3 g++ 3.2.5 cabocha-0.60pre2 CRF++-0.51 make失敗時に表示されたエラーメッセージです。 g++ -DHAVE_CONFIG_H -I. -I.. -DCABOCHA_DEFAULT_POSSET=\"IPA\" -DCABOCHA_DEFAULT_CHARSET=\"UTF8\" -DMODEL_VERSION=100 -DCABOCHA_DEFAULT_RC=\"/usr/local/etc/cabocharc\" -O3 -Wno-deprecated -Wall -c chunk_learner.cpp -fPIC -DPIC -o .libs/chunk_learner.o chunk_learner.cpp: In function `bool CaboCha::ChunkingTrainingWithCRFPP(cabocha_parser_t, cabocha_charset_t, cabocha_posset_t, int, const char*, const char*, const char*)': chunk_learner.cpp:162: `::unlink' undeclared (first use here) make[2]: *** [chunk_learner.lo] Error 1 make[2]: Leaving directory `/usr/local/src/cabocha-0.60pre2/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/src/cabocha-0.60pre2' make: *** [all] Error 2