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

(ITS#4363) cross-compiling impossible (ucgendat is executed, but is cross compiled)



Full_Name: Tomasz Chmielewski
Version: 2.3.18
OS: Linux
URL: 
Submission from: (NULL) (62.80.50.180)


I wanted to cross-compile OpenLDAP for mipsel on a x86 PC.

Unfortunately, it fails, because during "make" it wants to execute "ucgendat" -
which is already cross-compiled.

A workaround is to compile OpenLDAP for x86 (to get the ucgendat" binary for
x86), and when cross-compiled build fails as shown below, execute:

# ./ucgendat ./UnicodeData.txt -x ./CompositionExclusions.txt

in openldap-2.3.18/libraries/liblunicode directory (of course, ucgendat above is
not cross-compiled).

After that run make once again, cross-compilation should be successful.


Error message showing an error:

(...)
  Entering subdirectory liblunicode
make[2]: Entering directory
`/home/data/wrt54/openldap-2.3.18/libraries/liblunicode'
make ucgendat
make[3]: Entering directory
`/home/data/wrt54/openldap-2.3.18/libraries/liblunicode'
/bin/sh ../..//libtool --mode=link
/home/data/wrt54/svn/white/openwrt/staging_dir_mipsel/bin/mipsel-linux-uclibc-gcc
-static -Os -s  -L/home/data/wrt54/db/.libs/   -o ucgendat ucgendat.o
../../libraries/liblber/liblber.la ../../libraries/liblutil/liblutil.a
/home/data/wrt54/svn/white/openwrt/staging_dir_mipsel/bin/mipsel-linux-uclibc-gcc
-Os -s -o ucgendat ucgendat.o  -L/home/data/wrt54/db/.libs/
../../libraries/liblber/.libs/liblber.a ../../libraries/liblutil/liblutil.a
make[3]: Leaving directory
`/home/data/wrt54/openldap-2.3.18/libraries/liblunicode'
./ucgendat ./UnicodeData.txt -x ./CompositionExclusions.txt
./ucgendat: ./ucgendat: cannot execute binary file
make[2]: *** [uctable.h] Fehler 126
make[2]: Leaving directory
`/home/data/wrt54/openldap-2.3.18/libraries/liblunicode'
make[1]: *** [all-common] Fehler 1
make[1]: Leaving directory `/home/data/wrt54/openldap-2.3.18/libraries'
make: *** [all-common] Fehler 1