<?xml version="1.0"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>Trusster Forums &#187; Forum: General Announcements - Recent Topics</title>
<link>http://forums.trusster.com/</link>
<description>Trusster Forums &#187; Forum: General Announcements - Recent Topics</description>
<language>en</language>
<pubDate>Tue, 07 Feb 2012 07:40:11 +0000</pubDate>

<item>
<title>wisemonkey on "Compiling and Using teal/truss on Ubuntu 11.10 / gcc-4.6.1"</title>
<link>http://forums.trusster.com/topic/compiling-and-using-tealtruss-on-ubuntu-1110-gcc-461#post-125</link>
<pubDate>Mon, 12 Dec 2011 14:06:24 +0000</pubDate>
<dc:creator>wisemonkey</dc:creator>
<guid isPermaLink="false">125@http://forums.trusster.com/</guid>
<description>&#60;p&#62;Hi I've followed &#60;a href=&#34;http://forums.trusster.com/topic/teal-build-error-fedora&#34; rel=&#34;nofollow&#34;&#62;http://forums.trusster.com/topic/teal-build-error-fedora&#60;/a&#62; and used following particular patch post by Mike:&#60;/p&#62;
&#60;p&#62;&#38;gt;&#60;br /&#62;
*** teal_reg.h.new 2010-06-28 14:47:39.000000000 -0400&#60;br /&#62;
--- teal_reg.h 2006-05-18 08:34:00.000000000 -0400&#60;br /&#62;
*************** EVEN IF ADVISED OF THE POSSIBILITY OF SU&#60;br /&#62;
*** 110,117 ****&#60;br /&#62;
char to_int (uint32 b) const; //extract one bit (WARNING: Drops X/Z, see operator(uint32))&#60;/p&#62;
&#60;p&#62;//logic&#60;br /&#62;
! friend four_state ::teal::triple_equal (const reg&#38;amp; lhs, const reg&#38;amp; rhs);&#60;br /&#62;
! friend bool ::teal::operator== (const reg&#38;amp; lhs, const reg&#38;amp; rhs);&#60;br /&#62;
friend four_state operator&#38;lt; (const reg&#38;amp; lhs, const reg&#38;amp; rhs); //Should be bool?&#60;br /&#62;
friend four_state reduce_xor (const reg&#38;amp;);&#60;/p&#62;
&#60;p&#62;--- 110,117 ----&#60;br /&#62;
char to_int (uint32 b) const; //extract one bit (WARNING: Drops X/Z, see operator(uint32))&#60;/p&#62;
&#60;p&#62;//logic&#60;br /&#62;
! friend four_state triple_equal (const reg&#38;amp; lhs, const reg&#38;amp; rhs);&#60;br /&#62;
! friend bool operator== (const reg&#38;amp; lhs, const reg&#38;amp; rhs);&#60;br /&#62;
friend four_state operator&#38;lt; (const reg&#38;amp; lhs, const reg&#38;amp; rhs); //Should be bool?&#60;br /&#62;
friend four_state reduce_xor (const reg&#38;amp;);&#60;/p&#62;
&#60;p&#62;*************** EVEN IF ADVISED OF THE POSSIBILITY OF SU&#60;br /&#62;
*** 284,290 ****&#60;br /&#62;
friend vout&#38;amp; operator&#38;lt;&#38;lt; (vout&#38;amp;, const vreg&#38;amp;);&#60;br /&#62;
};&#60;br /&#62;
vout&#38;amp; operator&#38;lt;&#38;lt; (vout&#38;amp;, const vreg&#38;amp;);&#60;br /&#62;
-&#60;br /&#62;
- reg::four_state triple_equal (const reg&#38;amp; lhs, const reg&#38;amp; rhs);&#60;br /&#62;
- bool operator== (const reg&#38;amp; lhs, const reg&#38;amp; rhs);&#60;br /&#62;
- reg::four_state operator&#38;lt; (const reg&#38;amp; lhs, const reg&#38;amp; rhs); //Should be bool?&#60;br /&#62;
--- 284,286 ----&#60;/p&#62;
&#60;p&#62;-and -&#60;br /&#62;
*** teal_vreg.cpp.new 2010-06-28 14:45:41.000000000 -0400&#60;br /&#62;
--- teal_vreg.cpp 2010-06-28 14:45:28.000000000 -0400&#60;br /&#62;
*************** void teal::vreg::connect_ () {&#60;br /&#62;
*** 143,149 ****&#60;/p&#62;
&#60;p&#62;#if defined (vpi_2_0)&#60;br /&#62;
if (! handle_) {&#60;br /&#62;
! local_log &#38;lt;&#38;lt; teal_error &#38;lt;&#38;lt; &#34;Unable to get handle for \&#34;&#34; &#38;lt;&#38;lt; path_and_name_ &#38;lt;&#38;lt; &#34;\&#34; size:&#34; &#38;lt;&#38;lt; (int)path_and_name_.size () &#38;lt;&#38;lt; endm;&#60;br /&#62;
vpi_control (vpiFinish);&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;--- 143,149 ----&#60;/p&#62;
&#60;p&#62;#if defined (vpi_2_0)&#60;br /&#62;
if (! handle_) {&#60;br /&#62;
! local_log &#38;lt;&#38;lt; teal_error &#38;lt;&#38;lt; &#34;Unable to get handle for \&#34;&#34; &#38;lt;&#38;lt; path_and_name_ &#38;lt;&#38;lt; &#34;\&#34; size:&#34; &#38;lt;&#38;lt; path_and_name_.size () &#38;lt;&#38;lt; endm;&#60;br /&#62;
vpi_control (vpiFinish);&#60;br /&#62;
} &#60;/p&#62;
&#60;p&#62;&#38;gt;&#60;/p&#62;
&#60;p&#62;However&#60;br /&#62;
&#60;code&#62;! friend four_state ::teal::triple_equal (const reg&#38;amp; lhs, const reg&#38;amp; rhs);&#60;/code&#62;&#60;br /&#62;
&#60;code&#62;! friend bool ::teal::operator== (const reg&#38;amp; lhs, const reg&#38;amp; rhs);&#60;/code&#62;&#60;br /&#62;
&#60;code&#62;! local_log &#38;lt;&#38;lt; teal_error &#38;lt;&#38;lt; &#38;quot;Unable to get handle for \&#38;quot;&#38;quot; &#38;lt;&#38;lt; path_and_name_ &#38;lt;&#38;lt; &#38;quot;\&#38;quot; size:&#38;quot; &#38;lt;&#38;lt; path_and_name_.size () &#38;lt;&#38;lt; endm;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Were giving errors on ! operator so I removed it and got it compiled completely.&#60;/p&#62;
&#60;p&#62;But now when I try to use examples I receive following (similar) errors in all cases so I'm assuming either I didn't compile properly or still there is an issue?&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;truss_channel.h:113:4: error: cast from ‘alu::operation*’ to ‘int’ loses precision [-fpermissive]
make: *** [testbench.o] Error 1&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;If required I can attach complete log of output as well
&#60;/p&#62;</description>
</item>

</channel>
</rss>

