Open retroflexivity opened 2 days ago
Hi @retroflexivity - can I check how much RAM your system has?
For the Telegram protocol nchat used the official tdlib which requires a bit of RAM - around ~3.5GB RAM to build using G++ and ~1.5GB RAM with clang++. If your RAM is around those sizes please see Building on Low Memory / RAM Systems or if you're only interested in WhatsApp support, you can disable Telegram protocol altogether - see Feature Flags.
It has 8 GB, I guess this should be enough? But I'll try
The manual for Arch says I should Change the
_install_modeto
slow``, but I don't see the parameter in PKGBUILD. Where do I put it?
8 GB should be enough, then it's not likely to be a memory problem, so ignore those suggestions I shared in the previous reply.
What command are you using to build / install nchat btw?
I've tried yay -S
and makepkg -s
. In fact, RAM usage does seem to reach 100%.
Is that yay -S nchat-git
or yay -S nchat
?
I suspect there could be some issue with the Arch packaging build script, I am not maintaining that myself, but I can try check its code.
If you need a quick workaround, building from source may work:
git clone https://github.com/d99kris/nchat && cd nchat
./make.sh deps
./make.sh build && ./make.sh install
The reason being that the source build script make.sh
tries to adjust the build memory usage based on system RAM and compiler in use.
Is that
yay -S nchat-git
oryay -S nchat
?
I'm pretty certain I've tried both.
I've just built it from source, it worked fine. Thank you
I've just built it from source, it worked fine. Thank you
Good to hear! 👍
I'll leave this issue open until I've checked if the AUR package PKGBUILD script can be updated to fix this.
hey! which one is more updated? the git one should be the latest and most upto-date right? but looks like the non git version is more updated? can you guide me on that? I'm talking about the aur packages btw
nchat-git
is the latest yes, it uses head of master branch from this source repository.
nchat
points to current stable release (generally released at the end of each quarter).
I am not 100% sure about Arch Linux AUR packaging, but I believe the Last Updated
fields in their respective pages (nchat and nchat-git) refers to when the package "formula" was updated. For nchat
I suspect it needs to be updated for every new stable release, but for nchat-git
it always points to just "latest", so it seldom needs to be updated (unless say the dependencies of nchat upstream has changed).
ah no worries, i was just confused as the git package showed v4.5 and stable showed v5.2
also i just installed the git package and didnt face any error
also i just installed the git package and didnt face any error
Ok thanks for the data point. The out of memory issue encountered by the OP is due to having less than 3.5 GB RAM per logical CPU core (or thread), required by tdlib (a nchat dependency). The AUR package scripts do not take into account this memory requirement. I'll check with the package maintainers if we can add handling for it.
weirdly enough my laptop also has 8 gb ram just like op, but idk about the cpu tho, mine might be better?
mine is i5-1135G7
Hi,
An error occurs while building on Arch.
The log is
I have no idea what it means, but I'll be glad to provide more details.
Environment: