| Trolltech Home | Qt4-preview-feedback Home | Recent Threads | All Threads | Author | Date | |
| All threads index page 1 | |
I tried compiling with gcc 4.3.0 (it is still beta, but sooner or
later it will get in the distros) and I got quite a lot of warning in
the include headers....
$ g++ --version
g++ (GCC) 4.3.0 20070326 (experimental)
/usr/local/Trolltech/Qt-4.3.0beta/include/QtCore/qbytearray.h:131:
warning: type qualifiers ignored on function return type
/usr/local/Trolltech/Qt-4.3.0beta/include/QtCore/qbytearray.h:132:
warning: type qualifiers ignored on function return type
/usr/local/Trolltech/Qt-4.3.0beta/include/QtCore/qbytearray.h:134:
warning: type qualifiers ignored on function return type
/usr/local/Trolltech/Qt-4.3.0beta/include/QtCore/qbytearray.h:330:
warning: type qualifiers ignored on function return type
/usr/local/Trolltech/Qt-4.3.0beta/include/QtCore/qbytearray.h:332:
warning: type qualifiers ignored on function return type
/usr/local/Trolltech/Qt-4.3.0beta/include/QtCore/qbytearray.h:334:
warning: type qualifiers ignored on function return type
/usr/local/Trolltech/Qt-4.3.0beta/include/QtCore/qbytearray.h:375:
warning: type qualifiers ignored on function return type
/usr/local/Trolltech/Qt-4.3.0beta/include/QtCore/qstring.h:771:
warning: type qualifiers ignored on function return type
/usr/local/Trolltech/Qt-4.3.0beta/include/QtCore/qstring.h:772:
warning: type qualifiers ignored on function return type
/usr/local/Trolltech/Qt-4.3.0beta/include/QtCore/qstring.h:773:
warning: type qualifiers ignored on function return type
/usr/local/Trolltech/Qt-4.3.0beta/include/QtGui/qimage.h: In member
function 'bool QImageTextKeyLang::operator<(const QImageTextKeyLang&)
const':
/usr/local/Trolltech/Qt-4.3.0beta/include/QtGui/qimage.h:58: warning:
suggest parentheses around && within ||
/usr/local/Trolltech/Qt-4.3.0beta/include/QtCore/qchar.h:39: warning:
type qualifiers ignored on function return type
/usr/local/Trolltech/Qt-4.3.0beta/include/QtCore/qchar.h:40: warning:
type qualifiers ignored on function return type
/usr/local/Trolltech/Qt-4.3.0beta/include/QtCore/qchar.h:219: warning:
type qualifiers ignored on function return type
/usr/local/Trolltech/Qt-4.3.0beta/include/QtCore/qchar.h:220: warning:
type qualifiers ignored on function return type
/usr/local/Trolltech/Qt-4.3.0beta/include/QtCore/qchar.h:221: warning:
type qualifiers ignored on function return type
/usr/local/Trolltech/Qt-4.3.0beta/include/QtCore/qchar.h:322: warning:
type qualifiers ignored on function return type
Also, when I tried to build qt4.3.0beta with gcc4.3.0 (hmm .. same
version numbers, both beta :) I ended up with this during ./configure:
The system byte order could not be detected!
Turn on verbose messaging (-v) to see the final report.
You can use the -little-endian or -big-endian switch to
./configure to continue.
When I retried it with -v:
Determining system architecture... (Linux:2.6.18-3-amd64:x86_64)
64-bit AMD 80x86 (x86_64)
'x86_64' is supported
System architecture: 'x86_64'
Precompiled-headers support enabled.
Separate debug info support enabled.
Symbol visibility control enabled.
math.h float functions enabled.
MMX support enabled.
SSE support enabled.
SSE2 support enabled.
You are licensed......
<<some irrelevant stuff cut out>>
Glib auto-detection... ()
g++ -c -m64 -pipe -O2 -Wall -W -I../../../mkspecs/linux-g++-64 -I.
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I.
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I. -o glib.o
glib.cpp
glib.cpp: In function 'int main(int, char**)':
glib.cpp:14: warning: 'pollfd' is used uninitialized in this function
g++ -m64 -Wl,-rpath,/usr/local/Trolltech/Qt-4.3.0beta/lib -o glib
glib.o -pthread -lgthread-2.0 -lglib-2.0
Glib enabled.
Determining machine byte-order...
(/home/source/qt-x11-opensource-src-4.3.0beta/mkspecs/linux-g++-64 yes
/home/source/qt-x11-opensource-src-4.3.0beta
/home/source/qt-x11-opensource-src-4.3.0beta)
make: Nothing to be done for `first'.
Unknown byte order!
The system byte order could not be detected!
Turn on verbose messaging (-v) to see the final report.
You can use the -little-endian or -big-endian switch to
./configure to continue.
Martin Petricek
To unsubscribe - send "unsubscribe" in the subject to qt4-preview-feedback-request@xxxxxxxxxxxxx
On Wednesday 04 April 2007 13:43:37 BH wrote: > I tried compiling with gcc 4.3.0 (it is still beta, but sooner or > later it will get in the distros) and I got quite a lot of warning in > the include headers.... > > $ g++ --version > g++ (GCC) 4.3.0 20070326 (experimental) > > /usr/local/Trolltech/Qt-4.3.0beta/include/QtCore/qbytearray.h:131: > warning: type qualifiers ignored on function return type > /usr/local/Trolltech/Qt-4.3.0beta/include/QtCore/qbytearray.h:132: > warning: type qualifiers ignored on function return type > /usr/local/Trolltech/Qt-4.3.0beta/include/QtCore/qbytearray.h:134: > warning: type qualifiers ignored on function return type > /usr/local/Trolltech/Qt-4.3.0beta/include/QtCore/qbytearray.h:330: > warning: type qualifiers ignored on function return type > /usr/local/Trolltech/Qt-4.3.0beta/include/QtCore/qbytearray.h:332: > warning: type qualifiers ignored on function return type > /usr/local/Trolltech/Qt-4.3.0beta/include/QtCore/qbytearray.h:334: > warning: type qualifiers ignored on function return type > /usr/local/Trolltech/Qt-4.3.0beta/include/QtCore/qbytearray.h:375: > warning: type qualifiers ignored on function return type > /usr/local/Trolltech/Qt-4.3.0beta/include/QtCore/qstring.h:771: > warning: type qualifiers ignored on function return type > /usr/local/Trolltech/Qt-4.3.0beta/include/QtCore/qstring.h:772: > warning: type qualifiers ignored on function return type > /usr/local/Trolltech/Qt-4.3.0beta/include/QtCore/qstring.h:773: > warning: type qualifiers ignored on function return type > /usr/local/Trolltech/Qt-4.3.0beta/include/QtGui/qimage.h: In member > function 'bool QImageTextKeyLang::operator<(const QImageTextKeyLang&) > const': > /usr/local/Trolltech/Qt-4.3.0beta/include/QtGui/qimage.h:58: warning: > suggest parentheses around && within || > /usr/local/Trolltech/Qt-4.3.0beta/include/QtCore/qchar.h:39: warning: > type qualifiers ignored on function return type > /usr/local/Trolltech/Qt-4.3.0beta/include/QtCore/qchar.h:40: warning: > type qualifiers ignored on function return type > /usr/local/Trolltech/Qt-4.3.0beta/include/QtCore/qchar.h:219: warning: > type qualifiers ignored on function return type > /usr/local/Trolltech/Qt-4.3.0beta/include/QtCore/qchar.h:220: warning: > type qualifiers ignored on function return type > /usr/local/Trolltech/Qt-4.3.0beta/include/QtCore/qchar.h:221: warning: > type qualifiers ignored on function return type > /usr/local/Trolltech/Qt-4.3.0beta/include/QtCore/qchar.h:322: warning: > type qualifiers ignored on function return type > > Also, when I tried to build qt4.3.0beta with gcc4.3.0 (hmm .. same > version numbers, both beta :) I ended up with this during ./configure: > > The system byte order could not be detected! > Turn on verbose messaging (-v) to see the final report. > You can use the -little-endian or -big-endian switch to > ./configure to continue. > > When I retried it with -v: > > Determining system architecture... (Linux:2.6.18-3-amd64:x86_64) > 64-bit AMD 80x86 (x86_64) > 'x86_64' is supported > System architecture: 'x86_64' > Precompiled-headers support enabled. > Separate debug info support enabled. > Symbol visibility control enabled. > math.h float functions enabled. > MMX support enabled. > SSE support enabled. > SSE2 support enabled. > You are licensed...... > > <<some irrelevant stuff cut out>> > > Glib auto-detection... () > g++ -c -m64 -pipe -O2 -Wall -W -I../../../mkspecs/linux-g++-64 -I. > -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I. > -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I. -o glib.o > glib.cpp > glib.cpp: In function 'int main(int, char**)': > glib.cpp:14: warning: 'pollfd' is used uninitialized in this function > g++ -m64 -Wl,-rpath,/usr/local/Trolltech/Qt-4.3.0beta/lib -o glib > glib.o -pthread -lgthread-2.0 -lglib-2.0 > Glib enabled. > Determining machine byte-order... > (/home/source/qt-x11-opensource-src-4.3.0beta/mkspecs/linux-g++-64 yes > /home/source/qt-x11-opensource-src-4.3.0beta > /home/source/qt-x11-opensource-src-4.3.0beta) > make: Nothing to be done for `first'. > Unknown byte order! > > The system byte order could not be detected! > Turn on verbose messaging (-v) to see the final report. > You can use the -little-endian or -big-endian switch to > ./configure to continue. One potential quick workaround is to edit config.tests/unix/endian/endiantest.cpp and remove the two "static" keywords in front of the arrays. That worked for me last time I tried. But since gcc 4.3 is not released yet I would take that with a grain of salt :) Simon
Attachment:
Attachment:
pgpIJGt3dkzPA.pgp
Description: PGP signature
Message 3 in thread
Tried the fix and it works. But later when I do "make" to build the
library, I end up at this:
rm -f libQtScript.so.4.3.0 libQtScript.so libQtScript.so.4 libQtScript.so.4.3
g++ -m64 -Wl,-rpath,/usr/local/Trolltech/Qt-4.3.0beta/lib
-Wl,-rpath,/usr/local/Trolltech/Qt-4.3.0beta/lib -shared
-Wl,-soname,libQtScript.so.4 -o libQtScript.so.4.3.0
.obj/release-shared/qscriptasm.o .obj/release-shared/qscriptast.o
.obj/release-shared/qscriptastvisitor.o
.obj/release-shared/qscriptcompiler.o
.obj/release-shared/qscriptecmaarray.o
.obj/release-shared/qscriptecmaboolean.o
.obj/release-shared/qscriptecmacore.o
.obj/release-shared/qscriptecmadate.o
.obj/release-shared/qscriptecmafunction.o
.obj/release-shared/qscriptecmaglobal.o
.obj/release-shared/qscriptecmamath.o
.obj/release-shared/qscriptecmanumber.o
.obj/release-shared/qscriptecmaobject.o
.obj/release-shared/qscriptecmaregexp.o
.obj/release-shared/qscriptecmastring.o
.obj/release-shared/qscriptecmaerror.o
.obj/release-shared/qscriptcontext_p.o
.obj/release-shared/qscriptengine.o
.obj/release-shared/qscriptengine_p.o
.obj/release-shared/qscriptextenumeration.o
.obj/release-shared/qscriptextvariant.o
.obj/release-shared/qscriptcontext.o
.obj/release-shared/qscriptfunction.o
.obj/release-shared/qscriptgrammar.o
.obj/release-shared/qscriptlexer.o
.obj/release-shared/qscriptclassdata.o
.obj/release-shared/qscriptparser.o
.obj/release-shared/qscriptprettypretty.o
.obj/release-shared/qscriptsyntaxchecker.o
.obj/release-shared/qscriptvalueiterator.o
.obj/release-shared/qscriptvalueimpl.o
.obj/release-shared/qscriptvalue.o
.obj/release-shared/qscriptextqobject.o
.obj/release-shared/qscriptable.o
.obj/release-shared/qscriptextensionplugin.o
.obj/release-shared/moc_qscriptengine.o
.obj/release-shared/moc_qscriptextensionplugin.o
-L/home/source/qt-x11-opensource-src-4.3.0beta/lib -lQtCore
-L/home/source/qt-x11-opensource-src-4.3.0beta/lib -lz -lm -pthread
-lgthread-2.0 -lglib-2.0 -lrt -lpthread -ldl
/usr/bin/ld: .obj/release-shared/qscriptecmaboolean.o: relocation
R_X86_64_PC32 against
`QExplicitlySharedDataPointer<QScriptObjectData>::~QExplicitlySharedDataPointer()'
can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
make[1]: *** [../../lib/libQtScript.so.4.3.0] Error 1
make[1]: Leaving directory
`/home/source/qt-x11-opensource-src-4.3.0beta/src/script'
make: *** [sub-script-make_default-ordered] Error 2
Well, the same with gcc 4.1.2 went fine few days ago.
gcc 4.3 is not yet released, but so is qt4.3beta not yet oficially
released. One day it will be both ... maybe not much later than
release of qt4.3 final (which should be june or july if I remember
correctly) .... I am not familiar with gcc release cycle, so I can't
tell the date for gcc ....
Martin Petricek
On 4/4/07, Simon Hausmann <simon.hausmann@xxxxxxxxxxxxx> wrote:
> On Wednesday 04 April 2007 13:43:37 BH wrote:
> > I tried compiling with gcc 4.3.0 (it is still beta, but sooner or
> > later it will get in the distros) and I got quite a lot of warning in
> > the include headers....
> >
> > $ g++ --version
> > g++ (GCC) 4.3.0 20070326 (experimental)
> >
> > /usr/local/Trolltech/Qt-4.3.0beta/include/QtCore/qbytearray.h:131:
> > warning: type qualifiers ignored on function return type
> > /usr/local/Trolltech/Qt-4.3.0beta/include/QtCore/qbytearray.h:132:
> > warning: type qualifiers ignored on function return type
> > /usr/local/Trolltech/Qt-4.3.0beta/include/QtCore/qbytearray.h:134:
> > warning: type qualifiers ignored on function return type
> > /usr/local/Trolltech/Qt-4.3.0beta/include/QtCore/qbytearray.h:330:
> > warning: type qualifiers ignored on function return type
> > /usr/local/Trolltech/Qt-4.3.0beta/include/QtCore/qbytearray.h:332:
> > warning: type qualifiers ignored on function return type
> > /usr/local/Trolltech/Qt-4.3.0beta/include/QtCore/qbytearray.h:334:
> > warning: type qualifiers ignored on function return type
> > /usr/local/Trolltech/Qt-4.3.0beta/include/QtCore/qbytearray.h:375:
> > warning: type qualifiers ignored on function return type
> > /usr/local/Trolltech/Qt-4.3.0beta/include/QtCore/qstring.h:771:
> > warning: type qualifiers ignored on function return type
> > /usr/local/Trolltech/Qt-4.3.0beta/include/QtCore/qstring.h:772:
> > warning: type qualifiers ignored on function return type
> > /usr/local/Trolltech/Qt-4.3.0beta/include/QtCore/qstring.h:773:
> > warning: type qualifiers ignored on function return type
> > /usr/local/Trolltech/Qt-4.3.0beta/include/QtGui/qimage.h: In member
> > function 'bool QImageTextKeyLang::operator<(const QImageTextKeyLang&)
> > const':
> > /usr/local/Trolltech/Qt-4.3.0beta/include/QtGui/qimage.h:58: warning:
> > suggest parentheses around && within ||
> > /usr/local/Trolltech/Qt-4.3.0beta/include/QtCore/qchar.h:39: warning:
> > type qualifiers ignored on function return type
> > /usr/local/Trolltech/Qt-4.3.0beta/include/QtCore/qchar.h:40: warning:
> > type qualifiers ignored on function return type
> > /usr/local/Trolltech/Qt-4.3.0beta/include/QtCore/qchar.h:219: warning:
> > type qualifiers ignored on function return type
> > /usr/local/Trolltech/Qt-4.3.0beta/include/QtCore/qchar.h:220: warning:
> > type qualifiers ignored on function return type
> > /usr/local/Trolltech/Qt-4.3.0beta/include/QtCore/qchar.h:221: warning:
> > type qualifiers ignored on function return type
> > /usr/local/Trolltech/Qt-4.3.0beta/include/QtCore/qchar.h:322: warning:
> > type qualifiers ignored on function return type
> >
> > Also, when I tried to build qt4.3.0beta with gcc4.3.0 (hmm .. same
> > version numbers, both beta :) I ended up with this during ./configure:
> >
> > The system byte order could not be detected!
> > Turn on verbose messaging (-v) to see the final report.
> > You can use the -little-endian or -big-endian switch to
> > ./configure to continue.
> >
> > When I retried it with -v:
> >
> > Determining system architecture... (Linux:2.6.18-3-amd64:x86_64)
> > 64-bit AMD 80x86 (x86_64)
> > 'x86_64' is supported
> > System architecture: 'x86_64'
> > Precompiled-headers support enabled.
> > Separate debug info support enabled.
> > Symbol visibility control enabled.
> > math.h float functions enabled.
> > MMX support enabled.
> > SSE support enabled.
> > SSE2 support enabled.
> > You are licensed......
> >
> > <<some irrelevant stuff cut out>>
> >
> > Glib auto-detection... ()
> > g++ -c -m64 -pipe -O2 -Wall -W -I../../../mkspecs/linux-g++-64 -I.
> > -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I.
> > -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I. -o glib.o
> > glib.cpp
> > glib.cpp: In function 'int main(int, char**)':
> > glib.cpp:14: warning: 'pollfd' is used uninitialized in this function
> > g++ -m64 -Wl,-rpath,/usr/local/Trolltech/Qt-4.3.0beta/lib -o glib
> > glib.o -pthread -lgthread-2.0 -lglib-2.0
> > Glib enabled.
> > Determining machine byte-order...
> > (/home/source/qt-x11-opensource-src-4.3.0beta/mkspecs/linux-g++-64 yes
> > /home/source/qt-x11-opensource-src-4.3.0beta
> > /home/source/qt-x11-opensource-src-4.3.0beta)
> > make: Nothing to be done for `first'.
> > Unknown byte order!
> >
> > The system byte order could not be detected!
> > Turn on verbose messaging (-v) to see the final report.
> > You can use the -little-endian or -big-endian switch to
> > ./configure to continue.
>
> One potential quick workaround is to edit
>
> config.tests/unix/endian/endiantest.cpp
>
> and remove the two "static" keywords in front of the arrays.
>
> That worked for me last time I tried. But since gcc 4.3 is not released yet I
> would take that with a grain of salt :)
>
> Simon
>
>
To unsubscribe - send "unsubscribe" in the subject to qt4-preview-feedback-request@xxxxxxxxxxxxx