From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 585 invoked by alias); 9 Apr 2010 20:33:31 -0000 Received: (qmail 567 invoked by uid 22791); 9 Apr 2010 20:33:30 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from lo.gmane.org (HELO lo.gmane.org) (80.91.229.12) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 09 Apr 2010 20:33:24 +0000 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1O0KtE-00071K-13 for insight@sources.redhat.com; Fri, 09 Apr 2010 22:33:20 +0200 Received: from 24-158-184-117.dhcp.jcsn.tn.charter.com ([24.158.184.117]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 09 Apr 2010 22:33:20 +0200 Received: from gds by 24-158-184-117.dhcp.jcsn.tn.charter.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 09 Apr 2010 22:33:20 +0200 To: insight@sources.redhat.com From: Gene Smith Subject: Re: Using system tcl/tk version 8.5 Date: Fri, 09 Apr 2010 20:33:00 -0000 Message-ID: References: <4BA3233C.9090604@redhat.com> <4BB2DF85.10208@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) In-Reply-To: X-IsSubscribed: yes Mailing-List: contact insight-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sourceware.org X-SW-Source: 2010-q2/txt/msg00007.txt.bz2 Gene Smith wrote: > Gene Smith wrote, On 04/06/2010 11:11 PM: >> >> If I try a native 64bit build with system tcl/tk like this, >> >> ../insight_sources/configure -v --quiet --prefix=$PREFIX \ >> --with-tcl=/usr/lib64 --with-tk=/usr/lib64 --with-itcl=/usr/lib64 \ >> --with-itk=/usr/lib64 >> >> I see this error: >> >> Configuring in ./itcl >> config.status: WARNING: ../../../insight_sources/itcl/itcl/Makefile.in >> seems to ignore the --datarootdir setting >> config.status: WARNING: ../../../insight_sources/itcl/itk/Makefile.in >> seems to ignore the --datarootdir setting >> configure: error: Can't find Itcl source. Use --with-itcl to specify the >> the toplevel incr Tcl directory on your system. (This directory should >> contain itcl/library/itcl.tcl, itk/library/itk.tcl, and >> config/mkinstalldirs.) >> configure: error: ../../../insight_sources/itcl/iwidgets/configure >> failed for iwidgets >> make[1]: *** [configure-itcl] Error 1 >> make[1]: Leaving directory `/home/gene/addons/insight-cvs/insight_build' >> make: *** [all] Error 2 >> > > This error seems to be due to the fact that I left insight's tcl and tk > dirs in the tree. When I rename or delete them the build works and > installs. Don't know that it actually debugs correctly but it runs. Was > able to build for 64 or 32bit host. > > The --with-itcl=... is not needed but doesn't hurt. > > To build for 32 bit host I do this: > ../insight_sources/configure -v --quiet --prefix=$PREFIX \ > --target=$TARGET --enable-interwork --enable-multilib \ > --with-gnu-ld --with-gnu-as --with-tcl=/usr/lib \ > --with-tk=/usr/lib \ > --disable-werror --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu \ > CFLAGS="-m32" LDFLAGS="-m32" > > Also, today built CVS head on a 32-bit f8 system w/ insight's own > tk/tcl. It ran but the source gui window would not debug. I was able to > see code, load code to flash etc but no stepping or GREEN highlight line > was ever visible. Was able to step and set BPs using console/gdb window > however. Gdb does not inform the GUI source window as to what is going > on, it seems. This is configured as target arm-none-eabi so I guess that > has something to do with it since a default/native x86_64 or i686 target > works OK with cvs head. > > Tried again on 32-bit f8 using system tcl/tk (had to install tcl, tcl-dev, tk, tk-dev, itcl, itcl-dev, itk, itk-dev and iwidgets packages from old f8 repo). Even configured with --with-itcl=/usr/lib it complained that it needed env vars ITCL_LIBRARY and ITK_LIBRARY pointing to the respective libraries. Expected to find itcll3.3/ and itk3.3/ in /usr/share/ so made symlink to them rather than define them (yum put them in /usr/lib like everything else tcl/tk related). Once this was resolved still would not step properly in arm code. Changed loading my elf file with "symbol-file" to "file" command in gdbinit fixed it. So now running "7.1.50.20100407-cvs" OK. This would probably also fix case above using insight's own tcl/tk (haven't tried it).