pebble-dev / RebbleOS

open source operating system for low-power smartwatches
Other
355 stars 38 forks source link

chalk build fails with CCMRAM overflow #79

Closed Bystroushaak closed 4 years ago

Bystroushaak commented 4 years ago

I've tried to follow the guide for Debian and I am getting following error:

...
(.env) a@a-VirtualBox:~/RebbleOS$ make
VERSION build/version.c
[snowy] CC build/version.c
[snowy] LD build/snowy/tintin_fw.elf
4796 bytes of CCRAM available.
30244 bytes of RAM available for heap.
595644 bytes of flash unused.
OBJCOPY build/snowy/tintin_fw.bin
[snowy] PBZ build/snowy/snowy.pbz
[tintin] CC build/version.c
[tintin] LD build/tintin/tintin_fw.elf
132 bytes of RAM available for heap.
107544 bytes of flash unused.
OBJCOPY build/tintin/tintin_fw.bin
[tintin] PBZ build/tintin/tintin.pbz
[chalk] CC build/version.c
[chalk] LD build/chalk/tintin_fw.elf
/usr/lib/gcc/arm-none-eabi/6.3.1/../../../arm-none-eabi/bin/ld: build/chalk/tintin_fw.elf section `.ccmram' will not fit in region `RAM2'
/usr/lib/gcc/arm-none-eabi/6.3.1/../../../arm-none-eabi/bin/ld: region `RAM2' overflowed by 3412 bytes
collect2: error: ld returned 1 exit status
Makefile:156: recipe for target 'build/chalk/tintin_fw.elf' failed
make: *** [build/chalk/tintin_fw.elf] Error 1

I've used Linux Mint 19.1 based on Ubuntu.

GCC version:

(.env) a@a-VirtualBox:~/RebbleOS$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 7.3.0-27ubuntu1~18.04' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 7.3.0 (Ubuntu 7.3.0-27ubuntu1~18.04) 

Full output:

(.env) a@a-VirtualBox:~/RebbleOS$ make
[snowy] PBPACK_EXTRACT
512000+0 records in
512000+0 records out
512000 bytes (512 kB, 500 KiB) copied, 1,59287 s, 321 kB/s
[snowy] MKPACK res/snowy.json
wrote build/snowy/res/snowy_res.pbpack (190408 bytes)
wrote build/snowy/res/snowy_res.h
wrote build/snowy/res/snowy_res.d
VERSION build/version.c
[snowy] CC build/version.c
[snowy] CC FreeRTOS/croutine.c
[snowy] CC FreeRTOS/event_groups.c
[snowy] CC FreeRTOS/list.c
[snowy] CC FreeRTOS/queue.c
[snowy] CC FreeRTOS/tasks.c
[snowy] CC FreeRTOS/timers.c
[snowy] CC FreeRTOS/portable/GCC/ARM_CM4F/port.c
[snowy] CC FreeRTOS/portable/MemMang/heap_4.c
[snowy] CC lib/minilib/minilib.c
[snowy] CC lib/minilib/sbrk.c
[snowy] CC lib/minilib/dprint.c
[snowy] CC lib/minilib/fmt.c
[snowy] CC lib/minilib/unfmt.c
[snowy] CC lib/minilib/rand.c
[snowy] CC lib/minilib/qalloc.c
[snowy] CC lib/musl/time/localtime.c
[snowy] CC lib/musl/time/localtime_r.c
[snowy] CC lib/musl/time/mktime.c
[snowy] CC lib/musl/time/__secs_to_tm.c
[snowy] CC lib/musl/time/__tm_to_secs.c
[snowy] CC lib/musl/time/__year_to_secs.c
[snowy] CC lib/musl/time/__month_to_secs.c
[snowy] CC lib/neographics/src/common.c
[snowy] CC lib/neographics/src/context.c
lib/neographics/src/context.c: In function 'n_graphics_capture_frame_buffer':
lib/neographics/src/context.c:60:12: warning: implicit declaration of function 'graphics_capture_frame_buffer' [-Wimplicit-function-declaration]
     return graphics_capture_frame_buffer(ctx);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lib/neographics/src/context.c:60:12: warning: return makes pointer from integer without a cast [-Wint-conversion]
     return graphics_capture_frame_buffer(ctx);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lib/neographics/src/context.c: In function 'n_graphics_capture_frame_buffer_format':
lib/neographics/src/context.c:68:12: warning: implicit declaration of function 'graphics_capture_frame_buffer_format' [-Wimplicit-function-declaration]
     return graphics_capture_frame_buffer_format(ctx, format);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lib/neographics/src/context.c:68:12: warning: return makes pointer from integer without a cast [-Wint-conversion]
     return graphics_capture_frame_buffer_format(ctx, format);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lib/neographics/src/context.c: In function 'n_graphics_release_frame_buffer':
lib/neographics/src/context.c:76:12: warning: implicit declaration of function 'graphics_release_frame_buffer' [-Wimplicit-function-declaration]
     return graphics_release_frame_buffer(ctx, bitmap);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[snowy] CC lib/neographics/src/draw_command/draw_command.c
[snowy] CC lib/neographics/src/fonts/fonts.c
[snowy] CC lib/neographics/src/gbitmap/gbitmap.c
[snowy] CC lib/neographics/src/gbitmap/blit_bw.c
[snowy] CC lib/neographics/src/gbitmap/blit_color.c
[snowy] CC lib/neographics/src/path/path.c
[snowy] CC lib/neographics/src/primitives/circle.c
[snowy] CC lib/neographics/src/primitives/line.c
lib/neographics/src/primitives/line.c: In function 'prv_fast_int_sqrt':
lib/neographics/src/primitives/line.c:87:25: warning: comparison of constant '1' with boolean expression is always false [-Wbool-compare]
         if (!abs(a - b) > 1)
                         ^
lib/neographics/src/primitives/line.c:87:25: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]
lib/neographics/src/primitives/line.c:91:25: warning: comparison of constant '1' with boolean expression is always false [-Wbool-compare]
         if (!abs(a - b) > 1)
                         ^
lib/neographics/src/primitives/line.c:91:25: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]
[snowy] CC lib/neographics/src/primitives/rect.c
[snowy] CC lib/neographics/src/text/text.c
[snowy] CC lib/neographics/src/types/rect.c
[snowy] CC lib/png/png.c
[snowy] CC lib/png/upng.c
[snowy] CC lib/pbl_strftime/src/strftime.c
[snowy] CC rcore/ambient.c
[snowy] CC rcore/appmanager.c
[snowy] CC rcore/appmanager_app.c
[snowy] CC rcore/appmanager_app_api.c
[snowy] CC rcore/appmanager_app_runloop.c
[snowy] CC rcore/appmanager_app_timer.c
[snowy] CC rcore/backlight.c
[snowy] CC rcore/bluetooth.c
[snowy] CC rcore/buttons.c
[snowy] CC rcore/display.c
[snowy] CC rcore/debug.c
[snowy] CC rcore/gyro.c
[snowy] CC rcore/main.c
[snowy] CC rcore/notification_manager.c
[snowy] CC rcore/notification_message.c
[snowy] CC rcore/power.c
[snowy] CC rcore/rebbleos.c
[snowy] CC rcore/smartstrap.c
[snowy] CC rcore/rebble_time.c
[snowy] CC rcore/rebble_memory.c
[snowy] CC rcore/vibrate.c
[snowy] CC rcore/flash.c
[snowy] CC rcore/fs.c
[snowy] CC rcore/log.c
[snowy] CC rcore/resource.c
[snowy] CC rcore/watchdog.c
[snowy] CC rcore/overlay_manager.c
[snowy] CC rcore/rebble_util.c
[snowy] CC rcore/protocol/protocol_notification.c
[snowy] CC rcore/protocol/protocol_system.c
[snowy] CC rwatch/librebble.c
[snowy] CC rwatch/ngfxwrap.c
[snowy] CC rwatch/math_sin.c
[snowy] CC rwatch/ui/layer/layer.c
[snowy] CC rwatch/ui/layer/bitmap_layer.c
[snowy] CC rwatch/ui/layer/menu_layer.c
[snowy] CC rwatch/ui/layer/simple_menu_layer.c
[snowy] CC rwatch/ui/layer/scroll_layer.c
[snowy] CC rwatch/ui/layer/action_bar_layer.c
rwatch/ui/layer/action_bar_layer.c: In function 'action_bar_layer_destroy':
rwatch/ui/layer/action_bar_layer.c:32:19: warning: passing argument 1 of 'layer_destroy' from incompatible pointer type [-Wincompatible-pointer-types]
     layer_destroy(action_bar);
                   ^~~~~~~~~~
In file included from rwatch/input/click_config.h:9:0,
                 from rwatch/librebble.h:26,
                 from rwatch/ui/layer/action_bar_layer.c:8:
rwatch/ui/layer/layer.h:44:6: note: expected 'Layer * {aka struct Layer *}' but argument is of type 'ActionBarLayer * {aka struct ActionBarLayer *}'
 void layer_destroy(Layer *layer);
      ^~~~~~~~~~~~~
rwatch/ui/layer/action_bar_layer.c: In function 'action_bar_layer_set_click_config_provider':
rwatch/ui/layer/action_bar_layer.c:49:39: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
     action_bar->click_config_provider = click_config_provider;
                                       ^
rwatch/ui/layer/action_bar_layer.c: In function 'action_bar_layer_set_icon':
rwatch/ui/layer/action_bar_layer.c:54:34: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
     action_bar->icons[button_id] = icon;
                                  ^
[snowy] CC rwatch/ui/layer/text_layer.c
[snowy] CC rwatch/ui/layer/notification_layer.c
[snowy] CC rwatch/ui/window.c
[snowy] CC rwatch/ui/action_menu.c
[snowy] CC rwatch/graphics/gbitmap.c
[snowy] CC rwatch/graphics/graphics.c
[snowy] CC rwatch/graphics/font_loader.c
[snowy] CC rwatch/event/tick_timer_service.c
[snowy] CC rwatch/event/app_timer.c
[snowy] CC rwatch/event/battery_state_service.c
[snowy] CC rwatch/event/connection_service.c
[snowy] CC rwatch/ui/layer/status_bar_layer.c
[snowy] CC rwatch/ui/animation/animation.c
[snowy] CC rwatch/ui/animation/property_animation.c
[snowy] CC rwatch/ui/notifications/notification_window.c
[snowy] CC rwatch/ui/notifications/battery_overlay.c
[snowy] CC rwatch/ui/notifications/mini_message.c
[snowy] CC rwatch/ui/vibes.c
[snowy] CC Watchfaces/simple.c
[snowy] CC Watchfaces/nivz.c
[snowy] CC Apps/System/systemapp.c
[snowy] CC Apps/System/menu.c
[snowy] CC Apps/System/testapp.c
Apps/System/testapp.c: In function 'testapp_exec_window_load':
Apps/System/testapp.c:240:22: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
     _test_exec_timer = app_timer_register(10, (AppTimerCallback)_testapp_start_test_callback, NULL);
                      ^
Apps/System/testapp.c: In function '_testapp_start_test_callback':
Apps/System/testapp.c:357:22: warning: passing argument 1 of 'app_timer_cancel' makes integer from pointer without a cast [-Wint-conversion]
     app_timer_cancel(_test_exec_timer);
                      ^~~~~~~~~~~~~~~~
In file included from rwatch/librebble.h:51:0,
                 from rcore/buttons.h:12,
                 from rcore/main.h:14,
                 from rcore/rebbleos.h:23,
                 from Apps/System/testapp.c:9:
rwatch/event/app_timer.h:19:6: note: expected 'AppTimerHandle {aka short unsigned int}' but argument is of type 'AppTimer * {aka struct AppTimer *}'
 void app_timer_cancel(AppTimerHandle timer);
      ^~~~~~~~~~~~~~~~
[snowy] CC Apps/System/test.c
[snowy] CC Apps/System/notification.c
[snowy] CC Apps/System/tests/test_test.c
[snowy] CC Apps/System/tests/color_test.c
[snowy] CC Apps/System/tests/overlay_test.c
[snowy] CC Apps/System/tests/menu_simple_test.c
[snowy] CC Apps/System/tests/menu_multi_column_test.c
[snowy] CC Apps/System/tests/action_menu_test.c
[snowy] CC Apps/System/tests/vibes_test.c
[snowy] AS hw/chip/stm32f4xx/startup_stm32f4xx.s
[snowy] CC hw/chip/stm32f4xx/system_stm32f4xx.c
hw/chip/stm32f4xx/system_stm32f4xx.c: In function 'SetSysClock':
hw/chip/stm32f4xx/system_stm32f4xx.c:669:5: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
     while ((RCC->CFGR & (uint32_t)RCC_CFGR_SWS ) != RCC_CFGR_SWS_PLL);
     ^~~~~
hw/chip/stm32f4xx/system_stm32f4xx.c:670:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'while'
     {
     ^
[snowy] CC hw/chip/stm32f4xx/misc.c
[snowy] CC hw/chip/stm32f4xx/stm32f4xx_adc.c
[snowy] CC hw/chip/stm32f4xx/stm32f4xx_crc.c
[snowy] CC hw/chip/stm32f4xx/stm32f4xx_dcmi.c
[snowy] CC hw/chip/stm32f4xx/stm32f4xx_dma.c
[snowy] CC hw/chip/stm32f4xx/stm32f4xx_dsi.c
[snowy] CC hw/chip/stm32f4xx/stm32f4xx_exti.c
[snowy] CC hw/chip/stm32f4xx/stm32f4xx_flash.c
[snowy] CC hw/chip/stm32f4xx/stm32f4xx_flash_ramfunc.c
[snowy] CC hw/chip/stm32f4xx/stm32f4xx_fmc.c
[snowy] CC hw/chip/stm32f4xx/stm32f4xx_gpio.c
[snowy] CC hw/chip/stm32f4xx/stm32f4xx_i2c.c
[snowy] CC hw/chip/stm32f4xx/stm32f4xx_iwdg.c
[snowy] CC hw/chip/stm32f4xx/stm32f4xx_lptim.c
[snowy] CC hw/chip/stm32f4xx/stm32f4xx_ltdc.c
[snowy] CC hw/chip/stm32f4xx/stm32f4xx_pwr.c
[snowy] CC hw/chip/stm32f4xx/stm32f4xx_rcc.c
[snowy] CC hw/chip/stm32f4xx/stm32f4xx_rng.c
[snowy] CC hw/chip/stm32f4xx/stm32f4xx_rtc.c
[snowy] CC hw/chip/stm32f4xx/stm32f4xx_sai.c
[snowy] CC hw/chip/stm32f4xx/stm32f4xx_sdio.c
[snowy] CC hw/chip/stm32f4xx/stm32f4xx_spdifrx.c
[snowy] CC hw/chip/stm32f4xx/stm32f4xx_spi.c
[snowy] CC hw/chip/stm32f4xx/stm32f4xx_syscfg.c
[snowy] CC hw/chip/stm32f4xx/stm32f4xx_tim.c
[snowy] CC hw/chip/stm32f4xx/stm32f4xx_usart.c
[snowy] CC hw/chip/stm32f4xx/stm32f4xx_wwdg.c
[snowy] CC hw/drivers/stm32_usart/stm32_usart.c
[snowy] CC hw/drivers/stm32_dma/stm32_dma.c
[snowy] CC hw/drivers/stm32_spi/stm32_spi.c
[snowy] CC hw/drivers/stm32_i2c/stm32_i2c.c
[snowy] CC hw/drivers/stm32_buttons/stm32_buttons.c
[snowy] CC hw/drivers/stm32_power/stm32_power.c
[snowy] CC hw/drivers/stm32_rtc/stm32_rtc.c
[snowy] CC hw/drivers/stm32_backlight/stm32_backlight.c
[snowy] CC hw/platform/snowy_family/snowy_display.c
[snowy] CC hw/platform/snowy_family/snowy_power.c
hw/platform/snowy_family/snowy_power.c: In function 'hw_power_get_bat_mv':
hw/platform/snowy_family/snowy_power.c:224:9: warning: implicit declaration of function 'delay_us' [-Wimplicit-function-declaration]
         delay_us(10);
         ^~~~~~~~
hw/platform/snowy_family/snowy_power.c: In function 'max14690_stay_on':
hw/platform/snowy_family/snowy_power.c:281:20: warning: 'return' with a value, in function returning void
             return 0;
                    ^
hw/platform/snowy_family/snowy_power.c:274:6: note: declared here
 void max14690_stay_on(uint8_t pullup)
      ^~~~~~~~~~~~~~~~
[snowy] CC hw/platform/snowy_family/snowy_scanlines.c
[snowy] CC hw/platform/snowy_family/snowy_vibrate.c
[snowy] CC hw/platform/snowy_family/snowy_ambient.c
[snowy] CC hw/platform/snowy_family/snowy_ext_flash.c
[snowy] CC hw/platform/snowy_family/snowy_common.c
[snowy] CC lib/btstack/btstack/chipset/cc256x/btstack_chipset_cc256x.c
[snowy] CC lib/btstack/btstack/platform/freertos/btstack_run_loop_freertos.c
[snowy] CC lib/btstack/btstack/platform/freertos/btstack_uart_block_freertos.c
[snowy] CC lib/btstack/btstack/src/ad_parser.c
[snowy] CC lib/btstack/btstack/src/btstack_linked_list.c
[snowy] CC lib/btstack/btstack/src/btstack_memory.c
[snowy] CC lib/btstack/btstack/src/btstack_memory_pool.c
[snowy] CC lib/btstack/btstack/src/btstack_run_loop.c
[snowy] CC lib/btstack/btstack/src/btstack_slip.c
[snowy] CC lib/btstack/btstack/src/btstack_tlv.c
[snowy] CC lib/btstack/btstack/src/btstack_util.c
[snowy] CC lib/btstack/btstack/src/hci.c
[snowy] CC lib/btstack/btstack/src/hci_cmd.c
[snowy] CC lib/btstack/btstack/src/hci_dump.c
[snowy] CC lib/btstack/btstack/src/hci_transport_h4.c
[snowy] CC lib/btstack/btstack/src/l2cap.c
[snowy] CC lib/btstack/btstack/src/l2cap_signaling.c
[snowy] CC lib/btstack/btstack/src/ble/att_db.c
[snowy] CC lib/btstack/btstack/src/ble/att_dispatch.c
[snowy] CC lib/btstack/btstack/src/ble/att_server.c
In file included from lib/btstack/btstack/src/ble/att_server.c:59:0:
lib/btstack/btstack/src/ble/att_server.c: In function 'att_server_persistent_ccc_write':
lib/btstack/btstack/src/btstack_debug.h:79:70: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'uint32_t {aka long unsigned int}' [-Wformat=]
 define HCI_DUMP_LOG(log_level, format, ...) hci_dump_log(log_level, "%s.%u: " format, __BTSTACK_FILE__, __LINE__, ## __VA_ARGS__)
                                                                     ^
lib/btstack/btstack/src/btstack_debug.h:89:32: note: in expansion of macro 'HCI_DUMP_LOG'
 #define log_info(format, ...)  HCI_DUMP_LOG(LOG_LEVEL_INFO, format,  ## __VA_ARGS__)
                                ^~~~~~~~~~~~
lib/btstack/btstack/src/ble/att_server.c:600:5: note: in expansion of macro 'log_info'
     log_info("tag_for_empy %x, tag_for_lowest_seq_nr %x", tag_for_empty, tag_for_lowest_seq_nr);
     ^~~~~~~~
lib/btstack/btstack/src/btstack_debug.h:79:70: warning: format '%x' expects argument of type 'unsigned int', but argument 6 has type 'uint32_t {aka long unsigned int}' [-Wformat=]
 define HCI_DUMP_LOG(log_level, format, ...) hci_dump_log(log_level, "%s.%u: " format, __BTSTACK_FILE__, __LINE__, ## __VA_ARGS__)
                                                                     ^
lib/btstack/btstack/src/btstack_debug.h:89:32: note: in expansion of macro 'HCI_DUMP_LOG'
 #define log_info(format, ...)  HCI_DUMP_LOG(LOG_LEVEL_INFO, format,  ## __VA_ARGS__)
                                ^~~~~~~~~~~~
lib/btstack/btstack/src/ble/att_server.c:600:5: note: in expansion of macro 'log_info'
     log_info("tag_for_empy %x, tag_for_lowest_seq_nr %x", tag_for_empty, tag_for_lowest_seq_nr);
     ^~~~~~~~
[snowy] CC lib/btstack/btstack/src/ble/le_device_db_memory.c
[snowy] CC lib/btstack/btstack/src/ble/sm.c
[snowy] CC lib/btstack/btstack/src/classic/btstack_link_key_db_memory.c
[snowy] CC lib/btstack/btstack/src/classic/rfcomm.c
[snowy] CC lib/btstack/btstack/src/classic/sdp_server.c
[snowy] CC lib/btstack/btstack/src/classic/sdp_util.c
[snowy] CC lib/btstack/btstack/src/classic/spp_server.c
[snowy] CC hw/drivers/stm32_bluetooth_cc256x/stm32_cc256x.c
[snowy] CC hw/drivers/stm32_bluetooth_cc256x/btstack_rebble.c
[snowy] CC hw/platform/snowy/snowy.c
[snowy] CC hw/platform/snowy/snowy_bluetooth.c
[snowy] FPGA Resources/snowy_fpga.bin
[snowy] LD build/snowy/tintin_fw.elf
4796 bytes of CCRAM available.
30244 bytes of RAM available for heap.
595644 bytes of flash unused.
OBJCOPY build/snowy/tintin_fw.bin
[snowy] PBZ build/snowy/snowy.pbz
[tintin] PBPACK_EXTRACT
512000+0 records in
512000+0 records out
512000 bytes (512 kB, 500 KiB) copied, 1,08377 s, 472 kB/s
[tintin] MKPACK res/tintin.json
wrote build/tintin/res/tintin_res.pbpack (177381 bytes)
wrote build/tintin/res/tintin_res.h
wrote build/tintin/res/tintin_res.d
[tintin] CC build/version.c
[tintin] CC FreeRTOS/croutine.c
[tintin] CC FreeRTOS/event_groups.c
[tintin] CC FreeRTOS/list.c
[tintin] CC FreeRTOS/queue.c
[tintin] CC FreeRTOS/tasks.c
[tintin] CC FreeRTOS/timers.c
[tintin] CC FreeRTOS/portable/GCC/ARM_CM4F/port.c
[tintin] CC FreeRTOS/portable/MemMang/heap_4.c
[tintin] CC lib/minilib/minilib.c
[tintin] CC lib/minilib/sbrk.c
[tintin] CC lib/minilib/dprint.c
[tintin] CC lib/minilib/fmt.c
[tintin] CC lib/minilib/unfmt.c
[tintin] CC lib/minilib/rand.c
[tintin] CC lib/minilib/qalloc.c
[tintin] CC lib/musl/time/localtime.c
[tintin] CC lib/musl/time/localtime_r.c
[tintin] CC lib/musl/time/mktime.c
[tintin] CC lib/musl/time/__secs_to_tm.c
[tintin] CC lib/musl/time/__tm_to_secs.c
[tintin] CC lib/musl/time/__year_to_secs.c
[tintin] CC lib/musl/time/__month_to_secs.c
[tintin] CC lib/neographics/src/common.c
[tintin] CC lib/neographics/src/context.c
lib/neographics/src/context.c: In function 'n_graphics_capture_frame_buffer':
lib/neographics/src/context.c:60:12: warning: implicit declaration of function 'graphics_capture_frame_buffer' [-Wimplicit-function-declaration]
     return graphics_capture_frame_buffer(ctx);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lib/neographics/src/context.c:60:12: warning: return makes pointer from integer without a cast [-Wint-conversion]
     return graphics_capture_frame_buffer(ctx);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lib/neographics/src/context.c: In function 'n_graphics_capture_frame_buffer_format':
lib/neographics/src/context.c:68:12: warning: implicit declaration of function 'graphics_capture_frame_buffer_format' [-Wimplicit-function-declaration]
     return graphics_capture_frame_buffer_format(ctx, format);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lib/neographics/src/context.c:68:12: warning: return makes pointer from integer without a cast [-Wint-conversion]
     return graphics_capture_frame_buffer_format(ctx, format);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lib/neographics/src/context.c: In function 'n_graphics_release_frame_buffer':
lib/neographics/src/context.c:76:12: warning: implicit declaration of function 'graphics_release_frame_buffer' [-Wimplicit-function-declaration]
     return graphics_release_frame_buffer(ctx, bitmap);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[tintin] CC lib/neographics/src/draw_command/draw_command.c
[tintin] CC lib/neographics/src/fonts/fonts.c
[tintin] CC lib/neographics/src/gbitmap/gbitmap.c
[tintin] CC lib/neographics/src/gbitmap/blit_bw.c
[tintin] CC lib/neographics/src/gbitmap/blit_color.c
[tintin] CC lib/neographics/src/path/path.c
[tintin] CC lib/neographics/src/primitives/circle.c
[tintin] CC lib/neographics/src/primitives/line.c
lib/neographics/src/primitives/line.c: In function 'prv_fast_int_sqrt':
lib/neographics/src/primitives/line.c:87:25: warning: comparison of constant '1' with boolean expression is always false [-Wbool-compare]
         if (!abs(a - b) > 1)
                         ^
lib/neographics/src/primitives/line.c:87:25: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]
lib/neographics/src/primitives/line.c:91:25: warning: comparison of constant '1' with boolean expression is always false [-Wbool-compare]
         if (!abs(a - b) > 1)
                         ^
lib/neographics/src/primitives/line.c:91:25: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]
[tintin] CC lib/neographics/src/primitives/rect.c
[tintin] CC lib/neographics/src/text/text.c
[tintin] CC lib/neographics/src/types/rect.c
[tintin] CC lib/png/png.c
[tintin] CC lib/png/upng.c
[tintin] CC lib/pbl_strftime/src/strftime.c
[tintin] CC rcore/ambient.c
[tintin] CC rcore/appmanager.c
[tintin] CC rcore/appmanager_app.c
[tintin] CC rcore/appmanager_app_api.c
[tintin] CC rcore/appmanager_app_runloop.c
[tintin] CC rcore/appmanager_app_timer.c
[tintin] CC rcore/backlight.c
[tintin] CC rcore/bluetooth.c
rcore/bluetooth.c: In function 'bluetooth_send_serial_raw':
rcore/bluetooth.c:141:5: warning: implicit declaration of function 'bt_device_request_tx' [-Wimplicit-function-declaration]
     bt_device_request_tx(data, len);
     ^~~~~~~~~~~~~~~~~~~~
[tintin] CC rcore/buttons.c
[tintin] CC rcore/display.c
[tintin] CC rcore/debug.c
[tintin] CC rcore/gyro.c
[tintin] CC rcore/main.c
[tintin] CC rcore/notification_manager.c
[tintin] CC rcore/notification_message.c
[tintin] CC rcore/power.c
rcore/power.c: In function 'power_init':
rcore/power.c:20:5: warning: implicit declaration of function 'hw_power_init' [-Wimplicit-function-declaration]
     hw_power_init();
     ^~~~~~~~~~~~~
rcore/power.c: In function 'power_update_charge_mode':
rcore/power.c:45:20: warning: implicit declaration of function 'hw_power_get_chg_status' [-Wimplicit-function-declaration]
     uint8_t mode = hw_power_get_chg_status();
                    ^~~~~~~~~~~~~~~~~~~~~~~
rcore/power.c: In function 'power_update_battery':
rcore/power.c:60:20: warning: implicit declaration of function 'hw_power_get_bat_mv' [-Wimplicit-function-declaration]
     _bat_voltage = hw_power_get_bat_mv();
                    ^~~~~~~~~~~~~~~~~~~
[tintin] CC rcore/rebbleos.c
[tintin] CC rcore/smartstrap.c
[tintin] CC rcore/rebble_time.c
[tintin] CC rcore/rebble_memory.c
[tintin] CC rcore/vibrate.c
[tintin] CC rcore/flash.c
[tintin] CC rcore/fs.c
[tintin] CC rcore/log.c
[tintin] CC rcore/resource.c
[tintin] CC rcore/watchdog.c
[tintin] CC rcore/overlay_manager.c
[tintin] CC rcore/rebble_util.c
[tintin] CC rcore/protocol/protocol_notification.c
[tintin] CC rcore/protocol/protocol_system.c
[tintin] CC rwatch/librebble.c
[tintin] CC rwatch/ngfxwrap.c
[tintin] CC rwatch/math_sin.c
[tintin] CC rwatch/ui/layer/layer.c
[tintin] CC rwatch/ui/layer/bitmap_layer.c
[tintin] CC rwatch/ui/layer/menu_layer.c
[tintin] CC rwatch/ui/layer/simple_menu_layer.c
[tintin] CC rwatch/ui/layer/scroll_layer.c
[tintin] CC rwatch/ui/layer/action_bar_layer.c
rwatch/ui/layer/action_bar_layer.c: In function 'action_bar_layer_destroy':
rwatch/ui/layer/action_bar_layer.c:32:19: warning: passing argument 1 of 'layer_destroy' from incompatible pointer type [-Wincompatible-pointer-types]
     layer_destroy(action_bar);
                   ^~~~~~~~~~
In file included from rwatch/input/click_config.h:9:0,
                 from rwatch/librebble.h:26,
                 from rwatch/ui/layer/action_bar_layer.c:8:
rwatch/ui/layer/layer.h:44:6: note: expected 'Layer * {aka struct Layer *}' but argument is of type 'ActionBarLayer * {aka struct ActionBarLayer *}'
 void layer_destroy(Layer *layer);
      ^~~~~~~~~~~~~
rwatch/ui/layer/action_bar_layer.c: In function 'action_bar_layer_set_click_config_provider':
rwatch/ui/layer/action_bar_layer.c:49:39: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
     action_bar->click_config_provider = click_config_provider;
                                       ^
rwatch/ui/layer/action_bar_layer.c: In function 'action_bar_layer_set_icon':
rwatch/ui/layer/action_bar_layer.c:54:34: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
     action_bar->icons[button_id] = icon;
                                  ^
[tintin] CC rwatch/ui/layer/text_layer.c
[tintin] CC rwatch/ui/layer/notification_layer.c
[tintin] CC rwatch/ui/window.c
rwatch/ui/window.c: In function '_animation_util_push_fb':
rwatch/ui/window.c:579:4: warning: #warning XXX: PBL_BW no push_fb support [-Wcpp]
 #  warning XXX: PBL_BW no push_fb support
    ^~~~~~~
[tintin] CC rwatch/ui/action_menu.c
[tintin] CC rwatch/graphics/gbitmap.c
[tintin] CC rwatch/graphics/graphics.c
[tintin] CC rwatch/graphics/font_loader.c
[tintin] CC rwatch/event/tick_timer_service.c
[tintin] CC rwatch/event/app_timer.c
[tintin] CC rwatch/event/battery_state_service.c
[tintin] CC rwatch/event/connection_service.c
[tintin] CC rwatch/ui/layer/status_bar_layer.c
[tintin] CC rwatch/ui/animation/animation.c
[tintin] CC rwatch/ui/animation/property_animation.c
[tintin] CC rwatch/ui/notifications/notification_window.c
[tintin] CC rwatch/ui/notifications/battery_overlay.c
[tintin] CC rwatch/ui/notifications/mini_message.c
[tintin] CC rwatch/ui/vibes.c
[tintin] CC Watchfaces/simple.c
[tintin] CC Watchfaces/nivz.c
[tintin] CC Apps/System/systemapp.c
[tintin] CC Apps/System/menu.c
[tintin] CC Apps/System/testapp.c
Apps/System/testapp.c: In function 'testapp_exec_window_load':
Apps/System/testapp.c:240:22: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
     _test_exec_timer = app_timer_register(10, (AppTimerCallback)_testapp_start_test_callback, NULL);
                      ^
Apps/System/testapp.c: In function '_testapp_start_test_callback':
Apps/System/testapp.c:357:22: warning: passing argument 1 of 'app_timer_cancel' makes integer from pointer without a cast [-Wint-conversion]
     app_timer_cancel(_test_exec_timer);
                      ^~~~~~~~~~~~~~~~
In file included from rwatch/librebble.h:51:0,
                 from rcore/buttons.h:12,
                 from rcore/main.h:14,
                 from rcore/rebbleos.h:23,
                 from Apps/System/testapp.c:9:
rwatch/event/app_timer.h:19:6: note: expected 'AppTimerHandle {aka short unsigned int}' but argument is of type 'AppTimer * {aka struct AppTimer *}'
 void app_timer_cancel(AppTimerHandle timer);
      ^~~~~~~~~~~~~~~~
[tintin] CC Apps/System/test.c
[tintin] CC Apps/System/notification.c
[tintin] CC Apps/System/tests/test_test.c
[tintin] CC Apps/System/tests/color_test.c
[tintin] CC Apps/System/tests/overlay_test.c
[tintin] CC Apps/System/tests/menu_simple_test.c
[tintin] CC Apps/System/tests/menu_multi_column_test.c
[tintin] CC Apps/System/tests/action_menu_test.c
[tintin] CC Apps/System/tests/vibes_test.c
[tintin] AS hw/chip/stm32f2xx/startup_stm32f2xx.s
[tintin] CC hw/chip/stm32f2xx/system_stm32f2xx.c
[tintin] CC hw/chip/stm32f2xx/stm32f2x_i2c.c
[tintin] CC hw/chip/stm32f2xx/misc.c
[tintin] CC hw/chip/stm32f2xx/stm32f2xx_adc.c
[tintin] CC hw/chip/stm32f2xx/stm32f2xx_crc.c
[tintin] CC hw/chip/stm32f2xx/stm32f2xx_dac.c
[tintin] CC hw/chip/stm32f2xx/stm32f2xx_dbgmcu.c
[tintin] CC hw/chip/stm32f2xx/stm32f2xx_dcmi.c
[tintin] CC hw/chip/stm32f2xx/stm32f2xx_dma.c
[tintin] CC hw/chip/stm32f2xx/stm32f2xx_exti.c
[tintin] CC hw/chip/stm32f2xx/stm32f2xx_flash.c
[tintin] CC hw/chip/stm32f2xx/stm32f2xx_gpio.c
[tintin] CC hw/chip/stm32f2xx/stm32f2xx_i2c.c
[tintin] CC hw/chip/stm32f2xx/stm32f2xx_iwdg.c
[tintin] CC hw/chip/stm32f2xx/stm32f2xx_pwr.c
[tintin] CC hw/chip/stm32f2xx/stm32f2xx_rcc.c
[tintin] CC hw/chip/stm32f2xx/stm32f2xx_rng.c
[tintin] CC hw/chip/stm32f2xx/stm32f2xx_rtc.c
[tintin] CC hw/chip/stm32f2xx/stm32f2xx_sdio.c
[tintin] CC hw/chip/stm32f2xx/stm32f2xx_spi.c
[tintin] CC hw/chip/stm32f2xx/stm32f2xx_syscfg.c
[tintin] CC hw/chip/stm32f2xx/stm32f2xx_tim.c
[tintin] CC hw/chip/stm32f2xx/stm32f2xx_usart.c
[tintin] CC hw/chip/stm32f2xx/stm32f2xx_wwdg.c
[tintin] CC hw/drivers/stm32_buttons/stm32_buttons.c
[tintin] CC hw/drivers/stm32_power/stm32_power.c
[tintin] CC hw/drivers/stm32_rtc/stm32_rtc.c
[tintin] CC hw/drivers/stm32_backlight/stm32_backlight.c
[tintin] CC hw/drivers/stm32_usart/stm32_usart.c
[tintin] CC hw/drivers/stm32_dma/stm32_dma.c
[tintin] CC hw/drivers/stm32_spi/stm32_spi.c
[tintin] CC lib/btstack/btstack/chipset/cc256x/btstack_chipset_cc256x.c
[tintin] CC lib/btstack/btstack/platform/freertos/btstack_run_loop_freertos.c
[tintin] CC lib/btstack/btstack/platform/freertos/btstack_uart_block_freertos.c
[tintin] CC lib/btstack/btstack/src/ad_parser.c
[tintin] CC lib/btstack/btstack/src/btstack_linked_list.c
[tintin] CC lib/btstack/btstack/src/btstack_memory.c
[tintin] CC lib/btstack/btstack/src/btstack_memory_pool.c
[tintin] CC lib/btstack/btstack/src/btstack_run_loop.c
[tintin] CC lib/btstack/btstack/src/btstack_slip.c
[tintin] CC lib/btstack/btstack/src/btstack_tlv.c
[tintin] CC lib/btstack/btstack/src/btstack_util.c
[tintin] CC lib/btstack/btstack/src/hci.c
[tintin] CC lib/btstack/btstack/src/hci_cmd.c
[tintin] CC lib/btstack/btstack/src/hci_dump.c
[tintin] CC lib/btstack/btstack/src/hci_transport_h4.c
[tintin] CC lib/btstack/btstack/src/l2cap.c
[tintin] CC lib/btstack/btstack/src/l2cap_signaling.c
[tintin] CC lib/btstack/btstack/src/ble/att_db.c
[tintin] CC lib/btstack/btstack/src/ble/att_dispatch.c
[tintin] CC lib/btstack/btstack/src/ble/att_server.c
In file included from lib/btstack/btstack/src/ble/att_server.c:59:0:
lib/btstack/btstack/src/ble/att_server.c: In function 'att_server_persistent_ccc_write':
lib/btstack/btstack/src/btstack_debug.h:79:70: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'uint32_t {aka long unsigned int}' [-Wformat=]
 define HCI_DUMP_LOG(log_level, format, ...) hci_dump_log(log_level, "%s.%u: " format, __BTSTACK_FILE__, __LINE__, ## __VA_ARGS__)
                                                                     ^
lib/btstack/btstack/src/btstack_debug.h:89:32: note: in expansion of macro 'HCI_DUMP_LOG'
 #define log_info(format, ...)  HCI_DUMP_LOG(LOG_LEVEL_INFO, format,  ## __VA_ARGS__)
                                ^~~~~~~~~~~~
lib/btstack/btstack/src/ble/att_server.c:600:5: note: in expansion of macro 'log_info'
     log_info("tag_for_empy %x, tag_for_lowest_seq_nr %x", tag_for_empty, tag_for_lowest_seq_nr);
     ^~~~~~~~
lib/btstack/btstack/src/btstack_debug.h:79:70: warning: format '%x' expects argument of type 'unsigned int', but argument 6 has type 'uint32_t {aka long unsigned int}' [-Wformat=]
 define HCI_DUMP_LOG(log_level, format, ...) hci_dump_log(log_level, "%s.%u: " format, __BTSTACK_FILE__, __LINE__, ## __VA_ARGS__)
                                                                     ^
lib/btstack/btstack/src/btstack_debug.h:89:32: note: in expansion of macro 'HCI_DUMP_LOG'
 #define log_info(format, ...)  HCI_DUMP_LOG(LOG_LEVEL_INFO, format,  ## __VA_ARGS__)
                                ^~~~~~~~~~~~
lib/btstack/btstack/src/ble/att_server.c:600:5: note: in expansion of macro 'log_info'
     log_info("tag_for_empy %x, tag_for_lowest_seq_nr %x", tag_for_empty, tag_for_lowest_seq_nr);
     ^~~~~~~~
[tintin] CC lib/btstack/btstack/src/ble/le_device_db_memory.c
[tintin] CC lib/btstack/btstack/src/ble/sm.c
[tintin] CC lib/btstack/btstack/src/classic/btstack_link_key_db_memory.c
[tintin] CC lib/btstack/btstack/src/classic/rfcomm.c
[tintin] CC lib/btstack/btstack/src/classic/sdp_server.c
[tintin] CC lib/btstack/btstack/src/classic/sdp_util.c
[tintin] CC lib/btstack/btstack/src/classic/spp_server.c
[tintin] CC hw/drivers/stm32_bluetooth_cc256x/stm32_cc256x.c
[tintin] CC hw/drivers/stm32_bluetooth_cc256x/btstack_rebble.c
[tintin] CC hw/platform/tintin/tintin.c
hw/platform/tintin/tintin.c: In function 'hw_power_get_bat_mv':
hw/platform/tintin/tintin.c:206:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
hw/platform/tintin/tintin.c: In function 'hw_power_get_chg_status':
hw/platform/tintin/tintin.c:210:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
[tintin] CC hw/platform/tintin/tintin_display.c
[tintin] CC hw/platform/tintin/tintin_bluetooth.c
[tintin] CC hw/platform/tintin/tintin_flash.c
[tintin] AS hw/platform/tintin/tintin_asm.s
[tintin] LD build/tintin/tintin_fw.elf
132 bytes of RAM available for heap.
107544 bytes of flash unused.
OBJCOPY build/tintin/tintin_fw.bin
[tintin] PBZ build/tintin/tintin.pbz
[chalk] PBPACK_EXTRACT
512000+0 records in
512000+0 records out
512000 bytes (512 kB, 500 KiB) copied, 1,00272 s, 511 kB/s
[chalk] MKPACK res/chalk.json
wrote build/chalk/res/chalk_res.pbpack (188071 bytes)
wrote build/chalk/res/chalk_res.h
wrote build/chalk/res/chalk_res.d
[chalk] CC build/version.c
[chalk] CC FreeRTOS/croutine.c
[chalk] CC FreeRTOS/event_groups.c
[chalk] CC FreeRTOS/list.c
[chalk] CC FreeRTOS/queue.c
[chalk] CC FreeRTOS/tasks.c
[chalk] CC FreeRTOS/timers.c
[chalk] CC FreeRTOS/portable/GCC/ARM_CM4F/port.c
[chalk] CC FreeRTOS/portable/MemMang/heap_4.c
[chalk] CC lib/minilib/minilib.c
[chalk] CC lib/minilib/sbrk.c
[chalk] CC lib/minilib/dprint.c
[chalk] CC lib/minilib/fmt.c
[chalk] CC lib/minilib/unfmt.c
[chalk] CC lib/minilib/rand.c
[chalk] CC lib/minilib/qalloc.c
[chalk] CC lib/musl/time/localtime.c
[chalk] CC lib/musl/time/localtime_r.c
[chalk] CC lib/musl/time/mktime.c
[chalk] CC lib/musl/time/__secs_to_tm.c
[chalk] CC lib/musl/time/__tm_to_secs.c
[chalk] CC lib/musl/time/__year_to_secs.c
[chalk] CC lib/musl/time/__month_to_secs.c
[chalk] CC lib/neographics/src/common.c
[chalk] CC lib/neographics/src/context.c
lib/neographics/src/context.c: In function 'n_graphics_capture_frame_buffer':
lib/neographics/src/context.c:60:12: warning: implicit declaration of function 'graphics_capture_frame_buffer' [-Wimplicit-function-declaration]
     return graphics_capture_frame_buffer(ctx);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lib/neographics/src/context.c:60:12: warning: return makes pointer from integer without a cast [-Wint-conversion]
     return graphics_capture_frame_buffer(ctx);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lib/neographics/src/context.c: In function 'n_graphics_capture_frame_buffer_format':
lib/neographics/src/context.c:68:12: warning: implicit declaration of function 'graphics_capture_frame_buffer_format' [-Wimplicit-function-declaration]
     return graphics_capture_frame_buffer_format(ctx, format);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lib/neographics/src/context.c:68:12: warning: return makes pointer from integer without a cast [-Wint-conversion]
     return graphics_capture_frame_buffer_format(ctx, format);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lib/neographics/src/context.c: In function 'n_graphics_release_frame_buffer':
lib/neographics/src/context.c:76:12: warning: implicit declaration of function 'graphics_release_frame_buffer' [-Wimplicit-function-declaration]
     return graphics_release_frame_buffer(ctx, bitmap);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[chalk] CC lib/neographics/src/draw_command/draw_command.c
[chalk] CC lib/neographics/src/fonts/fonts.c
[chalk] CC lib/neographics/src/gbitmap/gbitmap.c
[chalk] CC lib/neographics/src/gbitmap/blit_bw.c
[chalk] CC lib/neographics/src/gbitmap/blit_color.c
[chalk] CC lib/neographics/src/path/path.c
[chalk] CC lib/neographics/src/primitives/circle.c
[chalk] CC lib/neographics/src/primitives/line.c
lib/neographics/src/primitives/line.c: In function 'prv_fast_int_sqrt':
lib/neographics/src/primitives/line.c:87:25: warning: comparison of constant '1' with boolean expression is always false [-Wbool-compare]
         if (!abs(a - b) > 1)
                         ^
lib/neographics/src/primitives/line.c:87:25: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]
lib/neographics/src/primitives/line.c:91:25: warning: comparison of constant '1' with boolean expression is always false [-Wbool-compare]
         if (!abs(a - b) > 1)
                         ^
lib/neographics/src/primitives/line.c:91:25: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]
[chalk] CC lib/neographics/src/primitives/rect.c
[chalk] CC lib/neographics/src/text/text.c
[chalk] CC lib/neographics/src/types/rect.c
[chalk] CC lib/png/png.c
[chalk] CC lib/png/upng.c
[chalk] CC lib/pbl_strftime/src/strftime.c
[chalk] CC rcore/ambient.c
[chalk] CC rcore/appmanager.c
[chalk] CC rcore/appmanager_app.c
[chalk] CC rcore/appmanager_app_api.c
[chalk] CC rcore/appmanager_app_runloop.c
[chalk] CC rcore/appmanager_app_timer.c
[chalk] CC rcore/backlight.c
[chalk] CC rcore/bluetooth.c
rcore/bluetooth.c: In function 'bluetooth_send_serial_raw':
rcore/bluetooth.c:141:5: warning: implicit declaration of function 'bt_device_request_tx' [-Wimplicit-function-declaration]
     bt_device_request_tx(data, len);
     ^~~~~~~~~~~~~~~~~~~~
[chalk] CC rcore/buttons.c
[chalk] CC rcore/display.c
[chalk] CC rcore/debug.c
[chalk] CC rcore/gyro.c
[chalk] CC rcore/main.c
[chalk] CC rcore/notification_manager.c
[chalk] CC rcore/notification_message.c
[chalk] CC rcore/power.c
[chalk] CC rcore/rebbleos.c
[chalk] CC rcore/smartstrap.c
[chalk] CC rcore/rebble_time.c
[chalk] CC rcore/rebble_memory.c
[chalk] CC rcore/vibrate.c
[chalk] CC rcore/flash.c
[chalk] CC rcore/fs.c
[chalk] CC rcore/log.c
[chalk] CC rcore/resource.c
[chalk] CC rcore/watchdog.c
[chalk] CC rcore/overlay_manager.c
[chalk] CC rcore/rebble_util.c
[chalk] CC rcore/protocol/protocol_notification.c
[chalk] CC rcore/protocol/protocol_system.c
[chalk] CC rwatch/librebble.c
[chalk] CC rwatch/ngfxwrap.c
[chalk] CC rwatch/math_sin.c
[chalk] CC rwatch/ui/layer/layer.c
[chalk] CC rwatch/ui/layer/bitmap_layer.c
[chalk] CC rwatch/ui/layer/menu_layer.c
[chalk] CC rwatch/ui/layer/simple_menu_layer.c
[chalk] CC rwatch/ui/layer/scroll_layer.c
[chalk] CC rwatch/ui/layer/action_bar_layer.c
rwatch/ui/layer/action_bar_layer.c: In function 'action_bar_layer_destroy':
rwatch/ui/layer/action_bar_layer.c:32:19: warning: passing argument 1 of 'layer_destroy' from incompatible pointer type [-Wincompatible-pointer-types]
     layer_destroy(action_bar);
                   ^~~~~~~~~~
In file included from rwatch/input/click_config.h:9:0,
                 from rwatch/librebble.h:26,
                 from rwatch/ui/layer/action_bar_layer.c:8:
rwatch/ui/layer/layer.h:44:6: note: expected 'Layer * {aka struct Layer *}' but argument is of type 'ActionBarLayer * {aka struct ActionBarLayer *}'
 void layer_destroy(Layer *layer);
      ^~~~~~~~~~~~~
rwatch/ui/layer/action_bar_layer.c: In function 'action_bar_layer_set_click_config_provider':
rwatch/ui/layer/action_bar_layer.c:49:39: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
     action_bar->click_config_provider = click_config_provider;
                                       ^
rwatch/ui/layer/action_bar_layer.c: In function 'action_bar_layer_set_icon':
rwatch/ui/layer/action_bar_layer.c:54:34: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
     action_bar->icons[button_id] = icon;
                                  ^
[chalk] CC rwatch/ui/layer/text_layer.c
[chalk] CC rwatch/ui/layer/notification_layer.c
[chalk] CC rwatch/ui/window.c
[chalk] CC rwatch/ui/action_menu.c
[chalk] CC rwatch/graphics/gbitmap.c
[chalk] CC rwatch/graphics/graphics.c
[chalk] CC rwatch/graphics/font_loader.c
[chalk] CC rwatch/event/tick_timer_service.c
[chalk] CC rwatch/event/app_timer.c
[chalk] CC rwatch/event/battery_state_service.c
[chalk] CC rwatch/event/connection_service.c
[chalk] CC rwatch/ui/layer/status_bar_layer.c
[chalk] CC rwatch/ui/animation/animation.c
[chalk] CC rwatch/ui/animation/property_animation.c
[chalk] CC rwatch/ui/notifications/notification_window.c
[chalk] CC rwatch/ui/notifications/battery_overlay.c
[chalk] CC rwatch/ui/notifications/mini_message.c
[chalk] CC rwatch/ui/vibes.c
[chalk] CC Watchfaces/simple.c
[chalk] CC Watchfaces/nivz.c
[chalk] CC Apps/System/systemapp.c
[chalk] CC Apps/System/menu.c
[chalk] CC Apps/System/testapp.c
Apps/System/testapp.c: In function 'testapp_exec_window_load':
Apps/System/testapp.c:240:22: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
     _test_exec_timer = app_timer_register(10, (AppTimerCallback)_testapp_start_test_callback, NULL);
                      ^
Apps/System/testapp.c: In function '_testapp_start_test_callback':
Apps/System/testapp.c:357:22: warning: passing argument 1 of 'app_timer_cancel' makes integer from pointer without a cast [-Wint-conversion]
     app_timer_cancel(_test_exec_timer);
                      ^~~~~~~~~~~~~~~~
In file included from rwatch/librebble.h:51:0,
                 from rcore/buttons.h:12,
                 from rcore/main.h:14,
                 from rcore/rebbleos.h:23,
                 from Apps/System/testapp.c:9:
rwatch/event/app_timer.h:19:6: note: expected 'AppTimerHandle {aka short unsigned int}' but argument is of type 'AppTimer * {aka struct AppTimer *}'
 void app_timer_cancel(AppTimerHandle timer);
      ^~~~~~~~~~~~~~~~
[chalk] CC Apps/System/test.c
[chalk] CC Apps/System/notification.c
[chalk] CC Apps/System/tests/test_test.c
[chalk] CC Apps/System/tests/color_test.c
[chalk] CC Apps/System/tests/overlay_test.c
[chalk] CC Apps/System/tests/menu_simple_test.c
[chalk] CC Apps/System/tests/menu_multi_column_test.c
[chalk] CC Apps/System/tests/action_menu_test.c
[chalk] CC Apps/System/tests/vibes_test.c
[chalk] AS hw/chip/stm32f4xx/startup_stm32f4xx.s
[chalk] CC hw/chip/stm32f4xx/system_stm32f4xx.c
hw/chip/stm32f4xx/system_stm32f4xx.c: In function 'SetSysClock':
hw/chip/stm32f4xx/system_stm32f4xx.c:669:5: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
     while ((RCC->CFGR & (uint32_t)RCC_CFGR_SWS ) != RCC_CFGR_SWS_PLL);
     ^~~~~
hw/chip/stm32f4xx/system_stm32f4xx.c:670:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'while'
     {
     ^
[chalk] CC hw/chip/stm32f4xx/misc.c
[chalk] CC hw/chip/stm32f4xx/stm32f4xx_adc.c
[chalk] CC hw/chip/stm32f4xx/stm32f4xx_crc.c
[chalk] CC hw/chip/stm32f4xx/stm32f4xx_dcmi.c
[chalk] CC hw/chip/stm32f4xx/stm32f4xx_dma.c
[chalk] CC hw/chip/stm32f4xx/stm32f4xx_dsi.c
[chalk] CC hw/chip/stm32f4xx/stm32f4xx_exti.c
[chalk] CC hw/chip/stm32f4xx/stm32f4xx_flash.c
[chalk] CC hw/chip/stm32f4xx/stm32f4xx_flash_ramfunc.c
[chalk] CC hw/chip/stm32f4xx/stm32f4xx_fmc.c
[chalk] CC hw/chip/stm32f4xx/stm32f4xx_gpio.c
[chalk] CC hw/chip/stm32f4xx/stm32f4xx_i2c.c
[chalk] CC hw/chip/stm32f4xx/stm32f4xx_iwdg.c
[chalk] CC hw/chip/stm32f4xx/stm32f4xx_lptim.c
[chalk] CC hw/chip/stm32f4xx/stm32f4xx_ltdc.c
[chalk] CC hw/chip/stm32f4xx/stm32f4xx_pwr.c
[chalk] CC hw/chip/stm32f4xx/stm32f4xx_rcc.c
[chalk] CC hw/chip/stm32f4xx/stm32f4xx_rng.c
[chalk] CC hw/chip/stm32f4xx/stm32f4xx_rtc.c
[chalk] CC hw/chip/stm32f4xx/stm32f4xx_sai.c
[chalk] CC hw/chip/stm32f4xx/stm32f4xx_sdio.c
[chalk] CC hw/chip/stm32f4xx/stm32f4xx_spdifrx.c
[chalk] CC hw/chip/stm32f4xx/stm32f4xx_spi.c
[chalk] CC hw/chip/stm32f4xx/stm32f4xx_syscfg.c
[chalk] CC hw/chip/stm32f4xx/stm32f4xx_tim.c
[chalk] CC hw/chip/stm32f4xx/stm32f4xx_usart.c
[chalk] CC hw/chip/stm32f4xx/stm32f4xx_wwdg.c
[chalk] CC hw/drivers/stm32_usart/stm32_usart.c
[chalk] CC hw/drivers/stm32_dma/stm32_dma.c
[chalk] CC hw/drivers/stm32_spi/stm32_spi.c
[chalk] CC hw/drivers/stm32_i2c/stm32_i2c.c
[chalk] CC hw/drivers/stm32_buttons/stm32_buttons.c
[chalk] CC hw/drivers/stm32_power/stm32_power.c
[chalk] CC hw/drivers/stm32_rtc/stm32_rtc.c
[chalk] CC hw/drivers/stm32_backlight/stm32_backlight.c
[chalk] CC hw/platform/snowy_family/snowy_display.c
[chalk] CC hw/platform/snowy_family/snowy_power.c
hw/platform/snowy_family/snowy_power.c: In function 'hw_power_get_bat_mv':
hw/platform/snowy_family/snowy_power.c:224:9: warning: implicit declaration of function 'delay_us' [-Wimplicit-function-declaration]
         delay_us(10);
         ^~~~~~~~
hw/platform/snowy_family/snowy_power.c: In function 'max14690_stay_on':
hw/platform/snowy_family/snowy_power.c:281:20: warning: 'return' with a value, in function returning void
             return 0;
                    ^
hw/platform/snowy_family/snowy_power.c:274:6: note: declared here
 void max14690_stay_on(uint8_t pullup)
      ^~~~~~~~~~~~~~~~
[chalk] CC hw/platform/snowy_family/snowy_scanlines.c
[chalk] CC hw/platform/snowy_family/snowy_vibrate.c
[chalk] CC hw/platform/snowy_family/snowy_ambient.c
[chalk] CC hw/platform/snowy_family/snowy_ext_flash.c
[chalk] CC hw/platform/snowy_family/snowy_common.c
[chalk] CC hw/platform/chalk/chalk.c
[chalk] CC hw/platform/chalk/chalk_bluetooth.c
hw/platform/chalk/chalk_bluetooth.c: In function 'hw_bluetooth_init':
hw/platform/chalk/chalk_bluetooth.c:10:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
[chalk] FPGA Resources/chalk_fpga.bin
[chalk] LD build/chalk/tintin_fw.elf
/usr/lib/gcc/arm-none-eabi/6.3.1/../../../arm-none-eabi/bin/ld: build/chalk/tintin_fw.elf section `.ccmram' will not fit in region `RAM2'
/usr/lib/gcc/arm-none-eabi/6.3.1/../../../arm-none-eabi/bin/ld: region `RAM2' overflowed by 3412 bytes
collect2: error: ld returned 1 exit status
Makefile:156: recipe for target 'build/chalk/tintin_fw.elf' failed
make: *** [build/chalk/tintin_fw.elf] Error 1
jwise commented 4 years ago

Yep, that's a known issue right now building for chalk. To work around it, just make snowy or make tintin for the time being.

Bystroushaak commented 4 years ago

Oh, ok. So chalk is default and snowy / tintin has to be specified. Maybe it would be better to add this info to the guides? I'll send a pull request when I'll have some time.

Bystroushaak commented 4 years ago

Oh, I just noticed that you added a lot of labels. Maybe I leave the issue open?

jwise commented 4 years ago

Yeah, by default, we build all platforms (and, ideally, they all should build, but...). If you specify just one, then you build only that one.

ginge commented 4 years ago

Confirmed compile is clean and all is "working"