public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug driver/47549] New: -save-temps and -finput-charset= causing 'cc1.exe: error: failure to convert gbk to UTF-8'
@ 2011-01-31 8:48 silver24k at gmail dot com
2011-01-31 8:48 ` [Bug driver/47549] " silver24k at gmail dot com
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: silver24k at gmail dot com @ 2011-01-31 8:48 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47549
Summary: -save-temps and -finput-charset= causing 'cc1.exe:
error: failure to convert gbk to UTF-8'
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: driver
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: silver24k@gmail.com
Created attachment 23172
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23172
simple source in GBK encoding
The source is in GBK encoding.
arm-gcc -finput-charset=gbk -c -save-temps gbk.c
cc1: error: failure to convert gbk to UTF-8
If no '-save-temps' used, everything is OK.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug driver/47549] -save-temps and -finput-charset= causing 'cc1.exe: error: failure to convert gbk to UTF-8'
2011-01-31 8:48 [Bug driver/47549] New: -save-temps and -finput-charset= causing 'cc1.exe: error: failure to convert gbk to UTF-8' silver24k at gmail dot com
@ 2011-01-31 8:48 ` silver24k at gmail dot com
2011-01-31 20:50 ` [Bug preprocessor/47549] " pinskia at gcc dot gnu.org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: silver24k at gmail dot com @ 2011-01-31 8:48 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47549
--- Comment #1 from Yu Simin <silver24k at gmail dot com> 2011-01-31 08:07:27 UTC ---
$ arm-gcc -v -finput-charset=gbk -c -save-temps gbk.c
Using built-in specs.
COLLECT_GCC=arm-gcc
COLLECT_LTO_WRAPPER=/home/starlight/src/gnu-toolchain/platform/cross-on-linux/mingw/bin/../libexec/gcc/arm/4.6.0/lto-wrapper
Target: arm
Configured with: ../../../gcc_trunk/configure --target=arm
--prefix=/platform/cross-on-linux/mingw --disable-threads --disable-tls
--disable-win32-registry --enable-version-specific-runtime-libs
--with-pkgversion='General ARM GCC' --enable-multilib --with-newlib
--with-headers=/home/starlight/src/gnu-toolchain/newlib/newlib/libc/include
--disable-nls --enable-languages=c,c++ --with-mpc=/usr/local
--with-ppl=/usr/local --with-cloog=/usr/local --with-libelf=/usr/local
--disable-plugin --disable-libstdcxx-pch --enable-cloog-backend=isl
--disable-cloog-version-check
Thread model: single
gcc version 4.6.0 20110129 (experimental) mingw-20090616 (General ARM GCC)
COLLECT_GCC_OPTIONS='-v' '-finput-charset=gbk' '-c' '-save-temps'
/home/starlight/src/gnu-toolchain/platform/cross-on-linux/mingw/bin/../libexec/gcc/arm/4.6.0/cc1
-E -quiet -v -iprefix
/home/starlight/src/gnu-toolchain/platform/cross-on-linux/mingw/bin/../lib/gcc/arm/4.6.0/
-D__USES_INITFINI__ gbk.c -finput-charset=gbk -fpch-preprocess -o gbk.i
ignoring duplicate directory
"/home/starlight/src/gnu-toolchain/platform/cross-on-linux/mingw/bin/../lib/gcc/../../lib/gcc/arm/4.6.0/include"
ignoring duplicate directory
"/home/starlight/src/gnu-toolchain/platform/cross-on-linux/mingw/bin/../lib/gcc/../../lib/gcc/arm/4.6.0/include-fixed"
ignoring duplicate directory
"/home/starlight/src/gnu-toolchain/platform/cross-on-linux/mingw/bin/../lib/gcc/../../lib/gcc/arm/4.6.0/../../../../arm/sys-include"
ignoring duplicate directory
"/home/starlight/src/gnu-toolchain/platform/cross-on-linux/mingw/bin/../lib/gcc/../../lib/gcc/arm/4.6.0/../../../../arm/include"
#include "..." search starts here:
#include <...> search starts here:
/home/starlight/src/gnu-toolchain/platform/cross-on-linux/mingw/bin/../lib/gcc/arm/4.6.0/include
/home/starlight/src/gnu-toolchain/platform/cross-on-linux/mingw/bin/../lib/gcc/arm/4.6.0/include-fixed
/home/starlight/src/gnu-toolchain/platform/cross-on-linux/mingw/bin/../lib/gcc/arm/4.6.0/../../../../arm/sys-include
/home/starlight/src/gnu-toolchain/platform/cross-on-linux/mingw/bin/../lib/gcc/arm/4.6.0/../../../../arm/include
End of search list.
COLLECT_GCC_OPTIONS='-v' '-finput-charset=gbk' '-c' '-save-temps'
/home/starlight/src/gnu-toolchain/platform/cross-on-linux/mingw/bin/../libexec/gcc/arm/4.6.0/cc1
-fpreprocessed gbk.i -quiet -dumpbase gbk.c -auxbase gbk -version
-finput-charset=gbk -o gbk.s
GNU C (General ARM GCC) version 4.6.0 20110129 (experimental) mingw-20090616
(arm)
compiled by GNU C version 4.4.3, GMP version 5.0.1, MPFR version
3.0.0-p3, MPC version 0.8.2
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
cc1: error: failure to convert gbk to UTF-8
GNU C (General ARM GCC) version 4.6.0 20110129 (experimental) mingw-20090616
(arm)
compiled by GNU C version 4.4.3, GMP version 5.0.1, MPFR version
3.0.0-p3, MPC version 0.8.2
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug preprocessor/47549] -save-temps and -finput-charset= causing 'cc1.exe: error: failure to convert gbk to UTF-8'
2011-01-31 8:48 [Bug driver/47549] New: -save-temps and -finput-charset= causing 'cc1.exe: error: failure to convert gbk to UTF-8' silver24k at gmail dot com
2011-01-31 8:48 ` [Bug driver/47549] " silver24k at gmail dot com
@ 2011-01-31 20:50 ` pinskia at gcc dot gnu.org
2011-01-31 20:55 ` silver24k at gmail dot com
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2011-01-31 20:50 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47549
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|driver |preprocessor
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-01-31 20:08:24 UTC ---
>cc1: error: failure to convert gbk to UTF-8
The preprocessor is only really know how to convert UTF-8 to/from UTF16/32
LE/BE without the help from the host's iconv.
Your host's iconv is what is failing to do the conversion. I doubt this is a
GCC bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug preprocessor/47549] -save-temps and -finput-charset= causing 'cc1.exe: error: failure to convert gbk to UTF-8'
2011-01-31 8:48 [Bug driver/47549] New: -save-temps and -finput-charset= causing 'cc1.exe: error: failure to convert gbk to UTF-8' silver24k at gmail dot com
2011-01-31 8:48 ` [Bug driver/47549] " silver24k at gmail dot com
2011-01-31 20:50 ` [Bug preprocessor/47549] " pinskia at gcc dot gnu.org
@ 2011-01-31 20:55 ` silver24k at gmail dot com
2011-01-31 21:42 ` joseph at codesourcery dot com
2012-01-06 0:23 ` pinskia at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: silver24k at gmail dot com @ 2011-01-31 20:55 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47549
--- Comment #3 from Yu Simin <silver24k at gmail dot com> 2011-01-31 20:22:11 UTC ---
(In reply to comment #2)
> >cc1: error: failure to convert gbk to UTF-8
>
> The preprocessor is only really know how to convert UTF-8 to/from UTF16/32
> LE/BE without the help from the host's iconv.
>
> Your host's iconv is what is failing to do the conversion. I doubt this is a
> GCC bug.
But there is no such error when '-save-temps' is not used and the output object
file seems correct.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug preprocessor/47549] -save-temps and -finput-charset= causing 'cc1.exe: error: failure to convert gbk to UTF-8'
2011-01-31 8:48 [Bug driver/47549] New: -save-temps and -finput-charset= causing 'cc1.exe: error: failure to convert gbk to UTF-8' silver24k at gmail dot com
` (2 preceding siblings ...)
2011-01-31 20:55 ` silver24k at gmail dot com
@ 2011-01-31 21:42 ` joseph at codesourcery dot com
2012-01-06 0:23 ` pinskia at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: joseph at codesourcery dot com @ 2011-01-31 21:42 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47549
--- Comment #4 from joseph at codesourcery dot com <joseph at codesourcery dot com> 2011-01-31 20:51:56 UTC ---
The involvement of -save-temps makes me suspect the same underlying issue
as bug 21521.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug preprocessor/47549] -save-temps and -finput-charset= causing 'cc1.exe: error: failure to convert gbk to UTF-8'
2011-01-31 8:48 [Bug driver/47549] New: -save-temps and -finput-charset= causing 'cc1.exe: error: failure to convert gbk to UTF-8' silver24k at gmail dot com
` (3 preceding siblings ...)
2011-01-31 21:42 ` joseph at codesourcery dot com
@ 2012-01-06 0:23 ` pinskia at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-01-06 0:23 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47549
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-01-06 00:22:50 UTC ---
Dup as mentioned.
*** This bug has been marked as a duplicate of bug 21521 ***
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2012-01-06 0:23 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-31 8:48 [Bug driver/47549] New: -save-temps and -finput-charset= causing 'cc1.exe: error: failure to convert gbk to UTF-8' silver24k at gmail dot com
2011-01-31 8:48 ` [Bug driver/47549] " silver24k at gmail dot com
2011-01-31 20:50 ` [Bug preprocessor/47549] " pinskia at gcc dot gnu.org
2011-01-31 20:55 ` silver24k at gmail dot com
2011-01-31 21:42 ` joseph at codesourcery dot com
2012-01-06 0:23 ` pinskia at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).