NetBSD Problem Report #53038

From  Mon Feb 19 16:55:11 2018
Return-Path: <>
Received: from ( [])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "", Issuer " CA" (not verified))
	by (Postfix) with ESMTPS id 7B11C7A182
	for <>; Mon, 19 Feb 2018 16:55:11 +0000 (UTC)
Message-Id: <>
Date: Mon, 19 Feb 2018 16:55:10 +0000 (UTC)
Subject: binutils internal error if CFLAGS=-ggdb3 is used.
X-Send-Pr-Version: www-1.0

>Number:         53038
>Category:       toolchain
>Synopsis:       binutils internal error if CFLAGS=-ggdb3 is used.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Feb 19 17:00:00 +0000 2018
>Originator:     coypu
>Release:        NetBSD 8.99.12
NetBSD planets 8.99.12 NetBSD 8.99.12 (GENERIC) #0: Thu Feb  8 00:38:03 IST 2018  fly@planets:/usr/src/sys/arch/amd64/compile/GENERIC amd64

Last messages:

#   compile  accf_dataready/accf_data.o
/home/fly/obj2/tooldir.NetBSD-8.99.12-amd64/bin/x86_64--netbsd-gcc -O2 -ggdb3 -g   -std=gnu99    -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare  -Wsystem-headers   -Wno-traditional   -Wa,--fatal-warnings  -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -Wno-sign-compare -Werror   -ffreestanding  -fno-strict-aliasing -Wno-pointer-sign -mno-red-zone -mno-mmx -mno-sse -mno-avx -msoft-float -mcmodel=kernel -fno-omit-frame-pointer  -I/usr/src/common/include --sysroot=/home/fly/obj2/destdir.amd64 -I/usr/src/common/include  -nostdinc -I. -I/usr/src/sys/modules/accf_dataready -isystem /usr/src/sys -isystem /usr/src/sys/arch -isystem /usr/src/sys/../common/include -D_KERNEL -D_LKM -D_MODULE -DSYSCTL_INCLUDE_DESCR -c    /usr/src/sys/netinet/accf_data.c
/home/fly/obj2/tooldir.NetBSD-8.99.12-amd64/bin/nbctfconvert -L VERSION accf_data.o
#      link  accf_dataready/accf_dataready.kmod
/home/fly/obj2/tooldir.NetBSD-8.99.12-amd64/bin/x86_64--netbsd-gcc  --sysroot=/home/fly/obj2/destdir.amd64 -Wl,-z,relro -Wl,--warn-shared-textrel -nostdlib -r -Wl,-T,/usr/src/sys/../sys/modules/xldscripts/kmodule,-d  -Wl,  -o accf_dataready.kmod accf_data.o
/home/fly/obj2/tooldir.NetBSD-8.99.12-amd64/lib/gcc/x86_64--netbsd/6.4.0/../../../../x86_64--netbsd/bin/ld: BFD (NetBSD Binutils nb1) 2.27 internal error, aborting at /usr/src/tools/binutils/../../external/gpl3/binutils/dist/bfd/elf.c:3475 in bfd_elf_set_group_contents
/home/fly/obj2/tooldir.NetBSD-8.99.12-amd64/lib/gcc/x86_64--netbsd/6.4.0/../../../../x86_64--netbsd/bin/ld: Please report this bug.
collect2: error: ld returned 1 exit status
*** [accf_dataready.kmod] Error code 1

To avoid the error, repeat the above steps in OBJDIR/sys/modules/accf_dataready
- Rebuild accf_data.o, but do not call ctfconvert
- Rebuild accf_data.o, but without -ggdb3



NetBSD Home
NetBSD PR Database Search

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