pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Дилян Палаузов <dpa-postgres@aegee.org>
To: PostgreSQL Bugs <pgsql-bugs@postgresql.org>
Subject: ./configure error: Cannot find a working 64-bit integer type
Date: Tue, 10 Oct 2017 16:31:40 +0200
Message-ID: <0f85489c-ea78-ca41-b2d8-5a3b625de248@aegee.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Hello,

unless the patch below is applied ./configure prints:

STDOUT checking test program... ok
STDOUT checking whether long int is 64 bits... no
STDOUT checking whether long long int is 64 bits... no
STDERR configure: error: Cannot find a working 64-bit integer type.

when gcc 8.0.0 20171006 is used, "unset CFLAGS" is removed from configure(.in),  having in config.site:

CFLAGS="-pipe -Werror -Wall -Wextra -O3 -fno-fat-lto-objects -flto"
LDFLAGS="-Wl,-O1,-s -flto=12"

and calling
PYTHON=/usr/local/bin/python3 ./configure --prefix=/usr/local --with-gssapi --with-openssl --with-libxml --with-libxslt --with-python --enable-cassert

config.log contains then:

configure:14132: checking whether long long int is 64 bits
configure:14192: gcc -o conftest -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-label
conftest.c:154:5: error: no previous prototype for 'does_int64_work' [-Werror=missing-prototypes]
  int does_int64_work(void)
      ^~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
configure:14192: $? = 1
configure: program exited with status 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "PostgreSQL"
| #define PACKAGE_TARNAME "postgresql"
[...]
|  */
| ac_int64 a = 20000001;
| ac_int64 b = 40000005;
| int does_int64_work()
| {
|   ac_int64 c,d;
|



inline patch 1: config/c-compiler.m4 (+2/-2 lines) download inline-1.patchdiff --git a/config/c-compiler.m4 b/config/c-compiler.m4 index 6dcc790..dfaa273 100644 --- a/config/c-compiler.m4 +++ b/config/c-compiler.m4 @@ -56,8 +56,8 @@ AC_CACHE_CHECK([whether $1 is 64 bits], [Ac_cachevar], */ ac_int64 a = 20000001; ac_int64 b = 40000005; - -int does_int64_work() +int does_int64_work(void); +int does_int64_work(void) { ac_int64 c,d;
Regards Дилян -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs

view thread (8+ messages)  latest in thread

Message-ID: <0f85489c-ea78-ca41-b2d8-5a3b625de248@aegee.org>
Permalink:  ../0f85489c-ea78-ca41-b2d8-5a3b625de248@aegee.org/
Also on:    postgresql.org/message-id/0f85489c-ea78-ca41-b2d8-5a3b625de248@aegee.org

 ·  · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: dpa-postgres@aegee.org
  Subject: Re: ./configure error: Cannot find a working 64-bit integer type
  In-Reply-To: <0f85489c-ea78-ca41-b2d8-5a3b625de248@aegee.org>
  References: <0f85489c-ea78-ca41-b2d8-5a3b625de248@aegee.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox