Advertisement
Technologov

lfk0.2 compile failed on MacBook M1

Feb 21st, 2021
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. /Users/alexeye/Downloads/lfk/lfk-core/src/kernel_runner.c:97:1: warning:
  2. non-void function does not return a value [-Wreturn-type]
  3. }
  4. ^
  5. 1 warning generated.
  6. [ 89%] Building C object lfk-core/CMakeFiles/lfk-core-lib.dir/src/benchmark.c.o
  7. /Users/alexeye/Downloads/lfk/lfk-core/src/benchmark.c:272:5: error: implicit
  8. declaration of function 'pthread_setschedprio' is invalid in C99
  9. [-Werror,-Wimplicit-function-declaration]
  10. pthread_setschedprio(main_thread, max_prio_for_policy);
  11. ^
  12. /Users/alexeye/Downloads/lfk/lfk-core/src/benchmark.c:272:5: note: did you mean
  13. 'pthread_setschedparam'?
  14. /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/usr/include/pthread.h:488:5: note:
  15. 'pthread_setschedparam' declared here
  16. int pthread_setschedparam(pthread_t, int, const struct sched_param *);
  17. ^
  18. 1 error generated.
  19. make[2]: *** [lfk-core/CMakeFiles/lfk-core-lib.dir/src/benchmark.c.o] Error 1
  20. make[1]: *** [lfk-core/CMakeFiles/lfk-core-lib.dir/all] Error 2
  21. make: *** [all] Error 2
  22. alexeye@Alexeys-MacBook-Air lfk %
  23.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement