NetBSD Problem Report #52355

From www@NetBSD.org  Sat Jul  1 23:50:44 2017
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(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 CEEA27A212
	for <gnats-bugs@gnats.NetBSD.org>; Sat,  1 Jul 2017 23:50:43 +0000 (UTC)
Message-Id: <20170701235042.A4F577A2B3@mollari.NetBSD.org>
Date: Sat,  1 Jul 2017 23:50:42 +0000 (UTC)
From: jan.m.danielsson@gmail.com
Reply-To: jan.m.danielsson@gmail.com
To: gnats-bugs@NetBSD.org
Subject: address-of-packed member causes clang build of NetBSD/amd64 -7 to fail
X-Send-Pr-Version: www-1.0

>Number:         52355
>Category:       bin
>Synopsis:       address-of-packed member causes clang build of NetBSD/amd64 -7 to fail
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jul 01 23:55:00 +0000 2017
>Closed-Date:    Mon Feb 12 13:28:43 +0000 2018
>Last-Modified:  Mon Feb 12 13:28:43 +0000 2018
>Originator:     Jan Danielsson
>Release:        netbsd-7
>Organization:
La Cosa Nostra
>Environment:
NetBSD gauss.local 7.0_STABLE NetBSD 7.0_STABLE (GAUSS) #0: Sun Oct 23 03:20:17 CEST 2016  jan@gauss:/home/jan/tmp/sysbuild/obj.amd64/usr/src/sys/arch/amd64/compile/GAUSS amd64
>Description:
A while into the build the following error causes the build to abort:

error: unknown warning option '-Werror=address-of-packed-member' [-Werror,-Wunknown-warning-option]

external/bsd/tcpdump/bin/Makefile unconditionally sets:

CWARNFLAGS.clang+=	-Wno-error=address-of-packed-member

>How-To-Repeat:
Build native build of netbsd/amd64 -7 using:

MKLLVM=yes
HAVE_LLVM=yes
MKGCC=no
>Fix:
Not sure what the proper solution is, but naively commenting out CWARNFLAGS.clang in external/bsd/tcpdump/bin/Makefile gets the build to pass.

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->pending-pullups
State-Changed-By: maya@NetBSD.org
State-Changed-When: Sun, 02 Jul 2017 07:17:41 +0000
State-Changed-Why:
pullup-7 #1443, thanks for the report!


State-Changed-From-To: pending-pullups->closed
State-Changed-By: maxv@NetBSD.org
State-Changed-When: Mon, 12 Feb 2018 13:28:43 +0000
State-Changed-Why:
The fix was pulled up.


>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.