[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    [OT ?] compilation problems kdelibs/arts and gcc-3_0-branch
From:       Gerald Roth <gerald.roth () aon ! at>
Date:       2001-06-08 11:41:50
[Download RAW message or body]

hi

this may possibly be OT on this list but i'll post it anyway... if you come 
to the conclusion that this belongs to gcc-bugs@gcc.gnu.org i will not waste 
your bandwith any longer with this...

since last month i try to get kde compile with gcc CVS (gcc-3_0-branch daily 
updated, target i686-pc-linux-gnu). because kdelibs needs to be compiled 
first i cannot say anything about the other packages yet, but kdelibs (daily 
cvs) fails to compile with gcc3 in the arts subdirectory:

make[3]: Entering directory `/usr/src/kde2/cvs/kdelibs/arts/mcopidl'
creating mcopidl.all_cc.cc ...
g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I./../mcop -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   
-D_REENTRANT -I/usr/local/include  -DNDEBUG -fno-exceptions -fno-check-new 
-march=athlon -frtti  -c mcopidl.all_cc.cc
In file included from mcopidl.all_cc.cc:2:
mcopidl.cc: In function `void moveIfChanged(std::basic_string<char,
   std::char_traits<char>, std::allocator<char> >)':
mcopidl.cc:790: call of overloaded `memcmp(unsigned char*&, unsigned char*&,
   size_t&)' is ambiguous
/usr/include/string.h:58: candidates are: int memcmp(const void*, const void*,
   unsigned int)
/usr/local/include/g++-v3/bits/std_cstring.h:120:                 int
   std::memcmp(const void*, const void*, unsigned int)
mcopidl.cc: In function `void doIncludeHeader(FILE*)':
mcopidl.cc:825: call of overloaded `strlen(char*&)' is ambiguous
/usr/include/string.h:207: candidates are: size_t strlen(const char*)
/usr/local/include/g++-v3/bits/std_cstring.h:200:                 size_t
   std::strlen(const char*)
mcopidl.cc:827: call of overloaded `strlen(char*&)' is ambiguous
/usr/include/string.h:207: candidates are: size_t strlen(const char*)
/usr/local/include/g++-v3/bits/std_cstring.h:200:                 size_t
   std::strlen(const char*)
mcopidl.cc:829: call of overloaded `strlen(char*&)' is ambiguous
/usr/include/string.h:207: candidates are: size_t strlen(const char*)
/usr/local/include/g++-v3/bits/std_cstring.h:200:                 size_t
   std::strlen(const char*)
mcopidl.cc: In function `int main(int, char**)':
mcopidl.cc:2570: call of overloaded `strlen(char*&)' is ambiguous
/usr/include/string.h:207: candidates are: size_t strlen(const char*)
/usr/local/include/g++-v3/bits/std_cstring.h:200:                 size_t
   std::strlen(const char*)
mcopidl.cc:2570: call of overloaded `strlen(char*&)' is ambiguous
/usr/include/string.h:207: candidates are: size_t strlen(const char*)
/usr/local/include/g++-v3/bits/std_cstring.h:200:                 size_t
   std::strlen(const char*)
mcopidl.cc:2574: call of overloaded `strlen(char*&)' is ambiguous
/usr/include/string.h:207: candidates are: size_t strlen(const char*)
/usr/local/include/g++-v3/bits/std_cstring.h:200:                 size_t
   std::strlen(const char*)
In file included from mcopidl.all_cc.cc:3:
yacc.yy: In function `int yyparse()':
yacc.yy:415: call of overloaded `strlen(char*&)' is ambiguous
/usr/include/string.h:207: candidates are: size_t strlen(const char*)
/usr/local/include/g++-v3/bits/std_cstring.h:200:                 size_t
   std::strlen(const char*)
yacc.yy:417: call of overloaded `strcpy(char*, char*&)' is ambiguous
/usr/include/string.h:72: candidates are: char* strcpy(char*, const char*)
/usr/local/include/g++-v3/bits/std_cstring.h:104:                 char*
   std::strcpy(char*, const char*)
make[3]: *** [mcopidl.all_cc.o] Error 1
make[3]: Leaving directory `/usr/src/kde2/cvs/kdelibs/arts/mcopidl'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/kde2/cvs/kdelibs/arts'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/kde2/cvs/kdelibs'
make: *** [all-recursive-am] Error 2

i've tried --enable-final and without --enable-final, both variants fail with 
the same error. (gcc version 3.0 20010607 (prerelease))

one month ago there was a different compilation error (see GCC bug report
C++/2733 - (gcc version 3.0 20010503 (prerelease))) that affected 
arts/flow/convert.cc:

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

stefan westerfeld agreed that this was a gcc bug. i'm not sure if it is fixed 
yet, because the stuff in flow/ is AFAIK compiled after the mcop/ and 
mcopidl/ stuff. 

since gcc3's release date is coming soon (june 15th - see 
http://gcc.gnu.org/ml/gcc/2001-05/msg01044.html) and it would be nice if kde 
would compile out-of-the-box with gcc 3.0 i wanted to inform you...

thanks for all your work

gerald 

>> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic