Code:
../nptl/sysdeps/unix/sysv/linux/sem_post.c:43:3: warning: implicit declaration of function ‘atomic_compare_and_exchange_bool_rel’ [-Wimplicit-function-declaration]
../nptl/sysdeps/unix/sysv/linux/sem_post.c:45:3: warning: implicit declaration of function ‘atomic_full_barrier’ [-Wimplicit-function-declaration]
../nptl/sysdeps/unix/sysv/linux/sem_post.c:48:17: error: expected expression before ‘do’
../nptl/sysdeps/unix/sysv/linux/sem_post.c: In function ‘__old_sem_post’:
../nptl/sysdeps/unix/sysv/linux/sem_post.c:68:3: warning: implicit declaration of function ‘atomic_increment_val’ [-Wimplicit-function-declaration]
In that lot, the 'implicit declaration of function' stuff means this: All functions should be declared, and their type set before they are referenced in code. These are not defined, but just appear in the code.
That implies you are missing at least one file to include with the above. You have your system set up in /home/toto. Try something like
Code:
cd /home/toto
grep -re 'atomic_compare_and_exchange_bool_rel' * |less
you are looking for that in a header (.h) file, as usually found in /usr/include & subdirs. In this setup I don't know where they will be. Make sure that file is referenced, or symlink it in one of those subdirs. If the grep only shows that in .c files and it doesn't appear in an include, you need to install more stuff.
The "error expected expression before ‘do’ " looks more like a syntax error, but I wouldn't worry about that until you sort the others, as it will probably go away of it's own accord.
BTW, I am an amateur with C :-P.
I looked at the guide. I note it's for developers, not the public. Good luck with it.