Thanks to Kai for this.
One more thing to note:
gcc -m32 does not define WIN64
windres -F i386 does (which seems to me a buglet).
Brian Ripley
On Wed, 30 Mar 2011, Kai Tietz wrote:
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
--
Brian D. Ripley, [email protected]
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself;
WebMatrix provides all the features you need to develop and
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public