Date: Sat, 12 Aug 2023 13:38:32 +0000 From: Lorenzo Salvadore <developer@lorenzosalvadore.it> To: guru@unixarea.de, freebsd-current@freebsd.org Subject: Re: lang/gcc12 will not build on a host w/ 8 CPU and 16G mem Message-ID: <nOu2wSkB56vNwLIO-ZmUPt6t_XUkQq1M-Z_-MxJEAo5Min2B13fsRqgLD4uwzt8ruEt-eq3xCrkQSyHNrwi1rx0kfDt8LjhMRmZIOLpwot4=@lorenzosalvadore.it> In-Reply-To: <ZNeKMOMgWwWGkuqp@c720-r368166> References: <ZNeKMOMgWwWGkuqp@c720-r368166>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] Hello, I am the port maintainer. It is a well known issue unfortunately. Just disable the LTO_BOOTSTRAP option and the build will succeed. Cheers, Lorenzo Salvadore Sent from Proton Mail mobile -------- Messaggio originale -------- Il 12 Ago 2023, 15:33, Matthias Apitz ha scritto: > I'm building on 14-CURRENT with poudriere. The server in question is a Dell R210 with 8x 3.30GHz CPU and 15.8 GB memory: Aug 11 19:03:21 jet kernel: CPU: Intel(R) Xeon(R) CPU E3-1230 V2 @ 3.30GHz (3292.74-MHz K8-class CPU) Aug 11 19:03:21 jet kernel: FreeBSD/SMP: Multiprocessor System Detected: 8 CPUs Aug 11 19:03:21 jet kernel: avail memory = 16582250496 (15814 MB) I have set swap to 4GB + 10GB + 10GB: # swapctl -lh Device: Bytes Used: /dev/da0p3 4.0G 1.5G /dev/md9 10G 1.5G /dev/md10 10G 1.5G and poudriere does use ZFS. Despite of this relatively good equipped machine, lang/gcc12 can't be build. In /var/log/messages after some 3 hours of compiling as a single(!) job in poudriere: Aug 12 14:59:47 jet kernel: pid 57837 (lto1), jid 111, uid 65534, was killed: a thread waited too long to allocate a page and the job fails in poudriere with: ... xg++: fatal error: Killed signal terminated program lto1 compilation terminated. lto-wrapper: fatal error: /wrkdirs/usr/ports/lang/gcc12/work/.build/./prev-gcc/xg++ returned 1 exit status compilation terminated. /usr/local/bin/ld: error: lto-wrapper failed collect2: error: ld returned 1 exit status gmake[4]: *** [/wrkdirs/usr/ports/lang/gcc12/work/gcc-12.2.0/gcc/cp/Make-lang.in:136: cc1plus] Error 1 gmake[4]: *** Waiting for unfinished jobs.... What could I do? matthias -- Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub [-- Attachment #2 --] Hello, I am the port maintainer.<br><br>It is a well known issue unfortunately. Just disable the LTO_BOOTSTRAP option and the build will succeed.<br><br>Cheers,<br><br>Lorenzo Salvadore<br><br><br>Sent from Proton Mail mobile<br><br><br><br>-------- Messaggio originale --------<br>Il 12 Ago 2023, 15:33, Matthias Apitz < guru@unixarea.de> ha scritto:<blockquote class="protonmail_quote"><br>I'm building on 14-CURRENT with poudriere. The server in question is a Dell R210 with 8x 3.30GHz CPU and 15.8 GB memory: Aug 11 19:03:21 jet kernel: CPU: Intel(R) Xeon(R) CPU E3-1230 V2 @ 3.30GHz (3292.74-MHz K8-class CPU) Aug 11 19:03:21 jet kernel: FreeBSD/SMP: Multiprocessor System Detected: 8 CPUs Aug 11 19:03:21 jet kernel: avail memory = 16582250496 (15814 MB) I have set swap to 4GB + 10GB + 10GB: # swapctl -lh Device: Bytes Used: /dev/da0p3 4.0G 1.5G /dev/md9 10G 1.5G /dev/md10 10G 1.5G and poudriere does use ZFS. Despite of this relatively good equipped machine, lang/gcc12 can't be build. In /var/log/messages after some 3 hours of compiling as a single(!) job in poudriere: Aug 12 14:59:47 jet kernel: pid 57837 (lto1), jid 111, uid 65534, was killed: a thread waited too long to allocate a page and the job fails in poudriere with: ... xg++: fatal error: Killed signal terminated program lto1 compilation terminated. lto-wrapper: fatal error: /wrkdirs/usr/ports/lang/gcc12/work/.build/./prev-gcc/xg++ returned 1 exit status compilation terminated. /usr/local/bin/ld: error: lto-wrapper failed collect2: error: ld returned 1 exit status gmake[4]: *** [/wrkdirs/usr/ports/lang/gcc12/work/gcc-12.2.0/gcc/cp/Make-lang.in:136: cc1plus] Error 1 gmake[4]: *** Waiting for unfinished jobs.... What could I do? matthias -- Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub </div>help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?nOu2wSkB56vNwLIO-ZmUPt6t_XUkQq1M-Z_-MxJEAo5Min2B13fsRqgLD4uwzt8ruEt-eq3xCrkQSyHNrwi1rx0kfDt8LjhMRmZIOLpwot4=>
