X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,TW_JL,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Message-ID: <4C8F1CF2.8000703@users.sourceforge.net> Date: Tue, 14 Sep 2010 14:57:54 +0800 From: JonY User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) Gecko/20080213 Thunderbird/2.0.0.12 Mnenhy/0.7.5.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: [ANNOUNCEMENT] New package: mingw64-x86_64-gcc-4.5.1-1 References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On 9/14/2010 13:11, Andy Koppe wrote: > On 14 September 2010 03:13, JonY wrote: >> Version 4.5.1-1 of "mingw64-x86_64-gcc" has been uploaded. >> >> mingw64-x86_64-gcc contains GCC sources used by the 64bit target toolchain. >> See mingw64-x86_64-gcc-core, mingw64-x86_64-gcc-objc, >> mingw64-x86_64-gcc-ada, mingw64-x86_64-gcc-g++ and >> mingw64-x86_64-gcc-fortran for binaries. > > Great stuff. > > First issue: Is this to be expected? > > $ x86_64-w64-mingw32-gcc hello.c > [compiles fine] > > $ /bin/x86_64-w64-mingw32-gcc hello.c > /Users/Andy/AppData/Local/Temp/cckcwv49.s: Assembler messages: > /Users/Andy/AppData/Local/Temp/cckcwv49.s:10: Error: bad register name `%rbp' > /Users/Andy/AppData/Local/Temp/cckcwv49.s:11: Error: bad register name `%rsp' > /Users/Andy/AppData/Local/Temp/cckcwv49.s:12: Error: bad register name `%rsp' > /Users/Andy/AppData/Local/Temp/cckcwv49.s:14: Error: bad register name `%rip)' > > It's obviously picking up the wrong assembler that way. > > $ /bin/x86_64-w64-mingw32-gcc hello.c -v > Using built-in specs. > COLLECT_GCC=/bin/x86_64-w64-mingw32-gcc > COLLECT_LTO_WRAPPER=/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/lto-wrapper.exe > Target: x86_64-w64-mingw32 > Configured with: > /home/user/cygp6/mingw64-x86_64-gcc/mingw64-x86_64-gcc-4.5.1-1/src/gcc-4.5.1/configure > --srcdir=/home/user/cygp6/mingw64-x86_64-gcc/mingw64-x86_64-gcc-4.5.1-1/src/gcc-4.5.1 > -C --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin > --sbindir=/usr/sbin --libexecdir=/usr/lib --datadir=/usr/share > --localstatedir=/var --sysconfdir=/etc --datarootdir=/usr/share > --docdir=/usr/share/doc/mingw64-x86_64-gcc --build=i686-pc-cygwin > --host=i686-pc-cygwin --target=x86_64-w64-mingw32 > --with-sysroot=/usr/x86_64-w64-mingw32/sys-root > --with-build-sysroot=/usr/x86_64-w64-mingw32/sys-root > --disable-multilib --disable-win32-registry > --enable-languages=c,ada,c++,fortran,objc,obj-c++ > --enable-fully-dynamic-strings --enable-libgomp > --enable-sjlj-exceptions --enable-version-specific-runtime-libs > --with-dwarf2 --enable-decimal-float=bid --enable-lto > Thread model: win32 > gcc version 4.5.1 (GCC) > COLLECT_GCC_OPTIONS='-v' '-mtune=generic' '-march=x86-64' > /bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/cc1.exe -quiet -v -iprefix > /bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/ hello.c -quiet -dumpbase > hello.c -mtune=generic -march=x86-64 -auxbase hello -version -o > /Users/Andy/AppData/Local/Temp/ccLGdDIT.s > GNU C (GCC) version 4.5.1 (x86_64-w64-mingw32) > compiled by GNU C version 4.5.0, GMP version 4.3.1, MPFR > version 2.4.1-p5, MPC version 0.8 > GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 > ignoring nonexistent directory > "/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/include" > ignoring nonexistent directory > "/usr/x86_64-w64-mingw32/sys-root/usr/local/include" > ignoring duplicate directory > "/bin/../lib/gcc/../../lib/gcc/x86_64-w64-mingw32/4.5.1/include" > ignoring duplicate directory > "/bin/../lib/gcc/../../lib/gcc/x86_64-w64-mingw32/4.5.1/include-fixed" > ignoring nonexistent directory > "/bin/../lib/gcc/../../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/include" > #include "..." search starts here: > #include<...> search starts here: > /bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/include > /bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/include-fixed > /usr/x86_64-w64-mingw32/sys-root/mingw/include > End of search list. > GNU C (GCC) version 4.5.1 (x86_64-w64-mingw32) > compiled by GNU C version 4.5.0, GMP version 4.3.1, MPFR > version 2.4.1-p5, MPC version 0.8 > GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 > Compiler executable checksum: 80e7a582a443f3cfd9d86919d58b0d54 > COLLECT_GCC_OPTIONS='-v' '-mtune=generic' '-march=x86-64' > as -v -o /Users/Andy/AppData/Local/Temp/ccD8vdf5.o > /Users/Andy/AppData/Local/Temp/ccLGdDIT.s > GNU assembler version 2.20.51 (i686-cygwin) using BFD version (GNU > Binutils) 2.20.51.20100410 > /Users/Andy/AppData/Local/Temp/ccLGdDIT.s: Assembler messages: > /Users/Andy/AppData/Local/Temp/ccLGdDIT.s:10: Error: bad register name `%rbp' > /Users/Andy/AppData/Local/Temp/ccLGdDIT.s:11: Error: bad register name `%rsp' > /Users/Andy/AppData/Local/Temp/ccLGdDIT.s:12: Error: bad register name `%rsp' > /Users/Andy/AppData/Local/Temp/ccLGdDIT.s:14: Error: bad register name `%rip)' > > Andy That is weird. Do you have mingw64 binutils installed? Somehow the cygwin binutils was used. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple