bug-gnu-libiconv
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-gnu-libiconv] libiconv.res.obj : fatal error LNK1112: module ma


From: Bruno Haible
Subject: Re: [bug-gnu-libiconv] libiconv.res.obj : fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'x86'
Date: Thu, 23 May 2024 11:36:02 +0200

Hi,

On Freitag, 17. November 2023 14:12:35 CEST cyber flash wrote on 2023-11-17:
> Got a message from conan.io indicating that I should inform 
> https://www.gnu.org/software/libiconv/ about the case, so they don't need to 
> patch future versions too.
> 
> https://github.com/conan-io/conan-center-index/pull/20693#issuecomment-1816167274
> 
> I've suggested a patch here
> 
> https://github.com/conan-io/conan-center-index/issues/20689
> 
> and conan.io will apply the x86 resource patch to libiconv package here
> 
> https://github.com/conan-io/conan-center-index/pull/20693

Thanks for the report.

I understand that in some Windows environments, the 'windres' program
needs an option '--target=pe-i386' or '--target=pe-x86_64' so that it
produces an object file of the right format ([1] lines 91..102).

However, the only environment that is supported for building MSVC
binaries of GNU libiconv is Cygwin; see the INSTALL.windows file.
For this environment, the fix is to install the two packages
       - for creating 32-bit binaries: packages
           mingw64-i686-binutils,
           mingw64-i686-gcc-core
       - for creating 64-bit binaries: packages
           mingw64-x86_64-binutils,
           mingw64-x86_64-gcc-core
The configuration will then, based on the --host option, find
the correct flavour of 'windres' executables.

I have updated INSTALL.windows accordingly.

Best regards

       Bruno

[1] 
https://github.com/conan-io/conan-center-index/blob/master/recipes/libiconv/all/conanfile.py





reply via email to

[Prev in Thread] Current Thread [Next in Thread]