Bug 203904 - textproc/qt4-xmlpatterns: make[1]: stopped in /usr/ports/textproc/qt4-xmlpatterns/work/qt-everywhere-opensource-src-4.8.7/src/xmlpatterns
Summary: textproc/qt4-xmlpatterns: make[1]: stopped in /usr/ports/textproc/qt4-xmlpatt...
Status: Closed Not A Bug
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-kde (group)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-20 22:42 UTC by Amy G. Dala
Modified: 2016-07-13 19:20 UTC (History)
2 users (show)

See Also:


Attachments
Preprocessed source(s) and associated run script (592.07 KB, application/zip)
2015-10-20 22:42 UTC, Amy G. Dala
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Amy G. Dala 2015-10-20 22:42:06 UTC
Created attachment 162262 [details]
Preprocessed source(s) and associated run script

textproc/qt4-xmlpatterns fails to build with the message produced inline below.  This error occurs using portmaster or with make install.  I've seen a post that this message might relate to not having enough memory.  I'm using a swap file.  I cannot tell if I am using a wrong version of Clang or not the right one from source or ports.

According to ls /var/db/pkg, I have clang36-3.6.2 installed.  I also have gcc-4.8.4_3 but am not sure how I could try to make it with gcc.

I cannot tell if it would be a good idea to try to replace qt4 ports with qt5 ports.

Not sure it helps, but, here's my make file:

$ more /etc/make.conf
QT4_OPTIONS=CUPS QGKSTYLE NAS
CUPS_OVERWRITE_BASE=YES
OPTIONS_SET=CUPS
#DEFAULT_VERSIONS=mysql=5.6 apache=2.4
MAKE_JOBS_UNSAFE=YES
DISABLE_VULNERABILITIES=YES
DEFAULT_VERSIONS+= perl5=5.20

c++ -c -O2 -pipe -fstack-protector -fno-strict-aliasing -O2 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -pthread -D_THREAD_SAFE -fPIC -DQT_SHARED -DQT_BUILD_XMLPATTERNS_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_HAVE_SSE3 -DQT_HAVE_SSSE3 -DQT_HAVE_SSE4_1 -DQT_HAVE_SSE4_2 -DQT_HAVE_AVX -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I/usr/local/share/qt4/mkspecs/freebsd-clang -I. -I../../include/QtCore -I../../include/QtNetwork -I../../include -I../../include/QtXmlPatterns -I.rcc/release-shared -Iacceltree -Idata -Iapi -Ienvironment -Iexpr -Ifunctions -Iiterators -Ijanitors -Iparser -Ischema -Itype -Iutils -I.moc/release-shared -I/usr/local/include/qt4 -I/usr/local/include -o .obj/release-shared/qquerytransformparser.o parser/qquerytransformparser.cpp
c++: error: unable to execute command: Killed
c++: error: clang frontend command failed due to signal (use -v to see invocation)
FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512
Target: x86_64-unknown-freebsd10.1
Thread model: posix
c++: note: diagnostic msg: PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and include the crash backtrace, preprocessed source, and associated run script.
c++: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
c++: note: diagnostic msg: /tmp/qquerytransformparser-1bfac2.cpp
c++: note: diagnostic msg: /tmp/qquerytransformparser-1bfac2.sh
c++: note: diagnostic msg: 

********************
*** Error code 254

Stop.
make[1]: stopped in /usr/ports/textproc/qt4-xmlpatterns/work/qt-everywhere-opensource-src-4.8.7/src/xmlpatterns
*** Error code 1

Stop.
make: stopped in /usr/ports/textproc/qt4-xmlpatterns



------------------------------

This is my first bug report.  I'd welcome tips on how to improve my reports.  There are two reasons why I am making this report:  (1) I have not found anything online that helps me resolve this issue, and (2) it says, "PLEASE submit a bug report" and it would seem pretty compelling to do so before asking more more help.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2015-10-20 23:45:53 UTC
Change this into a ports PR and assign.
Comment 2 Tobias Berner 2015-10-21 06:06:52 UTC
Could you check whether you are simply running out of memory/swap while building?
Comment 3 Amy G. Dala 2015-10-22 22:37:23 UTC
Relevant Memory Settings

Settings in /boot/loader.conf:
kern.ipc.shmseg=1024
kern.ipc.shmmni=1024
kern.ipc.shmall=32768
kern.maxproc=10000
# Test Wine Support size too big for compat modes, reduce it
kern.maxdsiz=805306368


$ sysctl hw.physmem
hw.physmem: 2083291136

$ grep memory /var/run/dmesg.boot
real memory  = 2147483648 (2048 MB)
avail memory = 2012311552 (1919 MB)

(In reply to Tobias Berner from comment #2)

Memory Use While Compiling

[Absent another method to monitor memory usage, I ran top while doing make install and made the following observation:  Available free memory drops when running make, when the available free memory drops below about 13m (shown in the output below) make stops with "*** Error code 254."]

308 processes: 6 running, 282 sleeping, 20 waiting
CPU: 24.3% user,  0.0% nice,  1.3% system,  1.3% interrupt, 73.0% idle
Mem: 1394M Active, 73M Inact, 453M Wired, 1880K Cache, 210M Buf, 13M Free
Swap: 

  PID USERNAME      PRI NICE   SIZE    RES STATE   C   TIME    WCPU COMMAND
28818 root          103    0   822M   800M CPU1    1   1:07 100.00% c++
   11 root          155 ki31     0K    64K RUN     2  51.2H  87.16% idle{idle: cpu2}
   11 root          155 ki31     0K    64K RUN     1  49.9H  85.69% idle{idle: cpu1}
   11 root          155 ki31     0K    64K CPU3    3  51.4H  60.50% idle{idle: cpu3}
   11 root          155 ki31     0K    64K CPU0    0  51.1H  59.38% idle{idle: cpu0}
    4 root          -16    -     0K    16K psleep  1   1:13   4.69% pagedaemon
    5 root          -16    -     0K    16K psleep  0   0:02   3.96% vmdaemon
28819 amygdala       20    0 21924K  2656K CPU2    2   0:00   0.29% top

I don't understand why I would run out of memory with qt4-xmlpatterns and not something else.  I'm attempting to install the package instead of building it.
Comment 4 Tobias Berner 2015-10-23 03:26:53 UTC
(In reply to Amy G. Dala from comment #3)

Consider adding some swap space:
https://www.freebsd.org/doc/handbook/adding-swap-space.html