From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12445 invoked by alias); 23 Mar 2010 02:47:41 -0000 Received: (qmail 12437 invoked by uid 22791); 23 Mar 2010 02:47:40 -0000 X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS 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; Tue, 23 Mar 2010 02:47:36 +0000 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Ntu9T-0000Zh-SY for insight@sources.redhat.com; Tue, 23 Mar 2010 03:47:31 +0100 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 ; Tue, 23 Mar 2010 03:47:31 +0100 Received: from gds by 24-158-184-117.dhcp.jcsn.tn.charter.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 23 Mar 2010 03:47:31 +0100 To: insight@sources.redhat.com From: Gene Smith Subject: Build for mingw32 and i686 on x86_64 observations Date: Wed, 24 Mar 2010 20:21:00 -0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.8) Gecko/20100301 Fedora/3.0.3-1.fc12 Thunderbird/3.0.3 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-q1/txt/msg00045.txt.bz2 First off, I want to point out that I can build the very recent cvs head for an embedded arm application but it doesn't run correctly in that the insight gui does not reflect the actual location of the PC while debugging/stepping (the green highlighted line never moves). This is regarless of whether the tk/tcl is system supplied or insight's own. Insight 6.8 does not have this problem. So I tried to build 6.8.1 to see how it does. With 6.8 there were kludges I had to do to get it to build and now those don't seem to be required when built on x86_64 (and probably i686). I also did a cross build on x86_64 for i686/32-bit and it worked with some effort: additional configure options: --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu \ CFLAGS="-m32" LDFLAGS="-m32" and in files tcl(and tk)/unix/configure had to add $CFLAGS like this: CC="$CC -pipe $CFLAGS" to fix a build error. But when build with i686-pc-mingw32-gcc toolchain (fedora 12 yum), the same (windows specific) kludges as before were required (syntax errors in window specific tck/tk code regarding dde and registry that can be commented out). However, with mingw32 I had to build/install then build/install again to get insight.exe to appear at install/bin. It seems that in the install directory under lib there needs to exist *at compile time* tkConfig.sh and tclConfig.sh. So you have to make clean all, make install, then make clean all, make install again when you are starting with an empty install directory. So if you keep install/lib/tclConfig.sh and tkConfig.sh between compiles (don't completely clean the install dir) you are ok the next time. -gene