Thank you!!
I can now get far enough to see the TCL GUI run. YEAH!!
This is a summary of what I had to do:
+ move gui.tcl.in to gui.tcl (does it have to be a .in? what is
substituted?)
+ copy check.tcl.in to check.tcl and fix the substitutions by hand.
+ copy anacomp/Makefile.am to anacomp/Makefile and fix it by hand.
I can submit a PR and patch if you want me to.
Now to figure out how to actually use the simulator. I will
try to submit documentation improvements as I learn. I know
from experience that it is hard to document something you know
inside and out.
I filed a few PRs with patches so far.
Thanks again.
--joel
Klaus Rudolph wrote:
[j...@iceland anacomp]$ tclsh check.tcl
couldn't load file "../../src/simulavr.so": ../../src/simulavr.so:
undefined symbol: inflateInit_
while executing
"load ../../src/simulavr.so"
(file "check.tcl" line 8)
This seems to be a bug of binutils 2.19 version. I found a hint in:
http://sourceware.org/ml/binutils/2008-07/msg00129.html
The thing seems to be that libbfd needs zlib but is not linked in from
binutils which is a bug in binutils!!!
As this is a bug in binutils I will not apply changes to simulavr. But
this is a "temporary" patch for the Makefile:
--------------
--- Makefile 2009-02-23 10:54:26.000000000 +0100
+++ ../../avrsim204la/src/Makefile 2008-09-08 08:59:03.000000000 +0200
@@ -24,7 +24,7 @@
simulavr: $(OBJECTS)
- $(CXX) $(CFLAGS) $(OBJECTS) $(BFD)/bfd/libbfd.a
$(BFD)/libiberty/libiberty.a /usr/lib/libz.a -lncurses -lc -lm -o simulavr
+ $(CXX) $(CFLAGS) $(OBJECTS) $(BFD)/bfd/libbfd.a
$(BFD)/libiberty/libiberty.a -lncurses -lc -lm -o simulavr
# pull in dependency info for *existing* .o files
-include $(OBJECTS:.o=.d)
@@ -89,7 +89,7 @@
$(CXX) $(CXXFLAGS) simulavr_wrap.cxx -c
simulavr.so: $(TCL_OBJECTS)
- $(CXX) $(CXXFLAGS) $(TCL_OBJECTS) /usr/lib/libz.a
-ltcl$(TCL_VERSION) $(BFD)/bfd/libbfd.a $(BFD)/libiberty/libiberty.a -lc
-lm -lncurses -shared -o simulavr.so
+ $(CXX) $(CXXFLAGS) $(TCL_OBJECTS) -ltcl$(TCL_VERSION)
$(BFD)/bfd/libbfd.a $(BFD)/libiberty/libiberty.a -lc -lm -lncurses
-shared -o simulavr.so
BFDOBJECTS= /home/zfrdh/binutils_tmp/binary.o \
/home/zfrdh/binutils_tmp/splay-tree.o \
----------------
Bye
Klaus
--
Joel Sherrill, Ph.D. Director of Research & Development
[email protected] On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
_______________________________________________
Simulavr-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/simulavr-devel