Eclipse のビルドが失敗する ― 2008年09月29日 10時11分10秒
$ /usr/ports/java/eclipse.
$ make
===> Building for eclipse-3.3.2
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
*** Error code 1
Stop in /usr/ports/java/eclipse.
少し問題を追跡したところ、ビルドの為の ant を起動する時に、Java のヒープサイズが大きすぎるのが原因らしい。そこで、-Xmx の値を 1000M から 500M に少なくしたら、問題なくインストールが完了した。
$ vi /ports/tmp/ports/java/eclipse/work/build
#!/bin/sh
#ANT_OPTS=-Xmx1000M; export ANT_OPTS
ANT_OPTS=-Xmx500M; export ANT_OPTS
os=""
ws=""
arch=""
なお、ports をコンパイルしているディレクトリが /ports/tmp なのは、WRKDIRPREFIX=/ports/tmp を /etc/make.conf で設定しているからである。
コメント
トラックバック
このエントリのトラックバックURL: http://uyota.asablo.jp/blog/2008/09/29/3788262/tb
※なお、送られたトラックバックはブログの管理者が確認するまで公開されません。
コメントをどうぞ
※メールアドレスとURLの入力は必須ではありません。 入力されたメールアドレスは記事に反映されず、ブログの管理者のみが参照できます。
※なお、送られたコメントはブログの管理者が確認するまで公開されません。