Thread: make check-world problem
Hi, PostgreSQL build failed with current GIT source. tail /home/src/postgresql-devel/dev-build/make-out-dev.log cp ../../../contrib/dummy_seclabel/dummy_seclabel.so dummy_seclabel.so rm -rf ./testtablespace mkdir ./testtablespace ../../../src/test/regress/pg_regress --inputdir=/home/src/postgresql-devel/postgresql-git/postgresql/src/test/regress --temp-install=./tmp_check --top-builddir=../../.. --dlpath=. --schedule=/home/src/postgresql-devel/postgresql-git/postgresql/src/test/regress/parallel_schedule pg_regress: could not open file "/home/src/postgresql-devel/postgresql-git/postgresql/src/test/regress/sql/security_label.sql" for writing: Permission denied make[2]: *** [check] Error 2 make[2]: Leaving directory `/home/src/postgresql-devel/dev-build/src/test/regress' make[1]: *** [check-regress-recurse] Error 2 make[1]: Leaving directory `/home/src/postgresql-devel/dev-build/src/test' make: *** [check-world-src/test-recurse] Error 2 My build environment: --------------------- dev-build.sh: #!/bin/bash set -v set -e POSTGRESQL=/home/src/postgresql-devel BUILD=dev-build cd $POSTGRESQL rm -rf $BUILD mkdir $BUILD chown postgres:postgres $BUILD cd $POSTGRESQL/$BUILD su -c "$POSTGRESQL/dev-build-postgres.sh" postgres exit 0 ---------------------- dev-build-postgres.sh: #!/bin/bash set -v set -e POSTGRESQL=/home/src/postgresql-devel BUILD=dev-build cd $POSTGRESQL/$BUILD export CFLAGS="-g3 -gdwarf-2" $POSTGRESQL/postgresql-git/postgresql/configure "--srcdir=$POSTGRESQL/postgresql-git/postgresql" '--enable-cassert' \ '--enable-nls' '--enable-integer-datetimes' '--with-perl' '--with-python' '--with-tcl' '--with-openssl' \ '--enable-thread-safety' '--with-ldap' '--with-gssapi' '--with-pam' '--with-libxml' '--with-libxslt' \ "--prefix=$POSTGRESQL/dev-install" > configure-out-dev.log 2>&1 make check-world > make-out-dev.log 2>&1 make installcheck-world > make-install-out-dev.log 2>&1 kdiff3 /home/src/pgadmin3-git/pgadmin3/pgadmin/pg_scanners/pg93/scan.l $POSTGRESQL/postgresql-git/postgresql/src/backend/parser/scan.l & kdiff3 /home/src/pgadmin3-git/pgadmin3/pgadmin/pg_scanners/pg93/src/backend/parser/93/parser/gram.h $POSTGRESQL/dev-install/include/server/parser/gram.h & exit 0 ------------------------------- Best regards Vladimir Kokovic DP senior
Vladimir Koković <vladimir.kokovic@a-asoft.com> writes: > PostgreSQL build failed with current GIT source. Works for me ... > pg_regress: could not open file > "/home/src/postgresql-devel/postgresql-git/postgresql/src/test/regress/sql/security_label.sql" > for writing: Permission denied > make[2]: *** [check] Error 2 Hmmm. Reading between the lines here, but are you attempting to do a VPATH build as a user that doesn't have write permission on the source tree? AFAIK that's never worked, and isn't expected to work, because architecture-independent derived files will be stored back into the source tree. regards, tom lane