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

bug: 0.21.0: missing symbol static_assert #256

Closed
1 of 2 tasks
0-wiz-0 opened this issue Apr 10, 2024 · 2 comments
Closed
1 of 2 tasks

bug: 0.21.0: missing symbol static_assert #256

0-wiz-0 opened this issue Apr 10, 2024 · 2 comments
Labels

Comments

@0-wiz-0
Copy link

0-wiz-0 commented Apr 10, 2024

Did you check existing issues?

  • I have read all the tree-sitter docs if it relates to using the parser
  • I have searched the existing issues of tree-sitter-cpp

Tree-Sitter CLI Version, if relevant (output of tree-sitter --version)

n/a

Describe the bug

When building tree-sitter-cpp 0.21.0 from pkgsrc on NetBSD/amd64 in the same as building 0.20.5, I have a problem loading the shared object:

/usr/pkg/lib/libtree-sitter-cpp.so: Undefined PLT symbol "static_assert" (symnum = 15)

And indeed, nm confirms that:

00000000004a0ce0 d language.0
                 U memcpy
                 U static_assert

I tried building 0.20.5 again in the same exact way, and here 'static_assert' doesn't appear in the so file at all.

I don't know how to fix this, any ideas?

Steps To Reproduce/Bad Parse Tree

n/a

Expected Behavior/Parse Tree

n/a

Repro

n/a
@0-wiz-0 0-wiz-0 added the bug label Apr 10, 2024
netbsd-srcmastr pushed a commit to NetBSD/pkgsrc that referenced this issue Apr 10, 2024
@ObserverOfTime
Copy link
Member

You need to set -std=c11. The Makefile does that for you.

@amaanq amaanq closed this as completed Apr 10, 2024
@0-wiz-0
Copy link
Author

0-wiz-0 commented Apr 10, 2024

Thank you! Using c11 for building fixed the problem for me.

HerringtonDarkholme added a commit to ast-grep/ast-grep that referenced this issue May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants