Hi Pascal, + Wookey
On 29 March 2013 16:15, Pascal PAILLET-LME <p.pail...@st.com> wrote: > > Hi, > I'm trying to cross build some packages for ubuntu quantal following this > wiki: > > https://wiki.linaro.org/Platform/DevPlatform/CrossCompile/UsingXdeb xdeb is deprecated. The main entry point in the wiki is: https://wiki.linaro.org/Platform/DevPlatform/CrossCompile/CrossBuilding Multiarch is the recommended approach today: https://wiki.linaro.org/Platform/DevPlatform/CrossCompile/UsingMultiArch The most recent up-to-date usage is the ARM64 bootstrap: https://wiki.linaro.org/Platform/DevPlatform/CrossCompile/arm64bootstrap and also some older examples: https://wiki.linaro.org/Platform/DevPlatform/CrossCompile/ChromiumCrossCompile https://wiki.linaro.org/Platform/DevPlatform/CrossCompile/FirefoxCrossCompile Please take a look, try the multiarch approach instead of xdeb and we can continue the discusssion :) > we would like to be able to build packages like gstreamer. > today, I'm able to compile busybox and grep but no gstreamer or gstreamer > plugins > > Here is my HowTo: > > sudo su > debootstrap quantal m-xdeb > > chmod 777 m-xdeb/etc/apt/sources.list > vi m-xdeb/etc/apt/sources.list > deb [arch=armhf] http://ports.ubuntu.com/ quantal main universe > deb-src http://ports.ubuntu.com/ quantal main universe > deb http://archive.ubuntu.com/ubuntu quantal main universe > > > sudo chroot m-xdeb > > mount -t proc proc /proc > mount -t devpts none /dev/pts > export LC_ALL=C > > adduser build > adduser build sudo > > apt-get update > > apt-get install -y xdeb gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf > > dpkg --add-architecture armhf > exit > > sudo chroot m-xdeb su - build > export LC_ALL=C > > > here are the results: > > xdeb -a armhf --only-explicit --no-lintian --apt-source grep > OK > > xdeb -a armhf --no-lintian --apt-source gstreamer1.0 > Fails: > Dependency cycle: [u'cairo', u'libxt', u'glib2.0', u'dbus-python', > u'dbus-glib'] > > xdeb -a armhf --only-explicit --no-lintian --apt-source gstreamer1.0 > Fails: > /home/build/src/gstreamer1.0/gst/tmp-introspecteM6YUf/Gst-1.0.c:580:3: > warning: implicit declaration of function 'gst_init' > [-Wimplicit-function-declaration] > g-ir-scanner: link: ../libtool --mode=link --tag=CC arm-linux-gnueabihf-gcc > -std=gnu99 -o /home/build/src/gstreamer1.0/gst/tmp-introspecteM6YUf/Gst-1.0 > -export-dynamic > /home/build/src/gstreamer1.0/gst/tmp-introspecteM6YUf/Gst-1.0.o -L. > libgstreamer-1.0.la -Wl,--export-dynamic -pthread > -L/usr/arm-linux-gnueabihf/lib -lgio-2.0 -lgobject-2.0 -lgmodule-2.0 > -lgthread-2.0 -lrt -lglib-2.0 > libtool: link: arm-linux-gnueabihf-gcc -std=gnu99 -o > /home/build/src/gstreamer1.0/gst/tmp-introspecteM6YUf/.libs/Gst-1.0 > /home/build/src/gstreamer1.0/gst/tmp-introspecteM6YUf/Gst-1.0.o > -Wl,--export-dynamic -pthread -Wl,--export-dynamic -L. > ./.libs/libgstreamer-1.0.so -L/usr/arm-linux-gnueabihf/lib -lgio-2.0 > -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -pthread -Wl,-rpath > -Wl,/usr/lib/arm-linux-gnueabihf > /home/build/src/gstreamer1.0/gst/tmp-introspecteM6YUf/Gst-1.0: line 117: > /home/build/src/gstreamer1.0/gst/tmp-introspecteM6YUf/.libs/lt-Gst-1.0: > cannot execute binary file > /home/build/src/gstreamer1.0/gst/tmp-introspecteM6YUf/Gst-1.0: line 117: > /home/build/src/gstreamer1.0/gst/tmp-introspecteM6YUf/.libs/lt-Gst-1.0: > Success > Command '['/home/build/src/gstreamer1.0/gst/tmp-introspecteM6YUf/Gst-1.0', > '--introspect-dump=/home/build/src/gstreamer1.0/gst/tmp-introspecteM6YUf/functions.txt,/home/build/src/gstreamer1.0/gst/tmp-introspecteM6YUf/dump.xml']' > returned non-zero exit status 126 > make[5]: *** [Gst-1.0.gir] Error 1 > > ( please find full trace attached) > > > xdeb -a armhf --only-explicit --no-lintian --apt-source > gstreamer1.0-plugins-base > Fails: > ... > ===== Importing keyutils_1.5.5-3 ===== > > apt-get -oAPT::Architecture=armhf download keyutils:armhf > Get:1 Downloading keyutils 1.5.5-3 [30.3 kB] > Fetched 30.3 kB in 0s (55.9 kB/s) > apt-get -oAPT::Architecture=armhf download keyutils-dbg:armhf > Get:1 Downloading keyutils-dbg 1.5.5-3 [57.2 kB] > Fetched 57.2 kB in 0s (437 kB/s) > apt-get -oAPT::Architecture=armhf download libkeyutils1:armhf > Get:1 Downloading libkeyutils1 1.5.5-3 [6626 B] > Fetched 6626 B in 0s (19.9 kB/s) > apt-get -oAPT::Architecture=armhf download libkeyutils-dev:armhf > Get:1 Downloading libkeyutils-dev 1.5.5-3 [25.8 kB] > Fetched 25.8 kB in 0s (94.9 kB/s) > Traceback (most recent call last): > File "/usr/bin/xdeb", line 988, in <module> > main() > File "/usr/bin/xdeb", line 973, in main > native_import(options, src) > File "/usr/bin/xdeb", line 585, in native_import > crossed_debs = cross_convert(options, debs, options.builddirs[0]) > File "/usr/bin/xdeb", line 484, in cross_convert > deb)).debcontrol() > File "/usr/lib/python2.7/dist-packages/debian/debfile.py", line 271, in > __init__ > compressed_part_name(DATA_PART))) > File "/usr/lib/python2.7/dist-packages/debian/debfile.py", line 256, in > compressed_part_name > " (expected one of: %s)" % candidates) > debian.debfile.DebError: missing required part in given .deb (expected one > of: ['data.tar.gz', 'data.tar.bz2', 'data.tar.lzma']) > > > > > I have tried to use repo quantal-updates with also bad result. > > I have tried to use lower level tools, but I did not found a way to install > cross build-deps > > apt-get build-dep -aarmhf ... always fails like this: > sudo apt-get -oAPT::Architecture=armhf build-dep gstreamer1.0 > [sudo] password for build: > Reading package lists... Done > Building dependency tree > Reading state information... Done > The following packages have unmet dependencies: > build-essential : Depends: dpkg-dev (>= 1.13.5) but it is not going to be > installed > cdbs : Depends: dh-translations but it is not going to be installed > debhelper : Depends: dpkg-dev (>= 1.16.2) but it is not going to be installed > docbook-utils : Depends: docbook-dsssl but it is not going to be installed > Depends: jadetex but it is not going to be installed > gnome-pkg-tools : Depends: dh-translations but it is not going to be > installed > gtk-doc-tools : Depends: docbook-dsssl but it is not going to be installed > Depends: docbook-xml (>= 4.3) but it is not going to be > installed > Depends: docbook-xsl (>= 1.64.1.0) but it is not going to be > installed > Depends: docbook-to-man but it is not going to be installed > Depends: gnome-common but it is not going to be installed > transfig : Depends: x11-common but it is not going to be installed > xmlto : Depends: docbook-xml (>= 4.2-8) but it is not going to be installed > Depends: docbook-xsl (>= 1.64.1.0) but it is not going to be > installed > E: Build-dependencies for gstreamer1.0 could not be satisfied. > > > > I guess I missed something... apt.conf ? sources.list... ? > Can somebody help me ? > > > best regards, > pascal Cheers, Fathi _______________________________________________ linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-dev