LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   odd problem at building qt5 on slackware64 current (https://www.linuxquestions.org/questions/slackware-14/odd-problem-at-building-qt5-on-slackware64-current-4175709061/)

andrew.46 03-13-2022 03:30 AM

Quote:

Originally Posted by franzen (Post 6337755)
A note to zram:
I use it on all my devices since some months, in a similar way Didier does(no udev invoked).
I have no swap-partition/file at all anymore, which especially is helpful on old devices(2gb ram) where e.g. firefox is unusable with swap on a harddisc.
I start zram via rc.zram in rc.S, just where the system-swap is enabled. This way it may be used additionally to harddisc-swap or even exclusive.

I am not convinced that I will be a heavy user of zram as the only time I have fallen short with physical RAM and a 4gib swap file has been compiling this version of QT5. So I have followed Didier's idea with no fstab changes, no udev rules and I do not set zram at startup. I start and stop the service manually, as required, via a root bash alias:

Code:

# Start and stop zram:
alias zramstart='/etc/rc.d/rc.swapinzram start'
alias zramstop='/etc/rc.d/rc.swapinzram stop'

A little clunky but it has worked well for me so far...

marav 03-13-2022 06:50 AM

Quote:

Originally Posted by andrew.46 (Post 6337753)
Finally with the aid of swapinzram (thanks Didier and Marav!) qt5 has built:

So all this time it was simply a memory issue? BTW Marav if you ever want to polish the SlackBuild I saw in passing that you created a place for the docs but no docs. Looks like only README.md.

Edit: I see what has happened, you have:

Code:

cp $CWD/README $PKG/usr/doc/${PRGNAM}-${VERSION}
where you should have:

Code:

cp $CWD/README.md $PKG/usr/doc/${PRGNAM}-${VERSION}
Edit: And I am a little curious as to how much actual RAM is required to compile this version of qt5 without swapping out? I am a little peeved that my own setup failed with physical RAM :(

Thx, this has been fixed

andrew.46 04-25-2022 02:07 AM

Interestingly enough I returned to compiling the Slackware qt5 package after some upgrades to my computer including a boost to 64gb RAM:

Code:

WARNING:  zero length file usr/include/qt5/QtXml/5.15.3/QtXml/private/qtxml-config_p.h
WARNING:  zero length file usr/lib64/qt5/qml/QtQuick/Controls/Styles/Flat/plugins.qmltypes

Slackware package /tmp/qt5-5.15.3_20220407_9b1efa0e-x86_64-1.txz created.


real    71m7.391s
user    1816m23.990s
sys    105m23.189s
root@ilium/home/andrew/ssd2/Slackware/slackware64-current/source/l/qt5#

So this was without using zram and I noted at the maximum a RAM usage of 75% of the available 64gb RAM. So that pretty much pegs the amount of memory required.

I replaced the thermal paste on the CPU / AIO while I was in there and this pleasingly allowed a cooler compile with a maximum CPU temp of about 50 degrees Celcius (122 degrees Fahrenheit).


All times are GMT -5. The time now is 11:01 AM.