Bug 75733 - build failure in wtf/ByteArray.cpp
Summary: build failure in wtf/ByteArray.cpp
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: Other Other
: P3 Normal
Assignee: Nobody
Depends on:
Reported: 2012-01-06 13:01 PST by Pavel Heimlich (hajma)
Modified: 2012-01-09 11:44 PST (History)
2 users (show)

See Also:

Patch (1.16 KB, patch)
2012-01-06 13:09 PST, Pavel Heimlich (hajma)
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pavel Heimlich (hajma) 2012-01-06 13:01:14 PST
building Qt 4.8 fails with the below error.
This is because Solaris Studio is stricter about the C++ standard than gcc. Adding Solaris Studio to the already existing ifdef for MSVC makes this go away.

test2@solaris:~/packages/BUILD/qt-4.8.0/i386/qt-everywhere-opensource-src-4.8.0/src/3rdparty/webkit/Source/JavaScriptCore$ /opt/test2/SolarisStudio12.3-solaris-x86-bin/solarisstudio12.3/bin/CC -c -I../../../../../mkspecs/solaris-cc -I. -I../../../../../include/QtCore -I../../../../../include -I. -I../../Source -I../ThirdParty -Iassembler -Ibytecode -Ibytecompiler -Iheap -Idfg -Idebugger -Iinterpreter -Ijit -Iparser -Iprofiler -Iruntime -Iwtf -Iwtf/gobject -I/opt/test2/packages/BUILD/qt-4.8.0/i386/qt-everywhere-opensource-src-4.8.0/src/3rdparty/webkit/Source/JavaScriptCore/wtf/symbian -Iwtf/unicode -Iyarr -IAPI -IForwardingHeaders -Igenerated -I../../Source -I../../include -I/include/QtWebKit -I/include -I.moc/debug-static -I/usr/sfw/include -D_REENTRANT -DNDEBUG -D__EXTENSIONS__ -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_POSIX_PTHREAD_SEMANTICS -DSOLARIS -DNO_DEBUG -D_UNICODE -DUNICODE -D_RWSTD_REENTRANT -D_XOPEN_SOURCE=500 -D_XPG5 -I/opt/kde4/include -m32 -xarch=sse2 -features=extensions,nestedaccess,tmplrefstatic -template=geninlinefuncs -s -xlang=c99 -xustr=ascii_utf16_ushort -Qoption ccfe -features=gcc -Qoption ccfe -features=zla -Qoption ccfe ++boolflag:sunwcch=false -R/opt/kde4/lib -library=stdcxx4 -lCrun -I/usr/include/libpng14 -I/opt/kde4/include -I/usr/mysql/5.1/include/mysql -I/usr/include/libmng -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/odbc -KPIC -mt -DNDEBUG -DBUILDING_QT__=1 -DQT_ASCII_CAST_WARNINGS -DBUILDING_JavaScriptCore -DBUILDING_WTF -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_HAVE_SSE3 -DQT_SHARED -o .obj/debug-static/ByteArray.o wtf/ByteArray.cpp 
"wtf/ByteArray.h", line 97: Error: In this declaration "m_data" is of an incomplete type "unsigned char[]".
1 Error(s) detected.

This is on Solaris 11 using Solaris Studio 12.3
Comment 1 Pavel Heimlich (hajma) 2012-01-06 13:09:59 PST
Created attachment 121479 [details]
Comment 2 Alexey Proskuryakov 2012-01-09 10:30:41 PST
Comment on attachment 121479 [details]

I assume that you want this landed. 

In the future, please mark patches with cq? to make the intention clear.
Comment 3 WebKit Review Bot 2012-01-09 11:44:52 PST
Comment on attachment 121479 [details]

Clearing flags on attachment: 121479

Committed r104471: <http://trac.webkit.org/changeset/104471>
Comment 4 WebKit Review Bot 2012-01-09 11:44:56 PST
All reviewed patches have been landed.  Closing bug.