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

Missing cstddef header in cilksan/disjointset.h #47

Open
budvinchathura opened this issue Oct 31, 2024 · 2 comments · May be fixed by #48
Open

Missing cstddef header in cilksan/disjointset.h #47

budvinchathura opened this issue Oct 31, 2024 · 2 comments · May be fixed by #48

Comments

@budvinchathura
Copy link

cilksan/disjointset.h is missing header #include <cstddef>.

This causes the compilation to fail at

DJSetIdx -= offsetof(DSSlab_t, DJSets);

where offsetof requires <cstddef>

Tested on gcc/g++ 13.2.0

@neboat
Copy link
Contributor

neboat commented Nov 1, 2024

Thanks for raising this issue.

I'm not sure why I'm not seeing any problems when I compile OpenCilk, even with gcc/g++ 13.2. But the issue makes sense and is straightforward to fix.

@budvinchathura
Copy link
Author

Yes agree, this only happened when building on a slightly older stack on a cluster, CentOS Linux release 7.9.2009 (Core) , ldd (GNU libc) 2.17.

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.

2 participants