Build (definition?) errors - in bootstrap

Started by Lou Piccianoover 11 years ago3 messageshackers
Jump to latest
#1Lou Picciano
loupicciano@comcast.net

Having just git pulled from orgin/master:

$ ./configure
$ make

Mileage:

...
make -C bootstrap all
make[3]: Entering directory `/path/to/postgresql/src/backend/bootstrap'
gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -I. -I. -I../../../src/include -c -o bootparse.o bootparse.c
bootparse.y: In function ‘boot_yyparse’:
bootparse.y:311:9: warning: passing argument 1 of ‘DefineIndex’ makes integer from pointer without a cast [enabled by default]
In file included from bootparse.y:37:0:
../../../src/include/commands/defrem.h:24:12: note: expected ‘Oid’ but argument is of type ‘struct IndexStmt *’
bootparse.y:311:9: warning: passing argument 2 of ‘DefineIndex’ makes pointer from integer without a cast [enabled by default]
In file included from bootparse.y:37:0:
../../../src/include/commands/defrem.h:24:12: note: expected ‘struct IndexStmt *’ but argument is of type ‘Oid’
bootparse.y:311:9: error: too few arguments to function ‘DefineIndex’
In file included from bootparse.y:37:0:
../../../src/include/commands/defrem.h:24:12: note: declared here
bootparse.y:346:9: warning: passing argument 1 of ‘DefineIndex’ makes integer from pointer without a cast [enabled by default]
In file included from bootparse.y:37:0:
../../../src/include/commands/defrem.h:24:12: note: expected ‘Oid’ but argument is of type ‘struct IndexStmt *’
bootparse.y:346:9: warning: passing argument 2 of ‘DefineIndex’ makes pointer from integer without a cast [enabled by default]
In file included from bootparse.y:37:0:
../../../src/include/commands/defrem.h:24:12: note: expected ‘struct IndexStmt *’ but argument is of type ‘Oid’
bootparse.y:346:9: error: too few arguments to function ‘DefineIndex’
In file included from bootparse.y:37:0:
../../../src/include/commands/defrem.h:24:12: note: declared here
make[3]: *** [bootparse.o] Error 1
make[3]: Leaving directory `/path/to/postgresql/src/backend/bootstrap'
make[2]: *** [bootstrap-recursive] Error 2
make[2]: Leaving directory `/path/to/postgresql/src/backend'
make[1]: *** [all-backend-recurse] Error 2
make[1]: Leaving directory `/path/to/postgresql/src'
make: *** [all-src-recurse] Error 2

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Lou Picciano (#1)
Re: Build (definition?) errors - in bootstrap

Lou Picciano <loupicciano@comcast.net> writes:

Having just git pulled from orgin/master:
$ ./configure
$ make
[ fails ]

The buildfarm doesn't seem unhappy, so I doubt there's anything wrong
with the code as such. Try "make clean" or even "make distclean" and
rebuild. Also, if your computer's clock is or was badly off, you may
have file timestamp skews breaking things ... in which case you might
need "make maintainer-clean". If it's still broken after that, you'd
be best advised to fix the clock and do a complete fresh "git clone".

regards, tom lane

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

#3Michael Paquier
michael@paquier.xyz
In reply to: Tom Lane (#2)
Re: Build (definition?) errors - in bootstrap

On Fri, Oct 10, 2014 at 8:11 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:

Lou Picciano <loupicciano@comcast.net> writes:

Having just git pulled from orgin/master:
$ ./configure
$ make
[ fails ]

The buildfarm doesn't seem unhappy, so I doubt there's anything wrong
with the code as such. Try "make clean" or even "make distclean" and
rebuild. Also, if your computer's clock is or was badly off, you may
have file timestamp skews breaking things ... in which case you might
need "make maintainer-clean". If it's still broken after that, you'd
be best advised to fix the clock and do a complete fresh "git clone".

Something more violent can as well be done:
git clean -dxf
This ensures that there are no other files than the ones of your git
repository, making your repository back to a "fresh" state.
Regards,
--
Michael

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers