[Webkit-unassigned] [Bug 18507] New: compilation error while building with gcc < 4.x compilers on latest nightlies

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Apr 14 23:20:16 PDT 2008


http://bugs.webkit.org/show_bug.cgi?id=18507

           Summary: compilation error while building with gcc < 4.x
                    compilers on latest nightlies
           Product: WebKit
           Version: 526+ (Nightly build)
          Platform: PC
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P3
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: msrinirao at gmail.com


While trying to build WebKit-r31848(or any latest nightlies),  
Compilation breaks if we compile using GCC compilers with gcc version less than
4. I got this error with my gcc version 3.4.6.

compilation breaks while doing:

arm-linux-g++ -DHAVE_CONFIG_H -I. -I.. -DWTF_USE_ICU_UNICODE=1
-DBUILDING_GTK__=1 -DWTF_CHANGES -DNDEBUG -DENABLE_ICONDATABASE=0
-I../JavaScriptCore -I../JavaScriptCore/ForwardingHeaders
-I../JavaScriptCore/wtf -I../JavaScriptCore/kjs -I./DerivedSources
-I../JavaScriptCore/ForwardingHeaders -I../JavaScriptCore/wtf/unicode
-I./JavaScriptCore/pcre -I./JavaScriptCore/kjs
-I/home/srinirao/webkit/myprefix/include
-I/home/srinirao/webkit/myprefix/../../../libs/libjpeg
-I/home/srinirao/webkit/myprefix/include/freetype2 -fno-rtti -Wall -W
-Wcast-align -Wchar-subscripts -Wreturn-type -Wformat -Wformat-security
-Wno-format-y2k -Wundef -Wmissing-format-attribute -Wpointer-arith
-Wwrite-strings -Wno-unused-parameter -fno-exceptions -pthread
-I/home/srinirao/webkit/myprefix/include/glib-2.0
-I/home/srinirao/webkit/myprefix/lib/glib-2.0/include
-I/home/srinirao/webkit/myprefix/include
-I/home/srinirao/webkit/myprefix/../../../libs/libjpeg
-I/home/srinirao/webkit/myprefix/include/freetype2
-I/home/srinirao/webkit/myprefix/include/readline -D_REENTRANT
-I/home/srinirao/webkit/myprefix/include -fno-strict-aliasing -O2 -MT
JavaScriptCore/kjs/libJavaScriptCore_la-JSGlobalObject.lo -MD -MP -MF
JavaScriptCore/kjs/.deps/libJavaScriptCore_la-JSGlobalObject.Tpo -c
../JavaScriptCore/kjs/JSGlobalObject.cpp  -fPIC -DPIC -o
JavaScriptCore/kjs/.libs/libJavaScriptCore_la-JSGlobalObject.o
mv -f JavaScriptCore/kjs/.deps/libJavaScriptCore_la-JSGlobalObject.Tpo
JavaScriptCore/kjs/.deps/libJavaScriptCore_la-JSGlobalObject.Plo
/bin/sh ./libtool --tag=CXX   --mode=compile arm-linux-g++ -DHAVE_CONFIG_H -I.
-I..  -DWTF_USE_ICU_UNICODE=1 -DBUILDING_GTK__=1 -DWTF_CHANGES   -DNDEBUG 
-DENABLE_ICONDATABASE=0  -I../JavaScriptCore
-I../JavaScriptCore/ForwardingHeaders -I../JavaScriptCore/wtf
-I../JavaScriptCore/kjs -I./DerivedSources
-I../JavaScriptCore/ForwardingHeaders -I../JavaScriptCore/wtf/unicode
-I./JavaScriptCore/pcre -I./JavaScriptCore/kjs
-I/home/srinirao/webkit/myprefix/include
-I/home/srinirao/webkit/myprefix/../../../libs/libjpeg
-I/home/srinirao/webkit/myprefix/include/freetype2  -fno-rtti -Wall -W
-Wcast-align -Wchar-subscripts -Wreturn-type -Wformat -Wformat-security
-Wno-format-y2k -Wundef -Wmissing-format-attribute -Wpointer-arith
-Wwrite-strings -Wno-unused-parameter -fno-exceptions  -pthread
-I/home/srinirao/webkit/myprefix/include/glib-2.0
-I/home/srinirao/webkit/myprefix/lib/glib-2.0/include  
-I/home/srinirao/webkit/myprefix/include
-I/home/srinirao/webkit/myprefix/../../../libs/libjpeg
-I/home/srinirao/webkit/myprefix/include/freetype2
-I/home/srinirao/webkit/myprefix/include/readline -D_REENTRANT
-I/home/srinirao/webkit/myprefix/include -fno-strict-aliasing -O2 -MT
JavaScriptCore/kjs/libJavaScriptCore_la-AllInOneFile.lo -MD -MP -MF
JavaScriptCore/kjs/.deps/libJavaScriptCore_la-AllInOneFile.Tpo -c -o
JavaScriptCore/kjs/libJavaScriptCore_la-AllInOneFile.lo `test -f
'JavaScriptCore/kjs/AllInOneFile.cpp' || echo
'../'`JavaScriptCore/kjs/AllInOneFile.cpp
 arm-linux-g++ -DHAVE_CONFIG_H -I. -I.. -DWTF_USE_ICU_UNICODE=1
-DBUILDING_GTK__=1 -DWTF_CHANGES -DNDEBUG -DENABLE_ICONDATABASE=0
-I../JavaScriptCore -I../JavaScriptCore/ForwardingHeaders
-I../JavaScriptCore/wtf -I../JavaScriptCore/kjs -I./DerivedSources
-I../JavaScriptCore/ForwardingHeaders -I../JavaScriptCore/wtf/unicode
-I./JavaScriptCore/pcre -I./JavaScriptCore/kjs
-I/home/srinirao/webkit/myprefix/include
-I/home/srinirao/webkit/myprefix/../../../libs/libjpeg
-I/home/srinirao/webkit/myprefix/include/freetype2 -fno-rtti -Wall -W
-Wcast-align -Wchar-subscripts -Wreturn-type -Wformat -Wformat-security
-Wno-format-y2k -Wundef -Wmissing-format-attribute -Wpointer-arith
-Wwrite-strings -Wno-unused-parameter -fno-exceptions -pthread
-I/home/srinirao/webkit/myprefix/include/glib-2.0
-I/home/srinirao/webkit/myprefix/lib/glib-2.0/include
-I/home/srinirao/webkit/myprefix/include
-I/home/srinirao/webkit/myprefix/../../../libs/libjpeg
-I/home/srinirao/webkit/myprefix/include/freetype2
-I/home/srinirao/webkit/myprefix/include/readline -D_REENTRANT
-I/home/srinirao/webkit/myprefix/include -fno-strict-aliasing -O2 -MT
JavaScriptCore/kjs/libJavaScriptCore_la-AllInOneFile.lo -MD -MP -MF
JavaScriptCore/kjs/.deps/libJavaScriptCore_la-AllInOneFile.Tpo -c
../JavaScriptCore/kjs/AllInOneFile.cpp  -fPIC -DPIC -o
JavaScriptCore/kjs/.libs/libJavaScriptCore_la-AllInOneFile.o
In file included from ../JavaScriptCore/kjs/AllInOneFile.cpp:40:
../JavaScriptCore/kjs/dtoa.cpp: In function `void kjs_freedtoa(char*)':
../JavaScriptCore/kjs/dtoa.cpp:2259: warning: cast from `char*' to `int*'
increases required alignment of target type
In file included from ../JavaScriptCore/kjs/AllInOneFile.cpp:55:
../JavaScriptCore/kjs/nodes.cpp: At global scope:
../JavaScriptCore/kjs/nodes.h:213: error: `typedef enum
KJS::ExpressionNode::CallerType KJS::ExpressionNode::CallerType' is protected
../JavaScriptCore/kjs/nodes.cpp:1090: error: within this context
make[1]: *** [JavaScriptCore/kjs/libJavaScriptCore_la-AllInOneFile.lo] Error 1
make[1]: Leaving directory `/home/srinirao/webkit/WebKit-r31848/objdir'
make: *** [all] Error 2

I will be submitting a patch for this bug.


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list