From owner-freebsd-toolchain@freebsd.org Mon Aug 7 15:20:24 2017 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EC5A9DD8FDB for ; Mon, 7 Aug 2017 15:20:24 +0000 (UTC) (envelope-from sobomax@sippysoft.com) Received: from mail-ua0-x234.google.com (mail-ua0-x234.google.com [IPv6:2607:f8b0:400c:c08::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AB62A701AA for ; Mon, 7 Aug 2017 15:20:24 +0000 (UTC) (envelope-from sobomax@sippysoft.com) Received: by mail-ua0-x234.google.com with SMTP id 80so3336795uas.0 for ; Mon, 07 Aug 2017 08:20:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sippysoft-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to; bh=mqEytjiJjXiT9Q6ZKOpEG2qk6cmcnSlfkutCt1zQkhA=; b=PqirG1+r4qoFiq955jAYQSLSpUAhiIjNwpqPzC+8MHG8TXykN0LIYxly0GbHF3jUzw mjcUlI2BkdltpfD1X0B2duLQkNov5fqtEky/M0Ji83FtfCbRnQrH+3NuwTs3+uryyWZ5 0wjF5fRsp1VoZsMAPQZvtyw9SoKpuAvvMTm1beB1gu5FXLedQu8LuYVKLZY89ptvLfpJ O52xVRwEeOcKk0DJPcA68tEn7tnkVg6yyh+Q0Bts+pX0/iLsUnAb18OSza33JMw8cvIn eDgq/a+vLLx8GR+zWPa/XX5WfcVF1UZlCkeMdBRVttPwzO7XCLgCy0gpbnFizLtXcHt6 cS3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to; bh=mqEytjiJjXiT9Q6ZKOpEG2qk6cmcnSlfkutCt1zQkhA=; b=L6YjaD+pV90TWVVhK1icHC/2ODa0RGUUxbbiIcvXJHX83hlB87NpyXD7a8gvIz+jv5 o4IV6NdxY2f/7X3WTzA5esLdg+EwHDZKDt1eOhTUPj3PhuG9kcdFD3lYMm0iKV+y55by VPnOdNEJ0I+/ArLwQpmuTcVdubkSGIn33c21JZ7Ofr8PS3Lwldo3INN+med3zbn70HGs Kr4S1vZ9e86rYmgrFJmxzenFmwGddQdWxb14nBufGhcya94vbDwtovyzgXCkkW/G0HtN zo1Z922+NHEOgWbZeZ3zW/DusXIryYUwqrace8NeVBtJMxgachb0O16kQGQaXtox4Q3v o36w== X-Gm-Message-State: AHYfb5i5JlZ5ql0tNKrvqy4jWdKVxWQbVv7qR24bX2ajN3YblE+IsHZ2 eML/t4AG/BgERW9Xaj7A5VeqIeERJUNm X-Received: by 10.176.23.77 with SMTP id k13mr650540uaf.128.1502119223576; Mon, 07 Aug 2017 08:20:23 -0700 (PDT) MIME-Version: 1.0 Sender: sobomax@sippysoft.com Received: by 10.176.3.148 with HTTP; Mon, 7 Aug 2017 08:20:23 -0700 (PDT) In-Reply-To: References: From: Maxim Sobolev Date: Mon, 7 Aug 2017 08:20:23 -0700 X-Google-Sender-Auth: 03SpWn9Bl2vR5IaB8VptGdr8xRw Message-ID: Subject: Re: 11.1-RELEASE has issue with system headers in pedantic mode (type nullability specifier) To: stable@freebsd.org, freebsd-toolchain@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Aug 2017 15:20:25 -0000 One way to defeat this would be to mark those headers with the #pragma clang system_header. As per: https://clang.llvm.org/docs/UsersManual.html#id27 -Max On Mon, Aug 7, 2017 at 6:20 AM, Maxim Sobolev wrote: > Hi, we noticed that some of our internal packages fail the build on 11.1 > now with -pedantic: > > *00:31:09.178* Warning: Object directory not changed from original /tmp/m= nt/dncd/work/dncd-20170627161415*00:31:09.178* cc -pipe -g3 -O0 -pipe -fsta= ck-protector -fno-strict-aliasing -Wall -pedantic -O0 -g3 -g3 -O0 -pipe -= MD -MF.depend.main.o -MTmain.o -std=3Dgnu99 -fstack-protector-strong -Wsys= tem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-s= ign -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-ta= utological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-= function -Wno-enum-conversion -Wno-unused-local-typedef -Wno-address-of-pac= ked-member -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter -Qunus= ed-arguments -c main.c -o main.o*00:31:09.455* In file included from main.= c:17:*00:31:09.456* /usr/include/err.h:63:27: error: type nullability speci= fier '_Nullable' is a Clang extension [-Werror,-Wnullability-extension]*00:= 31:09.456* void err_set_exit(void (* _Nullable)(int));*00:31:09.456* = ^*00:31:09.456* In file included from main.c:19:*= 00:31:09.456* /usr/include/signal.h:87:27: error: type nullability specifie= r '_Nonnull' is a Clang extension [-Werror,-Wnullability-extension]*00:31:0= 9.456* int sigpending(sigset_t * _Nonnull); > > > I am not sure what the solution might be, perhaps change pedantic to make= this condition non-fatal in pedantic mode? > > > -Max > >