<?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>Techy Things &#187; compile-error</title>
	<atom:link href="https://tech.yipp.ca/category/compile-error/feed/" rel="self" type="application/rss+xml" />
	<link>https://tech.yipp.ca</link>
	<description>Just another Yipp.ca Blogs site</description>
	<lastBuildDate>Thu, 01 May 2025 18:06:28 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.2.38</generator>
	<item>
		<title>Install libstdc++ for 32-bit on 64-bit CentOS (cannot find -lstdc++)</title>
		<link>https://tech.yipp.ca/compile-error/install-libstdc-for-32-bit-on-64-bit-centos/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=install-libstdc-for-32-bit-on-64-bit-centos</link>
		<comments>https://tech.yipp.ca/compile-error/install-libstdc-for-32-bit-on-64-bit-centos/#comments</comments>
		<pubDate>Wed, 29 Jan 2014 00:00:56 +0000</pubDate>
		<dc:creator><![CDATA[frank]]></dc:creator>
				<category><![CDATA[centos]]></category>
		<category><![CDATA[compile-error]]></category>

		<guid isPermaLink="false">http://tech.yipp.ca/?p=525</guid>
		<description><![CDATA[<p>You are running CentOS 64-bit, and get the libstdc++ error cannot find -lstdc++ /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/4.4.7/libstdc++.a when searching for -lstdc++ /usr/bin/ld: cannot find -lstdc++ I am here to help. The solution is simply&#46;&#46;&#46;</p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/compile-error/install-libstdc-for-32-bit-on-64-bit-centos/">Install libstdc++ for 32-bit on 64-bit CentOS (cannot find -lstdc++)</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>You are running CentOS 64-bit, and get the libstdc++ error cannot find -lstdc++</p>
<pre>/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/4.4.7/libstdc++.a when searching for -lstdc++
/usr/bin/ld: cannot find -lstdc++</pre>
<p>I am here to help. The solution is simply :</p>
<pre><strong>$&gt; sudo yum install libstdc++-devel.i686</strong></pre>
<p>On CentOS 7 things are a bit different! Heck !</p>
<pre><strong><code>$&gt; sudo yum install libstdc++-static libstdc++-static.i686

</code></strong></pre>
<p>If there are some other libraries that you cannot install, I know some people on who have success making a separate build environment using a 32-bit lxc container. That is the alternative solution.<br />
You can read more about LXC container at :</p>
<ul>
<li>Debian <a href="https://wiki.debian.org/LXC" target="_blank">https://wiki.debian.org/LXC</a></li>
<li>Ubuntu <a href="https://help.ubuntu.com/lts/serverguide/lxc.html" target="_blank">https://help.ubuntu.com/lts/serverguide/lxc.html</a></li>
</ul>
<p>&nbsp;</p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/compile-error/install-libstdc-for-32-bit-on-64-bit-centos/">Install libstdc++ for 32-bit on 64-bit CentOS (cannot find -lstdc++)</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://tech.yipp.ca/compile-error/install-libstdc-for-32-bit-on-64-bit-centos/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>error: bp cannot be used in asm here</title>
		<link>https://tech.yipp.ca/compile-error/error-bp-cannot-be-used-in-asm-here/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=error-bp-cannot-be-used-in-asm-here</link>
		<comments>https://tech.yipp.ca/compile-error/error-bp-cannot-be-used-in-asm-here/#comments</comments>
		<pubDate>Fri, 10 Jan 2014 02:02:12 +0000</pubDate>
		<dc:creator><![CDATA[frank]]></dc:creator>
				<category><![CDATA[compile-error]]></category>

		<guid isPermaLink="false">http://tech.yipp.ca/?p=494</guid>
		<description><![CDATA[<p>&#160; The odds are that you are trying to compile 32-bit assembly code in 64-bit program. The solution is to compile for 32-bit or re-write your assembly for 64-bit. To compile for 32-bit, use&#46;&#46;&#46;</p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/compile-error/error-bp-cannot-be-used-in-asm-here/">error: bp cannot be used in asm here</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>&nbsp;</p>
<p>The odds are that you are trying to compile 32-bit assembly code in 64-bit program.</p>
<p>The solution is to compile for 32-bit or re-write your assembly for 64-bit.</p>
<p>To compile for 32-bit, use -m32 in CFLAGS and CPPFLAGS</p>
<p>You might also need this :</p>
<pre>$&gt; yum install glibc-devel.i68</pre>
<pre>$&gt; <tt>yum install libstdc++.i686</tt></pre>
<p>&nbsp;</p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/compile-error/error-bp-cannot-be-used-in-asm-here/">error: bp cannot be used in asm here</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://tech.yipp.ca/compile-error/error-bp-cannot-be-used-in-asm-here/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&#039;XYZ&#039; probably isn&#039;t a 64-bit LSB-first ELF file.</title>
		<link>https://tech.yipp.ca/compile-error/xyz-probably-isnt-a-64-bit-lsb-first-elf-file/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=xyz-probably-isnt-a-64-bit-lsb-first-elf-file</link>
		<comments>https://tech.yipp.ca/compile-error/xyz-probably-isnt-a-64-bit-lsb-first-elf-file/#comments</comments>
		<pubDate>Tue, 06 Aug 2013 21:58:27 +0000</pubDate>
		<dc:creator><![CDATA[frank]]></dc:creator>
				<category><![CDATA[compile-error]]></category>

		<guid isPermaLink="false">http://tech.yipp.ca/?p=270</guid>
		<description><![CDATA[<p>Solution: Install both chrpath.x86_64 and chrpath.i686 ! $&#62; sudo yum install chrpath.x86_64 You might also need to only install i686 version. For that first remove the one above: (1) $&#62; sudo yum remove chrpath&#46;&#46;&#46;</p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/compile-error/xyz-probably-isnt-a-64-bit-lsb-first-elf-file/">'XYZ' probably isn't a 64-bit LSB-first ELF file.</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Solution: Install both chrpath.x86_64 and chrpath.i686 !</p>
<p>$&gt; sudo yum install chrpath.x86_64</p>
<p>You might also need to only install i686 version. For that first remove the one above:</p>
<p>(1) $&gt; sudo yum remove chrpath<br />
(2) Download this : http://dl.atrpms.net/el6-i386/atrpms/stable/chrpath-0.13-5.el6.i686.rpm<br />
(3) $&gt; sudo rpm -ivh chrpath-0.13-5.el6.i68</p>
<p>Problem :</p>
<p>You might have a build error like this :</p>
<p>chrpath -r `readlink -f arch/linux-i686/thelib`:`readlink -f ../arch/linux-i686/stage/opt/haivision/lib` arch/linux-i686/crtmpserver/crtmpserver<br />
`arch/linux-i686/crtmpserver/crtmpserver' probably isn't a 64-bit LSB-first ELF file.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/compile-error/xyz-probably-isnt-a-64-bit-lsb-first-elf-file/">'XYZ' probably isn't a 64-bit LSB-first ELF file.</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://tech.yipp.ca/compile-error/xyz-probably-isnt-a-64-bit-lsb-first-elf-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>/usr/bin/ld: cannot find -lbz2</title>
		<link>https://tech.yipp.ca/compile-error/sudo-aptitude-install-libbz2-dev-sudo-yum-install-bzip2-devel/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=sudo-aptitude-install-libbz2-dev-sudo-yum-install-bzip2-devel</link>
		<comments>https://tech.yipp.ca/compile-error/sudo-aptitude-install-libbz2-dev-sudo-yum-install-bzip2-devel/#comments</comments>
		<pubDate>Tue, 06 Aug 2013 21:55:21 +0000</pubDate>
		<dc:creator><![CDATA[frank]]></dc:creator>
				<category><![CDATA[compile-error]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://tech.yipp.ca/?p=264</guid>
		<description><![CDATA[<p>Solution: $&#62; sudo aptitude install libbz2-dev or $&#62; sudo yum install bzip2-devel &#160; &#160;</p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/compile-error/sudo-aptitude-install-libbz2-dev-sudo-yum-install-bzip2-devel/">/usr/bin/ld: cannot find -lbz2</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Solution:</p>
<p>$&gt; sudo aptitude <em>install libbz2</em>-dev</p>
<p>or</p>
<p>$&gt; <b></b> sudo <em>yum install</em> bzip2-devel</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/compile-error/sudo-aptitude-install-libbz2-dev-sudo-yum-install-bzip2-devel/">/usr/bin/ld: cannot find -lbz2</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://tech.yipp.ca/compile-error/sudo-aptitude-install-libbz2-dev-sudo-yum-install-bzip2-devel/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>STL library compilation error: ‘__glibcxx_requires_valid_range’ was not declared in this scope</title>
		<link>https://tech.yipp.ca/compile-error/stl-library-compilation-error-__glibcxx_requires_valid_range-was-not-declared-in-this-scope/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=stl-library-compilation-error-__glibcxx_requires_valid_range-was-not-declared-in-this-scope</link>
		<comments>https://tech.yipp.ca/compile-error/stl-library-compilation-error-__glibcxx_requires_valid_range-was-not-declared-in-this-scope/#comments</comments>
		<pubDate>Wed, 21 Nov 2012 18:21:00 +0000</pubDate>
		<dc:creator><![CDATA[francois]]></dc:creator>
				<category><![CDATA[compile-error]]></category>

		<guid isPermaLink="false">http://tech.yipp.ca/?p=95</guid>
		<description><![CDATA[<p>Problem In file included from /opt/STM/STLinux-2.3/devkit/sh4/target/usr/include/c++/4.2.4/bits/char_traits.h:46, from /opt/STM/STLinux-2.3/devkit/sh4/target/usr/include/c++/4.2.4/string:47, from /opt/STM/STLinux-2.3/devkit/sh4/target/usr/include/c++/4.2.4/bits/locale_classes.h:47, from /opt/STM/STLinux-2.3/devkit/sh4/target/usr/include/c++/4.2.4/locale:44, from ../vfcommon/vfstring.h:39, from ../vfinclude/vfcommon.h:24, from vfrpc2.cpp:20: /opt/STM/STLinux-2.3/devkit/sh4/target/usr/include/c++/4.2.4/bits/stl_algobase.h: In function ‘void std::fill(unsigned char*, unsigned char*, const unsigned char&#38;)’: /opt/STM/STLinux-2.3/devkit/sh4/target/usr/include/c++/4.2.4/bits/stl_algobase.h:598: error: ‘__glibcxx_requires_valid_range’ was not&#46;&#46;&#46;</p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/compile-error/stl-library-compilation-error-__glibcxx_requires_valid_range-was-not-declared-in-this-scope/">STL library compilation error: ‘__glibcxx_requires_valid_range’ was not declared in this scope</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></description>
				<content:encoded><![CDATA[<h3>Problem</h3>
<p>In file included from /opt/STM/STLinux-2.3/devkit/sh4/target/usr/include/c++/4.2.4/bits/char_traits.h:46,<br />
from /opt/STM/STLinux-2.3/devkit/sh4/target/usr/include/c++/4.2.4/string:47,<br />
from /opt/STM/STLinux-2.3/devkit/sh4/target/usr/include/c++/4.2.4/bits/locale_classes.h:47,<br />
from /opt/STM/STLinux-2.3/devkit/sh4/target/usr/include/c++/4.2.4/locale:44,<br />
from ../vfcommon/vfstring.h:39,<br />
from ../vfinclude/vfcommon.h:24,<br />
from vfrpc2.cpp:20:<br />
/opt/STM/STLinux-2.3/devkit/sh4/target/usr/include/c++/4.2.4/bits/stl_algobase.h: In function ‘void std::fill(unsigned char*, unsigned char*, const unsigned char&amp;)’:<br />
/opt/STM/STLinux-2.3/devkit/sh4/target/usr/include/c++/4.2.4/bits/stl_algobase.h:598: error: ‘__glibcxx_requires_valid_range’ was not declared in this scope</p>
<h3>Solution</h3>
<p>You have a file called debug.h in your project that shadows the system header file. Rename your debug.h to something else and the error will be gone!</p>
<p>&nbsp;</p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/compile-error/stl-library-compilation-error-__glibcxx_requires_valid_range-was-not-declared-in-this-scope/">STL library compilation error: ‘__glibcxx_requires_valid_range’ was not declared in this scope</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://tech.yipp.ca/compile-error/stl-library-compilation-error-__glibcxx_requires_valid_range-was-not-declared-in-this-scope/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
