2011/3/30 Prof Brian Ripley <[email protected]>:
> On Tue, 29 Mar 2011, John E. / TDM wrote:
>
>> On 3/29/2011 12:09 AM, Prof Brian Ripley wrote:
>>> dlltool -m i386 --as "as --32"
>>>
>>> but that syntax seems to fail as it does not unpack the quoting
>>> GNU c:\R\TDM\bin\dlltool (GNU Binutils) 2.21
>>>
>>> dlltool -m i386 -k --as "as --32" -v --dllname R.dll --input-def
>>> R.def --output-lib libR.dll.a
>>> c:\R\TDM\bin\dlltool.exe: Processing def file: R.def
>>> c:\R\TDM\bin\dlltool.exe: Processed def file
>>> c:\R\TDM\bin\dlltool.exe: Processing definitions
>>> c:\R\TDM\bin\dlltool.exe: Processed definitions
>>> c:\R\TDM\bin\dlltool.exe: Creating library file: libR.dll.a
>>> c:\R\TDM\bin\dlltool.exe: run: as --32   -o dioeh.o dioeh.s
>>> c:\R\TDM\bin\dlltool.exe: No such file or directory
>>> c:\R\TDM\bin\dlltool.exe: CreateProcess
>>
>> This appears to indicate that the command you passed is correctly being
>> used, but you didn't pass the correct command. You need to either add
>> C:\R\TDM\x86_64-w64-mingw32\bin to your %PATH%, or use
>> "x86_64-w64-mingw32-as --32" instead of just plain "as --32".
>
> as.exe in in the path in at c:\R\TDM\bin, and there is no
> x86_64-w64-mingw32-as.exe there.  It does work as "as", so your
> explanation does not fit.

Your issue is the use of wrong option here for passing as' arguments.
Use '--as-flags=--32 -m i386' instead for 32-bit. This should work as
you desire. For 64-bit use '--as-flags=--64 -m i386:x86-64'.
I admit that this target-specifiers in binutils are a mess, and not a
single tool shares same option set to specify target ... but well this
isn't grown on our mug-pile ... we just need to live by it.

Regards,
Kai

------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to