<?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; View: Topics with no tags</title>
<link>http://forums.trusster.com/</link>
<description>Trusster Forums &#187; View: Topics with no tags</description>
<language>en</language>
<pubDate>Tue, 07 Feb 2012 07:07:54 +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>
<item>
<title>moogyd on "Crash: Ubuntu/Icarus/GCC ?"</title>
<link>http://forums.trusster.com/topic/crash-ubuntuicarusgcc#post-11</link>
<pubDate>Sat, 19 Dec 2009 11:10:31 +0000</pubDate>
<dc:creator>moogyd</dc:creator>
<guid isPermaLink="false">11@http://forums.trusster.com/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I am running on Ubuntu 8.04.&#60;br /&#62;
I don't know where the problem is, but when I try to run the examples (e.g. alu_test), I get a &#34;crash&#34;&#60;/p&#62;
&#60;p&#62;Running Simulation&#60;br /&#62;
resultfile /home/stevend/work/teal_truss/examples/alu/results/alu_test_1_results.log&#60;br /&#62;
*** glibc detected *** vvp: free(): invalid pointer: 0x080e57f8 ***&#60;br /&#62;
======= Backtrace: =========&#60;br /&#62;
/lib/tls/i686/cmov/libc.so.6[0xb7d02a85]&#60;br /&#62;
/lib/tls/i686/cmov/libc.so.6(cfree+0x90)[0xb7d064f0]&#60;br /&#62;
/usr/lib/libstdc++.so.6(_ZdlPv+0x21)[0xb7bcbb11]&#60;br /&#62;
/usr/lib/libstdc++.so.6(_ZNSs4_Rep10_M_destroyERKSaIcE+0x1d)[0xb7ba779d]&#60;br /&#62;
/usr/lib/libstdc++.so.6(_ZNSsD1Ev+0x51)[0xb7ba9571]&#60;br /&#62;
hdl/alu_test.ivl.so(_Z18teal_scan_plusargsRKSs+0x20f)[0xb7c6e4d1]&#60;br /&#62;
hdl/alu_test.ivl.so(_ZN4teal10dictionary4findERKSs+0x25)[0xb7c6e5a3]&#60;br /&#62;
hdl/alu_test.ivl.so(_ZN4teal10dictionary4findIjEET_RKSsS2_+0x2e)[0xb7c65d08]&#60;br /&#62;
hdl/alu_test.ivl.so(_ZN4teal4voutC1ERKSs+0x53)[0xb7c60887]&#60;br /&#62;
hdl/alu_test.ivl.so[0xb7c6c210]&#60;br /&#62;
hdl/alu_test.ivl.so[0xb7c6c2a0]&#60;br /&#62;
hdl/alu_test.ivl.so[0xb7c821e5]&#60;br /&#62;
hdl/alu_test.ivl.so[0xb7c382e4]&#60;br /&#62;
/lib/ld-linux.so.2[0xb7ef99d0]&#60;br /&#62;
/lib/ld-linux.so.2[0xb7ef9b03]&#60;br /&#62;
/lib/ld-linux.so.2[0xb7efd7b4]&#60;br /&#62;
/lib/ld-linux.so.2[0xb7ef9606]&#60;br /&#62;
/lib/ld-linux.so.2[0xb7efcf8e]&#60;br /&#62;
/lib/tls/i686/cmov/libdl.so.2[0xb7ed1c19]&#60;br /&#62;
/lib/ld-linux.so.2[0xb7ef9606]&#60;br /&#62;
/lib/tls/i686/cmov/libdl.so.2[0xb7ed22bc]&#60;br /&#62;
/lib/tls/i686/cmov/libdl.so.2(dlopen+0x41)[0xb7ed1b51]&#60;br /&#62;
vvp(_Z16vpip_load_modulePKc+0xb7)[0x80793d7]&#60;br /&#62;
vvp(main+0x490)[0x8057dd0]&#60;br /&#62;
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe0)[0xb7cad450]&#60;br /&#62;
vvp(__gxx_personality_v0+0x41d)[0x8057781]&#60;br /&#62;
======= Memory map: ========&#60;br /&#62;
08048000-08099000 r-xp 00000000 08:01 1196961    /usr/local/bin/vvp&#60;br /&#62;
08099000-0809a000 rw-p 00051000 08:01 1196961    /usr/local/bin/vvp&#60;br /&#62;
0809a000-080f1000 rw-p 0809a000 00:00 0          [heap]&#60;br /&#62;
b7900000-b7921000 rw-p b7900000 00:00 0&#60;br /&#62;
b7921000-b7a00000 ---p b7921000 00:00 0&#60;br /&#62;
b7afc000-b7b10000 r-xp 00000000 08:01 184662     /lib/tls/i686/cmov/libpthread-2.7.so&#60;br /&#62;
b7b10000-b7b12000 rw-p 00013000 08:01 184662     /lib/tls/i686/cmov/libpthread-2.7.so&#60;br /&#62;
b7b12000-b7b14000 rw-p b7b12000 00:00 0&#60;br /&#62;
b7b14000-b7bfc000 r-xp 00000000 08:01 752761     /usr/lib/libstdc++.so.6.0.9&#60;br /&#62;
b7bfc000-b7bff000 r--p 000e8000 08:01 752761     /usr/lib/libstdc++.so.6.0.9&#60;br /&#62;
b7bff000-b7c01000 rw-p 000eb000 08:01 752761     /usr/lib/libstdc++.so.6.0.9&#60;br /&#62;
b7c01000-b7c07000 rw-p b7c01000 00:00 0&#60;br /&#62;
b7c07000-b7c93000 r-xp 00000000 08:01 408811     /home/stevend/work/teal_truss/examples/alu/results/hdl/alu_test.ivl.so&#60;br /&#62;
b7c93000-b7c96000 rw-p 0008c000 08:01 408811     /home/stevend/work/teal_truss/examples/alu/results/hdl/alu_test.ivl.so&#60;br /&#62;
b7c96000-b7c97000 rw-p b7c96000 00:00 0&#60;br /&#62;
b7c97000-b7de0000 r-xp 00000000 08:01 184624     /lib/tls/i686/cmov/libc-2.7.so&#60;br /&#62;
b7de0000-b7de1000 r--p 00149000 08:01 184624     /lib/tls/i686/cmov/libc-2.7.so&#60;br /&#62;
b7de1000-b7de3000 rw-p 0014a000 08:01 184624     /lib/tls/i686/cmov/libc-2.7.so&#60;br /&#62;
b7de3000-b7de6000 rw-p b7de3000 00:00 0&#60;br /&#62;
b7de6000-b7df0000 r-xp 00000000 08:01 184186     /lib/libgcc_s.so.1&#60;br /&#62;
b7df0000-b7df1000 rw-p 0000a000 08:01 184186     /lib/libgcc_s.so.1&#60;br /&#62;
b7df1000-b7e14000 r-xp 00000000 08:01 184636     /lib/tls/i686/cmov/libm-2.7.so&#60;br /&#62;
b7e14000-b7e16000 rw-p 00023000 08:01 184636     /lib/tls/i686/cmov/libm-2.7.so&#60;br /&#62;
b7e16000-b7e17000 rw-p b7e16000 00:00 0&#60;br /&#62;
b7e17000-b7ec7000 r-xp 00000000 08:01 752569     /usr/lib/libstdc++.so.5.0.7&#60;br /&#62;
b7ec7000-b7ecc000 rw-p 000af000 08:01 752569     /usr/lib/libstdc++.so.5.0.7&#60;br /&#62;
b7ecc000-b7ed1000 rw-p b7ecc000 00:00 0&#60;br /&#62;
b7ed1000-b7ed3000 r-xp 00000000 08:01 184631     /lib/tls/i686/cmov/libdl-2.7.so&#60;br /&#62;
b7ed3000-b7ed5000 rw-p 00001000 08:01 184631     /lib/tls/i686/cmov/libdl-2.7.so&#60;br /&#62;
b7ee9000-b7eeb000 rw-p b7ee9000 00:00 0&#60;br /&#62;
b7eeb000-b7eec000 r-xp b7eeb000 00:00 0          [vdso]&#60;br /&#62;
b7eec000-b7f06000 r-xp 00000000 08:01 184320     /lib/ld-2.7.so&#60;br /&#62;
b7f06000-b7f08000 rw-p 00019000 08:01 184320     /lib/ld-2.7.so&#60;br /&#62;
bf889000-bf89e000 rw-p bffeb000 00:00 0          [stack]&#60;br /&#62;
Aborted&#60;br /&#62;
System call failed at ../truss/bin/truss line 461&#60;br /&#62;
	main::truss_system('cd /home/stevend/work/teal_truss/examples/alu/results; vvp -m...') called at ../truss/bin/truss line 384&#60;/p&#62;
&#60;p&#62;Other Information:&#60;/p&#62;
&#60;p&#62;gcc -v&#60;br /&#62;
Using built-in specs.&#60;br /&#62;
Target: i486-linux-gnu&#60;br /&#62;
Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.2 --program-suffix=-4.2 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-targets=all --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu&#60;br /&#62;
Thread model: posix&#60;br /&#62;
gcc version 4.2.4 (Ubuntu 4.2.4-1ubuntu4)&#60;br /&#62;
VM:~/work/teal_truss/examples&#38;gt; iverilog -V&#60;br /&#62;
Icarus Verilog version 0.8 ($Name: s20050617 $)&#60;/p&#62;
&#60;p&#62;I assume it's not directly a problem with Teal/Truss, but more to do with my environment (I have also tried with gcc-3.3 with the same results)&#60;/p&#62;
&#60;p&#62;Any ideas?&#60;/p&#62;
&#60;p&#62;Thanks,&#60;/p&#62;
&#60;p&#62;Steven
&#60;/p&#62;</description>
</item>
<item>
<title>digimike10 on "Building shared libary"</title>
<link>http://forums.trusster.com/topic/building-shared-libary#post-15</link>
<pubDate>Tue, 26 Jan 2010 01:02:02 +0000</pubDate>
<dc:creator>digimike10</dc:creator>
<guid isPermaLink="false">15@http://forums.trusster.com/</guid>
<description>&#60;p&#62;Error messages when using truss &#34;./truss --simulator NCSIM --test alu_test&#34;:&#60;/p&#62;
&#60;p&#62;gcc:/home/michael/truss/src/truss_verification_top.o: No such file or directory&#60;br /&#62;
gcc:/home/michael/truss/src/truss_watchdog.o: No such file or directory&#60;br /&#62;
gcc:/home/michael/russ/examples/block_uart/verification/tests/alu_test.o: No such file or directory&#60;br /&#62;
...&#60;/p&#62;
&#60;p&#62;Could you please advice?&#60;/p&#62;
&#60;p&#62;-M
&#60;/p&#62;</description>
</item>

</channel>
</rss>

