From owner-freebsd-ports@freebsd.org Mon Feb 24 14:50:41 2020 Return-Path: Delivered-To: freebsd-ports@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8C53F25EF21 for ; Mon, 24 Feb 2020 14:50:41 +0000 (UTC) (envelope-from SRS0=Bihw=4M=quip.cz=000.fbsd@elsa.codelab.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 48R4k73pt9z3N3S for ; Mon, 24 Feb 2020 14:50:38 +0000 (UTC) (envelope-from SRS0=Bihw=4M=quip.cz=000.fbsd@elsa.codelab.cz) Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 616A928422 for ; Mon, 24 Feb 2020 15:50:35 +0100 (CET) Received: from illbsd.quip.test (ip-62-24-92-232.net.upcbroadband.cz [62.24.92.232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id E043328416 for ; Mon, 24 Feb 2020 15:50:32 +0100 (CET) Subject: Re: Cannot build qt5-webkit with debug From: Miroslav Lachman <000.fbsd@quip.cz> To: freebsd-ports@freebsd.org References: Message-ID: <86c4b386-9298-fa0a-ccc1-ec6b1e65b788@quip.cz> Date: Mon, 24 Feb 2020 15:50:32 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Firefox/52.0 SeaMonkey/2.49.3 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 48R4k73pt9z3N3S X-Spamd-Bar: ++++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of SRS0=Bihw=4M=quip.cz=000.fbsd@elsa.codelab.cz has no SPF policy when checking 94.124.105.4) smtp.mailfrom=SRS0=Bihw=4M=quip.cz=000.fbsd@elsa.codelab.cz X-Spamd-Result: default: False [4.02 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; IP_SCORE(0.85)[ip: (0.32), ipnet: 94.124.104.0/21(0.16), asn: 42000(3.67), country: CZ(0.09)]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-ports@freebsd.org]; TO_DN_NONE(0.00)[]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_THREE(0.00)[3]; RCVD_TLS_LAST(0.00)[]; NEURAL_SPAM_MEDIUM(0.98)[0.984,0]; NEURAL_SPAM_LONG(0.99)[0.986,0]; RCVD_IN_DNSWL_NONE(0.00)[4.105.124.94.list.dnswl.org : 127.0.10.0]; R_SPF_NA(0.00)[]; FORGED_SENDER(0.30)[000.fbsd@quip.cz,SRS0=Bihw=4M=quip.cz=000.fbsd@elsa.codelab.cz]; DMARC_NA(0.00)[quip.cz]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:42000, ipnet:94.124.104.0/21, country:CZ]; FROM_NEQ_ENVFROM(0.00)[000.fbsd@quip.cz,SRS0=Bihw=4M=quip.cz=000.fbsd@elsa.codelab.cz]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Feb 2020 14:50:41 -0000 Miroslav Lachman wrote on 2020/02/24 12:48: > Short story: > I am trying to build qt5-webkit with WITH_DEBUG=yes in make.conf on our > E3 Xeon machine with FreeBSD 11.3, poudriere-devel, 16GB of RAM and 10GB > of swap. > The build always hangs, machine is unresponsive on SSH / HTTP, only ping > is responding. I track it down to build eats all memory (RAM + Swap). > > Did anybody tried to build (successfully?) qt5-webkit with debug option? > > Is there a bug in build process with WITH_DEBUG or is 16GB of RAM and > 10GB of swap not enough in these days? > > Any help appreciated. > > Long story: > As I didn't found replacement for removed port lang/phantomjs nor found > how to build firefox or chromium as static binary I am trying to create > new port of lang/phantomjs. > I posted few weeks ago - phantomjs github is active again > https://lists.freebsd.org/pipermail/freebsd-ports/2020-January/117556.html > > The new development version of phantomjs has different building process, > newer dependencies, can be built with current OpenSSL 1.1.1 etc. > My (ugly) temporary version of this port is buildable, resulting binary > "phantomjs" can run simple "Hello world" example > https://github.com/ariya/phantomjs/blob/master/examples/hello.js > > But when I try to run some real work (fetching web page) it segfaulted. [...] > I guess I need debug symbols for qt5-webkit to debug it further but I am > not able to build it with WITH_DEBUG. > > Are there any ways / tuning options to build it without eating all > memory and swap space? Meanwhile I added 20GB more of a swap (total of 30GB) and the build succeeded. (according to Zabbix graphs it used 22GB of swap for this build) Phantomjs is still segfaulting and I am not able to debug it with gdb because it is interrupted by segfault to: (root@testjail) ~/# phantomjs /tmp/phantom.2.js PhantomJS has crashed. Please read the bug reporting guide at and file a bug report. Segmentation fault (root@testjail) ~/# gdb /usr/local/bin/phantomjs GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "amd64-marcel-freebsd"...(no debugging symbols found)... (gdb) run /tmp/phantom.2.js Starting program: /usr/local/bin/phantomjs /tmp/phantom.2.js Segmentation fault (core dumped) There are 2 core dumps -rw------- 1 root wheel 327M Feb 24 14:36 gdb.core -rw------- 1 root wheel 4.9M Feb 24 14:36 phantomjs.core What more can I try? I am not a C / C++ skilled person. All these things are new to me. Kind regards Miroslav Lachman