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

Ware migration failing under Windows #1194

Open
2 of 4 tasks
Tracked by #1165
Arthoni opened this issue May 17, 2024 · 0 comments
Open
2 of 4 tasks
Tracked by #1165

Ware migration failing under Windows #1194

Arthoni opened this issue May 17, 2024 · 0 comments

Comments

@Arthoni
Copy link
Member

Arthoni commented May 17, 2024

Piste d'une variable d'environnement mal transmise

  • Ajout contrôle variable OpenFLUID_HOME_DIR dans openfluid/cmake/OpenFLUIDConfig.cmake.in
-- OpenFLUID_HOME_DIR: _OpenFLUID_HOME_DIR-NOTFOUND
-- OpenFLUID_INCLUDE_DIRS: C:/LocalInstallAT_msys2/include
-- ENV OpenFLUID_MIGRATION_INCLUDE_PATHS:

Remplacement à la main

  • modification C:\LocalInstallAT_msys2\share\openfluid\waresdev\migration\templates\CMakeLists.txt pour affichage variables mobilisées et remplacement local d'OpenFLUID_HOME_DIR en tant que var d'env
$ more /home/OpenFLUID/TEST/_migration/signature/configure_log.out
-- OpenFLUID_HOME_DIR: C:/LocalInstallAT_msys2/
-- OpenFLUID_INCLUDE_DIRS: C:/LocalInstallAT_msys2/include
-- ENV OpenFLUID_MIGRATION_INCLUDE_PATHS: C:/_brli_at_msys2/src/
  • Test va plus loin, erreur inconnue :
-- Processing CMake configuration [OK]
-- Creating new ware structure [OK]
-- Dispatching
[ERROR] unknown error
  • Relancé en verbeux :
-- Processing CMake configuration : processing CMakeLists.txt, processing CMake.in.config [OK]
-- Creating new ware structure : creating new source tree, applying CMake configuration, preparing src directory [OK]
-- Dispatching : standard doc directory
[ERROR] unknown error
  • Semble bien indiquer que 2 variables manquaient

Analyse erreur résultante

  • Pas une histoire de répertoire de destination différent de la source, vérifié avec même commit sous Ubuntu 22.04
  • Rendre code plus explicite et recompiler pour préciser l'erreur
    • try catch autour de la ligne de copie ? ✅ 2023-12-01
    • Changer dans vrai code l'env var, voire écrire en dur le chemin ✅ 2023-12-01

Le catch indique une filesystem error : la copie échoue parce que le répertoire de destination existe.

  • Spécificité windows ? Non, plutôt le fait que plusieurs options donnent un comportement indéfini ?
@Arthoni Arthoni mentioned this issue May 17, 2024
5 tasks
@Arthoni Arthoni changed the title ware migration failing Ware migration failing under Windows May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant