| Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date | |
| All threads index page 2 | |
Hi list,
I wonder if there are known issues. I could not find anything on the web.
Any ideas why this could happen?
Regards,
Hanno
The newly built qmake fails at testruns like:
g++ -o "/mnt/data/tmp/portage/x11-libs/qt-4.3.4/work/qt-x11-opensource-src-4.3.4/bin/qmake" project.o property.o main.o makefile.o unixmake2.o unixmake.o mingw_make.o option.o winmakefile.o projectgenerator.o meta.o makefiledeps.o metamakefile.o xmloutput.o pbuilder_pbx.o borland_bmake.o msvc_dsp.o msvc_vcproj.o msvc_nmake.o msvc_objectmodel.o qstring.o qtextstream.o qiodevice.o qglobal.o qbytearray.o qbytearraymatcher.o qdatastream.o qbuffer.o qlistdata.o qfile.o qfsfileengine_unix.o qfsfileengine_iterator_unix.o qfsfileengine.o qfsfileengine_iterator.o qregexp.o qvector.o qbitarray.o qdir.o qdiriterator.o quuid.o qhash.o qfileinfo.o qdatetime.o qstringlist.o qabstractfileengine.o qtemporaryfile.o qmap.o qmetatype.o qsettings.o qlibraryinfo.o qvariant.o qvsnprintf.o qlocale.o qlinkedlist.o qurl.o qnumeric.o qcryptographichash.o qscriptasm.o qscriptast.o qscriptastvisitor.o qscriptcompiler.o qscriptecmaarray.o qscriptecmaboolean.o qscriptecmacore.o qscriptecmadate.o qscriptecmafunction.o qscriptecmaglobal.o qscriptecmamath.o qscriptecmanumber.o qscriptecmaobject.o qscriptecmaregexp.o qscriptecmastring.o qscriptecmaerror.o qscriptcontext_p.o qscriptengine.o qscriptengine_p.o qscriptextenumeration.o qscriptextvariant.o qscriptcontext.o qscriptfunction.o qscriptgrammar.o qscriptlexer.o qscriptclassdata.o qscriptparser.o qscriptprettypretty.o qscriptsyntaxchecker.o qscriptvalue.o qscriptvalueimpl.o qscriptvalueiterator.o -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,--sort-common
floatmath auto-detection... ()
/mnt/data/tmp/portage/x11-libs/qt-4.3.4/work/qt-x11-opensource-src-4.3.4/config.tests/unix/compile.test: line 55: 19281 Speicherzugriffsfehler "$OUTDIR/bin/qmake" -nocache -spec "$QMKSPEC" "CONFIG+=$QMAKE_CONFIG" "LIBS*=$LFLAGS" "INCLUDEPATH*=$INCLUDEPATH" "QMAKE_CXXFLAGS*=$CXXFLAGS" "$SRCDIR/$TEST/$EXE.pro" -o "$OUTDIR/$TEST/Makefile"
make: *** Keine Targets angegeben und keine ÂmakeÂ-Steuerdatei gefunden. Schluss.
The failing command:
/mnt/data/tmp/portage/x11-libs/qt-4.3.4/work/qt-x11-opensource-src-4.3.4/bin/qmake -nocache -spec /mnt/data/tmp/portage/x11-libs/qt-4.3.4/work/qt-x11-opensource-src-4.3.4/mkspecs/linux-g++ CONFIG+="" LIBS*="-L/usr/lib64 -L/usr/lib64/mysql" INCLUDEPATH*=/usr/include/mysql QMAKE_CXXFLAGS*="" /mnt/data/tmp/portage/x11-libs/qt-4.3.4/work/qt-x11-opensource-src-4.3.4/config.tests/unix/floatmath/floatmath.pro -o /mnt/data/tmp/portage/x11-libs/qt-4.3.4/work/qt-x11-opensource-src-4.3.4/config.tests/unix/floatmath/Makefile
In gdb I get this:
Program received signal SIGSEGV, Segmentation fault.
QRegExpCharClass::operator= (this=0x9b92b0, cc=@0x98e4c0) at /mnt/data/tmp/portage/x11-libs/qt-4.3.4/work/qt-x11-opensource-src-4.3.4/include/QtCore/../../src/corelib/arch/qatomic_generic.h:80
80 { return ++(*ptr); }
(gdb) bt
#0 QRegExpCharClass::operator= (this=0x9b92b0, cc=@0x98e4c0) at /mnt/data/tmp/portage/x11-libs/qt-4.3.4/work/qt-x11-opensource-src-4.3.4/include/QtCore/../../src/corelib/arch/qatomic_generic.h:80
#1 0x00000000005c1b3f in QVector<QRegExpCharClass>::realloc (this=0x9b8750, asize=1, aalloc=3)
at /mnt/data/tmp/portage/x11-libs/qt-4.3.4/work/qt-x11-opensource-src-4.3.4/src/corelib/tools/qregexp.cpp:1022
#2 0x00000000005c1dfd in QVector<QRegExpCharClass>::append (this=0x9b8750, t=<value optimized out>)
at /mnt/data/tmp/portage/x11-libs/qt-4.3.4/work/qt-x11-opensource-src-4.3.4/src/corelib/tools/qvector.h:514
#3 0x00000000005bd073 in QRegExpEngine::createState (this=0x9b8720, cc=<value optimized out>) at /mnt/data/tmp/portage/x11-libs/qt-4.3.4/work/qt-x11-opensource-src-4.3.4/src/corelib/tools/qvector.h:276
#4 0x00000000005bd19b in QRegExpEngine::Box::set (this=0x7fff745fca10, cc=@0x7fff745fca70) at /mnt/data/tmp/portage/x11-libs/qt-4.3.4/work/qt-x11-opensource-src-4.3.4/src/corelib/tools/qregexp.cpp:2448
#5 0x00000000005bdf10 in QRegExpEngine::parse (this=0x9b8720, pattern=<value optimized out>, len=<value optimized out>)
at /mnt/data/tmp/portage/x11-libs/qt-4.3.4/work/qt-x11-opensource-src-4.3.4/src/corelib/tools/qregexp.cpp:3025
#6 0x00000000005bea7d in QRegExpEngine (this=0x9b8720, key=@0x9b84b8) at /mnt/data/tmp/portage/x11-libs/qt-4.3.4/work/qt-x11-opensource-src-4.3.4/src/corelib/tools/qregexp.cpp:1330
#7 0x00000000005becaf in prepareEngine_helper (priv=0x9b84b0) at /mnt/data/tmp/portage/x11-libs/qt-4.3.4/work/qt-x11-opensource-src-4.3.4/src/corelib/tools/qregexp.cpp:3371
#8 0x00000000005bf745 in QRegExp::operator= (this=0x9b85e0, rx=@0x98e4c0) at /mnt/data/tmp/portage/x11-libs/qt-4.3.4/work/qt-x11-opensource-src-4.3.4/src/corelib/tools/qregexp.cpp:3382
#9 0x000000000065f40d in QScript::Ecma::RegExp::newRegExp_helper (this=0x9b7f10, result=0x9b7f38, rx=@0x7fff745fcd20, flags=@0x7fff745fcf10)
at /mnt/data/tmp/portage/x11-libs/qt-4.3.4/work/qt-x11-opensource-src-4.3.4/src/script/qscriptecmaregexp.cpp:157
#10 0x00000000006602a6 in QScript::Ecma::RegExp::newRegExp (this=0x9b7f10, result=0x9b7f38, pattern=@0x7fff745fcf00, flags=@0x7fff745fcf10)
at /mnt/data/tmp/portage/x11-libs/qt-4.3.4/work/qt-x11-opensource-src-4.3.4/src/script/qscriptecmaregexp.cpp:128
#11 0x0000000000660c49 in RegExp (this=0x9b7f10, eng=0x99aa20) at /mnt/data/tmp/portage/x11-libs/qt-4.3.4/work/qt-x11-opensource-src-4.3.4/src/script/qscriptecmaregexp.cpp:66
#12 0x00000000006909f4 in QScriptEnginePrivate::init (this=0x99aa20) at /mnt/data/tmp/portage/x11-libs/qt-4.3.4/work/qt-x11-opensource-src-4.3.4/src/script/qscriptengine_p.cpp:1509
#13 0x000000000042c6bd in main (argc=<value optimized out>, argv=<value optimized out>) at project.h:120
And just before it segfaults:
(gdb) p cc
$9 = (const QRegExpCharClass &) @0x98e4c0: {c = 10170336, r = {{p = 0x0, d = 0x0}}, n = 7, occ1 = {{p = 0x400000000, d = 0x400000000}}}
cc.r.p and cc.r.d are zero?!
My configuration:
./configure -stl -verbose -largefile -confirm-license -platform linux-g++ -xplatform linux-g++ -no-rpath -prefix /usr -bindir /usr/bin -libdir /usr/lib64/qt4 -datadir /usr/share/qt4 -docdir /usr/share/doc/qt-4.3.4 -headerdir /usr/include/qt4 -plugindir /usr/lib64/qt4/plugins -sysconfdir /etc/qt4 -translationdir /usr/share/qt4/translations -examplesdir /usr/share/qt4/examples -demosdir /usr/share/qt4/demos -L/usr/lib64 -reduce-relocations -accessibility -cups -xinerama -opengl -no-nis -qt-gif -system-libpng -system-libjpeg -no-libtiff -system-zlib -no-libmng -debug -no-separate-debug-info -plugin-sql-mysql -I/usr/include/mysql -L/usr/lib64/mysql -no-sql-psql -no-sql-ibase -no-sql-sqlite -no-sql-sqlite2 -no-sql-odbc -qdbus -no-glib -qt3support -openssl -no-pch -no-tablet -xrender -xrandr -xkb -xshape -sm
This is the Qt/X11 Open Source Edition.
Determining system architecture... (Linux:2.6.24-gentoo-r3:x86_64)
64-bit AMD 80x86 (x86_64)
'x86_64' is supported
System architecture: 'x86_64'
Symbol visibility control enabled.
Symbolic function binding enabled
CFLAGS="-O2 -mtune=core2 -march=core2 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS} -fvisibility-inlines-hidden"
LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,--sort-common"
--
[ signature omitted ]
On Thu, March 13, 2008 13:35, Hanno Meyer-Thurow wrote:
> The newly built qmake fails at testruns like:
>
> g++ -o
> "/mnt/data/tmp/portage/x11-libs/qt-4.3.4/work/qt-x11-opensource-src-4.3.4/bin/qmake"
[cut]
You need to install it properly before you can use it. Run "make install"
in the Qt directory, that will usually install it to
/usr/local/Trolltech/Qt-4.3.4
Hint: the qmake used to make Qt itself is slightly different from the one
you need, that's why you get this Error.
Konrad
--
[ signature omitted ]
On Thu, 13 Mar 2008 14:33:18 +0100 (CET) "Konrad Rosenbaum" <konrad@xxxxxxxxx> wrote: > On Thu, March 13, 2008 13:35, Hanno Meyer-Thurow wrote: > > The newly built qmake fails at testruns like: > > > > g++ -o > > "/mnt/data/tmp/portage/x11-libs/qt-4.3.4/work/qt-x11-opensource-src-4.3.4/bin/qmake" > [cut] > > You need to install it properly before you can use it. Run "make install" > in the Qt directory, that will usually install it to > /usr/local/Trolltech/Qt-4.3.4 Well, that happens when executing: make all So 'make all' should not call these testruns..? Regards, Hanno -- [ signature omitted ]
Hi,
I think a possible problem are the -mtune=core2 and -march=core2
CFLAGS combined with an AMD cpu. GCC 4.3 optimizes core2 for Intel's
Core 2 CPUs.
Regards,
Thomas
2008/3/13, Hanno Meyer-Thurow <h.mth@xxxxxx>:
> Hi list,
> I wonder if there are known issues. I could not find anything on the web.
> Any ideas why this could happen?
>
>
> Regards,
> Hanno
>
>
> The newly built qmake fails at testruns like:
>
> g++ -o "/mnt/data/tmp/portage/x11-libs/qt-4.3.4/work/qt-x11-opensource-src-4.3.4/bin/qmake" project.o property.o main.o makefile.o unixmake2.o unixmake.o mingw_make.o option.o winmakefile.o projectgenerator.o meta.o makefiledeps.o metamakefile.o xmloutput.o pbuilder_pbx.o borland_bmake.o msvc_dsp.o msvc_vcproj.o msvc_nmake.o msvc_objectmodel.o qstring.o qtextstream.o qiodevice.o qglobal.o qbytearray.o qbytearraymatcher.o qdatastream.o qbuffer.o qlistdata.o qfile.o qfsfileengine_unix.o qfsfileengine_iterator_unix.o qfsfileengine.o qfsfileengine_iterator.o qregexp.o qvector.o qbitarray.o qdir.o qdiriterator.o quuid.o qhash.o qfileinfo.o qdatetime.o qstringlist.o qabstractfileengine.o qtemporaryfile.o qmap.o qmetatype.o qsettings.o qlibraryinfo.o qvariant.o qvsnprintf.o qlocale.o qlinkedlist.o qurl.o qnumeric.o qcryptographichash.o qscriptasm.o qscriptast.o qscriptastvisitor.o qscriptcompiler.o qscriptecmaarray.o qscriptecmaboolean.o qscriptecmacore.o qscriptecmadate.o qscriptecmafunction.o qscriptecmaglobal.o qscriptecmamath.o qscriptecmanumber.o qscriptecmaobject.o qscriptecmaregexp.o qscriptecmastring.o qscriptecmaerror.o qscriptcontext_p.o qscriptengine.o qscriptengine_p.o qscriptextenumeration.o qscriptextvariant.o qscriptcontext.o qscriptfunction.o qscriptgrammar.o qscriptlexer.o qscriptclassdata.o qscriptparser.o qscriptprettypretty.o qscriptsyntaxchecker.o qscriptvalue.o qscriptvalueimpl.o qscriptvalueiterator.o -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,--sort-common
> floatmath auto-detection... ()
> /mnt/data/tmp/portage/x11-libs/qt-4.3.4/work/qt-x11-opensource-src-4.3.4/config.tests/unix/compile.test: line 55: 19281 Speicherzugriffsfehler "$OUTDIR/bin/qmake" -nocache -spec "$QMKSPEC" "CONFIG+=$QMAKE_CONFIG" "LIBS*=$LFLAGS" "INCLUDEPATH*=$INCLUDEPATH" "QMAKE_CXXFLAGS*=$CXXFLAGS" "$SRCDIR/$TEST/$EXE.pro" -o "$OUTDIR/$TEST/Makefile"
> make: *** Keine Targets angegeben und keine »make«-Steuerdatei gefunden. Schluss.
>
>
> The failing command:
>
> /mnt/data/tmp/portage/x11-libs/qt-4.3.4/work/qt-x11-opensource-src-4.3.4/bin/qmake -nocache -spec /mnt/data/tmp/portage/x11-libs/qt-4.3.4/work/qt-x11-opensource-src-4.3.4/mkspecs/linux-g++ CONFIG+="" LIBS*="-L/usr/lib64 -L/usr/lib64/mysql" INCLUDEPATH*=/usr/include/mysql QMAKE_CXXFLAGS*="" /mnt/data/tmp/portage/x11-libs/qt-4.3.4/work/qt-x11-opensource-src-4.3.4/config.tests/unix/floatmath/floatmath.pro -o /mnt/data/tmp/portage/x11-libs/qt-4.3.4/work/qt-x11-opensource-src-4.3.4/config.tests/unix/floatmath/Makefile
>
>
> In gdb I get this:
>
> Program received signal SIGSEGV, Segmentation fault.
> QRegExpCharClass::operator= (this=0x9b92b0, cc=@0x98e4c0) at /mnt/data/tmp/portage/x11-libs/qt-4.3.4/work/qt-x11-opensource-src-4.3.4/include/QtCore/../../src/corelib/arch/qatomic_generic.h:80
> 80 { return ++(*ptr); }
> (gdb) bt
> #0 QRegExpCharClass::operator= (this=0x9b92b0, cc=@0x98e4c0) at /mnt/data/tmp/portage/x11-libs/qt-4.3.4/work/qt-x11-opensource-src-4.3.4/include/QtCore/../../src/corelib/arch/qatomic_generic.h:80
> #1 0x00000000005c1b3f in QVector<QRegExpCharClass>::realloc (this=0x9b8750, asize=1, aalloc=3)
> at /mnt/data/tmp/portage/x11-libs/qt-4.3.4/work/qt-x11-opensource-src-4.3.4/src/corelib/tools/qregexp.cpp:1022
> #2 0x00000000005c1dfd in QVector<QRegExpCharClass>::append (this=0x9b8750, t=<value optimized out>)
> at /mnt/data/tmp/portage/x11-libs/qt-4.3.4/work/qt-x11-opensource-src-4.3.4/src/corelib/tools/qvector.h:514
> #3 0x00000000005bd073 in QRegExpEngine::createState (this=0x9b8720, cc=<value optimized out>) at /mnt/data/tmp/portage/x11-libs/qt-4.3.4/work/qt-x11-opensource-src-4.3.4/src/corelib/tools/qvector.h:276
> #4 0x00000000005bd19b in QRegExpEngine::Box::set (this=0x7fff745fca10, cc=@0x7fff745fca70) at /mnt/data/tmp/portage/x11-libs/qt-4.3.4/work/qt-x11-opensource-src-4.3.4/src/corelib/tools/qregexp.cpp:2448
> #5 0x00000000005bdf10 in QRegExpEngine::parse (this=0x9b8720, pattern=<value optimized out>, len=<value optimized out>)
> at /mnt/data/tmp/portage/x11-libs/qt-4.3.4/work/qt-x11-opensource-src-4.3.4/src/corelib/tools/qregexp.cpp:3025
> #6 0x00000000005bea7d in QRegExpEngine (this=0x9b8720, key=@0x9b84b8) at /mnt/data/tmp/portage/x11-libs/qt-4.3.4/work/qt-x11-opensource-src-4.3.4/src/corelib/tools/qregexp.cpp:1330
> #7 0x00000000005becaf in prepareEngine_helper (priv=0x9b84b0) at /mnt/data/tmp/portage/x11-libs/qt-4.3.4/work/qt-x11-opensource-src-4.3.4/src/corelib/tools/qregexp.cpp:3371
> #8 0x00000000005bf745 in QRegExp::operator= (this=0x9b85e0, rx=@0x98e4c0) at /mnt/data/tmp/portage/x11-libs/qt-4.3.4/work/qt-x11-opensource-src-4.3.4/src/corelib/tools/qregexp.cpp:3382
> #9 0x000000000065f40d in QScript::Ecma::RegExp::newRegExp_helper (this=0x9b7f10, result=0x9b7f38, rx=@0x7fff745fcd20, flags=@0x7fff745fcf10)
> at /mnt/data/tmp/portage/x11-libs/qt-4.3.4/work/qt-x11-opensource-src-4.3.4/src/script/qscriptecmaregexp.cpp:157
> #10 0x00000000006602a6 in QScript::Ecma::RegExp::newRegExp (this=0x9b7f10, result=0x9b7f38, pattern=@0x7fff745fcf00, flags=@0x7fff745fcf10)
> at /mnt/data/tmp/portage/x11-libs/qt-4.3.4/work/qt-x11-opensource-src-4.3.4/src/script/qscriptecmaregexp.cpp:128
> #11 0x0000000000660c49 in RegExp (this=0x9b7f10, eng=0x99aa20) at /mnt/data/tmp/portage/x11-libs/qt-4.3.4/work/qt-x11-opensource-src-4.3.4/src/script/qscriptecmaregexp.cpp:66
> #12 0x00000000006909f4 in QScriptEnginePrivate::init (this=0x99aa20) at /mnt/data/tmp/portage/x11-libs/qt-4.3.4/work/qt-x11-opensource-src-4.3.4/src/script/qscriptengine_p.cpp:1509
> #13 0x000000000042c6bd in main (argc=<value optimized out>, argv=<value optimized out>) at project.h:120
>
>
> And just before it segfaults:
>
> (gdb) p cc
> $9 = (const QRegExpCharClass &) @0x98e4c0: {c = 10170336, r = {{p = 0x0, d = 0x0}}, n = 7, occ1 = {{p = 0x400000000, d = 0x400000000}}}
>
> cc.r.p and cc.r.d are zero?!
>
>
> My configuration:
>
> ./configure -stl -verbose -largefile -confirm-license -platform linux-g++ -xplatform linux-g++ -no-rpath -prefix /usr -bindir /usr/bin -libdir /usr/lib64/qt4 -datadir /usr/share/qt4 -docdir /usr/share/doc/qt-4.3.4 -headerdir /usr/include/qt4 -plugindir /usr/lib64/qt4/plugins -sysconfdir /etc/qt4 -translationdir /usr/share/qt4/translations -examplesdir /usr/share/qt4/examples -demosdir /usr/share/qt4/demos -L/usr/lib64 -reduce-relocations -accessibility -cups -xinerama -opengl -no-nis -qt-gif -system-libpng -system-libjpeg -no-libtiff -system-zlib -no-libmng -debug -no-separate-debug-info -plugin-sql-mysql -I/usr/include/mysql -L/usr/lib64/mysql -no-sql-psql -no-sql-ibase -no-sql-sqlite -no-sql-sqlite2 -no-sql-odbc -qdbus -no-glib -qt3support -openssl -no-pch -no-tablet -xrender -xrandr -xkb -xshape -sm
>
> This is the Qt/X11 Open Source Edition.
>
> Determining system architecture... (Linux:2.6.24-gentoo-r3:x86_64)
> 64-bit AMD 80x86 (x86_64)
> 'x86_64' is supported
> System architecture: 'x86_64'
> Symbol visibility control enabled.
> Symbolic function binding enabled
>
> CFLAGS="-O2 -mtune=core2 -march=core2 -pipe -fomit-frame-pointer"
> CXXFLAGS="${CFLAGS} -fvisibility-inlines-hidden"
> LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,--sort-common"
>
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
>
--
[ signature omitted ]
On Thu, 13 Mar 2008 14:35:18 +0100 "Thomas DÃhling" <t.daehling@xxxxxxxxxxxxxx> wrote: > Hi, > > I think a possible problem are the -mtune=core2 and -march=core2 > CFLAGS combined with an AMD cpu. GCC 4.3 optimizes core2 for Intel's > Core 2 CPUs. O sorry, I meant amd64 as general architecture. I have Intel's Core2Duo. Regards, Hanno -- [ signature omitted ]
On Thursday 13 March 2008 13:35:46 Hanno Meyer-Thurow wrote:
> Hi list,
> I wonder if there are known issues. I could not find anything on the web.
> Any ideas why this could happen?
I have been using gcc 4.3.0 and 4.3 pre-releases for a while. It and Qt 4.3.4
work just fine together.
> -Wl,--sort-common floatmath auto-detection... ()
> /mnt/data/tmp/portage/x11-libs/qt-4.3.4/work/qt-x11-opensource-src-4.3.4/co
>nfig.tests/unix/compile.test: line 55: 19281 Speicherzugriffsfehler
> "$OUTDIR/bin/qmake" -nocache -spec "$QMKSPEC" "CONFIG+=$QMAKE_CONFIG"
> "LIBS*=$LFLAGS" "INCLUDEPATH*=$INCLUDEPATH" "QMAKE_CXXFLAGS*=$CXXFLAGS"
> "$SRCDIR/$TEST/$EXE.pro" -o "$OUTDIR/$TEST/Makefile" make: *** Keine
> Targets angegeben und keine ÂmakeÂ-Steuerdatei gefunden. Schluss.
First of all, please switch your system to English before posting error
messages to mailing lists. On any Unix system, this will do:
export LC_ALL=C
The way it is above, I don't know if it's a segmentation fault, bus error,
assertion failure or whatnot. So I can't help you (at this point, see below).
> In gdb I get this:
>
> Program received signal SIGSEGV, Segmentation fault.
> QRegExpCharClass::operator= (this=0x9b92b0, cc=@0x98e4c0) at
> /mnt/data/tmp/portage/x11-libs/qt-4.3.4/work/qt-x11-opensource-src-4.3.4/in
>clude/QtCore/../../src/corelib/arch/qatomic_generic.h:80 80 { return
> ++(*ptr); }
I've never seen this. I do remember some fixes that went in about gcc's
optimisation being too aggressive, removing code blocks that actually did
stuff. It did that because in some places Qt violated/violates strict
aliasing rules.
> CFLAGS="-O2 -mtune=core2 -march=core2 -pipe -fomit-frame-pointer"
> CXXFLAGS="${CFLAGS} -fvisibility-inlines-hidden"
> LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,--sort-common"
I'll try the mtune and march options to see what happens.
--
[ signature omitted ]
Attachment:
signature.asc
Description: This is a digitally signed message part.
On Thu, 13 Mar 2008 15:51:42 +0100 Thiago Macieira <thiago.macieira@xxxxxxxxxxxxx> wrote: > On Thursday 13 March 2008 13:35:46 Hanno Meyer-Thurow wrote: > > Hi list, > > I wonder if there are known issues. I could not find anything on the web. > > Any ideas why this could happen? > > I have been using gcc 4.3.0 and 4.3 pre-releases for a while. It and Qt 4.3.4 > work just fine together. [cut] > I've never seen this. I do remember some fixes that went in about gcc's > optimisation being too aggressive, removing code blocks that actually did > stuff. It did that because in some places Qt violated/violates strict > aliasing rules. Correct. Thank you! Adding '-fno-strict-aliasing' to CFLAGS fixed the build. Any chance that the Qt build appends that flag to CFLAGS in these known places? Regards, Hanno -- [ signature omitted ]
Hanno Meyer-Thurow wrote: >Any chance that the Qt build appends that flag to CFLAGS >in these known places? I think we fixed the issue in Qt 4.4, so no, it won't be necessary to add the flag. However, the fix wasn't backported to 4.3 and probably won't be either. -- [ signature omitted ]
Attachment:
signature.asc
Description: This is a digitally signed message part.
Thiago Macieira wrote:
>> In gdb I get this:
>>
>> Program received signal SIGSEGV, Segmentation fault.
>> QRegExpCharClass::operator= (this=0x9b92b0, cc=@0x98e4c0) at
>> /mnt/data/tmp/portage/x11-libs/qt-4.3.4/work/qt-x11-opensource-src-4.3.4/in
>>clude/QtCore/../../src/corelib/arch/qatomic_generic.h:80 80 { return
>> ++(*ptr); }
>
> I've never seen this. I do remember some fixes that went in about gcc's
> optimisation being too aggressive, removing code blocks that actually did
> stuff. It did that because in some places Qt violated/violates strict
> aliasing rules.
We saw this in combination with -optimized-qmake , the following patch
helped:
http://cvs.fedoraproject.org/viewcvs/*checkout*/devel/qt/qt-x11-opensource-src-4.3.4-aliasing.patch
-- Rex
--
[ signature omitted ]