Re: Compile error while building postgresql 10.3

2018-03-19 Thread Terry Phelps
I put that include from /usr/local/include because 'configure' wasn't finding readline.h (I think). I'll look into this. Thanks again for the help. On Mon, Mar 19, 2018 at 4:44 PM, Tom Lane wrote: > Terry Phelps writes: > > Thank you for your help. That resolved the problem. My bad. > > The bu

Re: Compile error while building postgresql 10.3

2018-03-19 Thread Tom Lane
Thomas Munro writes: > /usr/local/include/pgtypes_date.h:24:12: note: previous declaration is here > extern int PGTYPESdate_defmt_asc(date *, const char *, char *); > > BTW it looks like 0e1539ba0d0a added const qualifiers to that function > but didn't update the documentation in doc/src/sgml

Re: Compile error while building postgresql 10.3

2018-03-19 Thread Tom Lane
Terry Phelps writes: > Thank you for your help. That resolved the problem. My bad. > The build ran much further and then got another error, which I'll mention > here, and go research it, since it could be just my bleeding edge source > code. > cc -Wall -Wmissing-prototypes -Wpointer-arith -Wdecla

Re: Compile error while building postgresql 10.3

2018-03-19 Thread Thomas Munro
On Tue, Mar 20, 2018 at 9:28 AM, Terry Phelps wrote: > Thank you for your help. That resolved the problem. My bad. > > The build ran much further and then got another error, which I'll mention > here, and go research it, since it could be just my bleeding edge source > code. > > cc -Wall -Wmissing

Re: Compile error while building postgresql 10.3

2018-03-19 Thread Terry Phelps
Thank you for your help. That resolved the problem. My bad. The build ran much further and then got another error, which I'll mention here, and go research it, since it could be just my bleeding edge source code. cc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-

Re: Compile error while building postgresql 10.3

2018-03-19 Thread Tom Lane
Terry Phelps writes: > I ran configure like this, because it got errors otherwise. O. I wonder > if CFLAGS caused this. > LDFLAGS=-L/usr/local/lib CFLAGS=-I/usr/local/include ./configure That would've been fine, but configure then adds onto what you specified as CFLAGS. > And then I ran gm

Re: Compile error while building postgresql 10.3

2018-03-19 Thread Terry Phelps
Only slight different. Here is exact what I entered to get the error: I ran configure like this, because it got errors otherwise. O. I wonder if CFLAGS caused this. LDFLAGS=-L/usr/local/lib CFLAGS=-I/usr/local/include ./configure And then I ran gmake like this: gmake LDFLAGS=-L/usr/local

Re: Compile error while building postgresql 10.3

2018-03-19 Thread Tom Lane
Terry Phelps writes: > I did: > cd src/port > gmake -s clean > gmake > It says: > cc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement > -Wendif-labels -Wmissing-format-attribute -Wformat-security > -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument > -I/usr/lo

Re: Compile error while building postgresql 10.3

2018-03-19 Thread Terry Phelps
The above was in response to Tom Lane's request to show him a listing of: cd src/port gmake I didn't get any errors when I did that. On Mon, Mar 19, 2018 at 4:11 PM, Andres Freund wrote: > Hi, > > On 2018-03-19 16:07:17 -0400, Terry Phelps wrote: > > I did: > > cd src/port > > gmake -s clean >

Re: Compile error while building postgresql 10.3

2018-03-19 Thread Andres Freund
Hi, On 2018-03-19 16:07:17 -0400, Terry Phelps wrote: > I did: > cd src/port > gmake -s clean > gmake > > It says: > > cc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement > -Wendif-labels -Wmissing-format-attribute -Wformat-security > -fno-strict-aliasing -fwrapv -Wno-unu

Re: Compile error while building postgresql 10.3

2018-03-19 Thread Terry Phelps
I did: cd src/port gmake -s clean gmake It says: gmake -C ../backend submake-errcodes gmake[1]: Entering directory '/usr/home/tgphelps/postgresql/src/backend' gmake[1]: Nothing to be done for 'submake-errcodes'. gmake[1]: Leaving directory '/usr/home/tgphelps/postgresql/src/backend' cc -Wall -Wmi

Re: Compile error while building postgresql 10.3

2018-03-19 Thread Terry Phelps
Tom, I'll get what you asked for in a minute. But first, I want to make sure that y'all see that the compiler is clang, and not gcc. Perhaps that's not important. On Mon, Mar 19, 2018 at 4:01 PM, Tom Lane wrote: > Andres Freund writes: > > There seems to be something sketchy afoot here, even ou

Re: Compile error while building postgresql 10.3

2018-03-19 Thread Tom Lane
Andres Freund writes: > There seems to be something sketchy afoot here, even outside of > CFLAGS_SSE42 itself. From the original email: > cc -I/usr/local/include -I../../src/port -DFRONTEND -I../../src/include > -c -o pg_crc32c_sse42.o pg_crc32c_sse42.c > isn't this missing a number of important

Re: Compile error while building postgresql 10.3

2018-03-19 Thread Terry Phelps
I get the following, which appears to be what you were expecting. $ grep sse4 src/Makefile.global CFLAGS_SSE42 = -msse4.2 PG_CRC32C_OBJS = pg_crc32c_sse42.o pg_crc32c_sb8.o pg_crc32c_choose.o Gmake's version is: $ gmake --version GNU Make 4.2.1 Built for amd64-portbld-freebsd11.1 I installed th

Re: Compile error while building postgresql 10.3

2018-03-19 Thread Andres Freund
On 2018-03-19 15:50:10 -0400, Tom Lane wrote: > [ please keep the list cc'd ] > > Terry Phelps writes: > > I can barely read a configure.in file, but here's what I think you're > > asking for. If not, I'll try again: > > > configure:15453: checking for _mm_crc32_u8 and _mm_crc32_u32 with > > CFL

Re: Compile error while building postgresql 10.3

2018-03-19 Thread Tom Lane
[ please keep the list cc'd ] Terry Phelps writes: > I can barely read a configure.in file, but here's what I think you're > asking for. If not, I'll try again: > configure:15453: checking for _mm_crc32_u8 and _mm_crc32_u32 with > CFLAGS=-msse4.2 > configure:15475: cc -o conftest -Wall -Wmissing

Re: Compile error while building postgresql 10.3

2018-03-19 Thread Tom Lane
Terry Phelps writes: > Just for fun, I am trying to build postgres from source on FreeBSD 11. Yes, > I know I don't need to, and I have already installed the 10.3 server and > client packages, and they run fine. I did a 'git clone' today, and have > hours-old source code. FWIW, development-code i