Trolltech Home | Qt4-preview-feedback Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt4-preview-feedback Archive, February 2008
beta1 compile error


Message 1 in thread

Hi all,

I can not compile parts of 4.4beta1 on RedHat EL4, gcc (GCC) 3.4.4 
20050721 (Red Hat 3.4.4-2) (see below errors, which I do not 
understand. The file itself is not corrupted, as I compared it already 
with my openSuse setup)

However it compiles fine on openSuse 10.3, gcc (GCC) 4.2.1 (SUSE Linux)

Is beta1 supposed to compile with gcc-3.4.4 ?

make[1]: Entering directory 
`/tmp/koller/ExternLibs/Qt4/x11-src/qt-x11-commercial-src-4.4.0-beta1/src/3rdparty/webkit/WebCore'
gcc -c -include .pch/release-shared/QtWebKit -pipe -g -fno-exceptions -O2 -D_REENTRANT -fPIC -DQT_SHARED -DQT_EDITION=QT_EDITION_DESKTOP -DBUILDING_QT__=1 -DUSE_SYSTEM_MALLOC -DNDEBUG -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_44_API_QSQLQUERY_FINISH -DQT3_SUPPORT -DQT_MOC_COMPAT -DHAVE_STDINT_H -DBUILD_WEBKIT -DENABLE_ICONDATABASE=1 -DENABLE_XPATH=1 -DENABLE_SVG=1 -DWTF_CHANGES=1 -DBUILDING_QT__ -DWTF_USE_JAVASCRIPTCORE_BINDINGS=1 -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../../../mkspecs/linux-g++ -I. -I../../../../include/QtCore -I../../../../include/QtCore -I../../../../include/QtNetwork -I../../../../include/QtNetwork -I../../../../include/QtGui -I../../../../include/QtGui -I../../../../include -I../WebKit/qt/Api -I../JavaScriptCore -I../JavaScriptCore/kjs -I../JavaScriptCore/bindings -I../JavaScriptCore/bindings/c -I../JavaScriptCore/wtf -I../JavaScriptCore/ForwardingHeaders -I. -IForwardingHeaders -Iplatform -Iplatform/network -Iplatform/graphics -Iloader -Ipage -Icss -Idom -Ibridge -Iediting -Irendering -Ihistory -Ixml -Ihtml -I../../../../include/QtWebKit -Igenerated -Itmp -I../JavaScriptCore -I../JavaScriptCore/kjs -I../JavaScriptCore/bindings -I../JavaScriptCore/bindings/c -I../JavaScriptCore/wtf -I../JavaScriptCore/bindings/qt -I../JavaScriptCore/pcre -I/tmp/koller/ExternLibs/Qt4/x11-src/qt-x11-commercial-src-4.4.0-beta1/src/3rdparty/webkit/WebKitBuild/Debug/JavaScriptCore/kjs/tmp -Iplatform/qt -Iplatform/network/qt -Iplatform/graphics/qt -Iplatform/graphics/svg/qt -Iloader/qt -Ipage/qt -I../WebKit/qt/WebCoreSupport -I../WebKit/qt/Api -I. -IForwardingHeaders -I../../webkit -I../JavaScriptCore/kjs -I../JavaScriptCore/bindings -Iplatform -Iplatform/network -Iplatform/graphics -Iplatform/graphics/svg -Iplatform/graphics/svg/filters -Iloader -Iloader/icon -Icss -Idom -Ipage -Ibridge -Iediting -Irendering -Ihistory -Ixml -Ihtml -Ibindings/js -Iksvg2 -Iksvg2/css -Iksvg2/svg -Iksvg2/misc -Iksvg2/events -Iplatform/image-decoders -I../../sqlite -I.moc/release-shared -I.uic/release-shared -o .obj/release-shared/sqlite3.o ../../sqlite/sqlite3.c
../../sqlite/sqlite3.c:63461:194: warning: null character(s) ignored
../../sqlite/sqlite3.c: In function `sqlite3RunVacuum':
../../sqlite/sqlite3.c:63461: error: stray '\1' in program
../../sqlite/sqlite3.c:63461:243: warning: null character(s) ignored
../../sqlite/sqlite3.c:63461: error: stray '\224' in program
../../sqlite/sqlite3.c:63461: error: stray '\204' in program
../../sqlite/sqlite3.c:63461: error: stray '\183' in program
../../sqlite/sqlite3.c:63461:250: warning: null character(s) ignored
../../sqlite/sqlite3.c:63461: error: stray '\163' in program
../../sqlite/sqlite3.c:63461: error: syntax error before ')' token
../../sqlite/sqlite3.c:63461:258: warning: null character(s) ignored
../../sqlite/sqlite3.c:63461: error: stray '\1' in program
../../sqlite/sqlite3.c:63461:307: warning: null character(s) ignored

.... lots of more such lines ...

-- 
 [ signature omitted ] 

Message 2 in thread

On Friday 29 February 2008 12:14:42 Martin Koller wrote:
> Hi all,
>
> I can not compile parts of 4.4beta1 on RedHat EL4, gcc (GCC) 3.4.4
> 20050721 (Red Hat 3.4.4-2) (see below errors, which I do not
> understand. The file itself is not corrupted, as I compared it already
> with my openSuse setup)
>
> However it compiles fine on openSuse 10.3, gcc (GCC) 4.2.1 (SUSE Linux)
>
> Is beta1 supposed to compile with gcc-3.4.4 ?

It was supposed to. I admit we haven't tested gcc 3.4.4, but we have gcc 3.4.3 
and it built WebKit just fine.

> ../../sqlite/sqlite3.c:63461:194: warning: null character(s) ignored
> ../../sqlite/sqlite3.c: In function `sqlite3RunVacuum':
> ../../sqlite/sqlite3.c:63461: error: stray '\1' in program
[snip]

That's weird. There's no null or \1 in that line on the file.

However, the line 63461 is nowhere close to 194 characters. Here's what I 
have:

$ awk 'NR==63461' ./src/3rdparty/sqlite/sqlite3.c
  ** Open a btree level transaction on the main database. This allows a

Which is less than 80 characters.

It sounds like an internal compiler bug on your build, though.

My suggestion is that you simply use -system-sqlite and use your system's 
installation of sqlite.

-- 
 [ signature omitted ] 

Attachment: signature.asc
Description: This is a digitally signed message part.