Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fqP0p-0000i7-NF for pgsql-hackers@arkaria.postgresql.org; Thu, 16 Aug 2018 20:36:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fqP0l-0004vx-3o for pgsql-hackers@arkaria.postgresql.org; Thu, 16 Aug 2018 20:36:51 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fqP0k-0004vh-P5 for pgsql-hackers@lists.postgresql.org; Thu, 16 Aug 2018 20:36:50 +0000 Received: from mail-qt0-x242.google.com ([2607:f8b0:400d:c0d::242]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fqP0c-0006Wd-PD for pgsql-hackers@lists.postgresql.org; Thu, 16 Aug 2018 20:36:49 +0000 Received: by mail-qt0-x242.google.com with SMTP id z8-v6so6353081qto.9 for ; Thu, 16 Aug 2018 13:36:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=from:subject:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=urFLOmbkylVAngp1EQBpzqrkGs8F7kpPnbHbisPjuz8=; b=0lyBOQLXPVCGE59YapmVk/jo2vRumX2uy0dZoMgJk8Rm641C1HUiN6SzA1yYjwPTst s2sLVvZxmHBkMndFORsT+AU9gaPQ2LZLkZ6JQRU9SRMcYRvmBHPPFl3uJZfxCOmo3kx+ 4RCZv1Oht7h6u3JHZsWswR8dX5z+UHr3Yb9RYY/pR/oGPzqiGL79tzOBkvu3LbsWL2h6 cM3vzPrYD12SGl336IciVWck+WbCzrwvAHspyxpnsJp+KpmVSAIKm/uSK9dmexL5nM8O IHoVaNm1fqbp1nTUWNag3zoxcMX2KQ3wjPpKwS/oyYkkc21XiefKRZn9cCaH1U02kBQb TOLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=urFLOmbkylVAngp1EQBpzqrkGs8F7kpPnbHbisPjuz8=; b=b/huBwOHZ9jPwhFct0V3+BsuiSiC+2s+mTQHhajSoS6hc5+J5Wz1oKQ1eVpL6iawQC END+feMFLH2/h3r8LFGC5bwsGaB3pt8IuJPPR+OG6fX9ejPveXdodmAjbwkeWDuoEVNN Ze2FJ/ZsngbFwLSNLCgx/esht31PpEAOkAJw5VfaXUsYDsNZBCzDyajFh0wygeuNiMBr 2AVZxIrMitH8vf2oCFRUYwTr+EVFn8aZeN6qEaGPiRLWUK3VvhCdxHVQWCNyowgTE7Z0 fZT6M73JbYw1tuzx7qMhzgLnB6Yn7FQ7LDhzLOe2MeDJmymD4N4HWrE+nY+YUWCzTRRZ I4MA== X-Gm-Message-State: AOUpUlE/tz7lR/Y9kr1Jmhd5NLRKEaSJB58c4SxySZxIwRQbR4ZMv1TA HKyLiHM9JF9KA0jnJPeyQhQ6tHVQVTnOt50z+r70sOOeHqGqwPWrhS9twqGVHdDWygvWv8J9XMi A/gh8lvnuQLcHjYKR+/DOg39ajfcyIvOr2rog720xh8Gre8JwxwoNxkiIiN8lVSD+KYflZsz8Qj tH9iajaEQGT5brRm8Ura4H X-Google-Smtp-Source: AA+uWPyHIQiZfM4qExBYzflDIY298PZVp6yXsjijznnTSsYH4ToLTOJY/GpnKcU7cZ2Sbxq5aGongA== X-Received: by 2002:a0c:ab43:: with SMTP id i3-v6mr28489673qvb.87.1534451801353; Thu, 16 Aug 2018 13:36:41 -0700 (PDT) Received: from [192.168.10.146] ([98.122.175.38]) by smtp.gmail.com with ESMTPSA id 49-v6sm232371qtu.0.2018.08.16.13.36.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 Aug 2018 13:36:40 -0700 (PDT) From: Andrew Dunstan X-Google-Original-From: Andrew Dunstan Subject: Re: C99 compliance for src/port/snprintf.c To: Andres Freund , Tom Lane Cc: Dave Page , David Steele , pgsql-hackers@lists.postgresql.org References: <2069.1534363063@sss.pgh.pa.us> <20180815214931.vlwsz4s55enbppna@alap3.anarazel.de> <9877.1534371239@sss.pgh.pa.us> <20180815222401.kxsupl5zie2jgi4x@alap3.anarazel.de> <10675.1534372270@sss.pgh.pa.us> <20180816084134.sqggeatubeufpc2r@alap3.anarazel.de> <20180816111859.n6vtt322jpjwflij@alap3.anarazel.de> <20180816142220.yowdd6626c6mea5o@alap3.anarazel.de> <14429.1534434090@sss.pgh.pa.us> <20180816160508.nd5u6fblr3jwcg6f@alap3.anarazel.de> Message-ID: <8dfab595-ce96-0290-e3d4-10392fa96b9e@2ndQuadrant.com> Date: Thu, 16 Aug 2018 16:36:39 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <20180816160508.nd5u6fblr3jwcg6f@alap3.anarazel.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-MW List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 08/16/2018 12:05 PM, Andres Freund wrote: > Hi, > > On 2018-08-16 11:41:30 -0400, Tom Lane wrote: >> Andres Freund writes: >>> But enabling C99 support triggered a somewhat weird failure on >>> protosciurus (also solaris, but gcc) >>> https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=protosciurus&dt=2018-08-16%2013%3A37%3A46 >>> It detects C99 support successfully via -std=gnu99 but then fails >>> somewhere during build with: >>> ../../../../src/include/utils/float.h:71: error: `__builtin_infinity' undeclared (first use in this function) >>> While I'd personally have no problem kicking gcc 3.4 to the curb, I'm >>> still confused what causes this error mode. Kinda looks like >>> out-of-sync headers with gcc or something. >> Yeah, this is *absolutely* unsurprising for a non-native gcc installation >> on an old platform. It only works to the extent that the platform's >> library headers are up to snuff. The gcc installation process actually >> knows enough to do a certain amount of editing of the platform's headers, >> and install "fixed" copies of those headers where gcc will find them >> before the ones in /usr/include. But it looks like the fixing didn't >> account for __builtin_infinity on this platform. Maybe a newer gcc >> would get it right. > Sure, but that still requires the headers to behave differently between > C89 and C99 mode, as this worked before. But it turns out there's two > different math.h implementation headers, depending on c99 being enabled > (math_c99.h being the troublesome). If I understand correctly the > problem is more that the system library headers are *newer* (and assume > a sun studio emulating/copying quite a bit of gcc) than the gcc that's > being used, and therefore gcc fails. > > Gcc 3.4.3 has been released November 4, 2004, whereas solaris 10 is from > January 31, 2005. The sun studio used for castoroides running on, I > assume, the same hardware, is quite a bit newer in turn. > > >> I just launched gaur/pademelon builds for you, though I'm quite certain >> they'll both report "unsupported". > Yea, that seems fairly likely. > > >> If we go through with this, my plan would be to retire pademelon >> (vendor's compiler) and see if I can install gcc 4.something to >> replace the 2.95.3 version that gaur is using. > K. > > >> The -ansi option that dromedary is using is certainly losable, too >> (I'd probably replace it with either --std=c99 or --std=gnu99, >> whichever autoconf *doesn't* pick by default, just to be contrary). > Makes sense. > > >> Andrew is going to need to give us a policy decision on whether to >> keep using the existing animal names or take out new ones for these >> rather-significantly-modified configurations. > CCed. > The usual policy is that animal names need to change if the OS or compiler names change, but not if just the versions of those change. There is a script in the suite to update those settings, and the admins can also help if necessary. cheers andrew -- Andrew Dunstan https://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services