<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://maemo.octonezd.me/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=92.130.88.10</id>
	<title>Maemo Wiki Mirror - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://maemo.octonezd.me/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=92.130.88.10"/>
	<link rel="alternate" type="text/html" href="https://maemo.octonezd.me/index.php/Special:Contributions/92.130.88.10"/>
	<updated>2026-04-22T10:32:43Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://maemo.octonezd.me/index.php?title=CSSU-thumb_toolchain_setup_(gcc4.7.2-linaro)&amp;diff=2463</id>
		<title>CSSU-thumb toolchain setup (gcc4.7.2-linaro)</title>
		<link rel="alternate" type="text/html" href="https://maemo.octonezd.me/index.php?title=CSSU-thumb_toolchain_setup_(gcc4.7.2-linaro)&amp;diff=2463"/>
		<updated>2016-12-03T17:23:08Z</updated>

		<summary type="html">&lt;p&gt;92.130.88.10: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This document describes how to setup the CSSU-thumb toolchain (gcc4.7.2-linaro) in scratchbox.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;GCC 4.7.2 does &#039;&#039;&#039;not&#039;&#039;&#039; produce thumb binaries by default, you should pass -mthumb if you want thumb resulting executables! without -mthumb it produces regular ARM ELFs&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. You need to have [http://wiki.maemo.org/Documentation/Maemo_5_Final_SDK_Installation ScratchBox] environment already set up.&lt;br /&gt;
&lt;br /&gt;
2. Download [http://maemo.merlin1991.at/cssu/develdebs/gcc-4.7.2_fremantle_armel/linaro-4.7-2012.07-fremantle-armv7a.tar.bz2 gcc-4.7.2-linaro toolchain] and extract it under /scratchbox/compilers (may need root privileges for extracting there)&lt;br /&gt;
 tar xvf linaro-4.7-2012.07-fremantle-armv7a.tar.bz2&lt;br /&gt;
&lt;br /&gt;
3. Create new ScratchBox target FREMANTLE_ARMEL_GCC472&lt;br /&gt;
&lt;br /&gt;
- Login to ScratchBox &lt;br /&gt;
&lt;br /&gt;
 $ /scratchbox/login&lt;br /&gt;
&lt;br /&gt;
- Create new ScratchBox target&lt;br /&gt;
&lt;br /&gt;
 [sbox-&amp;gt;:~]sb-conf st FREMANTLE_ARMEL_GCC472 -c linaro-4.7-2012.07-fremantle-armv7a -d qemu:perl:debian-etch:doctools:svn:git -t qemu-arm-sb&lt;br /&gt;
&lt;br /&gt;
replace debian-etch with debian-squeeze if you use ScratchBox Hathor release &lt;br /&gt;
&lt;br /&gt;
 [sbox-&amp;gt;:~]sb-conf se FREMANTLE_ARMEL_GCC472&lt;br /&gt;
&lt;br /&gt;
 [sbox-FREMANTLE_ARMEL_GCC472: ~] &amp;gt; sb-conf rs maemo-sdk-rootstrap_5.0_20.2010.36-2_armel.tgz&lt;br /&gt;
&lt;br /&gt;
 [sbox-FREMANTLE_ARMEL_GCC472: ~] &amp;gt; sb-conf in -edL&lt;br /&gt;
&lt;br /&gt;
 [sbox-FREMANTLE_ARMEL_GCC472: ~] &amp;gt; dpkg -i /scratchbox/compilers/linaro-4.7-2012.07-fremantle-armv7a/packages/libfakeroot_1.14.4-0+sb1_armel.deb&lt;br /&gt;
&lt;br /&gt;
 [sbox-FREMANTLE_ARMEL_GCC472: ~] &amp;gt; apt-get update&lt;br /&gt;
 [sbox-FREMANTLE_ARMEL_GCC472: ~] &amp;gt; fakeroot apt-get install maemo-sdk-debug&lt;br /&gt;
&lt;br /&gt;
- Accept [http://tablets-dev.nokia.com/eula/index.php Maemo5 SDK EULA] and copy the URL. Add nokia-binaries repository URL to /etc/apt/sources.list &lt;br /&gt;
&lt;br /&gt;
 [sbox-FREMANTLE_ARMEL_GCC472: ~] &amp;gt;apt-get update&lt;br /&gt;
 [sbox-FREMANTLE_ARMEL_GCC472: ~] &amp;gt;fakeroot apt-get install nokia-binaries nokia-apps&lt;br /&gt;
&lt;br /&gt;
 [sbox-FREMANTLE_ARMEL_GCC472: ~] &amp;gt;rm -rf /targets/FREMANTLE_ARMEL_GCC472/opt&lt;br /&gt;
 [sbox-FREMANTLE_ARMEL_GCC472: ~] &amp;gt;mkdir /targets/FREMANTLE_ARMEL_GCC472/opt&lt;br /&gt;
&lt;br /&gt;
- Download ScratchBox errata dependency provider package [http://maemo.merlin1991.at/cssu/develdebs/gcc-4.7.2_fremantle_armel/sb-thumb-errata-provider_0.1-1_armel.deb sb-thumb-errata-provider_0.1-1_armel.deb] and install it&lt;br /&gt;
&lt;br /&gt;
 dpkg -i sb-thumb-errata-provider_0.1-1_armel.deb&lt;br /&gt;
&lt;br /&gt;
- Add CSSU-testing and CSSU-thumb repos to your /etc/apt/sources.list&lt;br /&gt;
&lt;br /&gt;
 echo &amp;quot;deb http://repository.maemo.org/community-testing/ fremantle free non-free&amp;quot; &amp;gt;&amp;gt; /etc/apt/sources.list&lt;br /&gt;
 echo &amp;quot;deb-src http://repository.maemo.org/community-testing/ fremantle free&amp;quot; &amp;gt;&amp;gt; /etc/apt/sources.list&lt;br /&gt;
&lt;br /&gt;
 echo &amp;quot;deb http://maemo.merlin1991.at/cssu/community-thumb/ fremantle free non-free&amp;quot; &amp;gt;&amp;gt; /etc/apt/sources.list&lt;br /&gt;
 echo &amp;quot;deb-src http://maemo.merlin1991.at/cssu/community-thumb/ fremantle free&amp;quot; &amp;gt;&amp;gt; /etc/apt/sources.list&lt;br /&gt;
&lt;br /&gt;
Remove unneeded package maemo-core-debug&lt;br /&gt;
 apt-get remove maemo-core-debug&lt;br /&gt;
&lt;br /&gt;
Upgrade your target to latest CSSU-thumb&lt;br /&gt;
&lt;br /&gt;
 [sbox-FREMANTLE_ARMEL_GCC472: ~] &amp;gt;apt-get update&lt;br /&gt;
 [sbox-FREMANTLE_ARMEL_GCC472: ~] &amp;gt;fakeroot apt-get upgrade&lt;br /&gt;
&lt;br /&gt;
Download and install [http://maemo.merlin1991.at/cssu/develdebs/gcc-4.7.2_fremantle_armel/packages/libstdc%2b%2b6-dev_4.7.2-0%2bcssu0_armel.deb libstdc++6-dev_4.7.2-0+cssu0_armel.deb]&lt;br /&gt;
 dpkg -i libstdc++6-dev_4.7.2-0+cssu0_armel.deb&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;It can complain about libstdc++6 on system is 4.2.1-4maemo13+0m5.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Create FREMANTLE_ARMEL_GCC472.environment in your /targets directory&lt;br /&gt;
&lt;br /&gt;
 echo &amp;quot;export DEB_BUILD_OPTIONS=maemo-launcher,thumb,vfp&amp;quot; &amp;gt; /targets/FREMANTLE_ARMEL_GCC472.environment&lt;br /&gt;
 echo &amp;quot;export PIXMAN_DISABLE=arm-neon&amp;quot; &amp;gt;&amp;gt; /targets/FREMANTLE_ARMEL_GCC472.environment&lt;br /&gt;
&lt;br /&gt;
Your target should be ok at that point. Make sure to reenter the target, so updated FREMANTLE_ARMEL_GCC472.environment to take effect&lt;br /&gt;
&lt;br /&gt;
 fakeroot apt-get -f install&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;can fix that by installing the proper libstdc++6 afterwards.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Interesting new flags can be: &amp;lt;nowiki&amp;gt;-mfpu=neon -ftree-vectorize -fgraphite -lto&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The compiler will give the following warning:&lt;br /&gt;
 /scratchbox/compilers/linaro-4.7-2012.07-fremantle-armv7a/bin/../lib/gcc/arm-none-linux-gnueabi/4.7.2/../../../../arm-none-linux-gnueabi/bin/ld: BFD (GNU Binutils) 2.22 assertion fail ../../../sources/binutils-2.22/bfd/elf32-arm.c:11467&lt;br /&gt;
These warnings can be ignored. For some reason, the linker thinks that the object is hardfp, but as it is softfp the assertion fails.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation]]&lt;br /&gt;
[[Category:Fremantle]]&lt;br /&gt;
[[Category:Scratchbox]]&lt;br /&gt;
[[Category:Community]]&lt;/div&gt;</summary>
		<author><name>92.130.88.10</name></author>
	</entry>
	<entry>
		<id>https://maemo.octonezd.me/index.php?title=CSSU-thumb_toolchain_setup_(gcc4.7.2-linaro)&amp;diff=2464</id>
		<title>CSSU-thumb toolchain setup (gcc4.7.2-linaro)</title>
		<link rel="alternate" type="text/html" href="https://maemo.octonezd.me/index.php?title=CSSU-thumb_toolchain_setup_(gcc4.7.2-linaro)&amp;diff=2464"/>
		<updated>2016-12-03T17:22:30Z</updated>

		<summary type="html">&lt;p&gt;92.130.88.10: Add PIXMAN_DISABLE to prevent qemu crash at GTK package installation&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This document describes how to setup the CSSU-thumb toolchain (gcc4.7.2-linaro) in scratchbox.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;GCC 4.7.2 does &#039;&#039;&#039;not&#039;&#039;&#039; produce thumb binaries by default, you should pass -mthumb if you want thumb resulting executables! without -mthumb it produces regular ARM ELFs&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. You need to have [http://wiki.maemo.org/Documentation/Maemo_5_Final_SDK_Installation ScratchBox] environment already set up.&lt;br /&gt;
&lt;br /&gt;
2. Download [http://maemo.merlin1991.at/cssu/develdebs/gcc-4.7.2_fremantle_armel/linaro-4.7-2012.07-fremantle-armv7a.tar.bz2 gcc-4.7.2-linaro toolchain] and extract it under /scratchbox/compilers (may need root privileges for extracting there)&lt;br /&gt;
 tar xvf linaro-4.7-2012.07-fremantle-armv7a.tar.bz2&lt;br /&gt;
&lt;br /&gt;
3. Create new ScratchBox target FREMANTLE_ARMEL_GCC472&lt;br /&gt;
&lt;br /&gt;
- Login to ScratchBox &lt;br /&gt;
&lt;br /&gt;
 $ /scratchbox/login&lt;br /&gt;
&lt;br /&gt;
- Create new ScratchBox target&lt;br /&gt;
&lt;br /&gt;
 [sbox-&amp;gt;:~]sb-conf st FREMANTLE_ARMEL_GCC472 -c linaro-4.7-2012.07-fremantle-armv7a -d qemu:perl:debian-etch:doctools:svn:git -t qemu-arm-sb&lt;br /&gt;
&lt;br /&gt;
replace debian-etch with debian-squeeze if you use ScratchBox Hathor release &lt;br /&gt;
&lt;br /&gt;
 [sbox-&amp;gt;:~]sb-conf se FREMANTLE_ARMEL_GCC472&lt;br /&gt;
&lt;br /&gt;
 [sbox-FREMANTLE_ARMEL_GCC472: ~] &amp;gt; sb-conf rs maemo-sdk-rootstrap_5.0_20.2010.36-2_armel.tgz&lt;br /&gt;
&lt;br /&gt;
 [sbox-FREMANTLE_ARMEL_GCC472: ~] &amp;gt; sb-conf in -edL&lt;br /&gt;
&lt;br /&gt;
 [sbox-FREMANTLE_ARMEL_GCC472: ~] &amp;gt; dpkg -i /scratchbox/compilers/linaro-4.7-2012.07-fremantle-armv7a/packages/libfakeroot_1.14.4-0+sb1_armel.deb&lt;br /&gt;
&lt;br /&gt;
 [sbox-FREMANTLE_ARMEL_GCC472: ~] &amp;gt; apt-get update&lt;br /&gt;
 [sbox-FREMANTLE_ARMEL_GCC472: ~] &amp;gt; fakeroot apt-get install maemo-sdk-debug&lt;br /&gt;
&lt;br /&gt;
- Accept [http://tablets-dev.nokia.com/eula/index.php Maemo5 SDK EULA] and copy the URL. Add nokia-binaries repository URL to /etc/apt/sources.list &lt;br /&gt;
&lt;br /&gt;
 [sbox-FREMANTLE_ARMEL_GCC472: ~] &amp;gt;apt-get update&lt;br /&gt;
 [sbox-FREMANTLE_ARMEL_GCC472: ~] &amp;gt;fakeroot apt-get install nokia-binaries nokia-apps&lt;br /&gt;
&lt;br /&gt;
 [sbox-FREMANTLE_ARMEL_GCC472: ~] &amp;gt;rm -rf /targets/FREMANTLE_ARMEL_GCC472/opt&lt;br /&gt;
 [sbox-FREMANTLE_ARMEL_GCC472: ~] &amp;gt;mkdir /targets/FREMANTLE_ARMEL_GCC472/opt&lt;br /&gt;
&lt;br /&gt;
- Download ScratchBox errata dependency provider package [http://maemo.merlin1991.at/cssu/develdebs/gcc-4.7.2_fremantle_armel/sb-thumb-errata-provider_0.1-1_armel.deb sb-thumb-errata-provider_0.1-1_armel.deb] and install it&lt;br /&gt;
&lt;br /&gt;
 dpkg -i sb-thumb-errata-provider_0.1-1_armel.deb&lt;br /&gt;
&lt;br /&gt;
- Add CSSU-testing and CSSU-thumb repos to your /etc/apt/sources.list&lt;br /&gt;
&lt;br /&gt;
 echo &amp;quot;deb http://repository.maemo.org/community-testing/ fremantle free non-free&amp;quot; &amp;gt;&amp;gt; /etc/apt/sources.list&lt;br /&gt;
 echo &amp;quot;deb-src http://repository.maemo.org/community-testing/ fremantle free&amp;quot; &amp;gt;&amp;gt; /etc/apt/sources.list&lt;br /&gt;
&lt;br /&gt;
 echo &amp;quot;deb http://maemo.merlin1991.at/cssu/community-thumb/ fremantle free non-free&amp;quot; &amp;gt;&amp;gt; /etc/apt/sources.list&lt;br /&gt;
 echo &amp;quot;deb-src http://maemo.merlin1991.at/cssu/community-thumb/ fremantle free&amp;quot; &amp;gt;&amp;gt; /etc/apt/sources.list&lt;br /&gt;
&lt;br /&gt;
Remove unneeded package maemo-core-debug&lt;br /&gt;
 apt-get remove maemo-core-debug&lt;br /&gt;
&lt;br /&gt;
Upgrade your target to latest CSSU-thumb&lt;br /&gt;
&lt;br /&gt;
 [sbox-FREMANTLE_ARMEL_GCC472: ~] &amp;gt;apt-get update&lt;br /&gt;
 [sbox-FREMANTLE_ARMEL_GCC472: ~] &amp;gt;fakeroot apt-get upgrade&lt;br /&gt;
&lt;br /&gt;
Download and install [http://maemo.merlin1991.at/cssu/develdebs/gcc-4.7.2_fremantle_armel/packages/libstdc%2b%2b6-dev_4.7.2-0%2bcssu0_armel.deb libstdc++6-dev_4.7.2-0+cssu0_armel.deb]&lt;br /&gt;
 dpkg -i libstdc++6-dev_4.7.2-0+cssu0_armel.deb&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;It can complain about libstdc++6 on system is 4.2.1-4maemo13+0m5.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Create FREMANTLE_ARMEL_GCC472.environment in your /targets directory&lt;br /&gt;
&lt;br /&gt;
 echo &amp;quot;export DEB_BUILD_OPTIONS=maemo-launcher,thumb,vfp&amp;quot; &amp;gt; /targets/FREMANTLE_ARMEL_GCC472.environment&lt;br /&gt;
 echo &amp;quot;export PIXMAN_DISABLE=arm-neon&amp;quot; &amp;gt;&amp;gt; /targets/FREMANTLE_ARMEL_GCC472.environment&lt;br /&gt;
&lt;br /&gt;
Your target should be ok at that point. Make sure to reenter the target, so updated FREMANTLE_ARMEL_GCC472.environment to take effect&lt;br /&gt;
&lt;br /&gt;
fakeroot apt-get -f install&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;can fix that by installing the proper libstdc++6 afterwards.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Interesting new flags can be: &amp;lt;nowiki&amp;gt;-mfpu=neon -ftree-vectorize -fgraphite -lto&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The compiler will give the following warning:&lt;br /&gt;
 /scratchbox/compilers/linaro-4.7-2012.07-fremantle-armv7a/bin/../lib/gcc/arm-none-linux-gnueabi/4.7.2/../../../../arm-none-linux-gnueabi/bin/ld: BFD (GNU Binutils) 2.22 assertion fail ../../../sources/binutils-2.22/bfd/elf32-arm.c:11467&lt;br /&gt;
These warnings can be ignored. For some reason, the linker thinks that the object is hardfp, but as it is softfp the assertion fails.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation]]&lt;br /&gt;
[[Category:Fremantle]]&lt;br /&gt;
[[Category:Scratchbox]]&lt;br /&gt;
[[Category:Community]]&lt;/div&gt;</summary>
		<author><name>92.130.88.10</name></author>
	</entry>
</feed>