Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Ghostty compile fail
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Hammett
Apprentice
Apprentice


Joined: 26 Jan 2005
Posts: 242
Location: Barcelona, Catalonia

PostPosted: Fri Dec 27, 2024 7:02 pm    Post subject: Ghostty compile fail Reply with quote

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
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20539

PostPosted: Fri Dec 27, 2024 7:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
Banana
Moderator
Moderator


Joined: 21 May 2004
Posts: 1811
Location: Germany

PostPosted: Sat Dec 28, 2024 9:26 am    Post subject: Reply with quote

ghostty itself is in ::gentoo https://packages.gentoo.org/packages/x11-terms/ghostty
and zig too:

https://packages.gentoo.org/packages/dev-lang/zig
https://packages.gentoo.org/packages/dev-lang/zig-bin

But lets wait for the output of emerge --info and the exact command Hammett used to install ghostty. Hammett, please provide.
_________________
Forum Guidelines

PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20539

PostPosted: Sat Dec 28, 2024 7:11 pm    Post subject: Reply with quote

Banana wrote:
ghostty itself is in ::gentoo https://packages.gentoo.org/packages/x11-terms/ghostty.
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
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3796
Location: Rasi, Finland

PostPosted: Sat Dec 28, 2024 7:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20539

PostPosted: Sat Dec 28, 2024 7:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
Banana
Moderator
Moderator


Joined: 21 May 2004
Posts: 1811
Location: Germany

PostPosted: Sat Dec 28, 2024 8:56 pm    Post subject: Reply with quote

I got lucky since the package was really added very recently: https://gitweb.gentoo.org/repo/gentoo.git/log/x11-terms/ghostty
_________________
Forum Guidelines

PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3796
Location: Rasi, Finland

PostPosted: Sat Dec 28, 2024 9:59 pm    Post subject: Reply with quote

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
View user's profile Send private message
Ionen
Developer
Developer


Joined: 06 Dec 2018
Posts: 2887

PostPosted: Sat Dec 28, 2024 10:39 pm    Post subject: Reply with quote

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
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3796
Location: Rasi, Finland

PostPosted: Sat Dec 28, 2024 11:07 pm    Post subject: Reply with quote

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
View user's profile Send private message
Hammett
Apprentice
Apprentice


Joined: 26 Jan 2005
Posts: 242
Location: Barcelona, Catalonia

PostPosted: Sun Dec 29, 2024 4:04 pm    Post subject: Reply with quote

Hi,

I believe the issue lies more in zig other than ghostty, as there must be a difference between compiling zig and emerging zig-bin.

Could it be that zig-bin is compiled with LLVM support, and thus not requireing aro to compile the C code?
_________________
I don't fear the people. I fear the demon inside them.
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3796
Location: Rasi, Finland

PostPosted: Sun Dec 29, 2024 5:23 pm    Post subject: Reply with quote

Well... I had USE="llvm" and I didn't use zig-bin.

Wild guesses really without seeing the build.log and emerge --info.
_________________
..: Zucca :..

My gentoo installs:
init=/sbin/openrc-init
-systemd -logind -elogind seatd

Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum