Skip to content

Instantly share code, notes, and snippets.

@5HT
Created September 7, 2026 13:50
Show Gist options
  • Select an option

  • Save 5HT/cfc0e8aed909a7827bd81cb88426828b to your computer and use it in GitHub Desktop.

Select an option

Save 5HT/cfc0e8aed909a7827bd81cb88426828b to your computer and use it in GitHub Desktop.
btron-msys2-mingw64.txt
maxim@QUADSTELLAR MINGW64 ~
$ cd //wsl.localhost/Ubuntu-22.04/home/maxim/depot/bitedits/btron
maxim@QUADSTELLAR MINGW64 //wsl.localhost/Ubuntu-22.04/home/maxim/depot/bitedits/btron
$ make run-qemu
cc -O2 -Wall -Wextra -std=c99 -Iinclude -Iinclude/drivers -Isrc/kernel -Isrc/cores -IC:/msys64/mingw64/include/SDL2 -Dmain=SDL_main -DBTRON_TARGET=1 -DBTRON_QEMU_TARGET -c src/cores/core_virtio.c -o src/cores/core_virtio.qemu.o
cc -O2 -Wall -Wextra -std=c99 -Iinclude -Iinclude/drivers -Isrc/kernel -Isrc/cores -IC:/msys64/mingw64/include/SDL2 -Dmain=SDL_main -DBTRON_TARGET=1 -DBTRON_QEMU_TARGET -c src/drivers/virtio/virtio.c -o src/drivers/virtio/virtio.qemu.o
cc -O2 -Wall -Wextra -std=c99 -Iinclude -Iinclude/drivers -Isrc/kernel -Isrc/cores -IC:/msys64/mingw64/include/SDL2 -Dmain=SDL_main -DBTRON_TARGET=1 -DBTRON_QEMU_TARGET -c src/cores/core_init.c -o src/cores/core_init.qemu.o
cc -O2 -Wall -Wextra -std=c99 -Iinclude -Iinclude/drivers -Isrc/kernel -Isrc/cores -IC:/msys64/mingw64/include/SDL2 -Dmain=SDL_main -DBTRON_TARGET=1 -DBTRON_QEMU_TARGET -c src/graphics/dp_core.c -o src/graphics/dp_core.qemu.o
cc -O2 -Wall -Wextra -std=c99 -Iinclude -Iinclude/drivers -Isrc/kernel -Isrc/cores -IC:/msys64/mingw64/include/SDL2 -Dmain=SDL_main -DBTRON_TARGET=1 -DBTRON_QEMU_TARGET -c src/graphics/icons_bundle.c -o src/graphics/icons_bundle.qemu.o
cc -O2 -Wall -Wextra -std=c99 -Iinclude -Iinclude/drivers -Isrc/kernel -Isrc/cores -IC:/msys64/mingw64/include/SDL2 -Dmain=SDL_main -DBTRON_TARGET=1 -DBTRON_QEMU_TARGET -c src/graphics/dp_sdl.c -o src/graphics/dp_sdl.qemu.o
cc -O2 -Wall -Wextra -std=c99 -Iinclude -Iinclude/drivers -Isrc/kernel -Isrc/cores -IC:/msys64/mingw64/include/SDL2 -Dmain=SDL_main -DBTRON_TARGET=1 -DBTRON_QEMU_TARGET -c src/font/troncode.c -o src/font/troncode.qemu.o
cc -O2 -Wall -Wextra -std=c99 -Iinclude -Iinclude/drivers -Isrc/kernel -Isrc/cores -IC:/msys64/mingw64/include/SDL2 -Dmain=SDL_main -DBTRON_TARGET=1 -DBTRON_QEMU_TARGET -c src/font/jis_fonts.c -o src/font/jis_fonts.qemu.o
cc -O2 -Wall -Wextra -std=c99 -Iinclude -Iinclude/drivers -Isrc/kernel -Isrc/cores -IC:/msys64/mingw64/include/SDL2 -Dmain=SDL_main -DBTRON_TARGET=1 -DBTRON_QEMU_TARGET -c src/font/tibetan_fonts.c -o src/font/tibetan_fonts.qemu.o
cc -O2 -Wall -Wextra -std=c99 -Iinclude -Iinclude/drivers -Isrc/kernel -Isrc/cores -IC:/msys64/mingw64/include/SDL2 -Dmain=SDL_main -DBTRON_TARGET=1 -DBTRON_QEMU_TARGET -c src/window/wnd.c -o src/window/wnd.qemu.o
cc -O2 -Wall -Wextra -std=c99 -Iinclude -Iinclude/drivers -Isrc/kernel -Isrc/cores -IC:/msys64/mingw64/include/SDL2 -Dmain=SDL_main -DBTRON_TARGET=1 -DBTRON_QEMU_TARGET -c src/window/app_menu.c -o src/window/app_menu.qemu.o
cc -O2 -Wall -Wextra -std=c99 -Iinclude -Iinclude/drivers -Isrc/kernel -Isrc/cores -IC:/msys64/mingw64/include/SDL2 -Dmain=SDL_main -DBTRON_TARGET=1 -DBTRON_QEMU_TARGET -c src/window/event.c -o src/window/event.qemu.o
cc -O2 -Wall -Wextra -std=c99 -Iinclude -Iinclude/drivers -Isrc/kernel -Isrc/cores -IC:/msys64/mingw64/include/SDL2 -Dmain=SDL_main -DBTRON_TARGET=1 -DBTRON_QEMU_TARGET -c src/vobject/vobj.c -o src/vobject/vobj.qemu.o
cc -O2 -Wall -Wextra -std=c99 -Iinclude -Iinclude/drivers -Isrc/kernel -Isrc/cores -IC:/msys64/mingw64/include/SDL2 -Dmain=SDL_main -DBTRON_TARGET=1 -DBTRON_QEMU_TARGET -c src/desktop/desktop.c -o src/desktop/desktop.qemu.o
cc -O2 -Wall -Wextra -std=c99 -Iinclude -Iinclude/drivers -Isrc/kernel -Isrc/cores -IC:/msys64/mingw64/include/SDL2 -Dmain=SDL_main -DBTRON_TARGET=1 -DBTRON_QEMU_TARGET -c src/desktop/workbench.c -o src/desktop/workbench.qemu.o
cc -O2 -Wall -Wextra -std=c99 -Iinclude -Iinclude/drivers -Isrc/kernel -Isrc/cores -IC:/msys64/mingw64/include/SDL2 -Dmain=SDL_main -DBTRON_TARGET=1 -DBTRON_QEMU_TARGET -c src/desktop/tracker.c -o src/desktop/tracker.qemu.o
cc -O2 -Wall -Wextra -std=c99 -Iinclude -Iinclude/drivers -Isrc/kernel -Isrc/cores -IC:/msys64/mingw64/include/SDL2 -Dmain=SDL_main -DBTRON_TARGET=1 -DBTRON_QEMU_TARGET -c src/desktop/about.c -o src/desktop/about.qemu.o
cc -O2 -Wall -Wextra -std=c99 -Iinclude -Iinclude/drivers -Isrc/kernel -Isrc/cores -IC:/msys64/mingw64/include/SDL2 -Dmain=SDL_main -DBTRON_TARGET=1 -DBTRON_QEMU_TARGET -c src/desktop/global_menu.c -o src/desktop/global_menu.qemu.o
src/desktop/global_menu.c: In function 'refresh_window_menu':
src/desktop/global_menu.c:174:55: warning: '%s' directive output may be truncated writing up to 63 bytes into a region of size 60 [-Wformat-truncation=]
174 | snprintf(it->label, sizeof(it->label), "%s%s",
| ^~
src/desktop/global_menu.c:174:13: note: 'snprintf' output between 5 and 68 bytes into a destination of size 64
174 | snprintf(it->label, sizeof(it->label), "%s%s",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
175 | w->focused ? "[*] " : "[ ] ",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
176 | w->title[0] ? w->title : "ウィンドウ");
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc -O2 -Wall -Wextra -std=c99 -Iinclude -Iinclude/drivers -Isrc/kernel -Isrc/cores -IC:/msys64/mingw64/include/SDL2 -Dmain=SDL_main -DBTRON_TARGET=1 -DBTRON_QEMU_TARGET -c src/desktop/main.c -o src/desktop/main.qemu.o
cc -O2 -Wall -Wextra -std=c99 -Iinclude -Iinclude/drivers -Isrc/kernel -Isrc/cores -IC:/msys64/mingw64/include/SDL2 -Dmain=SDL_main -DBTRON_TARGET=1 -DBTRON_QEMU_TARGET -c src/apps/vobj_manager.c -o src/apps/vobj_manager.qemu.o
src/apps/vobj_manager.c: In function 'handle_vobj_manager_event':
src/apps/vobj_manager.c:761:29: warning: the address of 'open_t_editor_window' will always evaluate as 'true' [-Waddress]
761 | if (open_t_editor_window) open_t_editor_window();
| ^~~~~~~~~~~~~~~~~~~~
src/apps/vobj_manager.c: In function 'cabinet_discover_dir.constprop':
src/apps/vobj_manager.c:394:50: warning: '%s' directive output may be truncated writing up to 259 bytes into a region of size 255 [-Wformat-truncation=]
394 | snprintf(sub_path, sizeof(sub_path), "%s/%s", dir_path, de->d_name);
| ^~
src/apps/vobj_manager.c:394:9: note: 'snprintf' output 2 or more bytes (assuming 261) into a destination of size 256
394 | snprintf(sub_path, sizeof(sub_path), "%s/%s", dir_path, de->d_name);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/apps/vobj_manager.c:414:21: warning: 'strncpy' output may be truncated copying 127 bytes from a string of length 255 [-Wstringop-truncation]
414 | strncpy(it->path, sub_path, sizeof(it->path) - 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc -O2 -Wall -Wextra -std=c99 -Iinclude -Iinclude/drivers -Isrc/kernel -Isrc/cores -IC:/msys64/mingw64/include/SDL2 -Dmain=SDL_main -DBTRON_TARGET=1 -DBTRON_QEMU_TARGET -c src/apps/tad_browser.c -o src/apps/tad_browser.qemu.o
src/apps/tad_browser.c: In function 'tad_browser_load_buffer':
src/apps/tad_browser.c:454:21: warning: 'strncpy' output may be truncated copying 511 bytes from a string of length 511 [-Wstringop-truncation]
454 | strncpy(span->text, line, sizeof(span->text) - 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'parse_text_tad_lines',
inlined from 'tad_browser_load_buffer' at src/apps/tad_browser.c:461:9:
src/apps/tad_browser.c:255:13: warning: 'strncpy' output may be truncated copying 511 bytes from a string of length 511 [-Wstringop-truncation]
255 | strncpy(span->text, line, sizeof(span->text) - 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/apps/tad_browser.c:252:13: warning: 'strncpy' output may be truncated copying 511 bytes from a string of length 511 [-Wstringop-truncation]
252 | strncpy(span->text, line, sizeof(span->text) - 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/apps/tad_browser.c:234:17: warning: 'strncpy' output may be truncated copying 127 bytes from a string of length 511 [-Wstringop-truncation]
234 | strncpy(span->style.img_caption, line, sizeof(span->style.img_caption) - 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/apps/tad_browser.c:236:13: warning: 'strncpy' output may be truncated copying 511 bytes from a string of length 511 [-Wstringop-truncation]
236 | strncpy(span->text, line, sizeof(span->text) - 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/apps/tad_browser.c:216:13: warning: 'strncpy' output may be truncated copying 63 bytes from a string of length 511 [-Wstringop-truncation]
216 | strncpy(span->style.vobj_label, line, sizeof(span->style.vobj_label) - 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/apps/tad_browser.c:217:13: warning: 'strncpy' output may be truncated copying 511 bytes from a string of length 511 [-Wstringop-truncation]
217 | strncpy(span->text, line, sizeof(span->text) - 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/apps/tad_browser.c:194:13: warning: 'strncpy' output may be truncated copying 511 bytes from a string of length 511 [-Wstringop-truncation]
194 | strncpy(span->text, line, sizeof(span->text) - 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/apps/tad_browser.c:185:13: warning: 'strncpy' output may be truncated copying 511 bytes from a string of length 511 [-Wstringop-truncation]
185 | strncpy(span->text, line, sizeof(span->text) - 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/apps/tad_browser.c: In function 'tad_browser_paint.part.0':
src/apps/tad_browser.c:1418:58: warning: 'snprintf' output may be truncated before the last format character [-Wformat-truncation=]
1418 | snprintf(candidate, sizeof(candidate), "%s/%s", doc_dir, s->style.img_src);
| ^
In function 'resolve_and_draw_image',
inlined from 'tad_browser_paint.part.0' at src/apps/tad_browser.c:1657:23:
src/apps/tad_browser.c:1418:13: note: 'snprintf' output 2 or more bytes (assuming 257) into a destination of size 256
1418 | snprintf(candidate, sizeof(candidate), "%s/%s", doc_dir, s->style.img_src);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/apps/tad_browser.c: In function 'tad_browser_paint.part.0':
src/apps/tad_browser.c:1436:66: warning: 'snprintf' output may be truncated before the last format character [-Wformat-truncation=]
1436 | snprintf(candidate, sizeof(candidate), "%s/%s", doc_dir, s->style.img_src);
| ^
In function 'resolve_and_draw_image',
inlined from 'tad_browser_paint.part.0' at src/apps/tad_browser.c:1657:23:
src/apps/tad_browser.c:1436:21: note: 'snprintf' output 2 or more bytes (assuming 257) into a destination of size 256
1436 | snprintf(candidate, sizeof(candidate), "%s/%s", doc_dir, s->style.img_src);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/apps/tad_browser.c: In function 'tad_browser_paint.part.0':
src/apps/tad_browser.c:1776:47: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size 128 [-Wformat-truncation=]
1776 | snprintf(loc_text, sizeof(loc_text), "%s", tb->file_path[0] ? tb->file_path : "TAD Document (実身文書)");
| ^~
src/apps/tad_browser.c:1776:9: note: 'snprintf' output between 1 and 256 bytes into a destination of size 128
1776 | snprintf(loc_text, sizeof(loc_text), "%s", tb->file_path[0] ? tb->file_path : "TAD Document (実身文書)");
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/apps/tad_browser.c: In function 'tad_browser_resolve_path':
src/apps/tad_browser.c:1884:13: warning: 'strncpy' output may be truncated copying 127 bytes from a string of length 127 [-Wstringop-truncation]
1884 | strncpy(parent_dir, dir, sizeof(parent_dir) - 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/apps/tad_browser.c: In function 'tad_browser_navigate':
src/apps/tad_browser.c:1958:13: warning: 'strncpy' output may be truncated copying 255 bytes from a string of length 255 [-Wstringop-truncation]
1958 | strncpy(tb->history[tb->history_idx].path, resolved, sizeof(tb->history[0].path) - 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc -O2 -Wall -Wextra -std=c99 -Iinclude -Iinclude/drivers -Isrc/kernel -Isrc/cores -IC:/msys64/mingw64/include/SDL2 -Dmain=SDL_main -DBTRON_TARGET=1 -DBTRON_QEMU_TARGET -c src/apps/gterm.c -o src/apps/gterm.qemu.o
src/apps/gterm.c: In function 'gterm_append_line.part.0':
src/apps/gterm.c:282:9: warning: 'strncpy' output may be truncated copying 256 bytes from a string of length 256 [-Wstringop-truncation]
282 | strncpy(st->lines[idx], seg, GTERM_MAX_COLS);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/apps/gterm.c: In function 'shell_execute_cmd':
src/apps/gterm.c:619:60: warning: '%s' directive output may be truncated writing up to 259 bytes into a region of size 119 [-Wformat-truncation=]
619 | snprintf(item, sizeof(item), " [VOBJ] %s", entry->d_name);
| ^~
src/apps/gterm.c:619:21: note: 'snprintf' output between 10 and 269 bytes into a destination of size 128
619 | snprintf(item, sizeof(item), " [VOBJ] %s", entry->d_name);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/apps/gterm.c: In function 'handle_gterm_event.part.0':
src/apps/gterm.c:903:61: warning: '%s' directive output may be truncated writing up to 256 bytes into a region of size between 249 and 280 [-Wformat-truncation=]
903 | snprintf(cancel_msg, sizeof(cancel_msg), "%s%s^C", st->prompt, st->input_buf);
| ^~
src/apps/gterm.c:903:17: note: 'snprintf' output between 3 and 290 bytes into a destination of size 280
903 | snprintf(cancel_msg, sizeof(cancel_msg), "%s%s^C", st->prompt, st->input_buf);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc -O2 -Wall -Wextra -std=c99 -Iinclude -Iinclude/drivers -Isrc/kernel -Isrc/cores -IC:/msys64/mingw64/include/SDL2 -Dmain=SDL_main -DBTRON_TARGET=1 -DBTRON_QEMU_TARGET -c src/apps/t_editor.c -o src/apps/t_editor.qemu.o
src/apps/t_editor.c: In function 'teditor_execute_menu_cmd':
src/apps/t_editor.c:657:17: warning: the address of 'open_vobj_manager_window' will always evaluate as 'true' [-Waddress]
657 | if (open_vobj_manager_window) open_vobj_manager_window();
| ^~~~~~~~~~~~~~~~~~~~~~~~
src/apps/t_editor.c: In function 'paint_t_editor.part.0':
src/apps/t_editor.c:903:47: warning: '%s' directive output may be truncated writing up to 2 bytes into a region of size between 1 and 128 [-Wformat-truncation=]
903 | snprintf(title_buf, sizeof(title_buf), "%s%s", ed->filename, ed->is_modified ? " *" : "");
| ^~
src/apps/t_editor.c:903:5: note: 'snprintf' output between 1 and 130 bytes into a destination of size 128
903 | snprintf(title_buf, sizeof(title_buf), "%s%s", ed->filename, ed->is_modified ? " *" : "");
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/apps/t_editor.c:988:54: warning: '%s' directive output may be truncated writing up to 63 bytes into a region of size 57 [-Wformat-truncation=]
988 | snprintf(vobj_str, sizeof(vobj_str), "[VOBJ: %s]", ed->vobj_name);
| ^~
src/apps/t_editor.c:988:9: note: 'snprintf' output between 9 and 72 bytes into a destination of size 64
988 | snprintf(vobj_str, sizeof(vobj_str), "[VOBJ: %s]", ed->vobj_name);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/apps/t_editor.c: In function 'teditor_load_file':
src/apps/t_editor.c:1101:9: warning: 'strncpy' output may be truncated copying 511 bytes from a string of length 1023 [-Wstringop-truncation]
1101 | strncpy(ed->lines[ed->total_lines], line_buf, TEDITOR_MAX_COLS - 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/apps/t_editor.c: In function 'open_t_editor_window_rect':
src/apps/t_editor.c:1041:55: warning: '%s' directive output may be truncated writing up to 127 bytes into a region of size 108 [-Wformat-truncation=]
1041 | snprintf(title, sizeof(title), "編集者 (Editor) \"%s\" ", ed->filename);
| ^~
src/apps/t_editor.c:1041:5: note: 'snprintf' output between 23 and 150 bytes into a destination of size 128
1041 | snprintf(title, sizeof(title), "編集者 (Editor) \"%s\" ", ed->filename);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/apps/t_editor.c: In function 'teditor_execute_menu_cmd':
src/apps/t_editor.c:612:68: warning: '%s' directive output may be truncated writing up to 127 bytes into a region of size 55 [-Wformat-truncation=]
612 | snprintf(wnd->title, sizeof(wnd->title), "Editor - %s", ed->filename);
| ^~
src/apps/t_editor.c:612:17: note: 'snprintf' output between 10 and 137 bytes into a destination of size 64
612 | snprintf(wnd->title, sizeof(wnd->title), "Editor - %s", ed->filename);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'teditor_delete_char_forward',
inlined from 'handle_t_editor_event' at src/apps/t_editor.c:806:13,
inlined from 'handle_t_editor_event' at src/apps/t_editor.c:674:13:
src/apps/t_editor.c:388:13: warning: 'strncat' accessing between 1 and 2147483647 bytes at offsets [-4611686018427387904, 4611686018427387903] and [-4611686018427387904, 4611686018427387903] may overlap 1 byte at offset [-4611686018427387904, 4611686020574871550] [-Wrestrict]
388 | strncat(ed->lines[r], ed->lines[r + 1], TEDITOR_MAX_COLS - len - 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'teditor_backspace',
inlined from 'handle_t_editor_event' at src/apps/t_editor.c:803:13,
inlined from 'handle_t_editor_event' at src/apps/t_editor.c:674:13:
src/apps/t_editor.c:358:13: warning: 'strncat' accessing between 513 and 2147483647 bytes at offsets [0, 1099511626752] and [512, 1099511627264] may overlap 1 byte at offset [512, 1101659110399] [-Wrestrict]
358 | strncat(ed->lines[r - 1], ed->lines[r], TEDITOR_MAX_COLS - prev_len - 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc -O2 -Wall -Wextra -std=c99 -Iinclude -Iinclude/drivers -Isrc/kernel -Isrc/cores -IC:/msys64/mingw64/include/SDL2 -Dmain=SDL_main -DBTRON_TARGET=1 -DBTRON_QEMU_TARGET -c src/apps/audio_player.c -o src/apps/audio_player.qemu.o
cc -O2 -Wall -Wextra -std=c99 -Iinclude -Iinclude/drivers -Isrc/kernel -Isrc/cores -IC:/msys64/mingw64/include/SDL2 -Dmain=SDL_main -DBTRON_TARGET=1 -DBTRON_QEMU_TARGET -c src/apps/orchestra.c -o src/apps/orchestra.qemu.o
cc -O2 -Wall -Wextra -std=c99 -Iinclude -Iinclude/drivers -Isrc/kernel -Isrc/cores -IC:/msys64/mingw64/include/SDL2 -Dmain=SDL_main -DBTRON_TARGET=1 -DBTRON_QEMU_TARGET -c src/apps/chat.c -o src/apps/chat.qemu.o
src/apps/chat.c: In function 'handle_chat_dialog_event':
src/apps/chat.c:701:17: warning: 'strncpy' output may be truncated copying 63 bytes from a string of length 63 [-Wstringop-truncation]
701 | strncpy(item->jid, ctx->field_jid[0] ? ctx->field_jid : "newuser@btron.org", sizeof(item->jid) - 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/apps/chat.c:702:17: warning: 'strncpy' output may be truncated copying 31 bytes from a string of length 31 [-Wstringop-truncation]
702 | strncpy(item->nick, ctx->field_nick[0] ? ctx->field_nick : "NewBuddy", sizeof(item->nick) - 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/apps/chat.c:703:17: warning: 'strncpy' output may be truncated copying 31 bytes from a string of length 31 [-Wstringop-truncation]
703 | strncpy(item->group, ctx->field_group[0] ? ctx->field_group : "General", sizeof(item->group) - 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/apps/chat.c: In function 'chat_ipc_broadcast_presence':
src/apps/chat.c:227:21: warning: 'strncpy' output may be truncated copying 63 bytes from a string of length 63 [-Wstringop-truncation]
227 | strncpy(c->roster[i].status_text, client->status_msg, sizeof(c->roster[i].status_text) - 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/apps/chat.c:234:17: warning: 'strncpy' output may be truncated copying 63 bytes from a string of length 63 [-Wstringop-truncation]
234 | strncpy(item->jid, client->jid, sizeof(item->jid) - 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/apps/chat.c:238:17: warning: 'strncpy' output may be truncated copying 63 bytes from a string of length 63 [-Wstringop-truncation]
238 | strncpy(item->status_text, client->status_msg, sizeof(item->status_text) - 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc -O2 -Wall -Wextra -std=c99 -Iinclude -Iinclude/drivers -Isrc/kernel -Isrc/cores -IC:/msys64/mingw64/include/SDL2 -Dmain=SDL_main -DBTRON_TARGET=1 -DBTRON_QEMU_TARGET -c src/apps/chat_xml.c -o src/apps/chat_xml.qemu.o
src/apps/chat_xml.c: In function 'chat_xml_build_presence':
src/apps/chat_xml.c:165:9: warning: 'strncpy' offset [0, 510] is out of the bounds [0, 0] [-Warray-bounds=]
165 | strncpy(sh->cdata, show, sizeof(sh->cdata) - 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/apps/chat_xml.c:170:9: warning: 'strncpy' offset [0, 510] is out of the bounds [0, 0] [-Warray-bounds=]
170 | strncpy(st->cdata, status, sizeof(st->cdata) - 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/apps/chat_xml.c: In function 'chat_xml_build_message':
src/apps/chat_xml.c:187:9: warning: 'strncpy' offset [0, 510] is out of the bounds [0, 0] [-Warray-bounds=]
187 | strncpy(b->cdata, body, sizeof(b->cdata) - 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/apps/chat_xml.c:192:9: warning: 'strncpy' offset [0, 510] is out of the bounds [0, 0] [-Warray-bounds=]
192 | strncpy(s->cdata, stamp, sizeof(s->cdata) - 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc -O2 -Wall -Wextra -std=c99 -Iinclude -Iinclude/drivers -Isrc/kernel -Isrc/cores -IC:/msys64/mingw64/include/SDL2 -Dmain=SDL_main -DBTRON_TARGET=1 -DBTRON_QEMU_TARGET -c src/settings/language.c -o src/settings/language.qemu.o
cc -O2 -Wall -Wextra -std=c99 -Iinclude -Iinclude/drivers -Isrc/kernel -Isrc/cores -IC:/msys64/mingw64/include/SDL2 -Dmain=SDL_main -DBTRON_TARGET=1 -DBTRON_QEMU_TARGET -c src/settings/control_panel.c -o src/settings/control_panel.qemu.o
cc -O2 -Wall -Wextra -std=c99 -Iinclude -Iinclude/drivers -Isrc/kernel -Isrc/cores -IC:/msys64/mingw64/include/SDL2 -Dmain=SDL_main -DBTRON_TARGET=1 -DBTRON_QEMU_TARGET -c src/settings/appearance.c -o src/settings/appearance.qemu.o
cc -O2 -Wall -Wextra -std=c99 -Iinclude -Iinclude/drivers -Isrc/kernel -Isrc/cores -IC:/msys64/mingw64/include/SDL2 -Dmain=SDL_main -DBTRON_TARGET=1 -DBTRON_QEMU_TARGET -c src/settings/desktop.c -o src/settings/desktop.qemu.o
cc -O2 -Wall -Wextra -std=c99 -Iinclude -Iinclude/drivers -Isrc/kernel -Isrc/cores -IC:/msys64/mingw64/include/SDL2 -Dmain=SDL_main -DBTRON_TARGET=1 -DBTRON_QEMU_TARGET -c src/settings/display.c -o src/settings/display.qemu.o
cc -O2 -Wall -Wextra -std=c99 -Iinclude -Iinclude/drivers -Isrc/kernel -Isrc/cores -IC:/msys64/mingw64/include/SDL2 -Dmain=SDL_main -DBTRON_TARGET=1 -DBTRON_QEMU_TARGET -c src/settings/input.c -o src/settings/input.qemu.o
cc -O2 -Wall -Wextra -std=c99 -Iinclude -Iinclude/drivers -Isrc/kernel -Isrc/cores -IC:/msys64/mingw64/include/SDL2 -Dmain=SDL_main -DBTRON_TARGET=1 -DBTRON_QEMU_TARGET -c src/settings/sound.c -o src/settings/sound.qemu.o
cc -O2 -Wall -Wextra -std=c99 -Iinclude -Iinclude/drivers -Isrc/kernel -Isrc/cores -IC:/msys64/mingw64/include/SDL2 -Dmain=SDL_main -DBTRON_TARGET=1 -DBTRON_QEMU_TARGET -c src/settings/network.c -o src/settings/network.qemu.o
cc -O2 -Wall -Wextra -std=c99 -Iinclude -Iinclude/drivers -Isrc/kernel -Isrc/cores -IC:/msys64/mingw64/include/SDL2 -Dmain=SDL_main -DBTRON_TARGET=1 -DBTRON_QEMU_TARGET -c src/settings/media.c -o src/settings/media.qemu.o
cc -O2 -Wall -Wextra -std=c99 -Iinclude -Iinclude/drivers -Isrc/kernel -Isrc/cores -IC:/msys64/mingw64/include/SDL2 -Dmain=SDL_main -DBTRON_TARGET=1 -DBTRON_QEMU_TARGET -c src/settings/security.c -o src/settings/security.qemu.o
cc -O2 -Wall -Wextra -std=c99 -Iinclude -Iinclude/drivers -Isrc/kernel -Isrc/cores -IC:/msys64/mingw64/include/SDL2 -Dmain=SDL_main -DBTRON_TARGET=1 -DBTRON_QEMU_TARGET -c src/settings/system.c -o src/settings/system.qemu.o
cc -O2 -Wall -Wextra -std=c99 -Iinclude -Iinclude/drivers -Isrc/kernel -Isrc/cores -IC:/msys64/mingw64/include/SDL2 -Dmain=SDL_main -DBTRON_TARGET=1 -DBTRON_QEMU_TARGET -c src/settings/terminal.c -o src/settings/terminal.qemu.o
cc -O2 -Wall -Wextra -std=c99 -Iinclude -Iinclude/drivers -Isrc/kernel -Isrc/cores -IC:/msys64/mingw64/include/SDL2 -Dmain=SDL_main -DBTRON_TARGET=1 -DBTRON_QEMU_TARGET -c src/hmi/hmi_core.c -o src/hmi/hmi_core.qemu.o
cc -O2 -Wall -Wextra -std=c99 -Iinclude -Iinclude/drivers -Isrc/kernel -Isrc/cores -IC:/msys64/mingw64/include/SDL2 -Dmain=SDL_main -DBTRON_TARGET=1 -DBTRON_QEMU_TARGET -c src/hmi/hmi_switch.c -o src/hmi/hmi_switch.qemu.o
cc -O2 -Wall -Wextra -std=c99 -Iinclude -Iinclude/drivers -Isrc/kernel -Isrc/cores -IC:/msys64/mingw64/include/SDL2 -Dmain=SDL_main -DBTRON_TARGET=1 -DBTRON_QEMU_TARGET -c src/hmi/hmi_selector.c -o src/hmi/hmi_selector.qemu.o
cc -O2 -Wall -Wextra -std=c99 -Iinclude -Iinclude/drivers -Isrc/kernel -Isrc/cores -IC:/msys64/mingw64/include/SDL2 -Dmain=SDL_main -DBTRON_TARGET=1 -DBTRON_QEMU_TARGET -c src/hmi/hmi_volume.c -o src/hmi/hmi_volume.qemu.o
cc -O2 -Wall -Wextra -std=c99 -Iinclude -Iinclude/drivers -Isrc/kernel -Isrc/cores -IC:/msys64/mingw64/include/SDL2 -Dmain=SDL_main -DBTRON_TARGET=1 -DBTRON_QEMU_TARGET -c src/hmi/hmi_meter.c -o src/hmi/hmi_meter.qemu.o
cc -O2 -Wall -Wextra -std=c99 -Iinclude -Iinclude/drivers -Isrc/kernel -Isrc/cores -IC:/msys64/mingw64/include/SDL2 -Dmain=SDL_main -DBTRON_TARGET=1 -DBTRON_QEMU_TARGET -c src/hmi/hmi_controller.c -o src/hmi/hmi_controller.qemu.o
cc -O2 -Wall -Wextra -std=c99 -Iinclude -Iinclude/drivers -Isrc/kernel -Isrc/cores -IC:/msys64/mingw64/include/SDL2 -Dmain=SDL_main -DBTRON_TARGET=1 -DBTRON_QEMU_TARGET -c src/hmi/hmi_panel.c -o src/hmi/hmi_panel.qemu.o
cc -O2 -Wall -Wextra -std=c99 -Iinclude -Iinclude/drivers -Isrc/kernel -Isrc/cores -IC:/msys64/mingw64/include/SDL2 -Dmain=SDL_main -DBTRON_TARGET=1 -DBTRON_QEMU_TARGET -c src/tip/mozc_kkc.c -o src/tip/mozc_kkc.qemu.o
src/tip/mozc_kkc.c: In function 'mozc_get_candidates.part.0':
src/tip/mozc_kkc.c:642:13: warning: 'strncpy' output may be truncated copying 63 bytes from a string of length 63 [-Wstringop-truncation]
642 | strncpy(candidates[count].value, kata_buf, TIP_MAX_STR_LEN - 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/tip/mozc_kkc.c: In function 'mozc_lattice_search':
src/tip/mozc_kkc.c:745:14: warning: 'strncpy' output may be truncated copying 63 bytes from a string of length 63 [-Wstringop-truncation]
745 | else strncpy(c->converted, c->reading, TIP_MAX_STR_LEN - 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/tip/mozc_kkc.c:744:36: warning: 'strncpy' output may be truncated copying 63 bytes from a string of length 2111 [-Wstringop-truncation]
744 | if (c->num_candidates > 0) strncpy(c->converted, c->candidates[0].value, TIP_MAX_STR_LEN - 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/tip/mozc_kkc.c:737:18: warning: 'dp[<unknown>].prev_pos' may be used uninitialized [-Wmaybe-uninitialized]
737 | if (dp[r_len].prev_pos == -1) {
| ~~~~~~~~~^~~~~~~~~
src/tip/mozc_kkc.c:671:22: note: 'dp' declared here
671 | ViterbiLatticeDP dp[256 + 1];
| ^~
cc -O2 -Wall -Wextra -std=c99 -Iinclude -Iinclude/drivers -Isrc/kernel -Isrc/cores -IC:/msys64/mingw64/include/SDL2 -Dmain=SDL_main -DBTRON_TARGET=1 -DBTRON_QEMU_TARGET -c src/tip/tip_ife.c -o src/tip/tip_ife.qemu.o
src/tip/tip_ife.c: In function 'tip_process_key.part.0':
src/tip/tip_ife.c:247:13: warning: 'strncpy' output may be truncated copying 63 bytes from a string of length 255 [-Wstringop-truncation]
247 | strncpy(g_tip.clauses[0].reading, g_tip.reading_buf, TIP_MAX_STR_LEN - 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/tip/tip_ife.c:328:13: warning: 'strncpy' output may be truncated copying 63 bytes from a string of length 255 [-Wstringop-truncation]
328 | strncpy(g_tip.clauses[0].reading, g_tip.reading_buf, TIP_MAX_STR_LEN - 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/tip/tip_ife.c:341:17: warning: 'strncpy' output may be truncated copying 63 bytes from a string of length 255 [-Wstringop-truncation]
341 | strncpy(g_tip.clauses[0].converted, g_tip.reading_buf, TIP_MAX_STR_LEN - 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/tip/tip_ife.c:337:17: warning: 'strncpy' output may be truncated copying 63 bytes from a string of length 63 [-Wstringop-truncation]
337 | strncpy(g_tip.clauses[0].converted,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
338 | g_tip.clauses[0].candidates[0].value,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
339 | TIP_MAX_STR_LEN - 1);
| ~~~~~~~~~~~~~~~~~~~~
cc -O2 -Wall -Wextra -std=c99 -Iinclude -Iinclude/drivers -Isrc/kernel -Isrc/cores -IC:/msys64/mingw64/include/SDL2 -Dmain=SDL_main -DBTRON_TARGET=1 -DBTRON_QEMU_TARGET -c src/tip/tip_task.c -o src/tip/tip_task.qemu.o
cc -O2 -Wall -Wextra -std=c99 -Iinclude -Iinclude/drivers -Isrc/kernel -Isrc/cores -IC:/msys64/mingw64/include/SDL2 -Dmain=SDL_main -DBTRON_TARGET=1 -DBTRON_QEMU_TARGET -c src/tip/tip_vobj.c -o src/tip/tip_vobj.qemu.o
cc -O2 -Wall -Wextra -std=c99 -Iinclude -Iinclude/drivers -Isrc/kernel -Isrc/cores -IC:/msys64/mingw64/include/SDL2 -Dmain=SDL_main -DBTRON_TARGET=1 -DBTRON_QEMU_TARGET -c src/tip/wylie.c -o src/tip/wylie.qemu.o
cc -O2 -Wall -Wextra -std=c99 -Iinclude -Iinclude/drivers -Isrc/kernel -Isrc/cores -IC:/msys64/mingw64/include/SDL2 -Dmain=SDL_main -DBTRON_TARGET=1 -DBTRON_QEMU_TARGET -c src/tip/tibetan_dict.c -o src/tip/tibetan_dict.qemu.o
cc src/cores/core_virtio.qemu.o src/drivers/virtio/virtio.qemu.o src/cores/core_init.qemu.o src/graphics/dp_core.qemu.o src/graphics/icons_bundle.qemu.o src/graphics/dp_sdl.qemu.o src/font/troncode.qemu.o src/font/jis_fonts.qemu.o src/font/tibetan_fonts.qemu.o src/window/wnd.qemu.o src/window/app_menu.qemu.o src/window/event.qemu.o src/vobject/vobj.qemu.o src/desktop/desktop.qemu.o src/desktop/workbench.qemu.o src/desktop/tracker.qemu.o src/desktop/about.qemu.o src/desktop/global_menu.qemu.o src/desktop/main.qemu.o src/apps/vobj_manager.qemu.o src/apps/tad_browser.qemu.o src/apps/gterm.qemu.o src/apps/t_editor.qemu.o src/apps/audio_player.qemu.o src/apps/orchestra.qemu.o src/apps/chat.qemu.o src/apps/chat_xml.qemu.o src/settings/language.qemu.o src/settings/control_panel.qemu.o src/settings/appearance.qemu.o src/settings/desktop.qemu.o src/settings/display.qemu.o src/settings/input.qemu.o src/settings/sound.qemu.o src/settings/network.qemu.o src/settings/media.qemu.o src/settings/security.qemu.o src/settings/system.qemu.o src/settings/terminal.qemu.o src/hmi/hmi_core.qemu.o src/hmi/hmi_switch.qemu.o src/hmi/hmi_selector.qemu.o src/hmi/hmi_volume.qemu.o src/hmi/hmi_meter.qemu.o src/hmi/hmi_controller.qemu.o src/hmi/hmi_panel.qemu.o src/tip/mozc_kkc.qemu.o src/tip/tip_ife.qemu.o src/tip/tip_task.qemu.o src/tip/tip_vobj.qemu.o src/tip/wylie.qemu.o src/tip/tibetan_dict.qemu.o -o btron-qemu.elf -LC:/msys64/mingw64/lib -lmingw32 -mwindows -lSDL2main -lSDL2 -lz -lgdi32 -lwinpthread
B-System/BTRON3 3.20 (arm-qemu-virtio) Hiroshi Tokita — Cleanroom TRON Kernel
Copyright 2026 Synrc Research Center. MIT License.
[BOOT] Machine: QEMU virt ARMv7-A VirtIO MMIO
[CORE] B-Kernel ITRON RTOS (QEMU VirtIO Mode) BTRON_QEMU
[VIRTIO] MMIO Controller registered at address 0x10001000
[MEM ] QEMU virt: 0x00000000-0x0FFFFFFF 256 MB RAM
[MEM ] VirtIO MMIO: 0x10001000 Block device
[HFDS] VirtIO-Block MMIO 0x10001000 [DETECT]
[HFDS] HFDS Hierarchical File/Data Set: INIT [OK]
[FOMA-SDL] Mouse pointer GRABBED. Press Ctrl+G (^G) or Ctrl+Alt to release mouse.
[B-System] Launching Sakamura B-System Desktop & Accessories...
[FOMA-SDL] Mouse pointer GRABBED. Press Ctrl+G (^G) or Ctrl+Alt to release mouse.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment