NetBSD Problem Report #49749
From www@NetBSD.org Sun Mar 15 23:04:48 2015
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id BB12BA6567
for <gnats-bugs@gnats.NetBSD.org>; Sun, 15 Mar 2015 23:04:48 +0000 (UTC)
Message-Id: <20150315230447.82BD1A65BC@mollari.NetBSD.org>
Date: Sun, 15 Mar 2015 23:04:47 +0000 (UTC)
From: en.bsd@spflrc.org
Reply-To: en.bsd@spflrc.org
To: gnats-bugs@NetBSD.org
Subject: ICE: Segmentation fault: 11 (atf-c++/detail/application.cpp)
X-Send-Pr-Version: www-1.0
>Number: 49749
>Category: toolchain
>Synopsis: ICE: Segmentation fault: 11 (atf-c++/detail/application.cpp)
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: toolchain-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Mar 15 23:05:00 +0000 2015
>Last-Modified: Mon Mar 16 02:10:00 +0000 2015
>Originator: Erik Neuenschwander
>Release: netbsd-6-1
>Organization:
>Environment:
Darwin hostname 13.4.0 Darwin Kernel Version 13.4.0: Wed Dec 17 19:05:52 PST 2014; root:xnu-2422.115.10~1/RELEASE_X86_64 x86_64
>Description:
After checking out the 6-1 tag, I was cross-compiling for evbarm with the following overall command.
./build.sh -O ../obj -T ../tools -U -m evbarm distribution
Eventually the build dies inside src/external/bsd/atf/dist/atf-c++/detail. This always reproduces.
>How-To-Repeat:
$ ../tools/bin/arm--netbsdelf-c++ -frandom-seed=bac8c344 -O2 -Wall -Wpointer-arith -Wno-sign-compare -Wa,--fatal-warnings -Wreturn-type -Wswitch -Wshadow -Werror --sysroot=~/src/netbsd615/src/../obj/destdir.evbarm -I~/src/netbsd615/src/external/bsd/atf/lib/libatf-c++/../libatf-c -I. -DHAVE_CONFIG_H -c ~/src/netbsd615/src/external/bsd/atf/dist/atf-c++/detail/application.cpp -o application.o
In file included from ~/src/netbsd615/src/../obj/destdir.evbarm/usr/include/sys/types.h:51:0,
from ~/src/netbsd615/src/../obj/destdir.evbarm/usr/include/unistd.h:70,
from ~/src/netbsd615/src/external/bsd/atf/dist/atf-c++/detail/application.cpp:35:
~/src/netbsd615/src/../obj/destdir.evbarm/usr/include/sys/ansi.h:63:1: internal compiler error: Segmentation fault: 11
>Fix:
>Audit-Trail:
From: Joerg Sonnenberger <joerg@britannica.bec.de>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: toolchain/49749: ICE: Segmentation fault: 11
(atf-c++/detail/application.cpp)
Date: Mon, 16 Mar 2015 03:06:59 +0100
On Sun, Mar 15, 2015 at 11:05:00PM +0000, en.bsd@spflrc.org wrote:
> ./build.sh -O ../obj -T ../tools -U -m evbarm distribution
>
> Eventually the build dies inside src/external/bsd/atf/dist/atf-c++/detail. This always reproduces.
> >How-To-Repeat:
> $ ../tools/bin/arm--netbsdelf-c++ -frandom-seed=bac8c344 -O2 -Wall -Wpointer-arith -Wno-sign-compare -Wa,--fatal-warnings -Wreturn-type -Wswitch -Wshadow -Werror --sysroot=~/src/netbsd615/src/../obj/destdir.evbarm -I~/src/netbsd615/src/external/bsd/atf/lib/libatf-c++/../libatf-c -I. -DHAVE_CONFIG_H -c ~/src/netbsd615/src/external/bsd/atf/dist/atf-c++/detail/application.cpp -o application.o
> In file included from ~/src/netbsd615/src/../obj/destdir.evbarm/usr/include/sys/types.h:51:0,
> from ~/src/netbsd615/src/../obj/destdir.evbarm/usr/include/unistd.h:70,
> from ~/src/netbsd615/src/external/bsd/atf/dist/atf-c++/detail/application.cpp:35:
> ~~/src/netbsd615/src/../obj/destdir.evbarm/usr/include/sys/ansi.h:63:1: internal compiler error: Segmentation fault: 11
I assume you are using clang as the host compiler? I wonder if it is the
same issue with tree.c that is hacked around with -O0 in-tree.
Joerg
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.