>Number: 147451
>Category: bin
>Synopsis: "gcc -g -O2 -march=nocona" loops compiling devel/qt4-script
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu Jun 03 21:10:02 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Peter Jeremy
>Release: FreeBSD 8.0-STABLE amd64
>Organization:
n/a
>Environment:
System: FreeBSD server.vk2pj.dyndns.org 8.0-STABLE FreeBSD 8.0-STABLE #3: Mon
Apr 5 10:18:04 EST 2010
[email protected]:/var/obj/usr/src/sys/server amd64
GNU C++ version 4.2.1 20070719 [FreeBSD] (amd64-undermydesk-freebsd)
compiled by GNU C version 4.2.1 20070719 [FreeBSD].
Also occurs on 8.1-PRERELEASE from early June.
>Description:
The compilation of .../JavaScriptCore/interpreter/Interpreter.cpp
in ports/devel/qt4-script loops, with cc1plus slowly eating memory
until it hits ulimit or runs out of swap, when compiled with
'-g -O2 -march=nocona'
Removing either '-g' or '-march-nocona' causes the compilation to
succeed normally in 30 seconds or less. With both specified,
I saw the cc1plus VSZ grow to over 1.5GB and use over 70 minutes
of CPU before I gave up watching.
>How-To-Repeat:
cd /usr/ports/devel/qt4-script
make clean
make configure
cd
WRKDIRPREFIX/usr/ports/devel/qt4-script/work/qt-everywhere-opensource-src-4.6.2/src/script
c++ -c -O2 -g -march=nocona -pipe -fno-strict-aliasing -Wreturn-type
-fno-strict-aliasing -O2 -fvisibility=hidden -fvisibility-inlines-hidden -fPIC
-DQT_SHARED -DJSC=QTJSC -Djscyyparse=qtjscyyparse -Djscyylex=qtjscyylex
-Djscyyerror=qtjscyyerror -DWTF=QTWTF -DQT_BUILD_SCRIPT_LIB
-DQT_NO_USING_NAMESPACE -DQLALR_NO_QSCRIPTGRAMMAR_DEBUG_INFO
-DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT
-DBUILDING_QT__=1 -DNDEBUG -DBUILDING_QT__ -DBUILDING_JavaScriptCore
-DBUILDING_WTF -DWTF_USE_JAVASCRIPTCORE_BINDINGS=1 -DWTF_CHANGES=1 -DNDEBUG
-DJS_EXPORT= -DJS_EXPORTDATA= -DQT_NO_DEBUG -DQT_CORE_LIB -D_LARGEFILE64_SOURCE
-D_LARGEFILE_SOURCE -I/usr/local/share/qt4/mkspecs/freebsd-g++ -I.
-I../../include/QtCore -I../../include
-I../3rdparty/javascriptcore/JavaScriptCore -I../3rdparty/javascriptcore
-I../3rdparty/javascriptcore/JavaScriptCore/assembler
-I../3rdparty/javascriptcore/JavaScriptCore/bytecode
-I../3rdparty/javascriptcore/JavaScriptCore/bytecompiler -I!
../3rdparty/javascriptcore/JavaScriptCore/debugger
-I../3rdparty/javascriptcore/JavaScriptCore/interpreter
-I../3rdparty/javascriptcore/JavaScriptCore/jit
-I../3rdparty/javascriptcore/JavaScriptCore/parser
-I../3rdparty/javascriptcore/JavaScriptCore/profiler
-I../3rdparty/javascriptcore/JavaScriptCore/runtime
-I../3rdparty/javascriptcore/JavaScriptCore/wrec
-I../3rdparty/javascriptcore/JavaScriptCore/wtf
-I../3rdparty/javascriptcore/JavaScriptCore/wtf/unicode
-I../3rdparty/javascriptcore/JavaScriptCore/yarr
-I../3rdparty/javascriptcore/JavaScriptCore/API
-I../3rdparty/javascriptcore/JavaScriptCore/ForwardingHeaders -Igenerated
-I../../include/QtScript -I.rcc/release-shared
-I/usr/ports/work/usr/ports/devel/qt4-script/work/qt-everywhere-opensource-src-4.6.2/src/3rdparty/javascriptcore/WebKit/qt/Api
-I../3rdparty/javascriptcore/JavaScriptCore/pcre
-I/usr/ports/work/usr/ports/devel/qt4-script/work/qt-everywhere-opensource-src-4.6.2/src/3rdparty/javascriptcore/WebKitBuild/Relea!
se/JavaScriptCore/tmp -I../3rdparty/javascriptcore/JavaScriptC!
ore -I../3rdparty/javascriptcore/JavaScriptCore/parser
-I../3rdparty/javascriptcore/JavaScriptCore/bytecompiler
-I../3rdparty/javascriptcore/JavaScriptCore/debugger
-I../3rdparty/javascriptcore/JavaScriptCore/runtime
-I../3rdparty/javascriptcore/JavaScriptCore/wtf
-I/usr/ports/work/usr/ports/devel/qt4-script/work/qt-everywhere-opensource-src-4.6.2/src/script/../3rdparty/javascriptcore/JavaScriptCore/unicode
-I../3rdparty/javascriptcore/JavaScriptCore/interpreter
-I../3rdparty/javascriptcore/JavaScriptCore/jit
-I../3rdparty/javascriptcore/JavaScriptCore/profiler
-I../3rdparty/javascriptcore/JavaScriptCore/wrec
-I../3rdparty/javascriptcore/JavaScriptCore/API
-I../3rdparty/javascriptcore/JavaScriptCore/bytecode
-I../3rdparty/javascriptcore/JavaScriptCore/assembler
-I../3rdparty/javascriptcore/JavaScriptCore/generated -I. -Iparser
-I.moc/release-shared -I/usr/local/include -o obj/release/Interpreter.o
../3rdparty/javascriptcore/JavaScriptCore/interpreter/Interpreter.cpp
[The above command line was extracted from the actual build log
and run manually with different options to check the problem]
>Fix:
Unclear
>Release-Note:
>Audit-Trail:
>Unformatted:
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"