[Date Prev][Date Next]
Re: (ITS#4415) cross-compiling impossible (ucgendat is executed, but is cross compiled) - reopening issue 4363
- To: openldap-its@OpenLDAP.org
- Subject: Re: (ITS#4415) cross-compiling impossible (ucgendat is executed, but is cross compiled) - reopening issue 4363
- From: firstname.lastname@example.org
- Date: Thu, 23 Feb 2006 23:54:19 GMT
Tomasz Chmielewski wrote:
> Howard Chu wrote:
>> email@example.com wrote:
>>> Full_Name: Tomasz Chmielewski
>>> Version: 2.3.20
>>> OS: Linux
>>> URL: Submission from: (NULL) (188.8.131.52)
>>> 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
> 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.
It seems something is wrong with the timestamps on your files, since the
default Makefile rules now don't even compile ucgendat, regardless of
native or cross compiling. Since up to date ucdata.c/ucdata.h files are
already provided in the source tree, you never need to run ucgendat.
-- Howard Chu
Chief Architect, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc
OpenLDAP Core Team http://www.openldap.org/project/