delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/09/14/07:11:25

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <4C8F5125.9080504@users.sourceforge.net>
References: <4C8F1CF2 DOT 8000703 AT users DOT sourceforge DOT net> <790680 DOT 25836 DOT qm AT web25507 DOT mail DOT ukl DOT yahoo DOT com> <AANLkTiniDh5rk+i6vqDs7p8e4ZXfFWCN8CmFZ8fyWHmY AT mail DOT gmail DOT com> <4C8F5125 DOT 9080504 AT users DOT sourceforge DOT net>
Date: Tue, 14 Sep 2010 12:10:56 +0100
Message-ID: <AANLkTin5ZcxpKJScTRBq4Evn+HOr_mq4wZwrj10f4AdF@mail.gmail.com>
Subject: Re: [ANNOUNCEMENT] New package: mingw64-x86_64-gcc-4.5.1-1
From: Andy Koppe <andy DOT koppe AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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 14 September 2010 11:40, JonY wrote:
> On 9/14/2010 18:46, Andy Koppe wrote:
>>
>> On 14 September 2010 11:15, Marco Atzeri wrote:
>>>>>
>>>>> 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
>>
>>> Usually assuring the /usr/bin is before /bin in the path
>>> solves the problems.
>>
>> /usr/bin is put before /bin in /etc/profile anyway, so it's not a
>> critical issue. I just happened to try it with the /bin prefix first,
>> probably because I was using tab completion on /bin to find the
>> executable name of the compiler.
>>
> OK, so calling "x86_64-w64-mingw32-gcc" or "/usr/bin/x86_64-w64-mingw32-gcc"
> in the shell usually works, but not "/bin/x86_64-w64-mingw32-gcc"?

Exactly.

Andy

--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019