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

CTest failure with windows build #3594

Closed
georgeouzou opened this issue Apr 5, 2022 · 1 comment · Fixed by #3595
Closed

CTest failure with windows build #3594

georgeouzou opened this issue Apr 5, 2022 · 1 comment · Fixed by #3595

Comments

@georgeouzou
Copy link

Hello, i built OpenBLAS on Windows 10 with clang/flang as shown here
The build itself was successful but running ctest resulted in some errors possibly with the script test\test_helper.ps1.

OpenBLAS was build with:


cmake .. -G "Ninja"  -DCMAKE_C_COMPILER=clang-cl -DCMAKE_Fortran_COMPILER=flang -DCMAKE_MT=mt -DBUILD_WITHOUT_LAPACK=no -DNOFORTRAN=0 -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON

I run ctest in windows powershell and powershell 7 but both resulted in:


ctest --config Release --rerun-failed --output-on-failure
Test project C:/Users/George/source/libraries/openblas/build_rel
      Start  2: sblas1
 1/16 Test  #2: sblas1 ...........................Exit code 0xc0000135
***Exception:   0.10 sec

      Start  3: sblas2
 2/16 Test  #3: sblas2 ...........................***Failed    0.31 sec
& : The term 'file' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the
name, or if a path was included, verify that the path is correct and try again.
At C:\Users\George\source\libraries\openblas\build_rel\test\test_helper.ps1:3 char:31
+ If ((Get-Content $args[1] | & file - | %{$_ -match "BOM"}) -contains  ...
+                               ~~~~
    + CategoryInfo          : ObjectNotFound: (file:String) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : CommandNotFoundException


      Start  4: sblas3
 3/16 Test  #4: sblas3 ...........................***Failed    0.31 sec
& : The term 'file' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the
name, or if a path was included, verify that the path is correct and try again.
At C:\Users\George\source\libraries\openblas\build_rel\test\test_helper.ps1:3 char:31
+ If ((Get-Content $args[1] | & file - | %{$_ -match "BOM"}) -contains  ...
+                               ~~~~
    + CategoryInfo          : ObjectNotFound: (file:String) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : CommandNotFoundException


      Start  5: dblas1
 4/16 Test  #5: dblas1 ...........................Exit code 0xc0000135
***Exception:   0.01 sec

      Start  6: dblas2
 5/16 Test  #6: dblas2 ...........................***Failed    0.31 sec
& : The term 'file' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the
name, or if a path was included, verify that the path is correct and try again.
At C:\Users\George\source\libraries\openblas\build_rel\test\test_helper.ps1:3 char:31
+ If ((Get-Content $args[1] | & file - | %{$_ -match "BOM"}) -contains  ...
+                               ~~~~
    + CategoryInfo          : ObjectNotFound: (file:String) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : CommandNotFoundException


      Start  7: dblas3
 6/16 Test  #7: dblas3 ...........................***Failed    0.31 sec
& : The term 'file' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the
name, or if a path was included, verify that the path is correct and try again.
At C:\Users\George\source\libraries\openblas\build_rel\test\test_helper.ps1:3 char:31
+ If ((Get-Content $args[1] | & file - | %{$_ -match "BOM"}) -contains  ...
+                               ~~~~
    + CategoryInfo          : ObjectNotFound: (file:String) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : CommandNotFoundException


      Start  8: cblas1
 7/16 Test  #8: cblas1 ...........................Exit code 0xc0000135
***Exception:   0.01 sec

      Start  9: cblas2
 8/16 Test  #9: cblas2 ...........................***Failed    0.31 sec
& : The term 'file' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the
name, or if a path was included, verify that the path is correct and try again.
At C:\Users\George\source\libraries\openblas\build_rel\test\test_helper.ps1:3 char:31
+ If ((Get-Content $args[1] | & file - | %{$_ -match "BOM"}) -contains  ...
+                               ~~~~
    + CategoryInfo          : ObjectNotFound: (file:String) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : CommandNotFoundException


      Start 10: cblas3
 9/16 Test #10: cblas3 ...........................***Failed    0.32 sec
& : The term 'file' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the
name, or if a path was included, verify that the path is correct and try again.
At C:\Users\George\source\libraries\openblas\build_rel\test\test_helper.ps1:3 char:31
+ If ((Get-Content $args[1] | & file - | %{$_ -match "BOM"}) -contains  ...
+                               ~~~~
    + CategoryInfo          : ObjectNotFound: (file:String) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : CommandNotFoundException


      Start 11: zblas1
10/16 Test #11: zblas1 ...........................Exit code 0xc0000135
***Exception:   0.01 sec

      Start 12: zblas2
11/16 Test #12: zblas2 ...........................***Failed    0.32 sec
& : The term 'file' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the
name, or if a path was included, verify that the path is correct and try again.
At C:\Users\George\source\libraries\openblas\build_rel\test\test_helper.ps1:3 char:31
+ If ((Get-Content $args[1] | & file - | %{$_ -match "BOM"}) -contains  ...
+                               ~~~~
    + CategoryInfo          : ObjectNotFound: (file:String) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : CommandNotFoundException


      Start 13: zblas3
12/16 Test #13: zblas3 ...........................***Failed    0.31 sec
& : The term 'file' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the
name, or if a path was included, verify that the path is correct and try again.
At C:\Users\George\source\libraries\openblas\build_rel\test\test_helper.ps1:3 char:31
+ If ((Get-Content $args[1] | & file - | %{$_ -match "BOM"}) -contains  ...
+                               ~~~~
    + CategoryInfo          : ObjectNotFound: (file:String) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : CommandNotFoundException


      Start 14: xscblat1
13/16 Test #14: xscblat1 .........................Exit code 0xc0000135
***Exception:   0.01 sec

      Start 17: xdcblat1
14/16 Test #17: xdcblat1 .........................Exit code 0xc0000135
***Exception:   0.01 sec

      Start 20: xccblat1
15/16 Test #20: xccblat1 .........................Exit code 0xc0000135
***Exception:   0.01 sec

      Start 23: xzcblat1
16/16 Test #23: xzcblat1 .........................Exit code 0xc0000135
***Exception:   0.01 sec


0% tests passed, 16 tests failed out of 16

Total Test time (real) =   2.69 sec

The following tests FAILED:
          2 - sblas1 (Exit code 0xc0000135
)
          3 - sblas2 (Failed)
          4 - sblas3 (Failed)
          5 - dblas1 (Exit code 0xc0000135
)
          6 - dblas2 (Failed)
          7 - dblas3 (Failed)
          8 - cblas1 (Exit code 0xc0000135
)
          9 - cblas2 (Failed)
         10 - cblas3 (Failed)
         11 - zblas1 (Exit code 0xc0000135
)
         12 - zblas2 (Failed)
         13 - zblas3 (Failed)
         14 - xscblat1 (Exit code 0xc0000135
)
         17 - xdcblat1 (Exit code 0xc0000135
)
         20 - xccblat1 (Exit code 0xc0000135
)
         23 - xzcblat1 (Exit code 0xc0000135
)
Errors while running CTest
@martin-frbg
Copy link
Collaborator

Broken by me in #3576, sorry. I had assumed any decent build environment would include the file command to determine file type, but that appears to be true for the CI machines only. (The intention was simply to skip the tests when their input got broken by addition of a byte order mark - which is what happens on one of the Azure CI hosts)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants