Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

./setupスクリプトを使わないとバージョン情報を更新できない #150

Closed
3 tasks
kohei-noda-qcrg opened this issue Feb 23, 2024 · 0 comments
Closed
3 tasks
Labels
bug Something isn't working

Comments

@kohei-noda-qcrg
Copy link
Member

どういうバグ?

バグについての説明を簡潔かつ明確に記述してください

  • Add version info at the end of output and stdout #148 で追加したコミットハッシュをバージョン情報として使うようにした変更について、あるコミットをした後再ビルド(cmake --build build)をかけてもコミットハッシュが更新されない
# ビルド1回目
 ~/test/dirac_caspt2 (main) $ ./setup --mpi --build -j &> /dev/null && echo $?
0
# バージョン確認
 ~/test/dirac_caspt2 (main) $ ./bin/dcaspt2 -v
dirac-caspt2 version (commit hash): 27a6a65433dc2af8ffd582d93091ebdfd3b72194
# gitコマンドで最新コミットを確認、./bin/dcaspt2 -vと一致
~/test/dirac_caspt2 (main) $ git log -1
commit 27a6a65433dc2af8ffd582d93091ebdfd3b72194 (HEAD -> main, origin/main, origin/HEAD)
Merge: 20e68a2 edbcd88
Author: Kohei Noda <[email protected]>
Date:   Fri Feb 23 00:40:25 2024 +0900

    Merge pull request #149 from RQC-HU/fix-error-message-patch

    Fix an incorrect word
# 空の新しいコミットを追加
~/test/dirac_caspt2 (main) $ git commit --allow-empty -m "empty commit"
[main 63e09eb] empty commit
# gitコマンドで最新コミットを確認、別のコミットハッシュに変わった
~/test/dirac_caspt2 (main) $ git log -1
commit 63e09eb0b8b9bf571c7635e2dbe0d1a2fbbf9536 (HEAD -> main)
Author: Kohei Noda <[email protected]>
Date:   Fri Feb 23 16:38:02 2024 +0900

    empty commit
# 再ビルド
~/test/dirac_caspt2 (main) $ cmake --build build &> /dev/null && echo $?
0
# バージョン確認、更新されていない
~/test/dirac_caspt2 (main) $ ./bin/dcaspt2 -v
dirac-caspt2 version (commit hash): 27a6a65433dc2af8ffd582d93091ebdfd3b72194
# ./setupスクリプトを使って、buildディレクトリを削除、最初からビルドをやり直す
~/test/dirac_caspt2 (main) $ ./setup --mpi --build -j &> /dev/null && echo $?
0
# バージョン確認、正しく更新された
~/test/dirac_caspt2 (main) $ ./bin/dcaspt2 -v
dirac-caspt2 version (commit hash): 63e09eb0b8b9bf571c7635e2dbe0d1a2fbbf9536

原因

  • 追加したコミットハッシュを保存する処理が、ビルド時ではなく、configure時にのみ実行されているため、初回ビルド時のみコミットハッシュを取得する処理が走る

Expected behavior

バグが取れたらどのようになっているべきかを記述してください

再現性

再現性がある場合、再現するための手順を記述してください

環境

ビルド環境を選択、記述してください

  • gfortran
  • Intel Fortran
  • mkl

DIRACのバージョンなどの情報は以下に書いてください
(例) DIRAC ver 21.1
parallel build

(optional) inputs

計算時のインプット等について記述してください

(optional) Screenshots

If applicable, add screenshots to help explain your problem.

(optional) Additional context

Add any other context about the problem here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant