Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't build on FreeBSD-14-RELEASE #5148

Open
k2662 opened this issue Mar 11, 2024 · 1 comment
Open

Can't build on FreeBSD-14-RELEASE #5148

k2662 opened this issue Mar 11, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@k2662
Copy link

k2662 commented Mar 11, 2024

  • OS: FreeBSD-14
  • Compiler: clang 17
  • Rust version: 1.76

running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "zlib" "-I" "libpng" "-I" "/home/kai/wezterm/target/release/build/freetype-cfa201cf5aa6eb96/out/png-build" "-fno-stack-check" "-Wno-deprecated-non-prototype" "-DHAVE_SYS_TYPES_H" "-DHAVE_STDINT_H" "-DHAVE_STDDEF_H" "-D_LARGEFILE64_SOURCE=1" "-o" "/home/kai/wezterm/target/release/build/freetype-cfa201cf5aa6eb96/out/png-build/libpng/pngwutil.o" "-c" "libpng/pngwutil.c"
exit status: 0
exit status: 0
exit status: 0
exit status: 0
exit status: 0
exit status: 0
exit status: 0
exit status: 0
exit status: 0
exit status: 0
exit status: 0
exit status: 0
exit status: 0
exit status: 0
exit status: 0
cargo:rerun-if-env-changed=AR_x86_64-unknown-freebsd
AR_x86_64-unknown-freebsd = None
cargo:rerun-if-env-changed=AR_x86_64_unknown_freebsd
AR_x86_64_unknown_freebsd = None
cargo:rerun-if-env-changed=HOST_AR
HOST_AR = None
cargo:rerun-if-env-changed=AR
AR = None
cargo:rerun-if-env-changed=ARFLAGS_x86_64-unknown-freebsd
ARFLAGS_x86_64-unknown-freebsd = None
cargo:rerun-if-env-changed=ARFLAGS_x86_64_unknown_freebsd
ARFLAGS_x86_64_unknown_freebsd = None
cargo:rerun-if-env-changed=HOST_ARFLAGS
HOST_ARFLAGS = None
cargo:rerun-if-env-changed=ARFLAGS
ARFLAGS = None
running: ZERO_AR_DATE="1" "ar" "cq" "/home/kai/wezterm/target/release/build/freetype-cfa201cf5aa6eb96/out/png-build/libpng.a" "/home/kai/wezterm/target/release/build/freetype-cfa201cf5aa6eb96/out/png-build/libpng/png.o" "/home/kai/wezterm/target/release/build/freetype-cfa201cf5aa6eb96/out/png-build/libpng/pngerror.o" "/home/kai/wezterm/target/release/build/freetype-cfa201cf5aa6eb96/out/png-build/libpng/pngget.o" "/home/kai/wezterm/target/release/build/freetype-cfa201cf5aa6eb96/out/png-build/libpng/pngmem.o" "/home/kai/wezterm/target/release/build/freetype-cfa201cf5aa6eb96/out/png-build/libpng/pngpread.o" "/home/kai/wezterm/target/release/build/freetype-cfa201cf5aa6eb96/out/png-build/libpng/pngread.o" "/home/kai/wezterm/target/release/build/freetype-cfa201cf5aa6eb96/out/png-build/libpng/pngrio.o" "/home/kai/wezterm/target/release/build/freetype-cfa201cf5aa6eb96/out/png-build/libpng/pngrtran.o" "/home/kai/wezterm/target/release/build/freetype-cfa201cf5aa6eb96/out/png-build/libpng/pngrutil.o" "/home/kai/wezterm/target/release/build/freetype-cfa201cf5aa6eb96/out/png-build/libpng/pngset.o" "/home/kai/wezterm/target/release/build/freetype-cfa201cf5aa6eb96/out/png-build/libpng/pngtrans.o" "/home/kai/wezterm/target/release/build/freetype-cfa201cf5aa6eb96/out/png-build/libpng/pngwio.o" "/home/kai/wezterm/target/release/build/freetype-cfa201cf5aa6eb96/out/png-build/libpng/pngwrite.o" "/home/kai/wezterm/target/release/build/freetype-cfa201cf5aa6eb96/out/png-build/libpng/pngwtran.o" "/home/kai/wezterm/target/release/build/freetype-cfa201cf5aa6eb96/out/png-build/libpng/pngwutil.o"
exit status: 0
running: "ar" "s" "/home/kai/wezterm/target/release/build/freetype-cfa201cf5aa6eb96/out/png-build/libpng.a"
exit status: 0
cargo:rustc-link-lib=static=png
cargo:rustc-link-search=native=/home/kai/wezterm/target/release/build/freetype-cfa201cf5aa6eb96/out/png-build

--- stderr
thread 'main' panicked at deps/freetype/build.rs:134:14:
called Result::unwrap() on an Err value: Os { code: 2, kind: NotFound, message: "No such file or directory" }
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

@k2662 k2662 added the bug Something isn't working label Mar 11, 2024
@memL0rz
Copy link

memL0rz commented Jul 15, 2024

im running FreeBSD 14.1-RELEASE and compiled Wezterm right now to look if it works.
It works. Maybe try new Release or try from Ports/ pkg install wezterm (its not the newest version)

My output:

........
Compiling window-funcs v0.1.0 (/home/fabian/wezterm-20240203-110809-5046fc22/lua-api-crates/window-funcs)
warning: `wezterm` (bin "wezterm") generated 2 warnings
warning: `wezterm-font` (lib) generated 6 warnings
warning: field `tab_id` is never read
  --> wezterm-gui/src/overlay/launcher.rs:40:9
   |
38 | pub struct LauncherTabEntry {
   |            ---------------- field in this struct
39 |     pub title: String,
40 |     pub tab_id: TabId,
   |         ^^^^^^
   |
   = note: `#[warn(dead_code)]` on by default
The process will require 870 MiB more sp
warning: field `pixel_height` is never read
   --> wezterm-gui/src/termwindow/mod.rs:265:9
    |
254 | pub struct PaneInformation {
    |            --------------- field in this struct
...
265 |     pub pixel_height: usize,
    |         ^^^^^^^^^^^^
    |
    = note: `PaneInformation` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
 KiB 233.8kB/s    00:01    
warning: field `line` is never read
  --> wezterm-gui/src/termwindow/render/mod.rs:76:9
   |
74 | pub struct LineQuadCacheValue {
   |            ------------------ field in this struct
75 |     /// For resolving hash collisions
76 |     pub line: Line,
   |         ^^^^
[13/23] Fetching binutils-2.40_5,1.pkg: 
warning: fields `stable_line_idx` and `cursor` are never read
  --> wezterm-gui/src/termwindow/render/mod.rs:89:9
   |
85 | pub struct LineToElementParams<'a> {
   |            ------------------- fields in this struct
...
89 |     pub stable_line_idx: StableRowIndex,
   |         ^^^^^^^^^^^^^^^
90 |     pub window_is_transparent: bool,
91 |     pub cursor: &'a StableCursorPosition,
   |         ^^^^^^
[22/23] Fetching mpc-1.3.1_1.pkg: 100%  
warning: fields `attrs` and `style` are never read
   --> wezterm-gui/src/termwindow/render/mod.rs:113:9
    |
112 | pub struct LineToElementShape {
    |            ------------------ fields in this struct
113 |     pub attrs: CellAttributes,
    |         ^^^^^
114 |     pub style: TextStyle,
    |         ^^^^^
[4/23] Installing spirv-llvm-translator-
warning: `wezterm-gui` (bin "wezterm-gui") generated 5 warnings
    Finished `release` profile [optimized] target(s) in 5m 30s

Build from Source

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants