You are not logged in.

#1 2020-10-13 21:00:23

Nivalderramas
Member
Registered: 2020-07-23
Posts: 10

System freezes when trying to compile aur packages

I'm trying to compile Rstudio desktop from aur, so I copy the repository and then  run "makepkg -si" but then bot the cpu and ram goes to 100% of usage and my pc get freezed so I must manually restart it.
I don't understand what's happening and how it works.
My hardware is:
ryzen 5 2600
8gb ram 300mhz
[EDIT]: I figured out that it does not get freezed but the processes as moving the mouse or updating the screen takes too long for respond (too long, even moving the mouse takes two minutes before seeing it on the screen)

Last edited by Nivalderramas (2020-10-13 21:48:27)

Offline

#2 2020-10-13 21:16:08

loqs
Member
Registered: 2014-03-06
Posts: 19,042

Re: System freezes when trying to compile aur packages

If you adjust the PKGBUILD as follows does the system still freeze?

diff --git a/PKGBUILD b/PKGBUILD
index d7f5134..3f5f31f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -91,6 +91,7 @@ build() {
                -DCMAKE_BUILD_TYPE=Release \
                -DQT_QMAKE_EXECUTABLE=/usr/bin/qmake-qt5 \
                -DCMAKE_INSTALL_PREFIX=/usr/lib/rstudio
+       make -j1
 }
 
 package() {

Offline

#3 2020-10-13 21:40:47

Nivalderramas
Member
Registered: 2020-07-23
Posts: 10

Re: System freezes when trying to compile aur packages

The file is equal, except for the line that says make -j1, if I append that line it gives me an error

Offline

#4 2020-10-13 21:45:01

loqs
Member
Registered: 2014-03-06
Posts: 19,042

Re: System freezes when trying to compile aur packages

What is the error?  Also please post the output of git diff.

Offline

#5 2020-10-13 21:56:28

Nivalderramas
Member
Registered: 2020-07-23
Posts: 10

Re: System freezes when trying to compile aur packages

Sorry ._. I edited bad the file, now it's compiling and it has not freezed until now, also the processor is just at 10% of it's capacity (which I don't know if it's good or not), can you explain me how that line works?
thanks a lot

Offline

#6 2020-10-13 22:04:02

loqs
Member
Registered: 2014-03-06
Posts: 19,042

Re: System freezes when trying to compile aur packages

make is the command responsible for building outputs.
rstudio-desktop did not call make in build() so the build was instead called by following in package()

	make DESTDIR="$pkgdir/" install

As the call it package does not specify a -j option,  make will use the default specified by MAKEFLAGS if that is set.  If that is not set then the change should not make any difference.

If the issue is triggered by running multiple make jobs in parallel that would indicate system instability under load.

Last edited by loqs (2020-10-13 22:04:15)

Offline

#7 2020-10-13 23:22:11

Nivalderramas
Member
Registered: 2020-07-23
Posts: 10

Re: System freezes when trying to compile aur packages

Well, at the end it gave an error, compiling error 2 aborting

Offline

#8 2020-10-13 23:31:59

loqs
Member
Registered: 2014-03-06
Posts: 19,042

Re: System freezes when trying to compile aur packages

Offline

Board footer

Powered by FluxBB