From owner-freebsd-current@freebsd.org Tue Jul 5 20:07:03 2016 Return-Path: Delivered-To: freebsd-current@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 7B4D4B7145D for ; Tue, 5 Jul 2016 20:07:03 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: from mail-pf0-x233.google.com (mail-pf0-x233.google.com [IPv6:2607:f8b0:400e:c00::233]) (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 48FE914D1; Tue, 5 Jul 2016 20:07:03 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: by mail-pf0-x233.google.com with SMTP id h14so72873037pfe.1; Tue, 05 Jul 2016 13:07:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:subject:date:message-id:cc:to:mime-version; bh=F5MTq2IjAFvbHCZg/tlu+BYNFJf7UpxBXDMNmkU9r30=; b=CZwxpaWINZI4Xel91j+sAMyeSmyGxezZCZuHazz5N/cvEjcp9iRl/Fbz7I2HrB0SWg JxiKL6/5KoFpoaUDj5H1xaxVYSyiFfEvLBLLYqYWbd8o9UF37ZgEpW0ccPhSFQIAyu+4 TEd81DlFqOmwYZZr2VfugQYdn7Hgojua9Jc/BbSs5tYlJg0rfPfx8H9NJjLCzyucLr4i I/4C5XBkFIgtckpy1ydoZPKulFfsnNT+ZxqNmRejy7mF2LTXahsrfbn3F29qwFYR0YdD NS99fG/skz/GtxvG2F8mamfAfMGt589BgigZFttK1aIm7KRVtb6LbK89SZ4bp4EJF5qD zx8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:subject:date:message-id:cc:to:mime-version; bh=F5MTq2IjAFvbHCZg/tlu+BYNFJf7UpxBXDMNmkU9r30=; b=TEVwrNP8u5yGBHT0gklXhT9b2poM4NycufciS84z1KhSCqfTbyMwMn6rjc0Icf7iy+ bcvtwkCagaEyhxiz+3jDUoZzMU1ZP6TU4VkFjLUhyGuI2HLiBe+Fqwi6/b11G5KoLpVZ upXoN0e/SdCBZsqH6yXj5cqzSaBsMPsrSLn9KnZkNH6efqQ+TAq0FG5ntjx7Yw39Apde SpjKcD4FjuMEvSdQ+Qewnld/jB9LS2pF9RZV6ycABVQZLkhmGkKw01zlLyj7b/543Lmu Dtb4baRWBcKnOnYjgIYtK7JNB87RL3OEOZHt44xz5L5SUtocjYfw+sZgdPg/o9WzSWz5 x/Dw== X-Gm-Message-State: ALyK8tI+D5/ajaZIZI/Qqlyf7p14//V7LkIYAipMwZ2w6VPF/L6hr7LX99fZ6yx3spOLOA== X-Received: by 10.98.210.66 with SMTP id c63mr35021513pfg.25.1467749222628; Tue, 05 Jul 2016 13:07:02 -0700 (PDT) Received: from [192.168.20.18] (c-73-19-52-228.hsd1.wa.comcast.net. [73.19.52.228]) by smtp.gmail.com with ESMTPSA id um7sm7213606pab.20.2016.07.05.13.07.01 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 05 Jul 2016 13:07:02 -0700 (PDT) From: "Ngie Cooper (yaneurabeya)" X-Pgp-Agent: GPGMail 2.6b2 Content-Type: multipart/signed; boundary="Apple-Mail=_963CBE16-1326-4285-B49A-2D85A56C5A1B"; protocol="application/pgp-signature"; micalg=pgp-sha512 Subject: clang 3.3/3.4 fails to build items that use stdlib.h because of __alloc_size attribute assigned to posix_memalign Date: Tue, 5 Jul 2016 13:07:00 -0700 Message-Id: <838A69F7-343D-4398-928B-E54FB966B574@gmail.com> Cc: Roman Divacky , Pedro Giffuni , FreeBSD current To: Dimitry Andric Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jul 2016 20:07:03 -0000 --Apple-Mail=_963CBE16-1326-4285-B49A-2D85A56C5A1B Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi, It looks like clang 3.3/3.4 from ports both don=E2=80=99t like = __alloc_size being attached to posix_memalign. This only concerns me = because it might make the src upgrade path from 9.3/10.3 to 11.0 = painful. Thoughts on how this should be fixed or whether or not we care? Thanks, -Ngie $ cd usr.sbin/bhyve; make clean; script ts make all CC=3Dclang34 ... In file included from /usr/src/svn/usr.sbin/bhyve/atkbdc.c:40: /usr/include/stdlib.h:176:6: error: '__alloc_size__' attribute only = applies to functions that return a pointer = [-Werror,-Wignored-attributes] __alloc_size(3); /* (ADV) */ ^ /usr/include/sys/cdefs.h:241:40: note: expanded from macro = '__alloc_size' #define __alloc_size(x) __attribute__((__alloc_size__(x))) ^ 1 error generated. *** Error code 1 Stop. make: stopped in /usr/src/svn/usr.sbin/bhyve $ (set -x; clang33 --version; clang34 --version) + clang33 --version clang version 3.3 (tags/RELEASE_33/final) Target: x86_64-portbld-freebsd11.0 Thread model: posix + clang34 --version clang version 3.4.2 (tags/RELEASE_34/dot2-final) Target: x86_64-portbld-freebsd11.0 Thread model: posix 282988 pfg int posix_memalign(void **, size_t, size_t) = __nonnull(1) __alloc_align(2) 281130 pfg __alloc_size(3); /* (ADV) = */ --Apple-Mail=_963CBE16-1326-4285-B49A-2D85A56C5A1B Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJXfBNlAAoJEPWDqSZpMIYVWX4P/3XoY69EIwaTEudGgBzM5AhM f0gqZftUMSDdtYkEg6TUMHu/4clxfwuqUtN3DvP+fe+zKQEg+pVActDY1ZIGhsgj AwdEfIu2M0oOXwD84AwDLQ1guf6ZxDnE9ba9h9c2uvb+zjLsC28yVF4OsK8MdpR8 jc7rQYFS6yf76NRlOkL7yrZFoWiNJ366yL3q1n4m/XKxAFg8+Y+Zmpoi1SVEifwz 9cep276B+kqS0yem6ZJiq23q+FqSeIRLF1i+01NYa5dxi6HT3N7bxNU+VjICw/d9 HdzIXcEsd7IdHRZxgurp1PjZNUHABbg6IBCFywML95iwLExsGEk2kk0r7w/QDutI DmagAzaI4642XhlILF9CsxHTzjSa0mlFgBKpl5oOyFFUsvCefh/+BsJT0TiH5PzJ VYZyBA3rr0iN+Yg9JQJ5vViiurMiN0/XkyrQncdrPJVnc/IWUd29hBoJP2MQsRKo Qc6YOQR09Zw0tWLdMOt+OSt3NTUmR/gTgM+nD5RZpxLkB9TZ97Nijbp7x0uWDt4b EcNTllOmgKvcU9zEGpY2h5aTdf3HNnElWYJkueYuBuLHVdKIemaick6RBqZHmp1s 5LYQ8pMMb0pC45z+PuYx51QxFtihaET36dIuqw8o0igATuqIfhB1WsrVeU/33+8g elCeONSs8PDoJovgX6HB =EEM4 -----END PGP SIGNATURE----- --Apple-Mail=_963CBE16-1326-4285-B49A-2D85A56C5A1B--