差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
softwares:cernlib [2019/08/24 23:47] – [Ubuntu 18.04 LTS] kobayash | softwares:cernlib [2021/08/21 15:29] (現在) – kobayash | ||
---|---|---|---|
行 1: | 行 1: | ||
===== CERN Program Library ===== | ===== CERN Program Library ===== | ||
+ | ==== CentOS 8.2.2004 ==== | ||
+ | * Debugging the DESY cernlib | ||
+ | * PAW のメモリの大きさを変えた時は、すべてをコンパイルする必要はなく、以下のコマンドで再コンパイル可能。何度もコンパイルし直していると、log ファイルのファイル名が長くなりすぎてエラーになるので、ログファイルも消しておく。 | ||
+ | |||
+ | $ emacs -nw 2005/ | ||
+ | $ touch 2005/ | ||
+ | $ rm -rf 2005/ | ||
+ | $ ./ | ||
+ | |||
+ | * コンパイルオプション (例えば # | ||
+ | |||
+ | * NWPAW を 175000000 以上にして、二次元ヒストグラムを表示すると、以下のように SIGFPE で落ちるときがある。これは再現性がある。 | ||
+ | |||
+ | PAW> hi/pl 6 | ||
+ | | ||
+ | Program received signal SIGFPE: Floating-point exception - erroneous arithmetic operation. | ||
+ | | ||
+ | Backtrace for this error: | ||
+ | #0 0x7f7b6339216a | ||
+ | #1 0x7f7b633912d3 | ||
+ | ... | ||
+ | #32 0x7f7b627f96a2 | ||
+ | #33 0x429edd | ||
+ | #34 0xffffffffffffffff | ||
+ | Floating point exception (core dumped) | ||
+ | |||
+ | * gdb ~/ | ||
+ | | ||
==== Ubuntu 18.04 LTS ==== | ==== Ubuntu 18.04 LTS ==== | ||
- | * Ubuntu 18.04CentOS 7 に g77 と g77 でコンパイルされた cernlib をインストールした。 | + | * Ubuntu 18.04 に gfortran |
- はじめに一応 Ubuntu のバージョンをチェックしておく。 | - はじめに一応 Ubuntu のバージョンをチェックしておく。 | ||
行 69: | 行 97: | ||
$ emacs ~/ | $ emacs ~/ | ||
- | *** Edit Line 142, 155, and 157 as below *** | + | *** Edit Line 142 and 157 as below *** |
... | ... | ||
# define DefaultCCOptions -fPIC | # define DefaultCCOptions -fPIC | ||
行 75: | 行 103: | ||
V V V | V V V | ||
# define DefaultCCOptions / | # define DefaultCCOptions / | ||
- | ... | ||
- | # elif defined(GCC4) | ||
- | | | | | ||
- | V V V | ||
- | # elif defined(GCC7) | ||
... | ... | ||
# | # | ||
行 86: | 行 109: | ||
# | # | ||
... | ... | ||
- | | + | |
- | + | $ emacs ~/ | |
+ | *** Edit Line 390 as below *** | ||
+ | ... | ||
+ | | ||
+ | | | | | ||
+ | V V V | ||
+ | #if __GNUC__ == 7 | ||
- Install_cernlib を書き換え | - Install_cernlib を書き換え | ||
$ emacs ~/ | $ emacs ~/ | ||
- | *** Edit Line 13-15 as below *** | + | *** Edit Line 13-15, and 33 as below *** |
... | ... | ||
echo " | echo " | ||
行 102: | 行 131: | ||
# | # | ||
# | # | ||
+ | ... | ||
+ | [ " | ||
+ | | | | | ||
+ | V V V | ||
+ | [ " | ||
- インストールの実行 | - インストールの実行 |