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

Build and test using GitHub actions workflow #2505

Closed
wants to merge 2 commits into from

Conversation

dave-r12
Copy link

Also update to oniguruma 6.7.1 to fix the build on MacOS.

Currently the Windows build is failing on a single test. The
reason for the failure appears to be related to the log2 function
incorrectly calculating results. It's not yet clear how to proceed
with the faulty log2 implementation.
The primary reason for the update is to fix the build on MacOS.
During the build it was receiving this error:

posix.c:94:3: error: implicit declaration of function 'onig_end'
is invalid in C99 [-Werror,-Wimplicit-function-declaration]
onig_end();

This was later fixed in the oniguruma repo on this commit:
kkos/oniguruma@5a24a49
@wader
Copy link
Member

wader commented Nov 26, 2022

Hey, about CI i know @nicowilliams has been looking into adding at https://github.com/jqlang/jq

Oniguruma update looks resonable to me. Would it make sense to update to latest? 6.9.8?

The pow/log2 issue for cygwin i don't know much about. Could it be some float as string representation issue? how does it handle jq -n 2251799813685248 and jq -n '2251799813685248|log2', maybe can give some clue.

@mrienstra
Copy link

Re: log2: You've probably gotten this far already, but here are a few links just in case it's helpful. Looks like others have encountered this issue before:

  1. https://www.gnu.org/software/gnulib/manual/html_node/log2.html
  2. https://cygwin.cygwin.narkive.com/NGBO7wVB/log2-function-from-c-standard-library-is-inaccurate
  3. https://hg.octave.org/octave/log?rev=log2 (<-- not specific to this issue, but you might find some ideas on avoiding it here)

@itchyny
Copy link
Contributor

itchyny commented Jun 3, 2023

We have switched to GitHub Actions in #2596, so closing this PR. Thank you.

@itchyny itchyny closed this Jun 3, 2023
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 this pull request may close these issues.

4 participants