[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: (ITS#4415) cross-compiling impossible (ucgendat is executed, but is cross compiled) - reopening issue 4363



Howard Chu wrote:
> mangoo@wpkg.org wrote:
>> Full_Name: Tomasz Chmielewski
>> Version: 2.3.20
>> OS: Linux
>> URL: Submission from: (NULL) (217.140.77.210)
>>
>>
>> According to "OpenLDAP 2.3.20 Release":
>> Build Environment
>>         Fixed liblunicode cross compiling problem (ITS#4363)
>>
>> However, the problem persists when trying to cross-compile 2.3.20:
>>
>>   
> It works for me:

Well, for me it doesn't.

I was using:

./configure --target=mipsel-linux --host=mipsel-linux 
--build=i386-pc-linux-gnu

to build for a mipsel/uclibc target, with mipsel/uclibc aware toolchain.


# file libraries/liblunicode/ucgendat
libraries/liblunicode/ucgendat: ELF 32-bit LSB executable, MIPS, version 
1 (SYSV), dynamically linked (uses shared libs), stripped

It's a mipsel binary here (as the toolchain can only build mipsel 
binaries), and it is tried to be executed on a x86 machine during the 
build process, which of course fails.


I don't know, perhaps it's a wontfix, perhaps there is some workaround, 
and if not, maybe it should give a better warning.


Anyway, this type of error (trying to execute a binary for a different 
target) is quite common when cross-compiling.


-- 
Tomasz Chmielewski