From owner-freebsd-current Sun Sep 22 18:29:32 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4252137B401 for ; Sun, 22 Sep 2002 18:29:30 -0700 (PDT) Received: from dibbler.ne.client2.attbi.com (dibbler.ne.client2.attbi.com [24.61.41.247]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5750A43E75 for ; Sun, 22 Sep 2002 18:29:29 -0700 (PDT) (envelope-from rodrigc@attbi.com) Received: from dibbler.ne.client2.attbi.com (localhost.ne.attbi.com [127.0.0.1]) by dibbler.ne.client2.attbi.com (8.12.6/8.12.5) with ESMTP id g8N1TkjB001856; Sun, 22 Sep 2002 21:29:46 -0400 (EDT) (envelope-from rodrigc@dibbler.ne.client2.attbi.com) Received: (from rodrigc@localhost) by dibbler.ne.client2.attbi.com (8.12.6/8.12.6/Submit) id g8N1TjVq001855; Sun, 22 Sep 2002 21:29:45 -0400 (EDT) Date: Sun, 22 Sep 2002 21:29:45 -0400 From: Craig Rodrigues To: Alexander Leidinger Cc: current@FreeBSD.ORG Subject: Re: buildworld fails in gnu/usr.bin/gperf/doc with an internal error Message-ID: <20020922212945.A1817@attbi.com> References: <20020922172014.26056daa.Alexander@Leidinger.net> <20020922112708.5f35315f.kabaev@bellatlantic.net> <20020922181052.4db1cf0f.Alexander@Leidinger.net> <20020922134726.717fe34a.kabaev@bellatlantic.net> <20020922201038.32584c8b.Alexander@Leidinger.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020922201038.32584c8b.Alexander@Leidinger.net>; from Alexander@Leidinger.net on Sun, Sep 22, 2002 at 08:10:38PM +0200 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Sep 22, 2002 at 08:10:38PM +0200, Alexander Leidinger wrote: > What about a "ktrace -i": http://www.leidinger.net/ktrace.out.bz2 > (~50k), please tell me when you got it, I want to remove it then. What you want to do is, figure out exactly which program is crashing. Add -v to your gcc flags, eg. gcc -v -march=pentium-pro -c a.c This will show you which programs are being invoked by gcc, which do the actual compiling. For example, =============================================================================== Using built-in specs. Configured with: FreeBSD/i386 system compiler Thread model: posix gcc version 3.2.1 [FreeBSD] 20020901 (prerelease) /usr/libexec/cc1 -lang-c -v -D__GNUC__=3 -D__GNUC_MINOR__=2 -D__GNUC_PATCHLEVEL __=1 -D__GXX_ABI_VERSION=102 -D__FreeBSD__=5 -D__FreeBSD_cc_version=500003 -Duni x -D__KPRINTF_ATTRIBUTE__ -D__FreeBSD__=5 -D__FreeBSD_cc_version=500003 -D__unix __ -D__KPRINTF_ATTRIBUTE__ -D__unix -Asystem=unix -Asystem=bsd -Asystem=FreeBSD -D__NO_INLINE__ -D__STDC_HOSTED__=1 -Acpu=i386 -Amachine=i386 -Di386 -D__i386 -D __i386__ -D__ELF__ a.c -quiet -dumpbase a.c -march=pentium-pro -version -o /var/ tmp//ccqHiDhs.s GNU CPP version 3.2.1 [FreeBSD] 20020901 (prerelease) (cpplib) (i386 FreeBSD/ELF) =============================================================================== The next thing you want to do is, invoke /usr/libexec/cc1 (or whatever the program is on your system), manually from the command-line, with all the same command-line flags, and verify that the crash still occurs. The next thing you want to do is to invoke the same program under gdb: gdb /usr/libexec/cc1 ============================================================================== GNU gdb 5.2.0 (FreeBSD) 20020627 Copyright 2002 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-undermydesk-freebsd"... (no debugging symbols found)... (gdb) run [put all the command-line flags to cc1] ============================================================================== From there, you should be able to see what the backtrace is to where things are crashing. Another helpful thing to do is to follow the instructions at: http://gcc.gnu.org/bugs.html, and use the -save-temps flag to save the preprocessed source code of what is causing gcc to crash. -- Craig Rodrigues http://www.gis.net/~craigr rodrigc@attbi.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message