<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[compiling with gcc in a chroot&#x27;ed system]]></title><description><![CDATA[<p dir="auto">I have in my BQ E4.5 below <code>~phablet/myRoot</code> a complete Linux un-tared to be able to compile and test things there. I did this already in the time of Canonical.</p>
<p dir="auto">The root fs was made of un-taring <code>ubports-touch.rootfs-xenial-armhf.tar.gz</code></p>
<p dir="auto">Now I can not figure out to compile something there. The <code>configure</code> fails with:</p>
<pre><code># ./configure CC=/usr/bin/arm-linux-gnueabihf-gcc 
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... no
checking whether make supports nested variables... no
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... armv7l-unknown-linux-gnueabihf
checking host system type... armv7l-unknown-linux-gnueabihf
checking whether make supports nested variables... (cached) no
configure: autobuild project... libassuan
configure: autobuild revision... 2.5.1
configure: autobuild hostname... ubuntu-phablet
configure: autobuild timestamp... 20190106-143049
checking for style of include used by make... none
checking for gcc... /usr/bin/arm-linux-gnueabihf-gcc
checking whether the C compiler works... no
configure: error: in `/src/libassuan-2.5.1':
configure: error: C compiler cannot create executables
See `config.log' for more details
</code></pre>
<p dir="auto">In <code>config.log</code> it is missing the file <code>crt1.o</code> nd maybe others:</p>
<pre><code>configure:3667: checking whether the C compiler works
configure:3689: /usr/bin/arm-linux-gnueabihf-gcc    conftest.c  &gt;&amp;5
/usr/bin/ld: cannot find crt1.o: No such file or directory
/usr/bin/ld: cannot find crti.o: No such file or directory
collect2: error: ld returned 1 exit status
</code></pre>
<p dir="auto">I tried as well with he normal compile <code>CC=gcc</code><br />
What additional packages I have to install in this system and which gcc to use?</p>
<p dir="auto">Thanks</p>
]]></description><link>https://forums.ubports.com/topic/2229/compiling-with-gcc-in-a-chroot-ed-system</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Apr 2026 11:55:34 GMT</lastBuildDate><atom:link href="https://forums.ubports.com/topic/2229.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 06 Jan 2019 14:34:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to compiling with gcc in a chroot&#x27;ed system on Sun, 06 Jan 2019 17:57:56 GMT]]></title><description><![CDATA[<p dir="auto">To answer my own question:</p>
<pre><code>root@ubuntu-phablet:/# apt-get install gcc
root@ubuntu-phablet:/# apt-get install libc-dev
root@ubuntu-phablet:/# apt-get install make
</code></pre>
<p dir="auto">HIH</p>
]]></description><link>https://forums.ubports.com/post/16370</link><guid isPermaLink="true">https://forums.ubports.com/post/16370</guid><dc:creator><![CDATA[guru]]></dc:creator><pubDate>Sun, 06 Jan 2019 17:57:56 GMT</pubDate></item></channel></rss>