From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23798 invoked by alias); 2 Jul 2007 21:08:12 -0000 Received: (qmail 23765 invoked by uid 48); 2 Jul 2007 21:08:00 -0000 Date: Mon, 02 Jul 2007 21:08:00 -0000 From: "kris dot van dot hees at oracle dot com" To: frysk-bugzilla@sourceware.org Message-ID: <20070702210800.4725.kris.van.hees@oracle.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug general/4725] New: Linking of funit-scopes.c fails with --coverage -O0 is specified X-Bugzilla-Reason: AssignedTo Mailing-List: contact frysk-bugzilla-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: frysk-bugzilla-owner@sourceware.org X-SW-Source: 2007-q3/txt/msg00007.txt.bz2 List-Id: When building frysk without --enable-coverage (compilation and link options include -g -O), funit-scopes.c compiles and links correctly. When building frysk with --enable-coverage (compilation and link options include -g --coverage --O0), funit-scopes.c compiles correctly, but fails to link with the following error: gcc -I/home/aedil/build_farm/frysk_gcov/frysk_config/frysk-core/../frysk-imports/include -I/home/aedil/build_farm/frysk_gcov/frysk_config/frysk-core -I. -fPIC -fasynchronous-unwind-tables -g --coverage -O0 -Wall -Werror -o frysk/pkglibdir/funit-scopes frysk/pkglibdir/funit-scopes.o frysk/pkglibdir/funit-scopes.o: In function `first': /home/aedil/build_farm/frysk_gcov/frysk_config/frysk-core/frysk/pkglibdir/funit-scopes.c:13: undefined reference to `second' collect2: ld returned 1 exit status make[2]: *** [frysk/pkglibdir/funit-scopes] Error 1 This is happening on FC6, both on i386 and x86_64. Gcc version is gcc version 4.1.1 20070105 (Red Hat 4.1.1-51). The only change between a previous successful build of frysk and the current failures (as far as this file is concerned) is the actual content of the source code file (same GCC versions etc). Investigating this problem a bit further, but it seems to be a bug in gcc. -- Summary: Linking of funit-scopes.c fails with --coverage -O0 is specified Product: frysk Version: unspecified Status: NEW Severity: normal Priority: P2 Component: general AssignedTo: frysk-bugzilla at sourceware dot org ReportedBy: kris dot van dot hees at oracle dot com http://sourceware.org/bugzilla/show_bug.cgi?id=4725 ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.