From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 103307 invoked by alias); 9 Nov 2018 10:34:56 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 103288 invoked by uid 89); 9 Nov 2018 10:34:54 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-9.5 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,GIT_PATCH_3,KAM_LAZY_DOMAIN_SECURITY,KAM_NUMSUBJECT autolearn=ham version=3.3.2 spammy=Hx-spam-relays-external:sk:mailhos, H*RU:sk:mailhos, H*r:sk:mailhos X-HELO: nef2.ens.fr Received: from nef2.ens.fr (HELO nef2.ens.fr) (129.199.96.40) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 09 Nov 2018 10:34:53 +0000 X-ENS-nef-client: 129.199.120.1 Received: from mailhost.lps.ens.fr (tournesol.lps.ens.fr [129.199.120.1]) by nef2.ens.fr (8.13.6/1.01.28121999) with ESMTP id wA9AYnAi014278 ; Fri, 9 Nov 2018 11:34:49 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mailhost.lps.ens.fr (Postfix) with ESMTP id 7DC9B15C; Fri, 9 Nov 2018 11:34:49 +0100 (CET) Received: from mailhost.lps.ens.fr ([127.0.0.1]) by localhost (tournesol.lps.ens.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tNqwWYwSMI90; Fri, 9 Nov 2018 11:34:49 +0100 (CET) Received: from [192.168.1.11] (log78-1-82-242-47-10.fbx.proxad.net [82.242.47.10]) by mailhost.lps.ens.fr (Postfix) with ESMTPSA id 47D69155; Fri, 9 Nov 2018 11:34:49 +0100 (CET) From: =?utf-8?Q?Dominique_d=27Humi=C3=A8res?= Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.1 \(3445.101.1\)) Subject: Re: [committed 0/4] (Partial) OpenMP 5.0 support for GCC 9 Message-Id: Date: Fri, 09 Nov 2018 10:34:00 -0000 Cc: gcc-patches , Rainer Orth To: Jakub Jelinek X-SW-Source: 2018-11/txt/msg00692.txt.bz2 Hi Jakub, Bootstrapping r265942 on darwin failed with In file included from /Applications/Xcode-6.2.app/Contents/Developer/Platfo= rms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/stdio.h:490, from ../../../work/libgomp/affinity-fmt.c:28: ../../../work/libgomp/affinity-fmt.c: In function 'gomp_display_affinity': ../../../work/libgomp/affinity-fmt.c:369:17: error: format '%x' expects arg= ument of type 'unsigned int', but argument 5 has type 'long unsigned int' -= Werror=3Dformat=3D] 369 | sprintf (buf, "0x%x", (uintptr_t) handle); | ^~~~~~ ~~~~~~~~~~~~~~~~~~ | | | long unsigned int ../../../work/libgomp/affinity-fmt.c:369:21: note: format string is defined= here 369 | sprintf (buf, "0x%x", (uintptr_t) handle); | ~^ | | | unsigned int | %lx cc1: all warnings being treated as errors I have managed to bootstrap with the following hack: --- ../_clean/libgomp/affinity-fmt.c 2018-11-08 19:03:37.000000000 +0100 +++ libgomp/affinity-fmt.c 2018-11-09 01:00:16.000000000 +0100 @@ -362,11 +362,11 @@ gomp_display_affinity (char *buffer, siz char buf[3 * (sizeof (handle) + sizeof (int)) + 4]; =20 if (sizeof (handle) =3D=3D sizeof (long)) - sprintf (buf, "0x%lx", (long) handle); + sprintf (buf, "0x%lx", (long) (uintptr_t) handle); else if (sizeof (handle) =3D=3D sizeof (long long)) - sprintf (buf, "0x%llx", (long long) handle); + sprintf (buf, "0x%llx", (long long) (uintptr_t) handle); else - sprintf (buf, "0x%x", (int) handle); + sprintf (buf, "0x%x", (int) (uintptr_t) handle); gomp_display_num (buffer, size, &ret, zero, right, sz, buf); break; } which is certainly wrong, but allowed me to bootstrap. TIA Dominique PS I can file a PR if necessary.