wez / wezterm

A GPU-accelerated cross-platform terminal emulator and multiplexer written by @wez and implemented in Rust
https://wezfurlong.org/wezterm/
Other
17.9k stars 801 forks source link

nix flake: unclosed delimiter #6250

Closed JostBrand closed 4 weeks ago

JostBrand commented 1 month ago

Build Environment:

Dependencies

Used the nix flake: nix run "github:wez/wezterm?dir=nix"

The build output

warning: cairo-sys-rs@0.18.0: In file included from /nix/store/wlavaybjbzgllhq11lib6qgr7rm8imgp-glibc-2.39-52-dev/include/string.h:548,
warning: cairo-sys-rs@0.18.0:                  from cairo/src/cairoint.h:57,
warning: cairo-sys-rs@0.18.0:                  from cairo/src/cairo-bentley-ottmann-rectangular.c:39:
warning: cairo-sys-rs@0.18.0: In function 'memset',
warning: cairo-sys-rs@0.18.0:     inlined from '_cairo_bentley_ottmann_tessellate_boxes' at cairo/src/cairo-bentley-ottmann-rectangular.c:812:2:
warning: cairo-sys-rs@0.18.0: /nix/store/wlavaybjbzgllhq11lib6qgr7rm8imgp-glibc-2.39-52-dev/include/bits/string_fortified.h:59:10: warning: '__builtin_memset' specified bound 18446744073575333904 exceeds maximum object size 9223372036854775807 [-Wstringop-overflow=]
string_fortified.h:59:10: warning: '__builtin_m>
warning: cairo-sys-rs@0.18.0:    59 |   return __builtin___memset_chk (__dest, __ch, __len,
warning: cairo-sys-rs@0.18.0:       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: cairo-sys-rs@0.18.0:    60 |                                  __glibc_objsize0 (__dest));
warning: cairo-sys-rs@0.18.0:       |                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: cairo-sys-rs@0.18.0: At top level:
warning: cairo-sys-rs@0.18.0: cc1: note: unrecognized command-line option '-Wno-parentheses-equality' may have been intended to silence earlier diagnost>
   Compiling cairo-rs v0.18.5
   Compiling wezterm-client v0.1.0 (/build/ybphgyimfwi2gl2q5hcpik1gyvnnyijr-source/wezterm-client)
   Compiling wezterm-mux-server-impl v0.1.0 (/build/ybphgyimfwi2gl2q5hcpik1gyvnnyijr-source/wezterm-mux-server-impl)
   Compiling rusqlite v0.30.0
   Compiling sqlite-cache v0.1.3 (https://github.com/losfair/sqlite-cache?rev=0961b50385ff189bb12742716331c05ed0bf7805#0961b503)
   Compiling sync-color-schemes v0.1.0 (/build/ybphgyimfwi2gl2q5hcpik1gyvnnyijr-source/sync-color-schemes)
   Compiling wezterm-font v0.1.0 (/build/ybphgyimfwi2gl2q5hcpik1gyvnnyijr-source/wezterm-font)
   Compiling window-funcs v0.1.0 (/build/ybphgyimfwi2gl2q5hcpik1gyvnnyijr-source/lua-api-crates/window-funcs)
error: this file contains an unclosed delimiter
     --> wezterm-gui/src/unicode_names.rs:95522:33
      |
9     | pub const NAMES: &'static [(&'static str, u32)] = &[
      |                                                    - unclosed delimiter
...
95522 |     ("GUJARATI LETTER DDHA", 272
      |     - unclosed delimiter        ^

error: could not compile `wezterm-gui` (bin "wezterm-gui") due to 1 previous error

Full log


The build error seems implausible since the section in the auto-generated file has a proper delimiter, just like any other row. However, the warning about memset suggests an overflow of some limit. During the build, my 32 GB RAM is not fully utilized. Did anyone else encounter this and can point me in the right direction.

Thanks!

JostBrand commented 4 weeks ago

One of the recent commits fixed it.