[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Mingw-cross-env-list] g++ 4.5.2 is pulling system headers from the wron
From: |
René Berber |
Subject: |
[Mingw-cross-env-list] g++ 4.5.2 is pulling system headers from the wrong place |
Date: |
Tue, 18 Jan 2011 19:36:39 -0600 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.19) Gecko/20081209 Lightning/0.9 Thunderbird/2.0.0.19 Mnenhy/0.7.6.0 |
Hi,
I just found this, the new g++ 4.5.2 fails where the old 4.4.0 was doing
it right.
The problem is obvious, 4.5.2 is including header /usr/include/wchar.h
which is the wrong one, and the problem is the version, nothing else. I
haven't found the problem in the build, but that is the only suspect,
could be a bug introduced upstream (I haven't looked into bug reports
for this version).
Tested the exact same compile command with 4.4.0 and everything works
(sorry for the size):
$ i686-pc-mingw32-g++ --version
i686-pc-mingw32-g++ (GCC) 4.5.2
...
$ i686-pc-mingw32-g++ -c -pipe -O2
-I/home/rberber/mingw/usr/i686-pc-mingw32/include
-I/home/rberber/mingw/usr/i686-pc-mingw32/include
-I/home/rberber/mingw/usr/i686-pc-mingw32/include
-I/home/rberber/mingw/usr/i686-pc-mingw32/include/dbus-1.0
-I/home/rberber/mingw/usr/i686-pc-mingw32/lib/dbus-1.0/include -frtti
-fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DBUS
-DQT_THREAD_SUPPORT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB
-DQT_CORE_LIB -I'../../usr/i686-pc-mingw32/include/QtCore'
-I'../../usr/i686-pc-mingw32/include/QtNetwork'
-I'../../usr/i686-pc-mingw32/include/QtGui'
-I'../../usr/i686-pc-mingw32/include'
-I'../../usr/i686-pc-mingw32/include/QtDBus' -I'/usr/include' -I'..'
-I'release' -I'../../usr/i686-pc-mingw32/include/ActiveQt' -I'.'
-I'../../usr/i686-pc-mingw32/mkspecs/unsupported/win32-g++-cross' -o
release/about.o about.cc
In file included from
/export/home/rberber/mingw-cross-env/usr/bin/../lib/gcc/i686-pc-mingw32/4.5.2/include/c++/cwchar:47:0,
from
/export/home/rberber/mingw-cross-env/usr/bin/../lib/gcc/i686-pc-mingw32/4.5.2/include/c++/bits/postypes.h:42,
from
/export/home/rberber/mingw-cross-env/usr/bin/../lib/gcc/i686-pc-mingw32/4.5.2/include/c++/bits/char_traits.h:42,
from
/export/home/rberber/mingw-cross-env/usr/bin/../lib/gcc/i686-pc-mingw32/4.5.2/include/c++/string:42,
from
/export/home/rberber/mingw-cross-env/usr/bin/../lib/gcc/i686-pc-mingw32/4.5.2/../../../../i686-pc-mingw32/include/QtCore/qstring.h:60,
from
/export/home/rberber/mingw-cross-env/usr/bin/../lib/gcc/i686-pc-mingw32/4.5.2/../../../../i686-pc-mingw32/include/QtCore/qobject.h:48,
from
/export/home/rberber/mingw-cross-env/usr/bin/../lib/gcc/i686-pc-mingw32/4.5.2/../../../../i686-pc-mingw32/include/QtGui/qwidget.h:46,
from
../../usr/i686-pc-mingw32/include/QtGui/qdialogbuttonbox.h:45,
from
../../usr/i686-pc-mingw32/include/QtGui/QDialogButtonBox:1,
from about.cc:13:
/usr/include/wchar.h:718:6: error: expected initializer before 'throw'
...
$ ~/mingw-cross-env-2.12/usr/bin/i686-pc-mingw32-g++ --version
i686-pc-mingw32-g++ (GCC) 4.4.0
...
$ ~/mingw-cross-env-2.12/usr/bin/i686-pc-mingw32-g++ -c -pipe -O2
-I/home/rberber/mingw/usr/i686-pc-mingw32/include
-I/home/rberber/mingw/usr/i686-pc-mingw32/include
-I/home/rberber/mingw/usr/i686-pc-mingw32/include
-I/home/rberber/mingw/usr/i686-pc-mingw32/include/dbus-1.0
-I/home/rberber/mingw/usr/i686-pc-mingw32/lib/dbus-1.0/include -frtti
-fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DBUS
-DQT_THREAD_SUPPORT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB
-DQT_CORE_LIB -I'../../usr/i686-pc-mingw32/include/QtCore'
-I'../../usr/i686-pc-mingw32/include/QtNetwork'
-I'../../usr/i686-pc-mingw32/include/QtGui'
-I'../../usr/i686-pc-mingw32/include'
-I'../../usr/i686-pc-mingw32/include/QtDBus' -I'/usr/include' -I'..'
-I'release' -I'../../usr/i686-pc-mingw32/include/ActiveQt' -I'.'
-I'../../usr/i686-pc-mingw32/mkspecs/unsupported/win32-g++-cross' -o
release/about.o about.cc
$
--
René Berber
- [Mingw-cross-env-list] g++ 4.5.2 is pulling system headers from the wrong place,
René Berber <=