problem compiling MPlayer with gcc-3.0.1

Guillaume Rousse rousse@ccr.jussieu.fr
Tue Oct 2 11:45:00 GMT 2001


[guillaume@silbermann DirectShow]$  gcc-3.0.1 -v -save-temps -c -O4 
-march=athlon -mcpu=athlon -pipe -ffast-math -fomit-frame-pointer -I. -I.. 
-I/usr/local/include  -DNOAVIFILE_HEADERS -fexceptions  -o DS_AudioDec.o 
DS_AudioDec.cpp
gcc-3.0.1: Warning: -pipe ignored because -save-temps specified
Reading specs from 
/usr//bin/../lib/gcc-lib/i586-mandrake-linux-gnu/3.0.1/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man 
--infodir=/usr/share/info --enable-shared --enable-threads=posix 
--disable-checking --enable-long-long --enable-cstdio=stdio 
--enable-clocale=generic --enable-languages=c,c++,f77,objc,java 
--program-suffix=-3.0.1 --enable-objc-gc --host=i586-mandrake-linux-gnu
Thread model: posix
gcc version 3.0.1
 /usr//bin/../lib/gcc-lib/i586-mandrake-linux-gnu/3.0.1/cpp0 -lang-c++ 
-D__GNUG__=3 -D__GXX_DEPRECATED -D__EXCEPTIONS -D__GXX_ABI_VERSION=100 -v -I. 
-I.. -I/usr/local/include -iprefix 
/usr//bin/../lib/gcc-lib/i586-mandrake-linux-gnu/3.0.1/ -D__GNUC__=3 
-D__GNUC_MINOR__=0 -D__GNUC_PATCHLEVEL__=1 -D__ELF__ -Dunix -Dlinux -D__ELF__ 
-D__unix__ -D__linux__ -D__unix -D__linux -Asystem=posix -D__OPTIMIZE__ 
-D__FAST_MATH__ -D__STDC_HOSTED__=1 -D_GNU_SOURCE -Acpu=i386 -Amachine=i386 
-Di386 -D__i386 -D__i386__ -D__athlon -D__athlon__ -D__tune_athlon__ 
-DNOAVIFILE_HEADERS DS_AudioDec.cpp DS_AudioDec.ii
GNU CPP version 3.0.1 (cpplib) (i386 Linux/ELF)
ignoring nonexistent directory "/usr/i586-mandrake-linux-gnu/include"
ignoring nonexistent directory "/usr/i586-mandrake-linux-gnu/include"
ignoring duplicate directory "/usr/include/g++-v3"
ignoring duplicate directory "/usr/include/g++-v3/i586-mandrake-linux-gnu"
ignoring duplicate directory "/usr/include/g++-v3/backward"
ignoring duplicate directory "/usr/local/include"
ignoring duplicate directory 
"/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.0.1/include"
#include "..." search starts here:
#include <...> search starts here:
 .
 ..
 /usr/local/include
 /usr/include/g++-v3
 /usr/include/g++-v3/i586-mandrake-linux-gnu
 /usr/include/g++-v3/backward
 /usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.0.1/include
 /usr/include
End of search list.
 /usr//bin/../lib/gcc-lib/i586-mandrake-linux-gnu/3.0.1/cc1plus 
-fpreprocessed DS_AudioDec.ii -quiet -dumpbase DS_AudioDec.cpp -march=athlon 
-mcpu=athlon -O4 -version -ffast-math -fomit-frame-pointer -fexceptions -o 
DS_AudioDec.s
GNU CPP version 3.0.1 (cpplib) (i386 Linux/ELF)
GNU C++ version 3.0.1 (i586-mandrake-linux-gnu)
        compiled by GNU C version 3.0.1.
In file included from /usr/include/g++-v3/bits/std_cwchar.h:42,
                 from /usr/include/g++-v3/bits/fpos.h:40,
                 from /usr/include/g++-v3/bits/char_traits.h:40,
                 from /usr/include/g++-v3/bits/std_string.h:41,
                 from /usr/include/g++-v3/string:31,
                 from libwin32.h:36,
                 from DS_AudioDecoder.h:4,
                 from DS_AudioDec.cpp:5:
/usr/include/wchar.h: In function `long long int wcstoq(const wchar_t*,
   wchar_t**, int)':
/usr/include/wchar.h:514: cannot convert `const wchar_t* __restrict' to `const
   __gwchar_t*' for argument `1' to `long long int __wcstoll_internal(const
   __gwchar_t*, __gwchar_t**, int, int)'
/usr/include/wchar.h: In function `long long unsigned int wcstouq(const
   wchar_t*, wchar_t**, int)':
/usr/include/wchar.h:520: cannot convert `const wchar_t* __restrict' to `const
   __gwchar_t*' for argument `1' to `long long unsigned int
   __wcstoull_internal(const __gwchar_t*, __gwchar_t**, int, int)'

The problems converns optimisations, as removing the -O options make it 
disappears.
[guillaume@silbermann DirectShow]$ uname -a
Linux silbermann.snv.jussieu.fr 2.4.8-26mdk #1 mar sep 25 14:35:00 CEST 2001 
i686 unknown
[guillaume@silbermann DirectShow]$ rpm -q gcc3.0-c++
gcc3.0-c++-3.0.1-1mdk
The preprocessed file is attached.

Ps: there is a small contradiction between http://gcc.gnu.org/bugs.html , 
where it is stated prefered way of reporting a bug is through the GCC GNATS 
bug database, and http://gcc.gnu.org/gnats.html where it is stated prefered 
way is by email :-)
-- 
Guillaume Rousse <rousse@ccr.jussieu.fr>
GPG key http://lis.snv.jussieu.fr/~rousse/gpgkey.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DS_AudioDec.ii.bz2
Type: application/x-bzip2
Size: 103131 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/20011002/ca63ff1d/attachment.bz2>


More information about the Gcc-bugs mailing list