From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10414 invoked by alias); 10 Feb 2013 22:56:50 -0000 Received: (qmail 10391 invoked by uid 22791); 10 Feb 2013 22:56:45 -0000 X-SWARE-Spam-Status: No, hits=-5.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-ie0-f173.google.com (HELO mail-ie0-f173.google.com) (209.85.223.173) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 10 Feb 2013 22:56:39 +0000 Received: by mail-ie0-f173.google.com with SMTP id 9so7057241iec.4 for ; Sun, 10 Feb 2013 14:56:38 -0800 (PST) X-Received: by 10.50.156.161 with SMTP id wf1mr3159916igb.71.1360536998854; Sun, 10 Feb 2013 14:56:38 -0800 (PST) Received: from [192.168.1.20] (c-98-223-220-14.hsd1.in.comcast.net. [98.223.220.14]) by mx.google.com with ESMTPS id vb15sm21251214igb.9.2013.02.10.14.56.36 (version=SSLv3 cipher=RC4-SHA bits=128/128); Sun, 10 Feb 2013 14:56:37 -0800 (PST) Message-ID: <1360536998.7013.20.camel@ubuwide> Subject: Re: update to insight? From: Brian Phillips To: Keith Seitz Cc: insight@sourceware.org Date: Sun, 10 Feb 2013 22:56:00 -0000 In-Reply-To: <5117D143.6040807@redhat.com> References: <1360463415.2414.8.camel@golden> <5117D143.6040807@redhat.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 8bit 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: 2013-q1/txt/msg00018.txt.bz2 On Sun, 2013-02-10 at 08:56 -0800, Keith Seitz wrote: > On 02/09/2013 06:30 PM, Brian Phillips wrote: > > > Are there any plans to continue updating 'insight'? > > Insight is largely in maintenance mode. I still use it daily, and I will > continue to do whatever I need to do to keep it working. > > > It would be great to have a source that will compile with gcc >= 4.7.x. > > As a new linux user, I don't know how to install / use gcc 4.2 alongside > > 4.7 on my system - and if I understand correctly, from comments found > > online, 4.2 is required for compiling? (I tried --disable-werror in > > the ../src/configure command, but that didn't work). > > I build on Fedora 15, 17, Ubuntu 12.10, and Windows/MinGW fairly > regularly. Fedora 17 comes with GCC 4.7.2, and I have no problems > building for x86_64. > > > I always get this error. > > linux-nat.h:63:18: error: field ‘siginfo’ has incomplete type > > make[2]: *** [i386-linux-nat.o] Error 1 > > > > If you would like more information from me, I'm happy to provide what I > > can - just tell me what to do! :) > > First things first. What is your configure triple? Can you configure and > build gdb without Insight? What version of insight are you trying to build? > > FWIW, I use CVS HEAD. I've never used a release, and I haven't made one > in years. Now that things are starting to settle down around me, I am > hoping to commit a few important patches for x86_64 and MinGW and make a > new release. 6.8 is (obviously) ancient. > > I've never tried Arch linux, but I'll try installing it into a VM... > > Keith Please bear with me - in the past, I've dabbled with C and assembly, but that was long ago, and I never really had to mess with configuring much (it was a hobby). But now, I want to put more effort into learning assembly (still as a hobby, though). I don't know what you mean by 'configure triple'. I'm using a PKGBUILD at https://aur.archlinux.org/packages/insight/ - you can view the PKGBUILD from the web page, if you like. If you look there, you might also look at the comments at the bottom of the page, as well as this thread, started by me in the forums: https://bbs.archlinux.org/viewtopic.php?id=157819 AFAICT, There seems to be a bug in gcc-4.7.2 with a "struct siginfo" that should be "struct siginfo_t", per this page: http://sourceware.org/ml/libc-alpha/2012-03/msg00414.html At any rate, other users get stuck with errors like this: "/home/briphi/builds/gcc46/src/gcc-4.6.3/libgcc/../gcc/config/i386/linux-unwind.h: In function ‘x86_fallback_frame_state’: /home/briphi/builds/gcc46/src/gcc-4.6.3/libgcc/../gcc/config/i386/linux-unwind.h:138:17: error: field ‘info’ has incomplete type make[3]: *** [unwind-dw2.o] Error 1" This applies to me in trying to build older versions of gcc (the snippet above applies to building gcc-4.6.3) and the same applies to configuring 'insight' With my limited knowledge and in using the PKGBUILD at aur.archlinux.org, I'm pretty much stuck to using the source provided in that script, which is 6.8.1a from sourceware.org. I've tried to monkey with the source line here, adjusting the first md5sum as needed, but didn't get any where, due to the linux-unwind.h error above. I have a dual-boot system with Ubuntu 12.10. Would you mind explaining what I should do to build from source on Ubuntu? So far, I've tried uncompressing the source, and compiling from an alternate directory using just "../src/configure", but that gave me the following errors: config.status: creating po/Makefile.in config.status: executing depfiles commands config.status: executing libtool commands config.status: executing default-1 commands config.status: executing bfd_stdint.h commands config.status: executing default commands make[3]: Leaving directory `/home/brian/builds/insight/bfd/po' make[3]: Entering directory `/home/brian/builds/insight/bfd/po' make[3]: Nothing to be done for `info'. make[3]: Leaving directory `/home/brian/builds/insight/bfd/po' make[3]: Entering directory `/home/brian/builds/insight/bfd' make[3]: Nothing to be done for `info-am'. make[3]: Leaving directory `/home/brian/builds/insight/bfd' make[2]: *** [info-recursive] Error 1 make[2]: Leaving directory `/home/brian/builds/insight/bfd' make[1]: *** [all-bfd] Error 2 make[1]: Leaving directory `/home/brian/builds/insight' make: *** [all] Error 2 Here is my gcc --version output from ubuntu: brian@ubuntumachine:~/builds/insight$ gcc --version gcc (Ubuntu/Linaro 4.7.2-2ubuntu1) 4.7.2 Many thanks for the reply and being willing to help! And regarding building gbd, will I be okay doing this in a /home/user directory? I don't want to screw up my Ubuntu (or Arch) install, so I'm a bit hesitant. Kind regards, Brian