Pango cross-compile failure (ARM)

Dear All,

First of all, I am new to the world of Pango and gtk-i18n, so excuse my lack of knowledge. 

This is a problem I am facing right now with pango-1.26.1 when cross-compiling to arm-hardfloat-linux-gnu:

> ./configure --host=$target --build=i386-linux --prefix=$PREFIX --exec_prefix=$EXEC_PREFIX --without-x \
--enable-debug=no \

> make

make[4]: Entering directory `/home/william/1234/libraries/pango-1.26.1/pango/opentype'
  CXX    libharfbuzz_la-hb-font.lo
In file included from hb-open-file-private.hh:30,
hb-open-type-private.hh:376: error: size of array '_static_assert_on_line_376_failed' is negative
hb-open-type-private.hh:377: error: size of array '_static_assert_on_line_377_failed' is negative
hb-open-type-private.hh:450: error: size of array '_static_assert_on_line_450_failed' is negative
In file included from
hb-open-type-private.hh: In instantiation of 'Null<OffsetTable>':
hb-open-file-private.hh:69:   instantiated from here
hb-open-type-private.hh:67: error: creating array with negative size ('-0x000000001')
hb-open-file-private.hh:127: error: size of array '_static_assert_on_line_127_failed' is negative
hb-open-file-private.hh:163: error: size of array '_static_assert_on_line_163_failed' is negative
make[4]: *** [libharfbuzz_la-hb-font.lo] Error 1
make[4]: Leaving directory `/home/william/1234/libraries/pango-1.26.1/pango/opentype'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/william/1234/libraries/pango-1.26.1/pango'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/william/1234/libraries/pango-1.26.1/pango'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/william/1234/libraries/pango-1.26.1'
make: *** [all] Error 2

I tracked down to the source and it seems that a static assertion on the size of the USHORT/SHORT failed (too small or too large, I don't know) has failed and the build is stuck here. It is possible to remove the ASSERT_SIZE in the header file, but then it won't build either. 

Here are my environmental variables:

export CC_PATH=/opt/crosstool/gcc-4.3.2-glibc-2.6.1/hardfloat/arm-hardfloat-linux-gnu/bin
export COMPILER=$CC_PATH/arm-hardfloat-linux-gnu-gcc
export CC=$CC_PATH/arm-hardfloat-linux-gnu-gcc
export CPP=$CC_PATH/arm-hardfloat-linux-gnu-cpp
export CXX=$CC_PATH/arm-hardfloat-linux-gnu-g++
export AR=$CC_PATH/arm-hardfloat-linux-gnu-ar
export RANLIB=$CC_PATH/arm-hardfloat-linux-gnu-ranlib
export AS=$CC_PATH/arm-hardfloat-linux-gnu-as
export LD=$CC_PATH/arm-hardfloat-linux-gnu-ld
export NM=$CC_PATH/arm-hardfloat-linux-gnu-nm
export PREFIX=/home/william/1234/libraries/prefix/webapps/
export EXEC_PREFIX=/home/william/1234/libraries/mnt/webapps/
export PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig

I use the ubuntu gcc 4.3.2 compiler to build and there is no such problem. Previous versions of pango compiles normally with the same cross compiler. I wonder has anybody had hit the same problem as me.

Thanks very much and Best Regards

William To

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