I think I am missing something in getting dlltool to work 32-bit in a 
multilib build (and I've tried a few, most recently TDM's gcc-4.5.2). 
It seems I need

dlltool -m i386

but also to select a 32-bit assembler (or some of the output is 
pe-x86-64): what I had expected might work is

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

I can get this to work by selecting a 32-bit assembler from another 
toolchain, but there ought to be a better way.

(It's not your doing, but that each of

gcc
as
windres
dlltool

uses different option, both flag and value, to select the architecture 
is chaotic, not least as binutils is not even consistent.)

Brian Ripley

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

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