View previous topic :: View next topic |
Author |
Message |
Hammett Apprentice
Joined: 26 Jan 2005 Posts: 241 Location: Barcelona, Catalonia
|
Posted: Fri Dec 27, 2024 7:02 pm Post subject: Ghostty compile fail |
|
|
Hi all,
I am trying to compile the Ghostty terminal, but I get a compile error in serveral places, but all with the same error message: Code: | aro does not support compiling C objects yet |
If I am not mistaken, aro is a zig compiler for C, so this error is a bit awkward to me....
EDIT: I have been able to compile Ghostty with dev-lang/zig-bin but not with dev-lang/zig _________________ I don't fear the people. I fear the demon inside them. |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20539
|
Posted: Fri Dec 27, 2024 7:16 pm Post subject: |
|
|
Given that the website indicates it is still in private beta, help could be a challenge.
That said, providing additional information would be useful to would-be helpers.
EDIT: Unmoved back to Portage & Programming. Apparently I'm blind and can't type. _________________ Quis separabit? Quo animo?
Last edited by pjp on Sat Dec 28, 2024 7:09 pm; edited 1 time in total |
|
Back to top |
|
|
Banana Moderator
Joined: 21 May 2004 Posts: 1811 Location: Germany
|
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20539
|
Posted: Sat Dec 28, 2024 7:11 pm Post subject: |
|
|
Wow, I thought it was. I searched and looked in the x11-terms directory and didn't see it. Either my failing typing skills are leading to blindness, or vice-versa. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
Zucca Moderator
Joined: 14 Jun 2007 Posts: 3791 Location: Rasi, Finland
|
Posted: Sat Dec 28, 2024 7:14 pm Post subject: |
|
|
I needed to sync to make it visible. So the ebuild addition to ::gentoo is quite recent, I think. _________________ ..: Zucca :..
My gentoo installs: | init=/sbin/openrc-init
-systemd -logind -elogind seatd |
Quote: | I am NaN! I am a man! |
|
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20539
|
Posted: Sat Dec 28, 2024 7:47 pm Post subject: |
|
|
That makes me feel better since I did sync this morning. And I did look in the directory more than once. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
Banana Moderator
Joined: 21 May 2004 Posts: 1811 Location: Germany
|
|
Back to top |
|
|
Zucca Moderator
Joined: 14 Jun 2007 Posts: 3791 Location: Rasi, Finland
|
Posted: Sat Dec 28, 2024 9:59 pm Post subject: |
|
|
Well... Let's see if I can reproduce the failure: Code: | [ebuild N ~] app-eselect/eselect-zig-1-r1::gentoo 0 KiB
[ebuild N ~] dev-lang/zig-0.13.0-r2:0.13::gentoo USE="llvm -doc -verify-sig" LLVM_SLOT="18" 16863 KiB
[ebuild N ~] x11-terms/ghostty-1.0.0-r1::gentoo USE="glfw man system-fontconfig system-freetype system-glslang system-harfbuzz system-libpng system-libxml2 system-oniguruma system-zlib -adwaita -gtk" 190170 KiB | ... I suspect compiling zig does take some time...
EDIT: Wait? How does terminal emulator sources take 190MB of disk space? _________________ ..: Zucca :..
My gentoo installs: | init=/sbin/openrc-init
-systemd -logind -elogind seatd |
Quote: | I am NaN! I am a man! |
|
|
Back to top |
|
|
Ionen Developer
Joined: 06 Dec 2018 Posts: 2887
|
Posted: Sat Dec 28, 2024 10:39 pm Post subject: |
|
|
Zucca wrote: | Well... Let's see if I can reproduce the failure: Code: | [ebuild N ~] app-eselect/eselect-zig-1-r1::gentoo 0 KiB
[ebuild N ~] dev-lang/zig-0.13.0-r2:0.13::gentoo USE="llvm -doc -verify-sig" LLVM_SLOT="18" 16863 KiB
[ebuild N ~] x11-terms/ghostty-1.0.0-r1::gentoo USE="glfw man system-fontconfig system-freetype system-glslang system-harfbuzz system-libpng system-libxml2 system-oniguruma system-zlib -adwaita -gtk" 190170 KiB | ... I suspect compiling zig does take some time...
EDIT: Wait? How does terminal emulator sources take 190MB of disk space? | Similarly to Rust w/ crates and Go deps, it's fetching everything else that it uses and building it e.g. freetype (there are a few things it can use the system copy with through USE=system-* but it fetches the files either way, might be required like how cargo complaints if a unused crate is missing -- not familiar with zig's build system). Not that ghostty's tarball itself isn't pretty big too but that's ~60% the font/ directory's bundled fonts plus other assets.
wrt compilation time, there is a zig-bin that can be used but (unlike rust) it's not pulled by default.
...but on that note (in case haven't seen), the OP added this edit: Code: | EDIT: I have been able to compile Ghostty with dev-lang/zig-bin but not with dev-lang/zig | So if still wanted to reproduce, would need non-bin I assume. Imagine toolchain was broken for some reason rather than a ghostty-specific problem. |
|
Back to top |
|
|
Zucca Moderator
Joined: 14 Jun 2007 Posts: 3791 Location: Rasi, Finland
|
Posted: Sat Dec 28, 2024 11:07 pm Post subject: |
|
|
My compilation of ghostty went fine. It also runs fine, although it somehow defaults to US keyboard layout instead of what's being set in my system globally, finnish.
@Hammett: Please provide us the complete build.log. _________________ ..: Zucca :..
My gentoo installs: | init=/sbin/openrc-init
-systemd -logind -elogind seatd |
Quote: | I am NaN! I am a man! |
|
|
Back to top |
|
|
|