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

Compile error in latest firmware 0.79.1 #4

Open
yasbean opened this issue Mar 13, 2023 · 0 comments
Open

Compile error in latest firmware 0.79.1 #4

yasbean opened this issue Mar 13, 2023 · 0 comments

Comments

@yasbean
Copy link

yasbean commented Mar 13, 2023

When compiling in the latest firmware, I receive the following errors:

LoadAppManifest, line 32, in file "/home/cds/source/flipperzero-firmware/scripts/fbt_tools/fbt_apps.py"
	ICONS	build/f7-firmware-D/.extapps/metronome/metronome_icons.c
	CC	applications_user/Metronome/metronome.c
applications_user/Metronome/metronome.c: In function 'render_callback':
applications_user/Metronome/metronome.c:64:43: error: implicit declaration of function 'acquire_mutex' [-Werror=implicit-function-declaration]
   64 |   const MetronomeState* metronome_state = acquire_mutex((ValueMutex*)ctx, 25);
      |                                           ^~~~~~~~~~~~~
applications_user/Metronome/metronome.c:64:58: error: 'ValueMutex' undeclared (first use in this function)
   64 |   const MetronomeState* metronome_state = acquire_mutex((ValueMutex*)ctx, 25);
      |                                                          ^~~~~~~~~~
applications_user/Metronome/metronome.c:64:58: note: each undeclared identifier is reported only once for each function it appears in
applications_user/Metronome/metronome.c:64:69: error: expected expression before ')' token
   64 |  MetronomeState* metronome_state = acquire_mutex((ValueMutex*)ctx, 25);
      |                                                              ^

applications_user/Metronome/metronome.c:116:3: error: implicit declaration of function 'release_mutex' [-Werror=implicit-function-declaration]
  116 |   release_mutex((ValueMutex*)ctx, metronome_state);
      |   ^~~~~~~~~~~~~
applications_user/Metronome/metronome.c:116:29: error: expected expression before ')' token
  116 |   release_mutex((ValueMutex*)ctx, metronome_state);
      |                             ^
applications_user/Metronome/metronome.c:63:57: error: unused parameter 'ctx' [-Werror=unused-parameter]
   63 | static void render_callback(Canvas* const canvas, void* ctx) {
      |                                                   ~~~~~~^~~
applications_user/Metronome/metronome.c: In function 'timer_callback':
applications_user/Metronome/metronome.c:128:52: error: 'ValueMutex' undeclared (first use in this function)
  128 |   MetronomeState* metronome_state = acquire_mutex((ValueMutex*)ctx, 25);
      |                                                    ^~~~~~~~~~
applications_user/Metronome/metronome.c:128:63: error: expected expression before ')' token
  128 |  MetronomeState* metronome_state = acquire_mutex((ValueMutex*)ctx, 25);
      |                                                              ^

applications_user/Metronome/metronome.c:189:29: error: expected expression before ')' token
  189 |   release_mutex((ValueMutex*)ctx, metronome_state);
      |                             ^
applications_user/Metronome/metronome.c:126:34: error: unused parameter 'ctx' [-Werror=unused-parameter]
  126 | static void timer_callback(void* ctx) {
      |                            ~~~~~~^~~
applications_user/Metronome/metronome.c: In function 'metronome_app':
applications_user/Metronome/metronome.c:265:3: error: unknown type name 'ValueMutex'
  265 |   ValueMutex state_mutex;
      |   ^~~~~~~~~~
applications_user/Metronome/metronome.c:266:7: error: implicit declaration of function 'init_mutex' [-Werror=implicit-function-declaration]
  266 |   if(!init_mutex(&state_mutex, metronome_state, sizeof(MetronomeState))) {
      |       ^~~~~~~~~~
applications_user/Metronome/metronome.c:287:56: error: implicit declaration of function 'acquire_mutex_block' [-Werror=implicit-function-declaration]
  287 |     MetronomeState* metronome_state = (MetronomeState*)acquire_mutex_block(&state_mutex);
      |                                                        ^~~~~~~~~~~~~~~~~~~
applications_user/Metronome/metronome.c:379:3: error: implicit declaration of function 'delete_mutex' [-Werror=implicit-function-declaration]
  379 |   delete_mutex(&state_mutex);
      |   ^~~~~~~~~~~~
cc1: all warnings being treated as errors
	SDKCHK	firmware/targets/f7/api_symbols.csv
scons: *** [build/f7-firmware-D/.extapps/metronome/metronome.o] Error 1
API version 18.1 is up to date

********** FBT ERRORS **********
build/f7-firmware-D/.extapps/metronome/metronome.o: Error 1

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

No branches or pull requests

1 participant