pkg・ports アップデート関連 - gcc12-12.2.0_5 → 12.2.0_6
- 1. 概要
- 2. 状況
- 3. オプション変更
1. 概要
あ~、発生日、忘れちゃった。
下記のような状態にありまして。
$ pkg version -vl "<"
gcc11-11.3.0_7 < needs updating (index has 11.3.0_8)
gcc12-12.2.0_5 < needs updating (index has 12.2.0_6)
2. 状況
これが、「portupgrade」しようとすると、いつまでも終らなかったり、あまつさえ、エラーになったりするのです。
まず、「gcc11」に関しては、以前、インストールしたようですが、これに依存するものが存在しなくなったようで・・・(「pkg delete」で確認)。
「ports」で「make deinstall clean」で削除しちゃいました。
「gcc12」は、えらく長く待たされた挙句
・・・ 前略 ・・・
rm gcc.pod gfortran.pod
gmake[5]: Leaving directory '/usr/ports/lang/gcc12/work/.build/gcc'
gmake[4]: *** [Makefile:5043: all-stage3-gcc] Error 2
gmake[4]: Leaving directory '/usr/ports/lang/gcc12/work/.build'
gmake[3]: *** [Makefile:25853: stage3-bubble] Error 2
gmake[3]: Leaving directory '/usr/ports/lang/gcc12/work/.build'
gmake[2]: *** [Makefile:25928: bootstrap-lean] Error 2
gmake[2]: Leaving directory '/usr/ports/lang/gcc12/work/.build'
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1
Stop.
make[1]: stopped in /usr/ports/lang/gcc12
*** Error code 1
Stop.
make: stopped in /usr/ports/lang/gcc12
てな感じで、エラーで終っちゃいます。
3. オプション変更
これが、正解ではないとは、思います。
cd /usr/ports/lang/gcc12
make config
下記がデフォルトのオプションになります。

「MULTILIB」のオプションをはずします。
「BOOTSTRAP」のオプションを「STANDARD_BOOTSTRAP」にします。
こうすることで、「make」が通るようになります。
下記で、アップグレードします。
make clean
make
make reinstall
|
|