This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Does the 3.0 Branch correctly build QT/KDE?
- To: gcc at gcc dot gnu dot org
- Subject: Re: Does the 3.0 Branch correctly build QT/KDE?
- From: Gerald Roth <gerald dot roth at aon dot at>
- Date: Tue, 5 Jun 2001 21:39:40 +0200
- Organization: University of Graz, Austria
hi
if kdelibs/arts/flow/convert.cc hasn't changed much between 2.1.1 and recent
cvs, and if you try to compile it on a i686-pc-linux-gnu target, you will see
the following error msg:
make[1]: Entering directory /usr/src/kde2/cvs/kdelibs/arts/flow'
/bin/sh ../../libtool --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I.
-I../.. -I../../dcop -I../../libltdl -I../../kdecore -I../../kdeui
-I../../kssl -I/usr/src/kde2/cvs/qt-copy/include -I/usr/X11R6/include
-I/opt/kde/include -I../../arts/mcop -DQT_THREAD_SUPPORT -pthread
-D_REENTRANT -O2 -DNDEBUG -fno-exceptions -fno-check-new -O3 -march=athlon
-frtti -ftemplate-depth-99 -DQT_NO_TRANSLATION -DQT_CLEAN_NAMESPACE
-DQT_NO_COMPAT -DQT_NO_ASCII_CAST -c convert.cc
g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../dcop -I../../libltdl
-I../../kdecore -I../../kdeui -I../../kssl
-I/usr/src/kde2/cvs/qt-copy/include -I/usr/X11R6/include -I/opt/kde/include
-I../../arts/mcop -DQT_THREAD_SUPPORT -pthread -D_REENTRANT -O2 -DNDEBUG
-fno-exceptions -fno-check-new -O3 -march=athlon -frtti -ftemplate-depth-99
-DQT_NO_TRANSLATION -DQT_CLEAN_NAMESPACE -DQT_NO_COMPAT -DQT_NO_ASCII_CAST
-Wp,-MD,.deps/convert.pp -c convert.cc -fPIC -DPIC -o .libs/convert.o
convert.cc: In function `void Arts::convert_stereo_2float_i16le(long unsigned
int, float*, float*, unsigned char*)':
convert.cc:33: output number 0 not directly addressable
convert.cc:33: output number 0 not directly addressable
convert.cc:33: inconsistent operand constraints in an `asm'
convert.cc:33: inconsistent operand constraints in an `asm'
convert.cc: In function `void Arts::convert_mono_float_16le(long unsigned int,
float*, unsigned char*)':
convert.cc:33: output number 0 not directly addressable
convert.cc:33: inconsistent operand constraints in an `asm'
convert.cc: In function `void Arts::convert_stereo_2float_i16be(long unsigned
int, float*, float*, unsigned char*)':
convert.cc:33: output number 0 not directly addressable
convert.cc:33: output number 0 not directly addressable
convert.cc:33: inconsistent operand constraints in an `asm'
convert.cc:33: inconsistent operand constraints in an `asm'
convert.cc: In function `void Arts::convert_mono_float_16be(long unsigned int,
float*, unsigned char*)':
convert.cc:33: output number 0 not directly addressable
convert.cc:33: inconsistent operand constraints in an `asm'
make[1]: *** [convert.lo] Error 1
make[1]: Leaving directory `/usr/src/kde2/cvs/kdelibs/arts/flow'
make: *** [all-recursive] Error 1
see PR C++/2733, reported Thu May 03 13:16:01 PDT 2001
gcc 2.95.3 works fine on this code.
compilation may finish when you comment out the #ifdef and the asm stuff
around line 33 and let
static inline long QRound (float inval)
{
return (long)inval;
}
in. however, artsd likes to segfault with this modification...
the problem persists at least with the following gcc versions:
gcc version 3.0 20010503
gcc version 3.0 20010604
regards
gerald