Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iFunb-0005Iu-8n for pgsql-hackers@arkaria.postgresql.org; Thu, 03 Oct 2019 06:41:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iFunZ-000386-QO for pgsql-hackers@arkaria.postgresql.org; Thu, 03 Oct 2019 06:41:13 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iFunZ-00037n-78 for pgsql-hackers@lists.postgresql.org; Thu, 03 Oct 2019 06:41:13 +0000 Received: from mail-pf1-x42d.google.com ([2607:f8b0:4864:20::42d]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1iFunW-0002nl-7Y for pgsql-hackers@postgresql.org; Thu, 03 Oct 2019 06:41:11 +0000 Received: by mail-pf1-x42d.google.com with SMTP id h195so1073991pfe.5 for ; Wed, 02 Oct 2019 23:41:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leadboat.com; s=google; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=Xse4jCyOxdSY6htolauK1I+ptQ2sDXwLai+DOmeopaI=; b=gI1viEUrOEHbmDDUueGYgNJi4CQXp44qUFqP/jA943uo1PQ3snfGuLyJzKfV9YXzjP xjqGSgpC99E8s7eNpI5rlz44AhYF6hVlKOZiNrhoJmcHPNnS56Qq+3+IROwwakWG3l2d Ho+xC2ZmtoKoNfloEDkFuNOVvnGILVxyAVWs4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=Xse4jCyOxdSY6htolauK1I+ptQ2sDXwLai+DOmeopaI=; b=ZwzlIiU+QwLP+rLpCD/BxyWsMy6yZa4zCXYR0FJ1apQkSuc8OKAcyZFlqEdzUNRyST 3An87Q1tPcELjsENxtAF0IKSnu71zfwvxFN0UWvVR1/5fFYV60eKpiV3IXjxU6VaKOHO ikFBOheXMGIyUPTmjUVeY+GPcdxGNYLI+ZC0dQmf3y6SPdJQGs2FmKEH5GM7wDkE4Axv rgXSgTTRMGMkCZaeT6WZ3gwj3KFcDTe8ftLKc+uLcXq0pBHLn/fIKiXKA7KN2zpF1st4 NvHb8CCHVK74oYL8Ya7xUzqDcQj7ENnocUplzhlSCLTlfVBRxF+CAuh5eRi3W9xplNFL ap3A== X-Gm-Message-State: APjAAAVucwDVg+Aj9IScbEHiTcy7u5ryDMKVxLoB18TKSWdlxufS3+Ds h5JEihRPJn2FkvQbxAT8gaz6WJBodFY= X-Google-Smtp-Source: APXvYqzgbGR9tMZqSdg4xiv+l+ba3Z8v6vhzSL+V52xWVWRNNajanJ6bMqby0abMCQQhStmBpBOkfg== X-Received: by 2002:a17:90a:ad8f:: with SMTP id s15mr8818207pjq.50.1570084868463; Wed, 02 Oct 2019 23:41:08 -0700 (PDT) Received: from rfd.leadboat.com (108-233-125-46.lightspeed.sntcca.sbcglobal.net. [108.233.125.46]) by smtp.gmail.com with ESMTPSA id f6sm2081292pfq.169.2019.10.02.23.41.06 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 Oct 2019 23:41:07 -0700 (PDT) Date: Wed, 2 Oct 2019 23:41:05 -0700 From: Noah Misch To: pgsql-hackers@postgresql.org Subject: Removing -qsrcmsg (AIX) Message-ID: <20191003064105.GA3955242@rfd.leadboat.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="bg08WKrSYDhXBjb5" Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --bg08WKrSYDhXBjb5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline With AIX xlc v16.1.0, various compilations get internal errors: /opt/IBM/xlc/16.1.0/bin/xlc_r -qmaxmem=33554432 -qnoansialias -g -O2 -qsrcmsg -I/scratch/nm/farmlike/../cmpx/src/interfaces/libpq -I../../../src/include -I/scratch/nm/farmlike/../cmpx/src/include -c -o pg_backup_utils.o /scratch/nm/farmlike/../cmpx/src/bin/pg_dump/pg_backup_utils.c /opt/IBM/xlc/16.1.0/bin/.orig/xlc_r: 1501-230 (S) Internal compiler error; please contact your Service Representative. For more information visit: http://www.ibm.com/support/docview.wss?uid=swg21110810 I tracked this down to our use of -qsrcmsg, which I plan to remove from the default CFLAGS, including back branches. While this is a compiler bug, it's not worth breaking plausible builds to default-enable the minor change -qsrcmsg provides: $ echo 'break me' >x.c $ /opt/IBM/xlc/16.1.0/bin/xlc_r x.c "x.c", line 1.1: 1506-275 (S) Unexpected text 'break' encountered. "x.c", line 1.7: 1506-166 (S) Definition of function me requires parentheses. "x.c", line 1.9: 1506-204 (S) Unexpected end of file. $ /opt/IBM/xlc/16.1.0/bin/xlc_r -qsrcmsg x.c 1 | break me a.....b.c a - 1506-275 (S) Unexpected text 'break' encountered. b - 1506-166 (S) Definition of function me requires parentheses. c - 1506-204 (S) Unexpected end of file. --bg08WKrSYDhXBjb5 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="qsrcmsg-v1.patch" diff --git a/src/template/aix b/src/template/aix index ed83284..999cd35 100644 --- a/src/template/aix +++ b/src/template/aix @@ -1,13 +1,14 @@ -# Set appropriate default compiler options if using xlc -# Note: configure will add -qnoansialias if the compiler accepts it, -# even if user specifies a non-default CFLAGS setting. +# Set default options if using xlc. This formerly included -qsrcmsg, but that +# option elicits internal compiler errors from xlc v16.1.0. Note: configure +# will add -qnoansialias if the compiler accepts it, even if user specifies a +# non-default CFLAGS setting. if test "$GCC" != yes ; then case $host_os in aix3.2.5 | aix4.1*) - CFLAGS="-O -qmaxmem=16384 -qsrcmsg" + CFLAGS="-O -qmaxmem=16384" ;; *) - CFLAGS="-O2 -qmaxmem=16384 -qsrcmsg" + CFLAGS="-O2 -qmaxmem=16384" ;; esac --bg08WKrSYDhXBjb5--