maimi09の日記: なぜかemerge --syncが上手くできないことがある。
IBM System x3105(4347-22J)にgentoo 2008.0 AMD64をインストールしました。
$ uname -a
Linux xxxxx 2.6.27-gentoo-r1 #1 SMP Fri Oct 24 14:29:01 JST 2008 x86_64 AMD Athlon(tm) 64 Processor 3500+ AuthenticAMD GNU/Linux
それで・・・
$ sudo -u portage emerge --sync
パスワード:
>>> Starting rsync with rsync://133.11.205.121/gentoo-portage/...
>>> Checking server timestamp ...
timed out
rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at rsync.c(541) [receiver=3.0.4]
>>> Retrying...
てなぐあいにrsyncできないことがあるのですが・・・
SYNC="rsync://rsync.jp.gentoo.org/gentoo-portage/"
で、DNSがローテーションで応答するIP
C:\>nslookup rsync.jp.gentoo.org
Server: local.gateway
Address: 192.168.0.1
Non-authoritative answer:
Name: rsync.jp.gentoo.org
Addresses: 150.65.7.130, 203.178.137.175, 122.249.91.102, 133.11.205.121
のうち133.11.205.121(u-tokyo.ac.jp)だけが接続できないようで、他のサイトとはrsyncできるのです。
どういう理由でrsyncに失敗しているのか、理解するには何処を調べたらよろしいでしょうか。
ぐぐってみると・・・・
http://ml.gentoo.gr.jp/users/200311.month/934.html
http://ml.gentoo.gr.jp/users/200311.month/933.html
というアレゲな回答がありましたが、「コンパイルオプションを変えてみるなんてことは一番最初に試すこと」って気がしますので、もう少し他の意見はないのかなぁ。
またアプリをemergeするときに
GENTOO_MIRRORS="http://mirror.gentoo.gr.jp/"
だと、DNSがローテーションで応答するIPのうち何故か接続できないサイトがあったり、アドレス引きの応答がなかったりするので
GENTOO_MIRRORS="http://ftp.jaist.ac.jp/pub/Linux/Gentoo/ http://ftp.iij.ad.jp/pub/linux/gentoo/ http://ftp.nara.wide.ad.jp/pub/Linux/gentoo/ http://ftp.ecc.u-tokyo.ac.jp/GENTOO/"
とかしたのですが、これだとローテーションせずに先頭エントリのサイトから順番に接続を試していくといったかんじで、特定のサイトに優先的に接続するような設定になってしまうのが今一なところです。
ちなみにgccは
$ gcc -v
Using built-in specs.
Target: x86_64-pc-linux-gnu
コンフィグオプション: /var/tmp/portage/sys-devel/gcc-4.3.2/work/gcc-4.3.2/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.3.2 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.2 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.2/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.2/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/include/g++-v4 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --enable-secureplt --enable-multilib --enable-libmudflap --disable-libssp --enable-cld --disable-libgcj --enable-languages=c,c++,treelang,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.3.2 p1.0'
スレッドモデル: posix
gcc version 4.3.2 (Gentoo 4.3.2 p1.0)
てな感じになっています。
なぜかemerge --syncが上手くできないことがある。 More ログイン