[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Simulavr-devel] binutils2.19 bug [was:Getting Started with simulavr

From: Joel Sherrill
Subject: Re: [Simulavr-devel] binutils2.19 bug [was:Getting Started with simulavrxx]
Date: Mon, 23 Feb 2009 10:49:40 -0600
User-agent: Thunderbird (X11/20090105)

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 to gui.tcl (does it have to be a .in? what is
+ copy to check.tcl and fix the substitutions by hand.
+ copy anacomp/ 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.


Klaus Rudolph wrote:
address@hidden anacomp]$ tclsh check.tcl
couldn't load file "../../src/": ../../src/
undefined symbol: inflateInit_
   while executing
"load ../../src/"
   (file "check.tcl" line 8)

This seems to be a bug of binutils 2.19 version. I found a hint in:

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 $(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
$(BFD)/bfd/libbfd.a $(BFD)/libiberty/libiberty.a -lc -lm -lncurses
-shared -o

 BFDOBJECTS= /home/zfrdh/binutils_tmp/binary.o \
        /home/zfrdh/binutils_tmp/splay-tree.o \



Joel Sherrill, Ph.D.             Director of Research & Development
address@hidden        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
  Support Available             (256) 722-9985

reply via email to

[Prev in Thread] Current Thread [Next in Thread]