From owner-freebsd-current@FreeBSD.ORG Mon May 28 18:20:30 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9F92416A46C for ; Mon, 28 May 2007 18:20:30 +0000 (UTC) (envelope-from keramida@freebsd.org) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id 1FACE13C455 for ; Mon, 28 May 2007 18:20:29 +0000 (UTC) (envelope-from keramida@freebsd.org) Received: from kobe.laptop (host5.bedc.ondsl.gr [62.103.39.229]) (authenticated bits=128) by igloo.linux.gr (8.13.8/8.13.8/Debian-3) with ESMTP id l4SIJFSp025356 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Mon, 28 May 2007 21:19:21 +0300 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.1/8.14.1) with ESMTP id l4SIIv6I081934 for ; Mon, 28 May 2007 21:19:09 +0300 (EEST) (envelope-from keramida@freebsd.org) Received: (from keramida@localhost) by kobe.laptop (8.14.1/8.14.1/Submit) id l4SIIvkM081933 for freebsd-current@freebsd.org; Mon, 28 May 2007 21:18:57 +0300 (EEST) (envelope-from keramida@freebsd.org) Date: Mon, 28 May 2007 21:18:57 +0300 From: Giorgos Keramidas To: freebsd-current@freebsd.org Message-ID: <20070528181856.GA81757@kobe.laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-4.16, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.24, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@freebsd.org X-Spam-Status: No Subject: ldd broken for profiling binaries? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 May 2007 18:20:30 -0000 ldd seems to be broken for profiling binaries, and the profiling binaries built with gcc42 seem to be unusable here: ,----------------------------------------------------------------------- | $ cat -n foo.c | 1 #include | 2 | 3 int | 4 main(void) | 5 { | 6 int k; | 7 | 8 for (k = 0; k < 10000; k++) | 9 printf("Hello world\n"); | 10 return 0; | 11 } | $ DEBUG_FLAGS='-pg' ; CFLAGS='' ; export DEBUG_FLAGS CFLAGS | $ make cleandir | rm -f foo foo.o | rm -f .depend GPATH GRTAGS GSYMS GTAGS | $ make cleandir | rm -f foo foo.o | rm -f .depend GPATH GRTAGS GSYMS GTAGS | $ make | Warning: Object directory not changed from original /tmp/foo | cc -pg -c foo.c | cc -pg -o foo foo.o | $ ./foo | /libexec/ld-elf.so.1: ./foo: Unexpected inconsistency: dependency libgcc_s.so.1 not found | $ ldd foo | foo: | /libexec/ld-elf.so.1: foo: Unexpected inconsistency: dependency libgcc_s.so.1 not found | foo: exit status 1 | $ `----------------------------------------------------------------------- Is anyone else seeing this, or have I managed to botch my local installation of gcc42?