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

macOS failure on the master branch #194

Closed
yutannihilation opened this issue Nov 5, 2023 · 1 comment · Fixed by #195
Closed

macOS failure on the master branch #194

yutannihilation opened this issue Nov 5, 2023 · 1 comment · Fixed by #195

Comments

@yutannihilation
Copy link
Contributor

yutannihilation commented Nov 5, 2023

Since a while ago, the master fails with the following error on macOS. Considering

  • this happens on several macOS runners, not only on the one with R-devel
  • the generated bindings don't contain any suspicious changes.

I think this is due to some change on the macOS runner (e.g., the LLVM version)

  running 3 tests
  test src/lib.rs - (line 18) - compile ... ok
  test src/lib.rs - (line 44) ... ignored
  error[E0425]: cannot find value `logx` in this scope
   --> target/debug/build/libR-sys-fc3f88ec37a77774/out/bindings.rs:4064:11
    |
  3 | log (exp (logx) + exp (logy))
  test target/debug/build/libR-sys-fc3f88ec37a77774/out/bindings.rs - Rf_logspace_add (line 4063) ... FAILED
    |           ^^^^ not found in this scope
  
  
  failures:
  error[E0425]: cannot find value `logy` in this scope
  
   --> target/debug/build/libR-sys-fc3f88ec37a77774/out/bindings.rs:4064:24
  failures:
    |
      target/debug/build/libR-sys-fc3f88ec37a77774/out/bindings.rs - Rf_logspace_add (line 4063)
  3 | log (exp (logx) + exp (logy))
  
    |                        ^^^^ not found in this scope
  test result: FAILED. 1 passed; 1 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.14s
  
  
  error[E0425]: cannot find function `exp` in this scope
   --> target/debug/build/libR-sys-fc3f88ec37a77774/out/bindings.rs:4064:6
    |
  3 | log (exp (logx) + exp (logy))
    |      ^^^ not found in this scope
  
  error[E0425]: cannot find function `exp` in this scope
   --> target/debug/build/libR-sys-fc3f88ec37a77774/out/bindings.rs:4064:19
    |
  3 | log (exp (logx) + exp (logy))
    |                   ^^^ not found in this scope
  
  error[E0425]: cannot find function `log` in this scope
   --> target/debug/build/libR-sys-fc3f88ec37a77774/out/bindings.rs:4064:1
    |
  3 | log (exp (logx) + exp (logy))
    | ^^^ not found in this scope
  
  error: aborting due to 5 previous errors
  
  For more information about this error, try `rustc --explain E0425`.
  Couldn't compile the test.error: doctest failed, to rerun pass `--doc`
@yutannihilation
Copy link
Contributor Author

Ah, maybe this line of log (... is treated as a doc test...? That's super annoying...

#[doc = "Compute the log of a sum or difference from logs of terms, i.e.,\n\n log (exp (logx) + exp (logy))\n or log (exp (logx) - exp (logy))\n\n without causing overflows or throwing away too much accuracy:"]

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.

1 participant