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

CI - test fails on macos bindist #1779

Open
avdv opened this issue Jul 12, 2022 · 0 comments · May be fixed by #2059
Open

CI - test fails on macos bindist #1779

avdv opened this issue Jul 12, 2022 · 0 comments · May be fixed by #2059

Comments

@avdv
Copy link
Member

avdv commented Jul 12, 2022

Describe the bug
The //tests/repl-targets:hs_lib_repl_test_bindist_4_1_0 test fails for the "bindist" job on macos-10.15.

CI run: https://github.com/tweag/rules_haskell/runs/7301831096?check_suite_focus=true (#1778)

To Reproduce

bazel test //tests/repl-targets:hs_lib_repl_test_bindist_4_1_0

Expected behavior
The test should pass.

Environment

  • OS name + version: macos-10.15
  • Bazel version: 4.2.1
  • Version of the rules: 4d9d65f

Additional context

FAIL: //tests/repl-targets:hs_lib_repl_test_bindist_4_1_0 (see /private/var/tmp/_bazel_runner/d1e3bdaa0c37ce8d00ecff62b05849c3/execroot/rules_haskell/bazel-out/darwin-fastbuild/testlogs/tests/repl-targets/hs_lib_repl_test_bindist_4_1_0/test.log)
INFO: From Testing //tests/repl-targets:hs_lib_repl_test_bindist_4_1_0:
==================== Test output for //tests/repl-targets:hs_lib_repl_test_bindist_4_1_0:
bazel run repl FAILED [1]
Failures:
  tests/integration_testing/IntegrationTesting.hs:115:22: 
  1) bazel run repl
       ====================
       Exit Code: ExitFailure 1
       ====================
       Standard Output
       --------------------
       ====================
       Error Output
       --------------------
       $TEST_TMPDIR defined: output root default is '/private/var/tmp/_bazel_runner/d1e3bdaa0c37ce8d00ecff62b05849c3/execroot/rules_haskell/_tmp/19a40151251f31fefcfe23531e930d05' and max_idle_secs default is '15'.
       Loading: 
       Loading: 0 packages loaded
       Analyzing: target //:hs-lib@repl (1 packages loaded, 0 targets configured)
       Analyzing: target //:hs-lib@repl (11 packages loaded, 5878 targets configured)
       Analyzing: target //:hs-lib@repl (11 packages loaded, 6937 targets configured)
       DEBUG: /private/var/tmp/_bazel_runner/d1e3bdaa0c37ce8d00ecff62b05849c3/5557dccbd1535c60f85238399ad86a92/external/rules_haskell/haskell/cabal.bzl:2350:10: Stack not found.
       DEBUG: /private/var/tmp/_bazel_runner/d1e3bdaa0c37ce8d00ecff62b05849c3/5557dccbd1535c60f85238399ad86a92/external/rules_haskell/haskell/cabal.bzl:2351:10: Downloading Stack 2.7.5 ...
       Analyzing: target //:hs-lib@repl (11 packages loaded, 6937 targets configured)
       Analyzing: target //:hs-lib@repl (11 packages loaded, 6937 targets configured)
       Analyzing: target //:hs-lib@repl (11 packages loaded, 6937 targets configured)
       Analyzing: target //:hs-lib@repl (11 packages loaded, 6937 targets configured)
       Analyzing: target //:hs-lib@repl (11 packages loaded, 6937 targets configured)
       Analyzing: target //:hs-lib@repl (13 packages loaded, 6937 targets configured)
       INFO: Analyzed target //:hs-lib@repl (15 packages loaded, 7524 targets configured).
       INFO: Found 1 target...
       [0 / 6] [Prepa] BazelWorkspaceStatusAction stable-status.txt
       [23 / 32] [Prepa] action 'SolibSymlink _solib_darwin/external_Srules_Uhaskell_Ughc_Udarwin_Uamd64/libHSinteger-gmp-1.0.3.0-ghc8.10.7.dylib'
       INFO: From Compiling gzlib.c:
       external/zlib.hs/gzlib.c:252:9: warning: implicit declaration of function 'lseek' is invalid in C99 [-Wimplicit-function-declaration]
               LSEEK(state->fd, 0, SEEK_END);  /* so gzoffset() is correct */
               ^
       external/zlib.hs/gzlib.c:14:17: note: expanded from macro 'LSEEK'
       #  define LSEEK lseek
                       ^
       external/zlib.hs/gzlib.c:258:24: warning: implicit declaration of function 'lseek' is invalid in C99 [-Wimplicit-function-declaration]
               state->start = LSEEK(state->fd, 0, SEEK_CUR);
                              ^
       external/zlib.hs/gzlib.c:14:17: note: expanded from macro 'LSEEK'
       #  define LSEEK lseek
                       ^
       external/zlib.hs/gzlib.c:359:9: warning: implicit declaration of function 'lseek' is invalid in C99 [-Wimplicit-function-declaration]
           if (LSEEK(state->fd, state->start, SEEK_SET) == -1)
               ^
       external/zlib.hs/gzlib.c:14:17: note: expanded from macro 'LSEEK'
       #  define LSEEK lseek
                       ^
       external/zlib.hs/gzlib.c:400:15: warning: implicit declaration of function 'lseek' is invalid in C99 [-Wimplicit-function-declaration]
               ret = LSEEK(state->fd, offset - state->x.have, SEEK_CUR);
                     ^
       external/zlib.hs/gzlib.c:14:17: note: expanded from macro 'LSEEK'
       #  define LSEEK lseek
                       ^
       external/zlib.hs/gzlib.c:496:14: warning: implicit declaration of function 'lseek' is invalid in C99 [-Wimplicit-function-declaration]
           offset = LSEEK(state->fd, 0, SEEK_CUR);
                    ^
       external/zlib.hs/gzlib.c:14:17: note: expanded from macro 'LSEEK'
       #  define LSEEK lseek
                       ^
       5 warnings generated.
       INFO: From Compiling gzread.c:
       external/zlib.hs/gzread.c:35:15: warning: implicit declaration of function 'read' is invalid in C99 [-Wimplicit-function-declaration]
               ret = read(state->fd, buf + *have, get);
                     ^
       external/zlib.hs/gzread.c:651:11: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration]
           ret = close(state->fd);
                 ^
       2 warnings generated.
       INFO: From Compiling gzwrite.c:
       external/zlib.hs/gzwrite.c:89:20: warning: implicit declaration of function 'write' is invalid in C99 [-Wimplicit-function-declaration]
                   writ = write(state->fd, strm->next_in, put);
                          ^
       external/zlib.hs/gzwrite.c:110:24: warning: implicit declaration of function 'write' is invalid in C99 [-Wimplicit-function-declaration]
                       writ = write(state->fd, state->x.next, put);
                              ^
       external/zlib.hs/gzwrite.c:661:9: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration]
           if (close(state->fd) == -1)
               ^
       3 warnings generated.
       [57 / 85] HaskellCabalBinary @alex//:alex [for host]; 1s darwin-sandbox ... (3 actions, 2 running)
       [80 / 88] HaskellCabalBinary @alex//:alex [for host]; 5s darwin-sandbox
       [80 / 88] HaskellCabalBinary @alex//:alex [for host]; 15s darwin-sandbox
       [80 / 88] HaskellCabalBinary @alex//:alex [for host]; 38s darwin-sandbox
       [80 / 88] HaskellCabalBinary @alex//:alex [for host]; 46s darwin-sandbox
       [81 / 88] HaskellCabalBinary @stackage//:_happy_exe_happy [for host]; 0s darwin-sandbox ... (2 actions running)
       [81 / 88] HaskellCabalBinary @stackage//:_happy_exe_happy [for host]; 10s darwin-sandbox ... (2 actions running)
       [81 / 88] HaskellCabalBinary @stackage//:_happy_exe_happy [for host]; 22s darwin-sandbox ... (2 actions running)
       [83 / 88] HaskellCabalBinary @stackage//:_happy_exe_happy [for host]; 36s darwin-sandbox
       [83 / 88] HaskellCabalBinary @stackage//:_happy_exe_happy [for host]; 52s darwin-sandbox
       [84 / 88] HaskellCabalLibrary @stackage//:language-c [for host]; 16s darwin-sandbox
       [84 / 88] HaskellCabalLibrary @stackage//:language-c [for host]; 36s darwin-sandbox
       [84 / 88] HaskellCabalLibrary @stackage//:language-c [for host]; 60s darwin-sandbox
       [84 / 88] HaskellCabalLibrary @stackage//:language-c [for host]; 88s darwin-sandbox
       [84 / 88] HaskellCabalLibrary @stackage//:language-c [for host]; 119s darwin-sandbox
       [84 / 88] HaskellCabalLibrary @stackage//:language-c [for host]; 155s darwin-sandbox
       [86 / 88] HaskellCabalBinary @stackage//:_c2hs_exe_c2hs [for host]; 39s darwin-sandbox
       Target //:hs-lib@repl up-to-date:
         bazel-bin/hs-lib@repl@repl
       INFO: Elapsed time: 343.412s, Critical Path: 330.01s
       INFO: 79 processes: 48 internal, 31 darwin-sandbox.
       INFO: Build completed successfully, 79 total actions
       INFO: Running command line: bazel-bin/hs-lib@repl@repl -ignore-dot-ghci -e 'show (foo 10) ++ bar ++ baz ++ gen'
       INFO: Build completed successfully, 79 total actions
       <command line>: User-specified static library could not be loaded (/private/var/tmp/_bazel_runner/d1e3bdaa0c37ce8d00ecff62b05849c3/5557dccbd1535c60f85238399ad86a92/execroot/__main__/bazel-out/darwin-fastbuild/bin/external/zlib.hs/libz.a)
       Loading static libraries is not supported in this configuration.
       Try using a dynamic library instead.
       --------------------
  To rerun use: --match "/bazel run repl/"
Randomized with seed 636749554
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant