Thanks for helping me.
I pushed my code to github: https://github.com/transistorgrab/RT_HPS_STM32F103
This is the output from a clean build:
17:20:48 **** Build of configuration Default for project RT_HPS_STM32F103 ****
make -j all
Compiling crt0_v7m.S
Compiling vectors.S
Compiling chcoreasm.S
Compiling crt1.c
Compiling hal.c
Compiling hal_st.c
Compiling hal_buffers.c
Compiling hal_queues.c
Compiling hal_flash.c
Compiling hal_mmcsd.c
Compiling hal_adc.c
Compiling hal_gpt.c
Compiling hal_i2c.c
Compiling hal_pal.c
Compiling hal_pwm.c
Compiling hal_serial.c
Compiling hal_serial_usb.c
Compiling hal_spi.c
Compiling hal_usb.c
Compiling nvic.c
Compiling stm32_isr.c
Compiling hal_lld.c
Compiling hal_efl_lld.c
Compiling hal_adc_lld.c
Compiling stm32_dma.c
Compiling hal_pal_lld.c
Compiling hal_i2c_lld.c
Compiling hal_spi_v2_lld.c
Compiling hal_st_lld.c
Compiling hal_gpt_lld.c
Compiling hal_pwm_lld.c
Compiling hal_serial_lld.c
Compiling hal_usb_lld.c
Compiling board.c
Compiling osal.c
Compiling chsys.c
Compiling chrfcu.c
Compiling chdebug.c
Compiling chtrace.c
Compiling chvt.c
Compiling chschd.c
Compiling chinstances.c
Compiling chthreads.c
Compiling chtm.c
Compiling chregistry.c
Compiling chsem.c
Compiling chmtx.c
Compiling chcond.c
Compiling chevents.c
Compiling chmsg.c
Compiling chdynamic.c
Compiling chmboxes.c
Compiling chmemcore.c
Compiling chmemheaps.c
Compiling chmempools.c
Compiling chpipes.c
Compiling chobjcaches.c
Compiling chdelegates.c
Compiling chfactory.c
Compiling chcore.c
Compiling chprintf.c
Compiling chscanf.c
Compiling memstreams.c
Compiling nullstreams.c
Compiling bufstreams.c
Compiling gfx.c
Compiling gos_chibios.c
Compiling gos_freertos.c
Compiling gos_win32.c
Compiling gos_linux.c
Compiling gos_osx.c
Compiling gos_raw32.c
Compiling gos_ecos.c
Compiling gos_rawrtos.c
Compiling gos_arduino.c
Compiling gos_cmsis.c
Compiling gos_zephyr.c
Compiling gos_nios.c
Compiling gos_x_threads.c
Compiling gos_x_heap.c
Compiling gdriver.c
Compiling gqueue.c
./uGFX/src/gos/gos_x_threads.c:10:5: warning: "GOS_NEED_X_THREADS" is not defined, evaluates to 0 [-Wundef]
10 | #if GOS_NEED_X_THREADS
| ^~~~~~~~~~~~~~~~~~
Compiling gdisp.c
Compiling gdisp_fonts.c
./uGFX/src/gos/gos_x_heap.c:10:5: warning: "GOS_NEED_X_HEAP" is not defined, evaluates to 0 [-Wundef]
10 | #if GOS_NEED_X_HEAP
| ^~~~~~~~~~~~~~~
Compiling gdisp_pixmap.c
Compiling gdisp_image.c
Compiling gdisp_image_native.c
Compiling gdisp_image_gif.c
Compiling gdisp_image_bmp.c
Compiling gdisp_image_jpg.c
Compiling gdisp_image_png.c
Compiling mf_encoding.c
Compiling mf_font.c
Compiling mf_justify.c
Compiling mf_kerning.c
Compiling mf_rlefont.c
Compiling mf_bwfont.c
Compiling mf_scaledfont.c
Compiling mf_wordwrap.c
Compiling gevent.c
Compiling gtimer.c
Compiling gwin.c
Compiling gwin_widget.c
Compiling gwin_wm.c
Compiling gwin_console.c
Compiling gwin_graph.c
Compiling gwin_button.c
Compiling gwin_slider.c
Compiling gwin_image.c
Compiling gwin_checkbox.c
Compiling gwin_label.c
Compiling gwin_radio.c
Compiling gwin_progressbar.c
Compiling gwin_list.c
Compiling gwin_container.c
Compiling gwin_frame.c
Compiling gwin_tabset.c
Compiling gwin_gl3d.c
Compiling gwin_keyboard.c
Compiling gwin_keyboard_layout.c
Compiling gwin_textedit.c
Compiling ginput.c
Compiling ginput_mouse.c
Compiling ginput_keyboard.c
Compiling ginput_keyboard_microcode.c
Compiling ginput_toggle.c
Compiling ginput_dial.c
Compiling gadc.c
Compiling gaudio.c
Compiling gmisc.c
Compiling gmisc_arrayops.c
Compiling gmisc_matrix2d.c
Compiling gmisc_trig.c
Compiling gmisc_hittest.c
Compiling gfile.c
Compiling gfile_fs_native.c
Compiling gfile_fs_ram.c
Compiling gfile_fs_rom.c
Compiling gfile_fs_fatfs.c
Compiling gfile_fs_petitfs.c
Compiling gfile_fs_mem.c
Compiling gfile_fs_chibios.c
Compiling gfile_fs_strings.c
Compiling gfile_printg.c
Compiling gfile_scang.c
Compiling gfile_stdio.c
Compiling gfile_fatfs_wrapper.c
Compiling gfile_fatfs_diskio_chibios.c
Compiling gfile_petitfs_wrapper.c
Compiling gfile_petitfs_diskio_chibios.c
Compiling gtrans.c
Compiling gdisp_lld_SSD1322.c
Compiling main.c
In file included from main.c:21:
oled.c:8:34: warning: 'rxbuf' defined but not used [-Wunused-variable]
8 | CC_ALIGN_DATA(32) static uint8_t rxbuf[128];
| ^~~~~
Linking build/ch.elf
lto-wrapper.exe: warning: Options to Xassembler do not match: -alms=./build/lst/crt1.lst, -alms=./build/lst/hal.lst, dropping all -Xassembler and -Wa options.
Creating build/ch.hex
Creating build/ch.bin
Creating build/ch.dmp
Creating build/ch.list
text data bss dec hex filename
38536 0 20480 59016 e688 build/ch.elf
Done
17:21:09 Build Finished. 0 errors, 3 warnings. (took 20s.472ms)