Hi,
Just to let you all know, due to the ongoing multiarch work, it is not possible to cross-compile relatively complex packages in ubuntu. For example, following the instructions[1], Firefox. While building on oneiric, patched packages from the linaro-maintainers overlay are needed, many of those patches are on precise, and rest should get there during the next cycle.
Cheers, Riku
[1] https://wiki.linaro.org/Platform/DevPlatform/CrossCompile/FirefoxCrossCompil...
On 24 November 2011 15:32, Riku Voipio riku.voipio@linaro.org wrote:
Just to let you all know, due to the ongoing multiarch work, it is not possible to cross-compile
And of course I mean "now possible" ..
Riku
Riku,
On 24 November 2011 13:32, Riku Voipio riku.voipio@linaro.org wrote:
Hi,
Just to let you all know, due to the ongoing multiarch work, it is not possible to cross-compile relatively complex packages in ubuntu. For example, following the instructions[1], Firefox.
Out of curiosity and having a few minutes right now, I tried following the instructions in an oneiric chroot on an amd64 host and I hit the following issues.
1. /etc/apt.conf.d does not really exist. so I had to create one and put 10local into it. 2. While following the instructions as in "Drag-in build dependencies for firefox"
(oneiric)root@e102742:~# cat firefox-deps.sh apt-get install libx11-dev:armel libxt-dev:armel libgtk2.0-dev:armel liborbit2-dev:armel libidl-dev:armel libxft-dev:armel libfreetype6-dev:armel libxrender-dev:armel libxinerama-dev:armel libgnome2-dev:armel libgconf2-dev:armel libgnomeui-dev:armel libstartup-notification0-dev:armel libasound2-dev:armel libcurl4-openssl-dev:armel libdbus-glib-1-dev:armel libiw-dev:armel mesa-common-dev:armel libnotify-dev:armel libgnomevfs2-dev:armel libdbusmenu-gtk-dev:armel
(oneiric)root@e102742:~# sh firefox-deps.sh Reading package lists... Done Building dependency tree Reading state information... Done libasound2-dev:armel is already the newest version. libcurl4-openssl-dev:armel is already the newest version. libdbus-glib-1-dev:armel is already the newest version. libfreetype6-dev:armel is already the newest version. libgtk2.0-dev:armel is already the newest version. libnotify-dev:armel is already the newest version. libx11-dev:armel is already the newest version. libxft-dev:armel is already the newest version. libxinerama-dev:armel is already the newest version. libxrender-dev:armel is already the newest version. libxt-dev:armel is already the newest version. mesa-common-dev:armel is already the newest version. libdbusmenu-gtk-dev:armel is already the newest version. liborbit2-dev:armel is already the newest version. libiw-dev:armel is already the newest version. libstartup-notification0-dev:armel is already the newest version. libgnome2-dev:armel is already the newest version. libgnomeui-dev:armel is already the newest version. libgnomevfs2-dev:armel is already the newest version. libgconf2-dev:armel is already the newest version. libidl-dev:armel is already the newest version. You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: libgnutls26:armel : Depends: libtasn1-3:armel (>= 1.6-0) but it is not going to be installed libtasn1-3-dev:armel : Depends: libtasn1-3:armel (= 2.9-4) but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution). (oneiric)root@e102742:~# apt-get install libtasn1-3-dev:armel Reading package lists... Done Building dependency tree Reading state information... Done libtasn1-3-dev:armel is already the newest version. You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: libgnutls26:armel : Depends: libtasn1-3:armel (>= 1.6-0) but it is not going to be installed libtasn1-3-dev:armel : Depends: libtasn1-3:armel (= 2.9-4) but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
(oneiric)root@e102742:~# apt-get install libtasn1-3:armel Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: x11proto-record-dev libcairo-script-interpreter2 libssl-doc libglib2.0-dev zlib1g-dev libxtst6 libglobus-openssl Use 'apt-get autoremove' to remove them. The following NEW packages will be installed: libtasn1-3:armel 0 upgraded, 1 newly installed, 0 to remove and 23 not upgraded. 235 not fully installed or removed. Need to get 0 B/37.7 kB of archives. After this operation, 139 kB of additional disk space will be used. debconf: delaying package configuration, since apt-utils is not installed (Reading database ... 44963 files and directories currently installed.) Unpacking libtasn1-3:armel (from .../libtasn1-3_2.9-4_armel.deb) ... dpkg: error processing /var/cache/apt/archives/libtasn1-3_2.9-4_armel.deb (--unpack): './usr/share/doc/libtasn1-3/NEWS.gz' is different from the same file on the system Errors were encountered while processing: /var/cache/apt/archives/libtasn1-3_2.9-4_armel.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
Is there something I might be doing wrong ?
Cheers, Ramana
Hi,
Thanks for trying out.
On 25 November 2011 00:50, Ramana Radhakrishnan ramana.radhakrishnan@linaro.org wrote:
Out of curiosity and having a few minutes right now, I tried following the instructions in an oneiric chroot on an amd64 host and I hit the following issues.
- /etc/apt.conf.d does not really exist. so I had to create one and
put 10local into it.
Another typo - this should have been /etc/apt/apt.conf.d/ . wiki updated.
- While following the instructions as in "Drag-in build dependencies
for firefox"
-snip-
Unpacking libtasn1-3:armel (from .../libtasn1-3_2.9-4_armel.deb) ... dpkg: error processing /var/cache/apt/archives/libtasn1-3_2.9-4_armel.deb (--unpack): './usr/share/doc/libtasn1-3/NEWS.gz' is different from the same file on the system Errors were encountered while processing: /var/cache/apt/archives/libtasn1-3_2.9-4_armel.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
Is there something I might be doing wrong ?
No, it appears for some reason NEWS.gz is different on armel and amd64 package, and thus multi-arch: same install is refused. Usually using gzip -n fixes that, but this package was already doing it. This appears to be a case of:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=647522
I've uploaded a new libtasn which doesn't compress NEWS file as workaround. I'm also updating the firefox in repository to 8.0, the demo was based on 7.0. I'll update when all the changes have landed.
On 25 November 2011 11:41, Riku Voipio riku.voipio@linaro.org wrote:
I've uploaded a new libtasn which doesn't compress NEWS file as workaround. I'm also updating the firefox in repository to 8.0, the demo was based on 7.0. I'll update when all the changes have landed.
Which should be now (or at least in a few minutes)
Riku
On 11/24/2011 03:32 PM, Riku Voipio wrote:
Hi,
Just to let you all know, due to the ongoing multiarch work, it is not possible to cross-compile relatively complex packages in ubuntu. For example, following the instructions[1], Firefox. While building on oneiric, patched packages from the linaro-maintainers overlay are needed, many of those patches are on precise, and rest should get there during the next cycle.
What is the status of these in precise, and how can one help to get them in soon?
Are you also targetting other large apps for cross-build?
thanks Jani