<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>gentoo &#8211; le blog imaginaire</title>
	<atom:link href="/tag/gentoo/feed/" rel="self" type="application/rss+xml" />
	<link>/</link>
	<description>le blog bien réel d&#039;Erwan</description>
	<lastBuildDate>Mon, 12 Jun 2017 10:06:29 +0000</lastBuildDate>
	<language>fr-FR</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.9.1</generator>
	<item>
		<title>Gentoo cannot create executables</title>
		<link>/2012/03/gentoo-cannot-create-executables/</link>
		<pubDate>Mon, 12 Mar 2012 20:57:15 +0000</pubDate>
		<dc:creator><![CDATA[Erwan]]></dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[geek]]></category>
		<category><![CDATA[gentoo]]></category>

		<guid isPermaLink="false">/?p=849</guid>
		<description><![CDATA[J'ai eu mon premier cassage de Gentoo ce weekend. Pour faire simple, impossible de compiler quoique ce soit avec emerge, qui m'affichait ce joli message : configure: error: C compiler cannot create executables
]]></description>
				<content:encoded><![CDATA[<p><img class="alignright size-medium wp-image-850 colorbox-849" title="terminal" src="/wp-content/uploads/2012/03/Screenshot-1-300x165.png" alt="" width="300" height="165" srcset="/wp-content/uploads/2012/03/Screenshot-1-300x165.png 300w, /wp-content/uploads/2012/03/Screenshot-1.png 636w" sizes="(max-width: 300px) 100vw, 300px" /></p>
<p>Un petit article technique et gentooïste, histoire de changer un peu <img src="https://s.w.org/images/core/emoji/2.3/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p>J&rsquo;ai eu mon premier cassage de Gentoo ce weekend. Pour faire simple, impossible de compiler quoique ce soit avec emerge, qui m&rsquo;affichait ce joli message :</p>
<pre>[...]
checking whether the C compiler works... no
<strong>configure: error: C compiler cannot create executables</strong></pre>
<p>Il y a un certain nombre de cas simples où il s&rsquo;agit juste d&rsquo;une configuration désuette mais mais c&rsquo;était pas le mien.</p>
<p>Un peu coup d&rsquo;oeil au fichier log pour comprendre le drame :</p>
<pre>cat /var/tmp/portage/dev-libs/mpfr-3.0.1_p4/work/mpfr-3.0.1/config.log
[...]
/usr/libexec/gcc/i686-pc-linux-gnu/4.5.3/cc1: error while loading shared libraries: <strong>libgmp.so.3: cannot open shared object file: No such file or directory</strong>
[...]</pre>
<p>En gros, GCC est cassé et il faudrait un emerge fonctionnel pour le réparer&#8230;</p>
<p>Voici une solution :</p>
<pre><strong>ln -s /usr/lib/libgmp.so /usr/lib/libgmp.so.3 </strong># ou /usr/lib64 selon votre pc
emerge -1 gcc
rm /usr/lib/libgmp.so.3
gcc-config -l
gcc-config 1 # = le numero de la liste qui va bien
source /etc/profile</pre>
<p>Et voilà !</p>
]]></content:encoded>
			</item>
	</channel>
</rss>
