Problem with cross-build the package gobject-introspection-0.6.14



Hi,

   Sorry to bother you.
   I try to build the package gobject-introspection-0.6.14 for ARM processor.
   The build environment is x86 Ubuntu. The Python package is for x86.

   From the error message (below), it seems that the x86 Python cannot understand the ARM share library format.

   Please help for how to cross compile this package, thanks!

Best regards,

   ruey-an yeh

------------------------
   The configuration is:

   ./configure --prefix=/usr --exec-prefix=/usr \
  --host=arm-sbt-linux-gnueabi --build=i686-pc-linux --target=arm-sbt-linux-gnueabi \
  --with-gnu-ld  \
  LDFLAGS="-shared -L/home/rayeh/clfs/usr/lib -L/clfs-sbt/arm-sbt/lib" \
  CFLAGS="-I/home/rayeh/clfs/usr/include -I/clfs-sbt/arm-sbt/include" \
  CPPFLAGS="-I/home/rayeh/clfs/usr/include -I/clfs-sbt/arm-sbt/include" \
  CXX=arm-sbt-linux-gnueabi-g++ CC=arm-sbt-linux-gnueabi-gcc

   The output message seems OK:

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for arm-sbt-linux-gnueabi-strip... /clfs-sbt/arm-sbt/arm-sbt-linux-gnueabi/bin/strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... i686-pc-linux-gnu
checking host system type... arm-sbt-linux-gnueabi
checking for Win32... no
checking for arm-sbt-linux-gnueabi-gcc... arm-sbt-linux-gnueabi-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether arm-sbt-linux-gnueabi-gcc accepts -g... yes
checking for arm-sbt-linux-gnueabi-gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of arm-sbt-linux-gnueabi-gcc... gcc3
checking whether arm-sbt-linux-gnueabi-gcc and cc understand -c and -o together... yes
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by arm-sbt-linux-gnueabi-gcc... /clfs-sbt/arm-sbt/arm-sbt-linux-gnueabi/bin/ld
checking if the linker (/clfs-sbt/arm-sbt/arm-sbt-linux-gnueabi/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /clfs-sbt/arm-sbt/arm-sbt-linux-gnueabi/bin/nm
checking the name lister (/clfs-sbt/arm-sbt/arm-sbt-linux-gnueabi/bin/nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 32768
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /clfs-sbt/arm-sbt/arm-sbt-linux-gnueabi/bin/ld option to reload object files... -r
checking for arm-sbt-linux-gnueabi-objdump... /clfs-sbt/arm-sbt/arm-sbt-linux-gnueabi/bin/objdump
checking how to recognize dependent libraries... pass_all
checking for arm-sbt-linux-gnueabi-ar... /clfs-sbt/arm-sbt/arm-sbt-linux-gnueabi/bin/ar
checking for arm-sbt-linux-gnueabi-strip... (cached) /clfs-sbt/arm-sbt/arm-sbt-linux-gnueabi/bin/strip
checking for arm-sbt-linux-gnueabi-ranlib... /clfs-sbt/arm-sbt/arm-sbt-linux-gnueabi/bin/ranlib
checking command to parse /clfs-sbt/arm-sbt/arm-sbt-linux-gnueabi/bin/nm output from arm-sbt-linux-gnueabi-gcc object... ok
checking how to run the C preprocessor... arm-sbt-linux-gnueabi-gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if arm-sbt-linux-gnueabi-gcc supports -fno-rtti -fno-exceptions... no
checking for arm-sbt-linux-gnueabi-gcc option to produce PIC... -fPIC -DPIC
checking if arm-sbt-linux-gnueabi-gcc PIC flag -fPIC -DPIC works... yes
checking if arm-sbt-linux-gnueabi-gcc static flag -static works... yes
checking if arm-sbt-linux-gnueabi-gcc supports -c -o file.o... yes
checking if arm-sbt-linux-gnueabi-gcc supports -c -o file.o... (cached) yes
checking whether the arm-sbt-linux-gnueabi-gcc linker (/clfs-sbt/arm-sbt/arm-sbt-linux-gnueabi/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for arm-sbt-linux-gnueabi-pkg-config... no
checking for pkg-config... /clfs-sbt/arm-sbt/bin/pkg-config
configure: WARNING: using cross tools not prefixed with host triplet
checking pkg-config is at least version 0.9.0... yes
checking for flex... flex
checking lex output file root... lex.yy
checking lex library...
checking whether yytext is a pointer... yes
checking for bison... bison -y
./configure: line 11241: GI_ENABLE_GCOV: command not found
checking for dlopen in -ldl... yes
checking for the suffix of shared libraries... .so
checking for GOBJECT... yes
checking for GTHREAD... yes
checking for GIO_UNIX... yes
checking for CAIRO... yes
checking for SCANNER... yes
checking for FFI... yes
checking size of time_t... 4
checking for GIREPO... yes
checking for gtkdoc-check... /usr/bin/gtkdoc-check
checking for gtkdoc-rebase... /usr/bin/gtkdoc-rebase
checking for gtkdoc-mkpdf... /usr/bin/gtkdoc-mkpdf
checking whether to build gtk-doc documentation... no
checking for ANSI C header files... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for working strtod... no
checking for pow... yes
checking for memchr... yes
checking for strchr... yes
checking for strspn... yes
checking for strstr... yes
checking for strtol... yes
checking for strtoull... yes
checking for backtrace... yes
checking for backtrace_symbols... yes
checking whether Python support is requested... checking for a Python interpreter with version >= 2.5... python
checking for python... /usr/bin/python
checking for python version... 2.6
checking for python platform... linux2
checking for python script directory... ${prefix}/lib/python2.6/dist-packages
checking for python extension module directory... ${exec_prefix}/lib/python2.6/dist-packages
checking for headers required to compile python extensions... found
configure: creating ./config.status
config.status: creating Makefile
config.status: creating gir/Makefile
config.status: creating girepository/Makefile
config.status: creating giscanner/Makefile
config.status: creating giscanner/config.py
config.status: creating m4/Makefile
config.status: creating tools/Makefile
config.status: creating tests/Makefile
config.status: creating tests/invoke/Makefile
config.status: creating tests/offsets/Makefile
config.status: creating tests/scanner/Makefile
config.status: creating tests/repository/Makefile
config.status: creating examples/Makefile
config.status: creating docs/Makefile
config.status: creating docs/reference/Makefile
config.status: creating gobject-introspection-1.0.pc
config.status: creating gobject-introspection-no-export-1.0.pc
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
rayeh rayeh-desktop:~/build/wekbit/gobject-introspection-0.6.14$

------------------------
But when I compile it, the error message:

make[2]: Entering directory `/home/rayeh/build/wekbit/gobject-introspection-0.6.14/tools'
  GEN    g-ir-scanner
make[2]: Leaving directory `/home/rayeh/build/wekbit/gobject-introspection-0.6.14/tools'
Making all in gir
make[2]: Entering directory `/home/rayeh/build/wekbit/gobject-introspection-0.6.14/gir'
  GISCAN GLib-2.0.gir
Traceback (most recent call last):
  File "../tools/g-ir-scanner", line 38, in <module>
    sys.exit(scanner_main(sys.argv))
  File "/home/rayeh/build/wekbit/gobject-introspection-0.6.14/giscanner/scannermain.py", line 248, in scanner_main
    from giscanner.girwriter import GIRWriter as Writer
  File "/home/rayeh/build/wekbit/gobject-introspection-0.6.14/giscanner/girwriter.py", line 30, in <module>
    from .xmlwriter import XMLWriter
  File "/home/rayeh/build/wekbit/gobject-introspection-0.6.14/giscanner/xmlwriter.py", line 71, in <module>
    from giscanner._giscanner import collect_attributes
  File "/home/rayeh/build/wekbit/gobject-introspection-0.6.14/giscanner/libtoolimporter.py", line 53, in load_module
    ('.so', 'rb', 3))
ImportError: /home/rayeh/build/wekbit/gobject-introspection-0.6.14/giscanner/.libs/_giscanner.so: cannot open shared object file: No such file or directory
make[2]: *** [GLib-2.0.gir] Error 1
make[2]: Leaving directory `/home/rayeh/build/wekbit/gobject-introspection-0.6.14/gir'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/rayeh/build/wekbit/gobject-introspection-0.6.14'
make: *** [all] Error 2
rayeh rayeh-desktop:~/build/wekbit/gobject-introspection-0.6.14$
------------------


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