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

Fix build for recent GCC #12

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

EverythingElseWasAlreadyTaken
Copy link

@EverythingElseWasAlreadyTaken EverythingElseWasAlreadyTaken commented Dec 19, 2024

Hey everyone,

I got these two build errors while building CVC:

cvmacros.h:400:5: error: implicit declaration of function ‘__add_dmpv_chglst_el_sel’;
did you mean ‘__add_dp_chglst_el’? [-Wimplicit-function-declaration] __add_dmpv_chglst_el_sel(np, i1);
v_asmlnk.c:10590:8: error: implicit declaration of function ‘clone’;
did you mean ‘close’? [-Wimplicit-function-declaration] pid = clone(popen_child_process_func, stack_aligned, ...

I'm on Arch Linux, Kernel 6.11.7 and have GCC version 14.2.1.

Fixes the following error, I got while compilation:

cvmacros.h:400:5: error: implicit declaration of function ‘__add_dmpv_chglst_el_sel’;
did you mean ‘__add_dp_chglst_el’? [-Wimplicit-function-declaration] __add_dmpv_chglst_el_sel(np, i1);

Signed-off-by: Jonas K. <[email protected]>
_GNU_SOURCE needs to be defined before unistd.h and sched.h are inclued.
Otherwise gcc can't find clone() and  will throw the following error:

v_asmlnk.c:10590:8: error: implicit declaration of function ‘clone’;
did you mean ‘close’? [-Wimplicit-function-declaration] pid = clone(popen_child_process_func, stack_aligned, ...

Signed-off-by: Jonas K. <[email protected]>
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.

1 participant