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

Getting error while installing Hercules #380

Open
praburaj1985 opened this issue Jul 7, 2021 · 1 comment
Open

Getting error while installing Hercules #380

praburaj1985 opened this issue Jul 7, 2021 · 1 comment

Comments

@praburaj1985
Copy link

Hi,
I got the below error while am make a file on Hercules.thanks in advance.

Error
go build -tags "" -ldflags "-X gopkg.in/src-d/hercules.v10.BinaryGitHash=f066cf008318b80fcc219886b2430f7a186e4e94" gopkg.in/src-d/hercules.v10/cmd/hercules
# github.com/smacker/go-tree-sitter
In file included from get_changed_ranges.c:3:0:
./language.h: In function ‘ts_language_lookup’:
./language.h:67:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
     for (unsigned i = 0; i      ^
./language.h:67:5: note: use option -std=c99 or -std=gnu99 to compile your code
./language.h:70:7: error: ‘for’ loop initial declarations are only allowed in C99 mode
       for (unsigned i = 0; i        ^
get_changed_ranges.c: In function ‘ts_range_array_intersects’:
get_changed_ranges.c:28:3: error: ‘for’ loop initial declarations are only allowed in C99 mode
   for (unsigned i = start_index; i size; i++) {
   ^
get_changed_ranges.c: In function ‘iterator_descend’:
get_changed_ranges.c:205:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
     for (uint32_t i = 0, n = ts_subtree_child_count(*entry.subtree); i      ^
make: *** [hercules] Error 2

@DaniruKun
Copy link

Just a guess, but most likely you will need an older Go version.

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

No branches or pull requests

2 participants