ページ 11

無題

Posted: 2007年10月12日(金) 21:09
by cygwin
こんにちわ。
最近、家のパソコンでC言語をやろうと思い
cygwinをいうものをインストールしました。
そして適当にtest.cというファイルを作ってコンパイルしました。
プログラムは次のとおりです。

#include<stdio.h>
int main(void)
{
printf("テスト\n");
return 0;
}

そしたら次のようなエラーメッセージが出てきました。


3 [main] ? 396 init_cheap: Couldn't reserve 3600336 bytes of space for cyg
win's heap, Win32 error 487
C:\cygwin\lib\gcc\i686-pc-cygwin\3.4.4\cc1.exe (396): *** AllocationBase 0x0, Ba
seAddress 0x61820000, RegionSize 0x360000, State 0x10000

4 [main] ? 2640 init_cheap: Couldn't reserve 3600336 bytes of space for cy
gwin's heap, Win32 error 487
C:\cygwin\lib\gcc\i686-pc-cygwin\3.4.4\cc1.exe (2640): *** AllocationBase 0x0, B
aseAddress 0x61820000, RegionSize 0x360000, State 0x10000

4 [main] ? 1996 init_cheap: Couldn't reserve 3600336 bytes of space for cy
gwin's heap, Win32 error 487
C:\cygwin\lib\gcc\i686-pc-cygwin\3.4.4\cc1.exe (1996): *** AllocationBase 0x0, B
aseAddress 0x61820000, RegionSize 0x360000, State 0x10000

3 [main] ? 2464 init_cheap: Couldn't reserve 3600336 bytes of space for cy
gwin's heap, Win32 error 487
C:\cygwin\lib\gcc\i686-pc-cygwin\3.4.4\cc1.exe (2464): *** AllocationBase 0x0, B
aseAddress 0x61820000, RegionSize 0x360000, State 0x10000

4 [main] ? 2980 init_cheap: Couldn't reserve 3600336 bytes of space for cy
gwin's heap, Win32 error 487
C:\cygwin\lib\gcc\i686-pc-cygwin\3.4.4\cc1.exe (2980): *** AllocationBase 0x0, B
aseAddress 0x61820000, RegionSize 0x360000, State 0x10000

4 [main] ? 2632 init_cheap: Couldn't reserve 3600336 bytes of space for cy
gwin's heap, Win32 error 487
C:\cygwin\lib\gcc\i686-pc-cygwin\3.4.4\cc1.exe (2632): *** AllocationBase 0x0, B
aseAddress 0x61820000, RegionSize 0x360000, State 0x10000


このエラー文の意味がさっぱり分かりません。
詳しい方いましたらアドバイスお願いします。
また、足りない情報があったら補足しますので
よろしくお願いします。

Re:無題

Posted: 2007年10月12日(金) 21:15
by cygwin
少し付け忘れましたが
OSはXPで
実行コマンドは gcc test.c でやりました。
また -o をつけてやってみましたが同じ結果でした。

Re:無題

Posted: 2007年10月12日(金) 21:57
by たかぎ
はっきりとしたことは分かりませんが、多分インストールに失敗しています。

Re:無題

Posted: 2007年10月12日(金) 22:24
by cygwin
そう思って1回インストールしなおしたのですが
同じ結果になりました。
やっぱり失敗してるんでしょーか・・・

Re:無題

Posted: 2007年10月12日(金) 22:56
by Justy
 ダメもとで。

 rebaseパッケージを入れて、

rebaseall
 か
rebaseall -b 0x61000000

 を実行してみて下さい。

Re:無題

Posted: 2007年10月13日(土) 00:39
by cygwin
rebaseallを実行してみた所

$ rebaseall
rebaseall: only ash processes are allowed during rebasing
Exit all Cygwin processes and stop all Cygwin services.
Execute ash from Start/Run... or a cmd or command window.
Execute '/bin/rebaseall' from ash.

と表示されました。

出てきた文はよくわからないですが
もう一度Cファイルをコンパイルしても
やっぱり結果は一緒でした。

また全部インストールしなおしたほうがいいんでしょうか?