- Thread Starter
- #26
Built it just yesterday on laptop with just 4 cores and 8GB RAM. Takes time, but works. I think this is something else here. Bad hardware? RAM overload and swapping heavily?Building firefox takes a long time, Rust alone typically takes around 3-4 hours to complete on my "build" server (old Core i5, 4 threads, 16GB memory).
Yes, that's a lot more than enough. Maybe you can get some info what the "hanging" process is doing, e.g. with procstat(1)?[FONT=monospace]Zirias[/FONT] It is a powerful machine. Xeon W3245, 96Gb ecc. I am lucky.
It does not go into swap.
Built it just yesterday on laptop with just 4 cores and 8GB RAM. Takes time, but works. I think this is something else here. Bad hardware? RAM overload and swapping heavily?
Doubt it.Bad hardware
No.RAM overload
Nope.swapping heavily
Most definitely.I think this is something else here
make clean
and pkg autoremove
before so that it build all dependencies. time make
make 68497.78s user 2858.52s system 1306% cpu 1:31:01.67 total
procstat
.After installing, you can tryJust built on its own. Made sure tomake clean
andpkg autoremove
before so that it build all dependencies.
time make
make 68497.78s user 2858.52s system 1306% cpu 1:31:01.67 total
Next is to try again with one of the port managers and try @Ziras' suggestion ofprocstat
.
portversion -vR firefox
? In my case:[Reading data from pkg(8) ... - 1643 packages found - done]
aom-3.1.2 = up-to-date with port
atk-2.36.0 = up-to-date with port
cairo-1.17.4,3 = up-to-date with port
dav1d-0.9.2 = up-to-date with port
dbus-1.12.20_5 = up-to-date with port
dbus-glib-0.112 = up-to-date with port
desktop-file-utils-0.26 = up-to-date with port
ffmpeg-4.4_3,1 = up-to-date with port
firefox-92.0_2,2 = up-to-date with port
fontconfig-2.13.94_1,1 = up-to-date with port
freetype2-2.10.4 = up-to-date with port
gdk-pixbuf2-2.40.0 = up-to-date with port
gettext-runtime-0.21 = up-to-date with port
glib-2.68.4,2 = up-to-date with port
graphite2-1.3.14 = up-to-date with port
gtk3-3.24.30 = up-to-date with port
harfbuzz-2.9.0 = up-to-date with port
icu-69.1,1 = up-to-date with port
jpeg-turbo-2.0.6 = up-to-date with port
libX11-1.7.2,1 = up-to-date with port
libXcomposite-0.4.5,1 = up-to-date with port
libXdamage-1.1.5 = up-to-date with port
libXext-1.3.4,1 = up-to-date with port
libXfixes-5.0.3_2 = up-to-date with port
libXrender-0.9.10_2 = up-to-date with port
libXt-1.2.1,1 = up-to-date with port
libdrm-2.4.107,1 = up-to-date with port
libepoll-shim-0.0.20210418 = up-to-date with port
libevent-2.1.12 = up-to-date with port
libffi-3.3_1 = up-to-date with port
libglvnd-1.3.3 = up-to-date with port
libpci-3.7.0_1 = up-to-date with port
libvpx-1.10.0 = up-to-date with port
libxcb-1.14_1 = up-to-date with port
nspr-4.32 = up-to-date with port
nss-3.69 = up-to-date with port
pango-1.48.7 = up-to-date with port
pixman-0.40.0_1 = up-to-date with port
png-1.6.37_1 = up-to-date with port
webp-1.2.0 = up-to-date with port
Yes, I may well end up using it. But I should try and find out what is happening first.Note : Poudriere is very easy to configure. And I never had one problem.
After installing, you can tryportversion -vR firefox
? In my case:
Also, did you update your ports tree recently?
The timeout is in the synth code, if you want a no timeout rebuild ports-mgmt/synth with the option WATCHDOG off
What may happen is that the build is still in progress, but there is no output.
make
process seemed to hang. Running top(1) showed me that the culprit was lld
, the linker from devel/llvm. After awhile, there was still no output. Sending a Ctrl-C
helped without stopping the process - text started to flow on the terminal screen again, turns out the linker was done, make process continued - even though there was no way for me to know. And the install was successful in the end.Rebuilt the latest Rust (rust-1.54.0_2) on my desktop yesterday withWhen I build lang/rust (Takes about an hour with a Ryzen 5 1400, a quad-core CPU from 2017), I noticed that themake
process seemed to hang. Running top(1) showed me that the culprit waslld
, the linker from devel/llvm. After awhile, there was still no output. Sending aCtrl-C
helped without stopping the process - text started to flow on the terminal screen again, turns out the linker was done, make process continued - even though there was no way for me to know. And the install was successful in the end.
portupgrade -R
. Took time, but it was all good...In both portmaster and synth, building firefox always hangs.
building the port without any port management program always works
poudriere, yet to try.
No use of swap at all, plenty of memory.
gmake[4]: Leaving directory '/usr/ports/www/firefox/work/.build/media/ffvpx/libavcodec'
top
last pid: 37673; load averages: 1.27, 4.13, 9.88 up 12+23:32:34 14:07:18
149 processes: 1 running, 148 sleeping
CPU: 3.2% user, 0.0% nice, 0.0% system, 0.0% interrupt, 96.7% idle
Mem: 3671M Active, 35G Inact, 410M Laundry, 35G Wired, 104K Buf, 19G Free
ARC: 27G Total, 14G MFU, 10G MRU, 753K Anon, 414M Header, 2584M Other
22G Compressed, 53G Uncompressed, 2.40:1 Ratio
Swap: 64G Total, 64G Free
ls -l /tmp
-rw------- 1 root wheel 2392064 Sep 8 13:47 conftest.core
-rw------- 1 root wheel 72015515 Sep 8 13:57 portupgrade20210908-28886-1c7f77u
ps
28886 1 I+ 0:01.36 ruby27: portupgrade: [1/1] firefox-92.0_1,2 (ruby27)
39651 1 S+ 0:02.15 /usr/bin/script -qa /tmp/portupgrade20210908-28886-1c7f77u env UPGRADE_TOOL=portupgra
31374 3 I+ 0:00.00 /bin/sh -e -c (cd /usr/ports/www/firefox/work/.build; if ! /usr/bin/env PERL_USE_UNSA
31375 3 I+ 0:00.01 gmake -f Makefile -j32 all
32416 3 I+ 0:00.04 gmake compile
32417 3 I+ 0:00.21 gmake recurse_compile
37247 3 I+ 0:00.01 gmake -C toolkit/library/build target
37249 3 I+ 0:00.03 /usr/local/llvm12/bin/clang++ -std=gnu++17 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fst
37250 3 I+ 13:37.12 /usr/local/llvm12/bin/ld --eh-frame-hdr -Bshareable --hash-style=both --enable-new-dt
39652 3 Is+ 0:00.04 make
# procstat 39652
PID PPID PGID SID TSID THR LOGIN WCHAN EMUL COMM
39652 39651 39652 39652 39652 1 root wait FreeBSD ELF64 make
# procstat 37250
PID PPID PGID SID TSID THR LOGIN WCHAN EMUL COMM
37250 37249 39652 39652 39652 2 root uwait FreeBSD ELF64 lld
# procstat 37249
PID PPID PGID SID TSID THR LOGIN WCHAN EMUL COMM
37249 37247 39652 39652 39652 1 root wait FreeBSD ELF64 clang-12
# procstat 37247
PID PPID PGID SID TSID THR LOGIN WCHAN EMUL COMM
37247 32417 39652 39652 39652 1 root wait FreeBSD ELF64 gmake
# procstat 32417
PID PPID PGID SID TSID THR LOGIN WCHAN EMUL COMM
32417 32416 39652 39652 39652 1 root wait FreeBSD ELF64 gmake
# procstat 32416
PID PPID PGID SID TSID THR LOGIN WCHAN EMUL COMM
32416 31375 39652 39652 39652 1 root wait FreeBSD ELF64 gmake
# procstat 31375
PID PPID PGID SID TSID THR LOGIN WCHAN EMUL COMM
31375 31374 39652 39652 39652 1 root wait FreeBSD ELF64 gmake
You mean it freezes? Goes paralytic? I'm using www/firefox-esr 78.13 ESR built by usingBuilding firefox hangs.
portmaster -a
last week sometime.Try not changing anything and just go withTried changing the options. Does not matter.
portmaster www/firefox-esr
from the login terminal.df -h /tmp
zoroot/tmp 293G 300K 293G 0% /tmp
Yes, I am beginning to wonder about the terminal. So far I have been running everything in a terminal within the DE. I might well next try from the console without even X running.Try not changing anything and just go withportmaster www/firefox-esr
from the login terminal.
Looks like this one doesn't finish, all other processes are idle or sleeping. Did you see this one before when it stopped?37250 3 I+ 13:37.12 /usr/local/llvm12/bin/ld --eh-frame-hdr -Bshareable --hash-style=both --enable-new-dt
That'd how I do it all my ports work. Then you can sit back in your recliner and glance over once in a while to see it hasn't stopped.
For terminal session, I am always (many years) using sysutils/screen. Very convenient. Screen lets you to disconnect from one terminal session and reconnect from another. You can try building your ports under screen. After starting build, you can disconnect terminal.Started it running in the console, happy that I am regaining control over my machine.
Went out of the office to see what the family is up to. Complete mess of anarchy and inactivity.