From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8354 invoked by alias); 31 Jan 2011 08:07:41 -0000 Received: (qmail 8343 invoked by uid 22791); 31 Jan 2011 08:07:38 -0000 X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,SARE_SUB_ENC_UTF8,TW_CX,TW_DC,TW_GB X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 31 Jan 2011 08:07:34 +0000 From: "silver24k at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug driver/47549] -save-temps and -finput-charset= causing 'cc1.exe: error: failure to convert gbk to UTF-8' X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: driver X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: silver24k at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Mon, 31 Jan 2011 08:48:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2011-01/txt/msg03356.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47549 --- Comment #1 from Yu Simin 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