NetBSD Problem Report #48603

From hf@spg.tu-darmstadt.de  Wed Feb 19 14:25:30 2014
Return-Path: <hf@spg.tu-darmstadt.de>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 0F013A6487
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 19 Feb 2014 14:25:30 +0000 (UTC)
Message-Id: <201402191425.s1JEPMn6029431@Gstoder.nt.e-technik.tu-darmstadt.de>
Date: Wed, 19 Feb 2014 15:25:22 +0100 (CET)
From: Hauke Fath <hf@spg.tu-darmstadt.de>
Reply-To: Hauke Fath <hf@spg.tu-darmstadt.de>
To: gnats-bugs@gnats.NetBSD.org
Cc: Hauke Fath <hf@spg.tu-darmstadt.de>
Subject: gcc internal error while building emulators/qemu0
X-Send-Pr-Version: 3.95

>Number:         48603
>Category:       toolchain
>Synopsis:       gcc internal error while building emulators/qemu0
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 19 14:30:00 +0000 2014
>Last-Modified:  Tue Dec 25 15:05:01 +0000 2018
>Originator:     Hauke Fath
>Release:        NetBSD 6.1_STABLE
>Organization:
Technische Universitaet Darmstadt
>Environment:


System: NetBSD Gstoder 6.1_STABLE NetBSD 6.1_STABLE (MONOLITHIC) #0: Wed Dec 4 13:35:56 CET 2013 hf@Hochstuhl:/var/obj/netbsd-builds/6/i386/sys/arch/i386/compile/MONOLITHIC i386
Architecture: i386
Machine: i386
>Description:

	While building emulators/qemu0 on the above i386 system, gcc
	errors out with

[...]
  CC    i386-softmmu/fpu/softfloat.o
  CC    i386-softmmu/op_helper.o
/var/obj/pkgsrc/emulators/qemu0/work/qemu-0.15.1/target-i386/op_helper.c: In function 'helper_flds_FT0':
/var/obj/pkgsrc/emulators/qemu0/work/qemu-0.15.1/target-i386/op_helper.c:3531:1: internal compiler error: in dwarf2out_frame_debug_expr, at dwarf2out.c:2261
Please submit a full bug report,
with preprocessed source if appropriate.
See  for instructions.
/var/obj/pkgsrc/emulators/qemu0/work/qemu-0.15.1/rules.mak:18: recipe for target 'op_helper.o' failed
make[1]: *** [op_helper.o] Error 1
Makefile:84: recipe for target 'subdir-i386-softmmu' failed
gmake: *** [subdir-i386-softmmu] Error 2
*** Error code 2

Stop.
make: stopped in /amd/hochstuhl/public/pkgsrc/emulators/qemu0
*** Error code 1
% gcc --version
gcc (NetBSD nb2 20110806) 4.5.3
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

The function in question is

void helper_flds_FT0(uint32_t val)
{
    union {
        float32 f;
        uint32_t i;
    } u;
    u.i = val;
    FT0 = float32_to_floatx80(u.f, &env->fp_status);
}

and the line# listed is the closing brace.

>How-To-Repeat:

	Build qemu0 on i386 netbsd-6 machine.

	I tried -Os, O, O0 with a hacks.mk file, but it didn't make a
	difference.

>Fix:
	None here.

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->toolchain-manager
Responsible-Changed-By: maya@NetBSD.org
Responsible-Changed-When: Mon, 12 Dec 2016 09:33:25 +0000
Responsible-Changed-Why:
More appropriate category (I assume?) - package was removed but I don't see it succeeded before removal


From: coypu@sdf.org
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: toolchain/48603: gcc internal error while building
 emulators/qemu0
Date: Tue, 25 Dec 2018 15:02:27 +0000

 Currently, (if you pick up qemu0), it will say:

 /usr/pkgsrc/emulators/qemu0/work/qemu-0.15.1/target-i386/op_helper.c: In function 'helper_flds_FT0':
 /usr/pkgsrc/emulators/qemu0/work/qemu-0.15.1/target-i386/op_helper.c:3523:6: error: frame pointer required, but reserved
  void helper_flds_FT0(uint32_t val)
       ^
 In file included from /usr/pkgsrc/emulators/qemu0/work/qemu-0.15.1/target-i386/op_helper.c:21:0:
 /usr/pkgsrc/emulators/qemu0/work/qemu-0.15.1/target-i386/exec.h:31:30: note: for 'env'
  register struct CPUX86State *env asm(AREG0);
                               ^
 /usr/pkgsrc/emulators/qemu0/work/qemu-0.15.1/target-i386/op_helper.c:3531: confused by earlier errors, bailing out
 make[1]: *** [/usr/pkgsrc/emulators/qemu0/work/qemu-0.15.1/rules.mak:18: op_helper.o] Error 1
 gmake: *** [Makefile:84: subdir-i386-softmmu] Error 2


 Note that the 'confused by earlier errors' is at the same line
 as your internal compiler error.

 As for why this errors, there appears to be
 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62144

 Latest GCC trunk still gives this error.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.