Skip to content

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