Git Product home page Git Product logo

kawaii-gcc's Introduction

Kawaii-gcc かわいいGCC

GitHub Repo stars GitHub contributors GitHub License

Make your GCC compiler kawaii~!

This project makes the output messages from GCC compiler looks kawaii by editing the localization file of GCC.

Everyone is welcomed to contribute and add more kawaii messages!

中文版(更改为中文时请优先阅读)

How to use it?

Linux (in an Ubuntu example)

Demo Video on YouTube(Japanese)

  • Install Japanese for your terminal (if not installed)

    sudo apt-get install language-pack-ja language-pack-gnome-ja language-pack-ja-base language-pack-gnome-ja-base
  • Install gcc , gettext and g++.

    sudo apt-get install gcc gettext g++
  • Install gcc locales

    Check your gcc main version number by:

    gcc -v

    It is 12.3.0 on my end. So the main version number is 12.

    sudo apt-get install gcc-12-locales
  • Find your gcc language file. Defaultly, it should be found in /usr/share/locale/ja/LC_MESSAGES/gcc.mo. However, it is also possible that you cannot find the file or the file is named as gcc-12.mo. If there's a related file, back up it. (eg. sudo mv gcc-12.mo gcc-12.mo.bak) Don't worry if there's no such file, you need to do nothing.

  • Use the following command to download the mo file in the project and copy it to the path.

    sudo wget https://github.com/Bill-Haku/kawaii-gcc/raw/main/prebuilt/gcc.mo -O /usr/share/locale/ja/LC_MESSAGES/gcc-12.mo

    The gcc.po is the localization file for ja_JP, and the gcc-zh.po is the localization file for zh_CN. See the Chinese version README document for more details.

    You can also rebuild the binary file by yourself:

    msgfmt gcc.po -o gcc.mo
    sudo cp gcc.mo /usr/share/locale/ja/LC_MESSAGES/gcc-12.mo

    Regarding to the file name:

    • If you found an existed file in the last step, use the existed file name.
    • if not, try gcc-<MAIN VERSION NUMBER>.mo first, and if it doesn't work, rename it to gcc.mo.
  • Change terminal environmental variables into Japanese:

    vim ~/.bashrc
    
    # Add the following lines
    export LANG="ja_JP.UTF-8"
    export LANGUAGE="ja_JP.UTF-8"
    # Save it in Vim
    
    source ~/.bashrc
  • Now your GCC has become kawaii~!

    You can have a try with the test.cc provided in the project.

    gcc test.cc -Wall
    # -Wall makes GCC output all the warning messages.

Windows

  • Install Cygwin

    • Download and run setup-x86_64.exe

    • Choose Install from Internet at the step of Select Packages.

    • At the step of Select Packages, Set View as Category and search and select the versions of gcc-core, gcc-g++ and gettext under the ALL/Devel panel.

  • Suppose your Cygwin install directory is <DIR> (Defaultly it should be C:\cygwin), add the directory <DIR>\bin to the Environment Variable Path. If there's mingw in the Path, delete it or move it under the <DIR>\bin. Add another Environment Variable LANG, and set the value of it into ja_JP.UTF-8.

  • Move the gcc.mo file in the ./prebuilt directory of this repository to <DIR>\usr\share\locale\ja\LC_MESSAGES, keep naming it as gcc.mo. Backuping the existed gcc.mo file is suggested.

macOS

Not implemented yet. Contribution welcomed!

Star History

Star History Chart

Special Thanks

This project is inspired by gcc-hentai. It was a Chinese project, and I created this repo to make a Japanese version and share it to Japanese users. I added the new text, edited and completed some details in the use instructions, and made a video in Japanese to share it. The video got unexpected attention in Chinese users on Bilibili, so I added contents of Chinese in it. Thanks for the sharing and the open-source spirit of the original authors.

kawaii-gcc's People

Contributors

bill-haku avatar dabao1955 avatar moe-hacker avatar sishuikaki avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

kawaii-gcc's Issues

Request for updating the project description

I propose a change of

GCCコンパイルを可愛くします。Make your GCC compiler kawaii.

to

GCCコンパイラーを可愛くしましょう!Make your GCC compiler kawaii!

有关所有的kawaii错误信息~^_^

哈喽哈喽我在B站看到了你的视频,感觉这个项目很有意思,专门下载试用了一下,确实很有趣!可以提供一下所有表述gcc错误台词的来源吗?我要参考这些东西来做我们小组的课程项目(Shell解释器)作为我们的亮点,并想沿用到这个项目相关的错误信息上
非常感谢喵~(p.s. 这个项目真的非常不错,已经加星标啦~)

bug: 奇怪的编译bug

使用之后会莫名其妙编译错误(中文版):
使用后:

Found ninja-1.11.1 at /usr/bin/ninja
WARNING: Running the setup command as `meson [options]` instead of `meson setup [options]` is ambiguous and deprecated.
ninja: Entering directory `/home/star/.cache/yay/waybar-hyprland-cava-git/src/build'
[1/200] Compiling C object subprojects/cava-0.9.1/libcava.so.p/src_input_shmem.c.o
FAILED: subprojects/cava-0.9.1/libcava.so.p/src_input_shmem.c.o
cc -Isubprojects/cava-0.9.1/libcava.so.p -Isubprojects/cava-0.9.1 -I../waybar-hyprland-cava-git/subprojects/cava-0.9.1 -I../waybar-hyprland-cava-git/subprojects/cava-0.9.1/include -I/usr/include/pipewire-0.3 -I/usr/include/spa-0.2 -I/usr/include/SDL2 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic '-DPACKAGE="cava"' '-DVERSION="0.9.1"' '-DFONTDIR="/usr/share/consolefonts"' -DNDEBUG -DHAVE_ALLOCA_H -DNCURSES -DALSA -DPORTAUDIO -DPULSE -DSNDIO -DPIPEWIRE -DSDL -DSDL_GLSL -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fPIC -D_REENTRANT -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -pthread -Wall -Wextra -Wno-unused-result -Wno-maybe-uninitialized -Wno-vla-parameter -MD -MQ subprojects/cava-0.9.1/libcava.so.p/src_input_shmem.c.o -MF subprojects/cava-0.9.1/libcava.so.p/src_input_shmem.c.o.d -o subprojects/cava-0.9.1/libcava.so.p/src_input_shmem.c.o -c ../waybar-hyprland-cava-git/subprojects/cava-0.9.1/src/input/shmem.c

就...就在那个叫‘input_shmem’的函数里!:
段错误
   97 |                 strerror(errno));
      |                 ^~~~~~~~
0x1900058 internal_error(char const*, ...)
        ???:0
0x195cabb pp_format(pretty_printer*, text_info*)
        ???:0
0x18fdb6f diagnostic_report_diagnostic(diagnostic_context*, diagnostic_info*)
        ???:0
0xc81e85 format_string_diagnostic_t::emit_warning_n_va(int, unsigned long, char const*, char const*, __va_list_tag (*) [1]) const
        ???:0
0xc8210a format_string_diagnostic_t::emit_warning(int, char const*, ...) const
        ???:0
0x76cf7d argument_parser::check_argument_type(format_char_info const*, length_modifier const&, tree_node*&, char const*&, bool, unsigned long&, tree_node*&, int, char const*, char const*, unsigned int, char)
        ???:0
0x76b735 check_function_format(tree_node const*, tree_node*, int, tree_node**, vec<unsigned int, va_heap, vl_ptr>*)
        ???:0
0x76bab4 check_function_arguments(unsigned int, tree_node const*, tree_node const*, int, tree_node**, vec<unsigned int, va_heap, vl_ptr>*)
        ???:0
0x6cbe3e build_function_call_vec(unsigned int, vec<unsigned int, va_heap, vl_ptr>, tree_node*, vec<tree_node*, va_gc, vl_embed>*, vec<tree_node*, va_gc, vl_embed>*, tree_node*)
        ???:0
0x70c1bb c_parse_file()
        ???:0
0x77ccb5 c_common_parse_file()
        ???:0
Please submit a full bug report, with preprocessed source (by using -freport-bug).
Please include the complete backtrace with any bug report.
参阅 <https://bugs.archlinux.org/> 以获取指示。
[4/200] Compiling C object subprojects/cava-0.9.1/libcava.so.p/src_output_terminal_ncurses.c.o
FAILED: subprojects/cava-0.9.1/libcava.so.p/src_output_terminal_ncurses.c.o
cc -Isubprojects/cava-0.9.1/libcava.so.p -Isubprojects/cava-0.9.1 -I../waybar-hyprland-cava-git/subprojects/cava-0.9.1 -I../waybar-hyprland-cava-git/subprojects/cava-0.9.1/include -I/usr/include/pipewire-0.3 -I/usr/include/spa-0.2 -I/usr/include/SDL2 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic '-DPACKAGE="cava"' '-DVERSION="0.9.1"' '-DFONTDIR="/usr/share/consolefonts"' -DNDEBUG -DHAVE_ALLOCA_H -DNCURSES -DALSA -DPORTAUDIO -DPULSE -DSNDIO -DPIPEWIRE -DSDL -DSDL_GLSL -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fPIC -D_REENTRANT -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -pthread -Wall -Wextra -Wno-unused-result -Wno-maybe-uninitialized -Wno-vla-parameter -MD -MQ subprojects/cava-0.9.1/libcava.so.p/src_output_terminal_ncurses.c.o -MF subprojects/cava-0.9.1/libcava.so.p/src_output_terminal_ncurses.c.o.d -o subprojects/cava-0.9.1/libcava.so.p/src_output_terminal_ncurses.c.o -c ../waybar-hyprland-cava-git/subprojects/cava-0.9.1/src/output/terminal_ncurses.c

就...就在那个叫‘parse_color’的函数里!:
段错误
   46 |         sscanf(++color_string, "%02hx%02hx%02hx", &color->R, &color->G, &color->B);
      |         ^~~~~~
0x1900058 internal_error(char const*, ...)
        ???:0
0x195cabb pp_format(pretty_printer*, text_info*)
        ???:0
0x18fdb6f diagnostic_report_diagnostic(diagnostic_context*, diagnostic_info*)
        ???:0
0xc81e85 format_string_diagnostic_t::emit_warning_n_va(int, unsigned long, char const*, char const*, __va_list_tag (*) [1]) const
        ???:0
0xc8210a format_string_diagnostic_t::emit_warning(int, char const*, ...) const
        ???:0
0x76cf7d argument_parser::check_argument_type(format_char_info const*, length_modifier const&, tree_node*&, char const*&, bool, unsigned long&, tree_node*&, int, char const*, char const*, unsigned int, char)
        ???:0
0x76b735 check_function_format(tree_node const*, tree_node*, int, tree_node**, vec<unsigned int, va_heap, vl_ptr>*)
        ???:0
0x76bab4 check_function_arguments(unsigned int, tree_node const*, tree_node const*, int, tree_node**, vec<unsigned int, va_heap, vl_ptr>*)
        ???:0
0x6cbe3e build_function_call_vec(unsigned int, vec<unsigned int, va_heap, vl_ptr>, tree_node*, vec<tree_node*, va_gc, vl_embed>*, vec<tree_node*, va_gc, vl_embed>*, tree_node*)
        ???:0
0x70c1bb c_parse_file()
        ???:0
0x77ccb5 c_common_parse_file()
        ???:0
Please submit a full bug report, with preprocessed source (by using -freport-bug).
Please include the complete backtrace with any bug report.
参阅 <https://bugs.archlinux.org/> 以获取指示。
[13/200] Compiling C object subprojects/cava-0.9.1/libcava.so.p/src_output_common.c.o
In file included from ../waybar-hyprland-cava-git/subprojects/cava-0.9.1/src/output/common.c:3:
../waybar-hyprland-cava-git/subprojects/cava-0.9.1/src/output/common.c: 就...就在那个叫‘monstercat_filter’的函数里!:
../waybar-hyprland-cava-git/subprojects/cava-0.9.1/include/cava/util.h:5:5: 杂鱼~ISO C 不允许在表达式中使用花括号组 [-Wpedantic]
    5 |     ({                                                                                             \
      |     ^
../waybar-hyprland-cava-git/subprojects/cava-0.9.1/src/output/common.c:18:29: 才...才不会告诉你...:in expansion of macro ‘max’
   18 |                 bars[m_y] = max(bars[z] - pow(de, 2), bars[m_y]);
      |                             ^~~
../waybar-hyprland-cava-git/subprojects/cava-0.9.1/include/cava/util.h:5:5: 杂鱼~ISO C 不允许在表达式中使用花括号组 [-Wpedantic]
    5 |     ({                                                                                             \
      |     ^
../waybar-hyprland-cava-git/subprojects/cava-0.9.1/src/output/common.c:22:29: 才...才不会告诉你...:in expansion of macro ‘max’
   22 |                 bars[m_y] = max(bars[z] - pow(de, 2), bars[m_y]);
      |                             ^~~
../waybar-hyprland-cava-git/subprojects/cava-0.9.1/include/cava/util.h:5:5: 杂鱼~ISO C 不允许在表达式中使用花括号组 [-Wpedantic]
    5 |     ({                                                                                             \
      |     ^
../waybar-hyprland-cava-git/subprojects/cava-0.9.1/src/output/common.c:30:29: 才...才不会告诉你...:in expansion of macro ‘max’
   30 |                 bars[m_y] = max(bars[z] / pow(monstercat * 1.5, de), bars[m_y]);
      |                             ^~~
../waybar-hyprland-cava-git/subprojects/cava-0.9.1/include/cava/util.h:5:5: 杂鱼~ISO C 不允许在表达式中使用花括号组 [-Wpedantic]
    5 |     ({                                                                                             \
      |     ^
../waybar-hyprland-cava-git/subprojects/cava-0.9.1/src/output/common.c:34:29: 才...才不会告诉你...:in expansion of macro ‘max’
   34 |                 bars[m_y] = max(bars[z] / pow(monstercat * 1.5, de), bars[m_y]);
      |                             ^~~
[14/200] Compiling C object subprojects/cava-0.9.1/libcava.so.p/src_cavacore.c.o
ninja: build stopped: subcommand failed.

使用前:

Found ninja-1.11.1 at /usr/bin/ninja
WARNING: Running the setup command as `meson [options]` instead of `meson setup [options]` is ambiguous and deprecated.
ninja: Entering directory `/home/star/.cache/yay/waybar-hyprland-cava-git/src/build'
[7/200] Compiling C object subprojects/cava-0.9.1/libcava.so.p/src_input_shmem.c.o
../waybar-hyprland-cava-git/subprojects/cava-0.9.1/src/input/shmem.c: 在函数‘input_shmem’中:
../waybar-hyprland-cava-git/subprojects/cava-0.9.1/src/input/shmem.c:96:51: 警告:格式 ‘%p’ expects argument of type ‘void *’, but argument 3 has type ‘vis_t *’ [-Wformat=]
   96 |         fprintf(stderr, "Could not munmap() area %p+%d. %s", mmap_area, mmap_count,
      |                                                  ~^          ~~~~~~~~~
      |                                                   |          |
      |                                                   void *     vis_t *
[17/200] Compiling C object subprojects/cava-0.9.1/libcava.so.p/src_output_terminal_ncurses.c.o
../waybar-hyprland-cava-git/subprojects/cava-0.9.1/src/output/terminal_ncurses.c: 在函数‘parse_color’中:
../waybar-hyprland-cava-git/subprojects/cava-0.9.1/src/output/terminal_ncurses.c:46:37: 警告:格式 ‘%hx’ expects argument of type ‘short unsigned int *’, but argument 3 has type ‘short int *’ [-Wformat=]
   46 |         sscanf(++color_string, "%02hx%02hx%02hx", &color->R, &color->G, &color->B);
      |                                 ~~~~^             ~~~~~~~~~
      |                                     |             |
      |                                     |             short int *
      |                                     short unsigned int *
      |                                 %02hx
../waybar-hyprland-cava-git/subprojects/cava-0.9.1/src/output/terminal_ncurses.c:46:42: 警告:格式 ‘%hx’ expects argument of type ‘short unsigned int *’, but argument 4 has type ‘short int *’ [-Wformat=]
   46 |         sscanf(++color_string, "%02hx%02hx%02hx", &color->R, &color->G, &color->B);
      |                                      ~~~~^                   ~~~~~~~~~
      |                                          |                   |
      |                                          |                   short int *
      |                                          short unsigned int *
      |                                      %02hx
../waybar-hyprland-cava-git/subprojects/cava-0.9.1/src/output/terminal_ncurses.c:46:47: 警告:格式 ‘%hx’ expects argument of type ‘short unsigned int *’, but argument 5 has type ‘short int *’ [-Wformat=]
   46 |         sscanf(++color_string, "%02hx%02hx%02hx", &color->R, &color->G, &color->B);
      |                                           ~~~~^                         ~~~~~~~~~
      |                                               |                         |
      |                                               short unsigned int *      short int *
      |                                           %02hx
In file included from ../waybar-hyprland-cava-git/subprojects/cava-0.9.1/src/output/terminal_ncurses.c:8:
../waybar-hyprland-cava-git/subprojects/cava-0.9.1/src/output/terminal_ncurses.c: 在函数‘draw_terminal_ncurses’中:
../waybar-hyprland-cava-git/subprojects/cava-0.9.1/include/cava/util.h:5:5: 警告:ISO C 不允许在表达式中使用花括号组 [-Wpedantic]
    5 |     ({                                                                                             \
      |     ^
../waybar-hyprland-cava-git/subprojects/cava-0.9.1/include/cava/util.h:7:20: 附注:in definition of macro ‘max’
    7 |         __typeof__(b) _b = (b);                                                                    \
      |                    ^
../waybar-hyprland-cava-git/subprojects/cava-0.9.1/src/output/terminal_ncurses.c:252:50: 附注:in expansion of macro ‘max’
  252 |         max_update_value = max(max_update_value, max(bars[bar], previous_frame[bar]));
      |                                                  ^~~
../waybar-hyprland-cava-git/subprojects/cava-0.9.1/include/cava/util.h:5:5: 警告:ISO C 不允许在表达式中使用花括号组 [-Wpedantic]
    5 |     ({                                                                                             \
      |     ^
../waybar-hyprland-cava-git/subprojects/cava-0.9.1/include/cava/util.h:7:29: 附注:in definition of macro ‘max’
    7 |         __typeof__(b) _b = (b);                                                                    \
      |                             ^
../waybar-hyprland-cava-git/subprojects/cava-0.9.1/src/output/terminal_ncurses.c:252:50: 附注:in expansion of macro ‘max’
  252 |         max_update_value = max(max_update_value, max(bars[bar], previous_frame[bar]));
      |                                                  ^~~
../waybar-hyprland-cava-git/subprojects/cava-0.9.1/include/cava/util.h:5:5: 警告:ISO C 不允许在表达式中使用花括号组 [-Wpedantic]
    5 |     ({                                                                                             \
      |     ^
../waybar-hyprland-cava-git/subprojects/cava-0.9.1/src/output/terminal_ncurses.c:252:28: 附注:in expansion of macro ‘max’
  252 |         max_update_value = max(max_update_value, max(bars[bar], previous_frame[bar]));
      |                            ^~~
[59/200] Compiling C object subprojects/cava-0.9.1/libcava.so.p/src_output_common.c.o
In file included from ../waybar-hyprland-cava-git/subprojects/cava-0.9.1/src/output/common.c:3:
../waybar-hyprland-cava-git/subprojects/cava-0.9.1/src/output/common.c: 在函数‘monstercat_filter’中:
../waybar-hyprland-cava-git/subprojects/cava-0.9.1/include/cava/util.h:5:5: 警告:ISO C 不允许在表达式中使用花括号组 [-Wpedantic]
    5 |     ({                                                                                             \
      |     ^
../waybar-hyprland-cava-git/subprojects/cava-0.9.1/src/output/common.c:18:29: 附注:in expansion of macro ‘max’
   18 |                 bars[m_y] = max(bars[z] - pow(de, 2), bars[m_y]);
      |                             ^~~
../waybar-hyprland-cava-git/subprojects/cava-0.9.1/include/cava/util.h:5:5: 警告:ISO C 不允许在表达式中使用花括号组 [-Wpedantic]
    5 |     ({                                                                                             \
      |     ^
../waybar-hyprland-cava-git/subprojects/cava-0.9.1/src/output/common.c:22:29: 附注:in expansion of macro ‘max’
   22 |                 bars[m_y] = max(bars[z] - pow(de, 2), bars[m_y]);
      |                             ^~~
../waybar-hyprland-cava-git/subprojects/cava-0.9.1/include/cava/util.h:5:5: 警告:ISO C 不允许在表达式中使用花括号组 [-Wpedantic]
    5 |     ({                                                                                             \
      |     ^
../waybar-hyprland-cava-git/subprojects/cava-0.9.1/src/output/common.c:30:29: 附注:in expansion of macro ‘max’
   30 |                 bars[m_y] = max(bars[z] / pow(monstercat * 1.5, de), bars[m_y]);
      |                             ^~~
../waybar-hyprland-cava-git/subprojects/cava-0.9.1/include/cava/util.h:5:5: 警告:ISO C 不允许在表达式中使用花括号组 [-Wpedantic]
    5 |     ({                                                                                             \
      |     ^
../waybar-hyprland-cava-git/subprojects/cava-0.9.1/src/output/common.c:34:29: 附注:in expansion of macro ‘max’
   34 |                 bars[m_y] = max(bars[z] / pow(monstercat * 1.5, de), bars[m_y]);
      |                             ^~~
[103/200] Compiling C object subprojects/cava-0.9.1/libcava.so.p/src_input_pipewire.c.o
In file included from /usr/include/spa-0.2/spa/pod/pod.h:12,
                 from /usr/include/spa-0.2/spa/pod/iter.h:15,
                 from /usr/include/spa-0.2/spa/pod/parser.h:15,
                 from /usr/include/spa-0.2/spa/param/audio/format-utils.h:12,
                 from ../waybar-hyprland-cava-git/subprojects/cava-0.9.1/src/input/pipewire.c:5:
/usr/include/spa-0.2/spa/pod/iter.h: 在函数‘spa_pod_copy_array’中:
/usr/include/spa-0.2/spa/utils/defs.h:136:1: 警告:ISO C 不允许在表达式中使用花括号组 [-Wpedantic]
  136 | ({                                                      \
      | ^
/usr/include/spa-0.2/spa/pod/iter.h:331:20: 附注:in expansion of macro ‘SPA_MIN’
  331 |         n_values = SPA_MIN(n_values, max_values);
      |                    ^~~~~~~
/usr/include/spa-0.2/spa/pod/iter.h: 在函数‘spa_pod_get_values’中:
/usr/include/spa-0.2/spa/utils/defs.h:136:1: 警告:ISO C 不允许在表达式中使用花括号组 [-Wpedantic]
  136 | ({                                                      \
      | ^
/usr/include/spa-0.2/spa/pod/iter.h:347:35: 附注:in expansion of macro ‘SPA_MIN’
  347 |                         *n_vals = SPA_MIN(1u, SPA_POD_CHOICE_N_VALUES(pod));
      |                                   ^~~~~~~
/usr/include/spa-0.2/spa/pod/parser.h: 在函数‘spa_pod_parser_init’中:
/usr/include/spa-0.2/spa/pod/parser.h:36:90: 警告:ISO C forbids empty initializer braces before C2X [-Wpedantic]
   36 | #define SPA_POD_PARSER_INIT(buffer,size)  ((struct spa_pod_parser){ (buffer), (size), 0, {} })
      |                                                                                          ^
/usr/include/spa-0.2/spa/pod/parser.h:41:19: 附注:in expansion of macro ‘SPA_POD_PARSER_INIT’
   41 |         *parser = SPA_POD_PARSER_INIT(data, size);
      |                   ^~~~~~~~~~~~~~~~~~~
In file included from /usr/include/spa-0.2/spa/param/audio/format-utils.h:13:
/usr/include/spa-0.2/spa/pod/builder.h: 在函数‘spa_pod_builder_init’中:
/usr/include/spa-0.2/spa/pod/builder.h:52:92: 警告:ISO C forbids empty initializer braces before C2X [-Wpedantic]
   52 | #define SPA_POD_BUILDER_INIT(buffer,size)  ((struct spa_pod_builder){ (buffer), (size), 0, {}, {} })
      |                                                                                            ^
/usr/include/spa-0.2/spa/pod/builder.h:79:20: 附注:in expansion of macro ‘SPA_POD_BUILDER_INIT’
   79 |         *builder = SPA_POD_BUILDER_INIT(data, size);
      |                    ^~~~~~~~~~~~~~~~~~~~
/usr/include/spa-0.2/spa/pod/builder.h:52:96: 警告:ISO C forbids empty initializer braces before C2X [-Wpedantic]
   52 | #define SPA_POD_BUILDER_INIT(buffer,size)  ((struct spa_pod_builder){ (buffer), (size), 0, {}, {} })
      |                                                                                                ^
/usr/include/spa-0.2/spa/pod/builder.h:79:20: 附注:in expansion of macro ‘SPA_POD_BUILDER_INIT’
   79 |         *builder = SPA_POD_BUILDER_INIT(data, size);
      |                    ^~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/spa-0.2/spa/pod/builder.h:23:
/usr/include/spa-0.2/spa/pod/builder.h: 在函数‘spa_pod_builder_raw’中:
/usr/include/spa-0.2/spa/utils/hook.h:199:1: 警告:ISO C 不允许在表达式中使用花括号组 [-Wpedantic]
  199 | ({                                                                              \
      | ^
/usr/include/spa-0.2/spa/pod/builder.h:127:25: 附注:in expansion of macro ‘spa_callbacks_call_res’
  127 |                         spa_callbacks_call_res(&builder->callbacks,
      |                         ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/spa-0.2/spa/pod/builder.h: 在函数‘spa_pod_builder_primitive’中:
/usr/include/spa-0.2/spa/utils/defs.h:72:1: 警告:ISO C 不允许在表达式中使用花括号组 [-Wpedantic]
   72 | ({                                                                      \
      | ^
/usr/include/spa-0.2/spa/pod/builder.h:188:17: 附注:in expansion of macro ‘SPA_FLAG_CLEAR’
  188 |                 SPA_FLAG_CLEAR(builder->state.flags, SPA_POD_BUILDER_FLAG_FIRST);
      |                 ^~~~~~~~~~~~~~
/usr/include/spa-0.2/spa/pod/builder.h: 在函数‘spa_pod_builder_child’中:
/usr/include/spa-0.2/spa/utils/defs.h:72:1: 警告:ISO C 不允许在表达式中使用花括号组 [-Wpedantic]
   72 | ({                                                                      \
      | ^
/usr/include/spa-0.2/spa/pod/builder.h:210:9: 附注:in expansion of macro ‘SPA_FLAG_CLEAR’
  210 |         SPA_FLAG_CLEAR(builder->state.flags, SPA_POD_BUILDER_FLAG_FIRST);
      |         ^~~~~~~~~~~~~~
/usr/include/spa-0.2/spa/param/format-utils.h: 在函数‘spa_format_parse’中:
/usr/include/spa-0.2/spa/pod/parser.h:531:1: 警告:ISO C 不允许在表达式中使用花括号组 [-Wpedantic]
  531 | ({                                                                              \
      | ^
/usr/include/spa-0.2/spa/pod/parser.h:556:9: 附注:in expansion of macro ‘spa_pod_parser_get_object’
  556 |         spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__);   \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/spa-0.2/spa/param/format-utils.h:24:16: 附注:in expansion of macro ‘spa_pod_parse_object’
   24 |         return spa_pod_parse_object(format,
      |                ^~~~~~~~~~~~~~~~~~~~
/usr/include/spa-0.2/spa/pod/parser.h:553:1: 警告:ISO C 不允许在表达式中使用花括号组 [-Wpedantic]
  553 | ({                                                              \
      | ^
/usr/include/spa-0.2/spa/param/format-utils.h:24:16: 附注:in expansion of macro ‘spa_pod_parse_object’
   24 |         return spa_pod_parse_object(format,
      |                ^~~~~~~~~~~~~~~~~~~~
/usr/include/spa-0.2/spa/param/audio/raw-utils.h: 在函数‘spa_format_audio_raw_parse’中:
/usr/include/spa-0.2/spa/pod/parser.h:531:1: 警告:ISO C 不允许在表达式中使用花括号组 [-Wpedantic]
  531 | ({                                                                              \
      | ^
/usr/include/spa-0.2/spa/pod/parser.h:556:9: 附注:in expansion of macro ‘spa_pod_parser_get_object’
  556 |         spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__);   \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/spa-0.2/spa/param/audio/raw-utils.h:28:15: 附注:in expansion of macro ‘spa_pod_parse_object’
   28 |         res = spa_pod_parse_object(format,
      |               ^~~~~~~~~~~~~~~~~~~~
/usr/include/spa-0.2/spa/pod/parser.h:553:1: 警告:ISO C 不允许在表达式中使用花括号组 [-Wpedantic]
  553 | ({                                                              \
      | ^
/usr/include/spa-0.2/spa/param/audio/raw-utils.h:28:15: 附注:in expansion of macro ‘spa_pod_parse_object’
   28 |         res = spa_pod_parse_object(format,
      |               ^~~~~~~~~~~~~~~~~~~~
/usr/include/spa-0.2/spa/param/audio/dsp-utils.h: 在函数‘spa_format_audio_dsp_parse’中:
/usr/include/spa-0.2/spa/pod/parser.h:531:1: 警告:ISO C 不允许在表达式中使用花括号组 [-Wpedantic]
  531 | ({                                                                              \
      | ^
/usr/include/spa-0.2/spa/pod/parser.h:556:9: 附注:in expansion of macro ‘spa_pod_parser_get_object’
  556 |         spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__);   \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/spa-0.2/spa/param/audio/dsp-utils.h:26:15: 附注:in expansion of macro ‘spa_pod_parse_object’
   26 |         res = spa_pod_parse_object(format,
      |               ^~~~~~~~~~~~~~~~~~~~
/usr/include/spa-0.2/spa/pod/parser.h:553:1: 警告:ISO C 不允许在表达式中使用花括号组 [-Wpedantic]
  553 | ({                                                              \
      | ^
/usr/include/spa-0.2/spa/param/audio/dsp-utils.h:26:15: 附注:in expansion of macro ‘spa_pod_parse_object’
   26 |         res = spa_pod_parse_object(format,
      |               ^~~~~~~~~~~~~~~~~~~~
/usr/include/spa-0.2/spa/param/audio/iec958-utils.h: 在函数‘spa_format_audio_iec958_parse’中:
/usr/include/spa-0.2/spa/pod/parser.h:531:1: 警告:ISO C 不允许在表达式中使用花括号组 [-Wpedantic]
  531 | ({                                                                              \
      | ^
/usr/include/spa-0.2/spa/pod/parser.h:556:9: 附注:in expansion of macro ‘spa_pod_parser_get_object’
  556 |         spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__);   \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/spa-0.2/spa/param/audio/iec958-utils.h:26:15: 附注:in expansion of macro ‘spa_pod_parse_object’
   26 |         res = spa_pod_parse_object(format,
      |               ^~~~~~~~~~~~~~~~~~~~
/usr/include/spa-0.2/spa/pod/parser.h:553:1: 警告:ISO C 不允许在表达式中使用花括号组 [-Wpedantic]
  553 | ({                                                              \
      | ^
/usr/include/spa-0.2/spa/param/audio/iec958-utils.h:26:15: 附注:in expansion of macro ‘spa_pod_parse_object’
   26 |         res = spa_pod_parse_object(format,
      |               ^~~~~~~~~~~~~~~~~~~~
/usr/include/spa-0.2/spa/param/audio/dsd-utils.h: 在函数‘spa_format_audio_dsd_parse’中:
/usr/include/spa-0.2/spa/pod/parser.h:531:1: 警告:ISO C 不允许在表达式中使用花括号组 [-Wpedantic]
  531 | ({                                                                              \
      | ^
/usr/include/spa-0.2/spa/pod/parser.h:556:9: 附注:in expansion of macro ‘spa_pod_parser_get_object’
  556 |         spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__);   \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/spa-0.2/spa/param/audio/dsd-utils.h:28:15: 附注:in expansion of macro ‘spa_pod_parse_object’
   28 |         res = spa_pod_parse_object(format,
      |               ^~~~~~~~~~~~~~~~~~~~
/usr/include/spa-0.2/spa/pod/parser.h:553:1: 警告:ISO C 不允许在表达式中使用花括号组 [-Wpedantic]
  553 | ({                                                              \
      | ^
/usr/include/spa-0.2/spa/param/audio/dsd-utils.h:28:15: 附注:in expansion of macro ‘spa_pod_parse_object’
   28 |         res = spa_pod_parse_object(format,
      |               ^~~~~~~~~~~~~~~~~~~~
/usr/include/spa-0.2/spa/param/audio/mp3-utils.h: 在函数‘spa_format_audio_mp3_parse’中:
/usr/include/spa-0.2/spa/pod/parser.h:531:1: 警告:ISO C 不允许在表达式中使用花括号组 [-Wpedantic]
  531 | ({                                                                              \
      | ^
/usr/include/spa-0.2/spa/pod/parser.h:556:9: 附注:in expansion of macro ‘spa_pod_parser_get_object’
  556 |         spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__);   \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/spa-0.2/spa/param/audio/mp3-utils.h:26:15: 附注:in expansion of macro ‘spa_pod_parse_object’
   26 |         res = spa_pod_parse_object(format,
      |               ^~~~~~~~~~~~~~~~~~~~
/usr/include/spa-0.2/spa/pod/parser.h:553:1: 警告:ISO C 不允许在表达式中使用花括号组 [-Wpedantic]
  553 | ({                                                              \
      | ^
/usr/include/spa-0.2/spa/param/audio/mp3-utils.h:26:15: 附注:in expansion of macro ‘spa_pod_parse_object’
   26 |         res = spa_pod_parse_object(format,
      |               ^~~~~~~~~~~~~~~~~~~~
/usr/include/spa-0.2/spa/param/audio/aac-utils.h: 在函数‘spa_format_audio_aac_parse’中:
/usr/include/spa-0.2/spa/pod/parser.h:531:1: 警告:ISO C 不允许在表达式中使用花括号组 [-Wpedantic]
  531 | ({                                                                              \
      | ^
/usr/include/spa-0.2/spa/pod/parser.h:556:9: 附注:in expansion of macro ‘spa_pod_parser_get_object’
  556 |         spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__);   \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/spa-0.2/spa/param/audio/aac-utils.h:26:15: 附注:in expansion of macro ‘spa_pod_parse_object’
   26 |         res = spa_pod_parse_object(format,
      |               ^~~~~~~~~~~~~~~~~~~~
/usr/include/spa-0.2/spa/pod/parser.h:553:1: 警告:ISO C 不允许在表达式中使用花括号组 [-Wpedantic]
  553 | ({                                                              \
      | ^
/usr/include/spa-0.2/spa/param/audio/aac-utils.h:26:15: 附注:in expansion of macro ‘spa_pod_parse_object’
   26 |         res = spa_pod_parse_object(format,
      |               ^~~~~~~~~~~~~~~~~~~~
/usr/include/spa-0.2/spa/param/audio/vorbis-utils.h: 在函数‘spa_format_audio_vorbis_parse’中:
/usr/include/spa-0.2/spa/pod/parser.h:531:1: 警告:ISO C 不允许在表达式中使用花括号组 [-Wpedantic]
  531 | ({                                                                              \
      | ^
/usr/include/spa-0.2/spa/pod/parser.h:556:9: 附注:in expansion of macro ‘spa_pod_parser_get_object’
  556 |         spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__);   \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/spa-0.2/spa/param/audio/vorbis-utils.h:26:15: 附注:in expansion of macro ‘spa_pod_parse_object’
   26 |         res = spa_pod_parse_object(format,
      |               ^~~~~~~~~~~~~~~~~~~~
/usr/include/spa-0.2/spa/pod/parser.h:553:1: 警告:ISO C 不允许在表达式中使用花括号组 [-Wpedantic]
  553 | ({                                                              \
      | ^
/usr/include/spa-0.2/spa/param/audio/vorbis-utils.h:26:15: 附注:in expansion of macro ‘spa_pod_parse_object’
   26 |         res = spa_pod_parse_object(format,
      |               ^~~~~~~~~~~~~~~~~~~~
/usr/include/spa-0.2/spa/param/audio/wma-utils.h: 在函数‘spa_format_audio_wma_parse’中:
/usr/include/spa-0.2/spa/pod/parser.h:531:1: 警告:ISO C 不允许在表达式中使用花括号组 [-Wpedantic]
  531 | ({                                                                              \
      | ^
/usr/include/spa-0.2/spa/pod/parser.h:556:9: 附注:in expansion of macro ‘spa_pod_parser_get_object’
  556 |         spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__);   \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/spa-0.2/spa/param/audio/wma-utils.h:26:15: 附注:in expansion of macro ‘spa_pod_parse_object’
   26 |         res = spa_pod_parse_object(format,
      |               ^~~~~~~~~~~~~~~~~~~~
/usr/include/spa-0.2/spa/pod/parser.h:553:1: 警告:ISO C 不允许在表达式中使用花括号组 [-Wpedantic]
  553 | ({                                                              \
      | ^
/usr/include/spa-0.2/spa/param/audio/wma-utils.h:26:15: 附注:in expansion of macro ‘spa_pod_parse_object’
   26 |         res = spa_pod_parse_object(format,
      |               ^~~~~~~~~~~~~~~~~~~~
/usr/include/spa-0.2/spa/param/audio/ra-utils.h: 在函数‘spa_format_audio_ra_parse’中:
/usr/include/spa-0.2/spa/pod/parser.h:531:1: 警告:ISO C 不允许在表达式中使用花括号组 [-Wpedantic]
  531 | ({                                                                              \
      | ^
/usr/include/spa-0.2/spa/pod/parser.h:556:9: 附注:in expansion of macro ‘spa_pod_parser_get_object’
  556 |         spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__);   \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/spa-0.2/spa/param/audio/ra-utils.h:26:15: 附注:in expansion of macro ‘spa_pod_parse_object’
   26 |         res = spa_pod_parse_object(format,
      |               ^~~~~~~~~~~~~~~~~~~~
/usr/include/spa-0.2/spa/pod/parser.h:553:1: 警告:ISO C 不允许在表达式中使用花括号组 [-Wpedantic]
  553 | ({                                                              \
      | ^
/usr/include/spa-0.2/spa/param/audio/ra-utils.h:26:15: 附注:in expansion of macro ‘spa_pod_parse_object’
   26 |         res = spa_pod_parse_object(format,
      |               ^~~~~~~~~~~~~~~~~~~~
/usr/include/spa-0.2/spa/param/audio/amr-utils.h: 在函数‘spa_format_audio_amr_parse’中:
/usr/include/spa-0.2/spa/pod/parser.h:531:1: 警告:ISO C 不允许在表达式中使用花括号组 [-Wpedantic]
  531 | ({                                                                              \
      | ^
/usr/include/spa-0.2/spa/pod/parser.h:556:9: 附注:in expansion of macro ‘spa_pod_parser_get_object’
  556 |         spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__);   \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/spa-0.2/spa/param/audio/amr-utils.h:26:15: 附注:in expansion of macro ‘spa_pod_parse_object’
   26 |         res = spa_pod_parse_object(format,
      |               ^~~~~~~~~~~~~~~~~~~~
/usr/include/spa-0.2/spa/pod/parser.h:553:1: 警告:ISO C 不允许在表达式中使用花括号组 [-Wpedantic]
  553 | ({                                                              \
      | ^
/usr/include/spa-0.2/spa/param/audio/amr-utils.h:26:15: 附注:in expansion of macro ‘spa_pod_parse_object’
   26 |         res = spa_pod_parse_object(format,
      |               ^~~~~~~~~~~~~~~~~~~~
/usr/include/spa-0.2/spa/param/audio/alac-utils.h: 在函数‘spa_format_audio_alac_parse’中:
/usr/include/spa-0.2/spa/pod/parser.h:531:1: 警告:ISO C 不允许在表达式中使用花括号组 [-Wpedantic]
  531 | ({                                                                              \
      | ^
/usr/include/spa-0.2/spa/pod/parser.h:556:9: 附注:in expansion of macro ‘spa_pod_parser_get_object’
  556 |         spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__);   \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/spa-0.2/spa/param/audio/alac-utils.h:26:15: 附注:in expansion of macro ‘spa_pod_parse_object’
   26 |         res = spa_pod_parse_object(format,
      |               ^~~~~~~~~~~~~~~~~~~~
/usr/include/spa-0.2/spa/pod/parser.h:553:1: 警告:ISO C 不允许在表达式中使用花括号组 [-Wpedantic]
  553 | ({                                                              \
      | ^
/usr/include/spa-0.2/spa/param/audio/alac-utils.h:26:15: 附注:in expansion of macro ‘spa_pod_parse_object’
   26 |         res = spa_pod_parse_object(format,
      |               ^~~~~~~~~~~~~~~~~~~~
/usr/include/spa-0.2/spa/param/audio/flac-utils.h: 在函数‘spa_format_audio_flac_parse’中:
/usr/include/spa-0.2/spa/pod/parser.h:531:1: 警告:ISO C 不允许在表达式中使用花括号组 [-Wpedantic]
  531 | ({                                                                              \
      | ^
/usr/include/spa-0.2/spa/pod/parser.h:556:9: 附注:in expansion of macro ‘spa_pod_parser_get_object’
  556 |         spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__);   \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/spa-0.2/spa/param/audio/flac-utils.h:26:15: 附注:in expansion of macro ‘spa_pod_parse_object’
   26 |         res = spa_pod_parse_object(format,
      |               ^~~~~~~~~~~~~~~~~~~~
/usr/include/spa-0.2/spa/pod/parser.h:553:1: 警告:ISO C 不允许在表达式中使用花括号组 [-Wpedantic]
  553 | ({                                                              \
      | ^
/usr/include/spa-0.2/spa/param/audio/flac-utils.h:26:15: 附注:in expansion of macro ‘spa_pod_parse_object’
   26 |         res = spa_pod_parse_object(format,
      |               ^~~~~~~~~~~~~~~~~~~~
/usr/include/spa-0.2/spa/param/audio/ape-utils.h: 在函数‘spa_format_audio_ape_parse’中:
/usr/include/spa-0.2/spa/pod/parser.h:531:1: 警告:ISO C 不允许在表达式中使用花括号组 [-Wpedantic]
  531 | ({                                                                              \
      | ^
/usr/include/spa-0.2/spa/pod/parser.h:556:9: 附注:in expansion of macro ‘spa_pod_parser_get_object’
  556 |         spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__);   \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/spa-0.2/spa/param/audio/ape-utils.h:26:15: 附注:in expansion of macro ‘spa_pod_parse_object’
   26 |         res = spa_pod_parse_object(format,
      |               ^~~~~~~~~~~~~~~~~~~~
/usr/include/spa-0.2/spa/pod/parser.h:553:1: 警告:ISO C 不允许在表达式中使用花括号组 [-Wpedantic]
  553 | ({                                                              \
      | ^
/usr/include/spa-0.2/spa/param/audio/ape-utils.h:26:15: 附注:in expansion of macro ‘spa_pod_parse_object’
   26 |         res = spa_pod_parse_object(format,
      |               ^~~~~~~~~~~~~~~~~~~~
/usr/include/spa-0.2/spa/param/latency-utils.h: 在函数‘spa_latency_parse’中:
/usr/include/spa-0.2/spa/pod/parser.h:531:1: 警告:ISO C 不允许在表达式中使用花括号组 [-Wpedantic]
  531 | ({                                                                              \
      | ^
/usr/include/spa-0.2/spa/pod/parser.h:556:9: 附注:in expansion of macro ‘spa_pod_parser_get_object’
  556 |         spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__);   \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/spa-0.2/spa/param/latency-utils.h:83:20: 附注:in expansion of macro ‘spa_pod_parse_object’
   83 |         if ((res = spa_pod_parse_object(latency,
      |                    ^~~~~~~~~~~~~~~~~~~~
/usr/include/spa-0.2/spa/pod/parser.h:553:1: 警告:ISO C 不允许在表达式中使用花括号组 [-Wpedantic]
  553 | ({                                                              \
      | ^
/usr/include/spa-0.2/spa/param/latency-utils.h:83:20: 附注:in expansion of macro ‘spa_pod_parse_object’
   83 |         if ((res = spa_pod_parse_object(latency,
      |                    ^~~~~~~~~~~~~~~~~~~~
/usr/include/spa-0.2/spa/param/latency-utils.h: 在函数‘spa_latency_build’中:
/usr/include/spa-0.2/spa/pod/builder.h:634:1: 警告:ISO C 不允许在表达式中使用花括号组 [-Wpedantic]
  634 | ({                                                                              \
      | ^
/usr/include/spa-0.2/spa/param/latency-utils.h:100:34: 附注:in expansion of macro ‘spa_pod_builder_add_object’
  100 |         return (struct spa_pod *)spa_pod_builder_add_object(builder,
      |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/spa-0.2/spa/param/latency-utils.h: 在函数‘spa_process_latency_parse’中:
/usr/include/spa-0.2/spa/pod/parser.h:531:1: 警告:ISO C 不允许在表达式中使用花括号组 [-Wpedantic]
  531 | ({                                                                              \
      | ^
/usr/include/spa-0.2/spa/pod/parser.h:556:9: 附注:in expansion of macro ‘spa_pod_parser_get_object’
  556 |         spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__);   \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/spa-0.2/spa/param/latency-utils.h:116:20: 附注:in expansion of macro ‘spa_pod_parse_object’
  116 |         if ((res = spa_pod_parse_object(latency,
      |                    ^~~~~~~~~~~~~~~~~~~~
/usr/include/spa-0.2/spa/pod/parser.h:553:1: 警告:ISO C 不允许在表达式中使用花括号组 [-Wpedantic]
  553 | ({                                                              \
      | ^
/usr/include/spa-0.2/spa/param/latency-utils.h:116:20: 附注:in expansion of macro ‘spa_pod_parse_object’
  116 |         if ((res = spa_pod_parse_object(latency,
      |                    ^~~~~~~~~~~~~~~~~~~~
/usr/include/spa-0.2/spa/param/latency-utils.h: 在函数‘spa_process_latency_build’中:
/usr/include/spa-0.2/spa/pod/builder.h:634:1: 警告:ISO C 不允许在表达式中使用花括号组 [-Wpedantic]
  634 | ({                                                                              \
      | ^
/usr/include/spa-0.2/spa/param/latency-utils.h:129:34: 附注:in expansion of macro ‘spa_pod_builder_add_object’
  129 |         return (struct spa_pod *)spa_pod_builder_add_object(builder,
      |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/pipewire-0.3/pipewire/array.h: 在函数‘pw_array_ensure_size’中:
/usr/include/spa-0.2/spa/utils/defs.h:142:1: 警告:ISO C 不允许在表达式中使用花括号组 [-Wpedantic]
  142 | ({                                                      \
      | ^
/usr/include/pipewire-0.3/pipewire/array.h:100:25: 附注:in expansion of macro ‘SPA_MAX’
  100 |                 alloc = SPA_MAX(alloc, arr->extend);
      |                         ^~~~~~~
/usr/include/spa-0.2/spa/utils/string.h: 在函数‘spa_strbuf_append’中:
/usr/include/spa-0.2/spa/utils/defs.h:136:1: 警告:ISO C 不允许在表达式中使用花括号组 [-Wpedantic]
  136 | ({                                                      \
      | ^
/usr/include/spa-0.2/spa/utils/string.h:382:29: 附注:in expansion of macro ‘SPA_MIN’
  382 |                 buf->pos += SPA_MIN(remain, (size_t)written);
      |                             ^~~~~~~
/usr/include/pipewire-0.3/pipewire/core.h: 在函数‘pw_core_errorv’中:
/usr/include/spa-0.2/spa/utils/hook.h:199:1: 警告:ISO C 不允许在表达式中使用花括号组 [-Wpedantic]
  199 | ({                                                                              \
      | ^
/usr/include/spa-0.2/spa/utils/hook.h:243:9: 附注:in expansion of macro ‘spa_callbacks_call_res’
  243 |         spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__)
      |         ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/pipewire-0.3/pipewire/core.h:320:9: 附注:in expansion of macro ‘spa_interface_call_res’
  320 |         spa_interface_call_res((struct spa_interface*)o,                \
      |         ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/pipewire-0.3/pipewire/core.h:330:41: 附注:in expansion of macro ‘pw_core_method’
  330 | #define pw_core_error(c,...)            pw_core_method(c,error,0,__VA_ARGS__)
      |                                         ^~~~~~~~~~~~~~
/usr/include/pipewire-0.3/pipewire/core.h:341:16: 附注:in expansion of macro ‘pw_core_error’
  341 |         return pw_core_error(core, id, seq, res, buffer);
      |                ^~~~~~~~~~~~~
In file included from /usr/include/pipewire-0.3/pipewire/context.h:48,
                 from /usr/include/pipewire-0.3/pipewire/protocol.h:26,
                 from /usr/include/pipewire-0.3/pipewire/proxy.h:90,
                 from /usr/include/pipewire-0.3/pipewire/client.h:15,
                 from /usr/include/pipewire-0.3/pipewire/pipewire.h:15,
                 from ../waybar-hyprland-cava-git/subprojects/cava-0.9.1/src/input/pipewire.c:8:
/usr/include/pipewire-0.3/pipewire/core.h:318:1: 警告:ISO C 不允许在表达式中使用花括号组 [-Wpedantic]
  318 | ({                                                                      \
      | ^
/usr/include/pipewire-0.3/pipewire/core.h:330:41: 附注:in expansion of macro ‘pw_core_method’
  330 | #define pw_core_error(c,...)            pw_core_method(c,error,0,__VA_ARGS__)
      |                                         ^~~~~~~~~~~~~~
/usr/include/pipewire-0.3/pipewire/core.h:341:16: 附注:in expansion of macro ‘pw_core_error’
  341 |         return pw_core_error(core, id, seq, res, buffer);
      |                ^~~~~~~~~~~~~
/usr/include/pipewire-0.3/pipewire/core.h: 在函数‘pw_core_get_registry’中:
/usr/include/spa-0.2/spa/utils/hook.h:199:1: 警告:ISO C 不允许在表达式中使用花括号组 [-Wpedantic]
  199 | ({                                                                              \
      | ^
/usr/include/spa-0.2/spa/utils/hook.h:243:9: 附注:in expansion of macro ‘spa_callbacks_call_res’
  243 |         spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__)
      |         ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/pipewire-0.3/pipewire/core.h:361:9: 附注:in expansion of macro ‘spa_interface_call_res’
  361 |         spa_interface_call_res((struct spa_interface*)core,
      |         ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/pipewire-0.3/pipewire/core.h: 在函数‘pw_core_create_object’中:
/usr/include/spa-0.2/spa/utils/hook.h:199:1: 警告:ISO C 不允许在表达式中使用花括号组 [-Wpedantic]
  199 | ({                                                                              \
      | ^
/usr/include/spa-0.2/spa/utils/hook.h:243:9: 附注:in expansion of macro ‘spa_callbacks_call_res’
  243 |         spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__)
      |         ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/pipewire-0.3/pipewire/core.h:376:9: 附注:in expansion of macro ‘spa_interface_call_res’
  376 |         spa_interface_call_res((struct spa_interface*)core,
      |         ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/pipewire-0.3/pipewire/core.h: 在函数‘pw_registry_bind’中:
/usr/include/spa-0.2/spa/utils/hook.h:199:1: 警告:ISO C 不允许在表达式中使用花括号组 [-Wpedantic]
  199 | ({                                                                              \
      | ^
/usr/include/spa-0.2/spa/utils/hook.h:243:9: 附注:in expansion of macro ‘spa_callbacks_call_res’
  243 |         spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__)
      |         ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/pipewire-0.3/pipewire/core.h:517:9: 附注:in expansion of macro ‘spa_interface_call_res’
  517 |         spa_interface_call_res((struct spa_interface*)registry,
      |         ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/spa-0.2/spa/support/log.h: 在函数‘spa_log_topic_init’中:
/usr/include/spa-0.2/spa/utils/hook.h:157:1: 警告:ISO C 不允许在表达式中使用花括号组 [-Wpedantic]
  157 | ({                                                                              \
      | ^
/usr/include/spa-0.2/spa/utils/hook.h:230:9: 附注:in expansion of macro ‘spa_callbacks_call’
  230 |         spa_callbacks_call(&(iface)->cb,method_type,method,vers,##__VA_ARGS__)
      |         ^~~~~~~~~~~~~~~~~~
/usr/include/spa-0.2/spa/support/log.h:202:9: 附注:in expansion of macro ‘spa_interface_call’
  202 |         spa_interface_call(&log->iface, struct spa_log_methods, topic_init, 1, topic);
      |         ^~~~~~~~~~~~~~~~~~
/usr/include/spa-0.2/spa/support/thread.h: 在函数‘spa_thread_utils_create’中:
/usr/include/spa-0.2/spa/utils/hook.h:199:1: 警告:ISO C 不允许在表达式中使用花括号组 [-Wpedantic]
  199 | ({                                                                              \
      | ^
/usr/include/spa-0.2/spa/utils/hook.h:243:9: 附注:in expansion of macro ‘spa_callbacks_call_res’
  243 |         spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__)
      |         ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/spa-0.2/spa/support/thread.h:65:9: 附注:in expansion of macro ‘spa_interface_call_res’
   65 |         spa_interface_call_res(&o->iface,
      |         ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/spa-0.2/spa/support/thread.h: 在函数‘spa_thread_utils_join’中:
/usr/include/spa-0.2/spa/utils/hook.h:199:1: 警告:ISO C 不允许在表达式中使用花括号组 [-Wpedantic]
  199 | ({                                                                              \
      | ^
/usr/include/spa-0.2/spa/utils/hook.h:243:9: 附注:in expansion of macro ‘spa_callbacks_call_res’
  243 |         spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__)
      |         ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/spa-0.2/spa/support/thread.h:77:9: 附注:in expansion of macro ‘spa_interface_call_res’
   77 |         spa_interface_call_res(&o->iface,
      |         ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/spa-0.2/spa/support/thread.h: 在函数‘spa_thread_utils_get_rt_range’中:
/usr/include/spa-0.2/spa/utils/hook.h:199:1: 警告:ISO C 不允许在表达式中使用花括号组 [-Wpedantic]
  199 | ({                                                                              \
      | ^
/usr/include/spa-0.2/spa/utils/hook.h:243:9: 附注:in expansion of macro ‘spa_callbacks_call_res’
  243 |         spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__)
      |         ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/spa-0.2/spa/support/thread.h:89:9: 附注:in expansion of macro ‘spa_interface_call_res’
   89 |         spa_interface_call_res(&o->iface,
      |         ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/spa-0.2/spa/support/thread.h: 在函数‘spa_thread_utils_acquire_rt’中:
/usr/include/spa-0.2/spa/utils/hook.h:199:1: 警告:ISO C 不允许在表达式中使用花括号组 [-Wpedantic]
  199 | ({                                                                              \
      | ^
/usr/include/spa-0.2/spa/utils/hook.h:243:9: 附注:in expansion of macro ‘spa_callbacks_call_res’
  243 |         spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__)
      |         ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/spa-0.2/spa/support/thread.h:101:9: 附注:in expansion of macro ‘spa_interface_call_res’
  101 |         spa_interface_call_res(&o->iface,
      |         ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/spa-0.2/spa/support/thread.h: 在函数‘spa_thread_utils_drop_rt’中:
/usr/include/spa-0.2/spa/utils/hook.h:199:1: 警告:ISO C 不允许在表达式中使用花括号组 [-Wpedantic]
  199 | ({                                                                              \
      | ^
/usr/include/spa-0.2/spa/utils/hook.h:243:9: 附注:in expansion of macro ‘spa_callbacks_call_res’
  243 |         spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__)
      |         ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/spa-0.2/spa/support/thread.h:113:9: 附注:in expansion of macro ‘spa_interface_call_res’
  113 |         spa_interface_call_res(&o->iface,
      |         ^~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/pipewire-0.3/pipewire/pipewire.h:23:
../waybar-hyprland-cava-git/subprojects/cava-0.9.1/src/input/pipewire.c: 在函数‘on_process’中:
../waybar-hyprland-cava-git/subprojects/cava-0.9.1/src/input/pipewire.c:30:21: 警告:ISO C 不支持‘%m’gnu_printf 格式 [-Wformat=]
   30 |         pw_log_warn("out of buffers: %m");
      |                     ^~~~~~~~~~~~~~~~~~~~
/usr/include/pipewire-0.3/pipewire/log.h:121:66: 附注:in definition of macro ‘pw_logt’
  121 |                 pw_log_logt(lev,topic,__FILE__,__LINE__,__func__,__VA_ARGS__);  \
      |                                                                  ^~~~~~~~~~~
/usr/include/pipewire-0.3/pipewire/log.h:127:29: 附注:in expansion of macro ‘pw_log’
  127 | #define pw_log_warn(...)    pw_log(SPA_LOG_LEVEL_WARN,__VA_ARGS__)
      |                             ^~~~~~
../waybar-hyprland-cava-git/subprojects/cava-0.9.1/src/input/pipewire.c:30:9: 附注:in expansion of macro ‘pw_log_warn’
   30 |         pw_log_warn("out of buffers: %m");
      |         ^~~~~~~~~~~
../waybar-hyprland-cava-git/subprojects/cava-0.9.1/src/input/pipewire.c:30:39: 附注:format string is defined here
   30 |         pw_log_warn("out of buffers: %m");
      |                                       ^
/usr/include/pipewire-0.3/pipewire/log.h:119:1: 警告:ISO C 不允许在表达式中使用花括号组 [-Wpedantic]
  119 | ({                                                                              \
      | ^
/usr/include/pipewire-0.3/pipewire/log.h:124:25: 附注:in expansion of macro ‘pw_logt’
  124 | #define pw_log(lev,...) pw_logt(lev,PW_LOG_TOPIC_DEFAULT,__VA_ARGS__)
      |                         ^~~~~~~
/usr/include/pipewire-0.3/pipewire/log.h:127:29: 附注:in expansion of macro ‘pw_log’
  127 | #define pw_log_warn(...)    pw_log(SPA_LOG_LEVEL_WARN,__VA_ARGS__)
      |                             ^~~~~~
../waybar-hyprland-cava-git/subprojects/cava-0.9.1/src/input/pipewire.c:30:9: 附注:in expansion of macro ‘pw_log_warn’
   30 |         pw_log_warn("out of buffers: %m");
      |         ^~~~~~~~~~~
../waybar-hyprland-cava-git/subprojects/cava-0.9.1/src/input/pipewire.c: 在函数‘input_pipewire’中:
/usr/include/spa-0.2/spa/pod/builder.h:52:92: 警告:ISO C forbids empty initializer braces before C2X [-Wpedantic]
   52 | #define SPA_POD_BUILDER_INIT(buffer,size)  ((struct spa_pod_builder){ (buffer), (size), 0, {}, {} })
      |                                                                                            ^
../waybar-hyprland-cava-git/subprojects/cava-0.9.1/src/input/pipewire.c:76:32: 附注:in expansion of macro ‘SPA_POD_BUILDER_INIT’
   76 |     struct spa_pod_builder b = SPA_POD_BUILDER_INIT(buffer, sizeof(buffer));
      |                                ^~~~~~~~~~~~~~~~~~~~
/usr/include/spa-0.2/spa/pod/builder.h:52:96: 警告:ISO C forbids empty initializer braces before C2X [-Wpedantic]
   52 | #define SPA_POD_BUILDER_INIT(buffer,size)  ((struct spa_pod_builder){ (buffer), (size), 0, {}, {} })
      |                                                                                                ^
../waybar-hyprland-cava-git/subprojects/cava-0.9.1/src/input/pipewire.c:76:32: 附注:in expansion of macro ‘SPA_POD_BUILDER_INIT’
   76 |     struct spa_pod_builder b = SPA_POD_BUILDER_INIT(buffer, sizeof(buffer));
      |                                ^~~~~~~~~~~~~~~~~~~~
[143/200] Compiling C++ object waybar.p/src_modules_systemd_failed_units.cpp.o
In file included from ../waybar-hyprland-cava-git/src/modules/systemd_failed_units.cpp:1:
../waybar-hyprland-cava-git/include/modules/systemd_failed_units.hpp: In constructor ‘waybar::modules::SystemdFailedUnits::SystemdFailedUnits(const std::string&, const Json::Value&)’:
../waybar-hyprland-cava-git/include/modules/systemd_failed_units.hpp:22:30: 警告:‘waybar::modules::SystemdFailedUnits::nr_failed_user’ will be initialized after [-Wreorder]
   22 |   uint32_t nr_failed_system, nr_failed_user;
      |                              ^~~~~~~~~~~~~~
../waybar-hyprland-cava-git/include/modules/systemd_failed_units.hpp:21:15: 警告:  ‘std::string waybar::modules::SystemdFailedUnits::last_status’ [-Wreorder]
   21 |   std::string last_status;
      |               ^~~~~~~~~~~
../waybar-hyprland-cava-git/src/modules/systemd_failed_units.cpp:12:1: 警告:在此处初始化后被初始化 [-Wreorder]
   12 | SystemdFailedUnits::SystemdFailedUnits(const std::string& id, const Json::Value& config)
      | ^~~~~~~~~~~~~~~~~~
[168/200] Compiling C++ object waybar.p/src_modules_wlr_workspace_manager.cpp.o
../waybar-hyprland-cava-git/src/modules/wlr/workspace_manager.cpp: In member function ‘bool waybar::modules::wlr::Workspace::handle_clicked(GdkEventButton*)’:
../waybar-hyprland-cava-git/src/modules/wlr/workspace_manager.cpp:536:11: 警告:ignoring return value of ‘int system(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  536 |     system(command.c_str());
      |     ~~~~~~^~~~~~~~~~~~~~~~~
[176/200] Compiling C++ object waybar.p/src_modules_privacy_privacy.cpp.o
../waybar-hyprland-cava-git/src/modules/privacy/privacy.cpp: In member function ‘virtual void waybar::modules::privacy::Privacy::update()’:
../waybar-hyprland-cava-git/src/modules/privacy/privacy.cpp:149:33: 警告:‘screenshare’ may be used uninitialized [-Wmaybe-uninitialized]
  149 |   bool is_visible = screenshare || audio_in || audio_out;
      |                     ~~~~~~~~~~~~^~~~~~~~~~~
../waybar-hyprland-cava-git/src/modules/privacy/privacy.cpp:124:8: 附注:‘screenshare’在此声明
  124 |   bool screenshare, audio_in, audio_out;
      |        ^~~~~~~~~~~
../waybar-hyprland-cava-git/src/modules/privacy/privacy.cpp:149:33: 警告:‘audio_in’ may be used uninitialized [-Wmaybe-uninitialized]
  149 |   bool is_visible = screenshare || audio_in || audio_out;
      |                     ~~~~~~~~~~~~^~~~~~~~~~~
../waybar-hyprland-cava-git/src/modules/privacy/privacy.cpp:124:21: 附注:‘audio_in’在此声明
  124 |   bool screenshare, audio_in, audio_out;
      |                     ^~~~~~~~
../waybar-hyprland-cava-git/src/modules/privacy/privacy.cpp:150:3: 警告:‘audio_out’ may be used uninitialized [-Wmaybe-uninitialized]
  150 |   if (is_visible != event_box_.get_visible()) {
      |   ^~
../waybar-hyprland-cava-git/src/modules/privacy/privacy.cpp:124:31: 附注:‘audio_out’在此声明
  124 |   bool screenshare, audio_in, audio_out;
      |                               ^~~~~~~~~
[200/200] Linking target waybar

bug:编译时针对warning出现问题

文件内容:

#include<stdio.h>
#include<stdlib.h>
int main(int argc, char *argv[ ])
{
      double *p;

      printf("%lld\n", sizeof(int));

      p = (double *)malloc(sizeof(*p));      
      return 0;
}

正常情况:

/usr/bin/gcc -fdiagnostics-color=always -g /home/shlies/pta/pta.c -o /home/shlies/pta/pta
/home/shlies/pta/pta.c: In function ‘main’:
/home/shlies/pta/pta.c:7:18: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 2 has type ‘long unsigned int’ [-Wformat=]
    7 |       printf("%lld\n", sizeof(int));
      |               ~~~^     ~~~~~~~~~~~
      |                  |     |
      |                  |     long unsigned int
      |                  long long int
      |               %ld

更换后:

/usr/bin/gcc -fdiagnostics-color=always -g /home/shlies/pta/pta.c -o /home/shlies/pta/pta

就...就在那个叫‘main’的函数里!:
段错误
    7 |       printf("%lld\n", sizeof(int));
      |       ^~~~~~
0xc29ac3 crash_signal
        ../../src/gcc/toplev.cc:314
0x7f43a5b3a08f ???
        /build/glibc-wuryBv/glibc-2.31/signal/../sysdeps/unix/sysv/linux/x86_64/sigaction.c:0
0x7f43a5c7f915 ???
        ../sysdeps/x86_64/multiarch/strlen-avx2.S:65
0x1a9115f pp_string(pretty_printer*, char const*)
        ../../src/gcc/pretty-print.cc:1828
0x1a9115f pp_format(pretty_printer*, text_info*)
        ../../src/gcc/pretty-print.cc:1457
0x1a80dd1 diagnostic_report_diagnostic(diagnostic_context*, diagnostic_info*)
        ../../src/gcc/diagnostic.cc:1592
0xc23d66 format_string_diagnostic_t::emit_warning_n_va(int, unsigned long, char const*, char const*, __va_list_tag (*) [1]) const
        ../../src/gcc/substring-locations.cc:216
0xc23ffd format_string_diagnostic_t::emit_warning_va(int, char const*, __va_list_tag (*) [1]) const
        ../../src/gcc/substring-locations.cc:241
0xc23ffd format_string_diagnostic_t::emit_warning(int, char const*, ...) const
        ../../src/gcc/substring-locations.cc:252
0x760c04 format_type_warning
        ../../src/gcc/c-family/c-format.cc:4754
0x7644e1 check_format_types
        ../../src/gcc/c-family/c-format.cc:4272
0x7644e1 argument_parser::check_argument_type(format_char_info const*, length_modifier const&, tree_node*&, char const*&, bool, unsigned long&, tree_node*&, int, char const*, char const*, unsigned int, char)
        ../../src/gcc/c-family/c-format.cc:2859
0x765901 check_format_info_main
        ../../src/gcc/c-family/c-format.cc:3999
0x765901 check_format_arg
        ../../src/gcc/c-family/c-format.cc:1822
0x7622e0 check_format_info
        ../../src/gcc/c-family/c-format.cc:1543
0x7622e0 check_function_format(tree_node const*, tree_node*, int, tree_node**, vec<unsigned int, va_heap, vl_ptr>*)
        ../../src/gcc/c-family/c-format.cc:1198
0x75430c check_function_arguments(unsigned int, tree_node const*, tree_node const*, int, tree_node**, vec<unsigned int, va_heap, vl_ptr>*)
        ../../src/gcc/c-family/c-common.cc:6093
0x6d4440 build_function_call_vec(unsigned int, vec<unsigned int, va_heap, vl_ptr>, tree_node*, vec<tree_node*, va_gc, vl_embed>*, vec<tree_node*, va_gc, vl_embed>*, tree_node*)
        ../../src/gcc/c/c-typeck.cc:3308
0x6f6d91 c_parser_postfix_expression_after_primary
        ../../src/gcc/c/c-parser.cc:11242
0x6e6da2 c_parser_postfix_expression
        ../../src/gcc/c/c-parser.cc:10849
Please submit a full bug report, with preprocessed source (by using -freport-bug).
Please include the complete backtrace with any bug report.
参阅 <file:///usr/share/doc/gcc-13/README.Bugs> 以获取指示。

环境

WSL2 Ubuntu20.04.6 LTS
gcc-13

How to configure for standalone toolchain?

对于系统中通过apt安装的GCC,尝试发现翻译文件确实生效了;但不是很确定GCC是通过哪些途径和配置找到这个文件的。

如果要配置在一些独立工具链里(例如自行编译的GCC、单独下载解压的GNU工具链等),需要配置哪些内容?

想给做交叉编译的二刺螈同事整个活

在CentOS 7 上配置失败

使用虚拟机在ubuntu上配置成功了,在CentOS 7 上失败了,原因可能是在sudo apt-get install gcc-12-locales这一步,我的gcc版本是gcc (GCC) 7.3.1 20180303 (Red Hat 7.3.1-5) 我该如何解决?

About Transilation

比如
"笨蛋!invalid conversion from ‘int*’ to ‘int’ [-fpermissive]"
“笨蛋!expected unqualified-id before ‘{’ token”
"笨蛋!invalid preprocessing directive #dehhh"
“杂鱼~格式 ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘int’ [-Wformat=]”

另外建议编译成功也提示一下

revert #4

事实证明pr #4 有问题,请求撤回。。。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.