From: Andrew Gierth <andrew@tao11.riddles.org.uk>
To: Karl Denninger <karl@denninger.net>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: FreeBSD 12 and Postgres build failures
Date: Wed, 20 Mar 2019 05:40:46 +0000
Message-ID: <87y35aw3d0.fsf@news-spur.riddles.org.uk> (raw)
In-Reply-To: <7cda2375-3ea1-33d1-8ed9-dcb91b86232d@denninger.net>
References: <eb6e15af-5042-5965-ccba-a7af238db827@denninger.net>
<32572.1553033569@sss.pgh.pa.us>
<5d4aaa6d-97e6-df4c-455d-884bdb620daf@denninger.net>
<877ecuxyvu.fsf@news-spur.riddles.org.uk>
<977a9233-d646-ee34-fe16-bf9ca5b4691c@denninger.net>
<8736nixte1.fsf@news-spur.riddles.org.uk>
<7cda2375-3ea1-33d1-8ed9-dcb91b86232d@denninger.net>
>>>>> "Karl" == Karl Denninger <karl@denninger.net> writes:
Karl> "cc" on FreeBSD is now (and has been for quite some time) clang:
Karl> If it will compile Postgres now it definitely would not when it
Karl> was first shifted to;
People have been building PG with clang since at least as far back as
clang 3.1, and the FreeBSD 10.0 (which I believe was the first FreeBSD
release where clang was the default) package builds of PG were built
with clang 3.3. (Now, of course, clang is _required_ if you want to try
out the new JIT features.)
Building with gcc on FreeBSD is not the default on a clean system, and
as we've recently seen with another report, there are issues with mixing
the gcc and llvm toolchains on some architectures that are not in any
way PG's problem to solve. (Though the fact that we prefer gcc to cc in
configure if both are found is a decision that should probably be
revisited, given that the reasons for that preference are mostly
consigned to the graveyard of commercial Unix variants.)
You might also have considered that the fact that package builds exist
for pg 10 and 11 on FreeBSD 12 is a demonstration that building them is,
in fact, possible on a clean system...
Karl> root@NewFS:/home/karl # which gcc
Karl> /usr/local/bin/gcc
I had not previously noticed that the lang/gcc metaport (which I have
never installed, though I have lang/gcc8 installed at the moment)
installs a symlink to the selected gcc version as just "gcc". That
explains a lot.
--
Andrew (irc:RhodiumToad)
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-general@postgresql.org
Cc: andrew@tao11.riddles.org.uk, karl@denninger.net
Subject: Re: FreeBSD 12 and Postgres build failures
In-Reply-To: <87y35aw3d0.fsf@news-spur.riddles.org.uk>
References: <eb6e15af-5042-5965-ccba-a7af238db827@denninger.net> <32572.1553033569@sss.pgh.pa.us> <5d4aaa6d-97e6-df4c-455d-884bdb620daf@denninger.net> <877ecuxyvu.fsf@news-spur.riddles.org.uk> <977a9233-d646-ee34-fe16-bf9ca5b4691c@denninger.net> <8736nixte1.fsf@news-spur.riddles.org.uk> <7cda2375-3ea1-33d1-8ed9-dcb91b86232d@denninger.net> <87y35aw3d0.fsf@news-spur.riddles.org.uk>
* 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