Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make clean failure on Mac #35

Open
patty-chow opened this issue Jan 28, 2025 · 4 comments
Open

make clean failure on Mac #35

patty-chow opened this issue Jan 28, 2025 · 4 comments
Labels
bug Something isn't working

Comments

@patty-chow
Copy link
Contributor

patty-chow commented Jan 28, 2025

Describe the bug
make clean results in wrong data ownership error on MAC (Intel based)

Environment
Docker

  • Operating system and version - Intel Core i9 and Mac sequoia (v15)
  • PostgreSQL version - Postgres 16
  • Architecture -

Reproduction Steps
Steps to reproduce the behavior:
=> Followed step by step from ReadMe till step 5 followed by executing make clean

Expected behavior
A clear and concise description of what you expected to happen.

** Actual behavior **

make -C pg_documentdb_core check
make[1]: Entering directory '/home/documentdb/code/pg_documentdb_core '
Makefile:57: warning: overriding recipe for target 'check'
/usr/lib/postgresql/16/lib/pgxs/src/makefiles/pgxs.mk:449: warning: ignoring old recipe for target 'check'
make -C src/test all
make[2]: Entering directory '/home/documentdb/code/pg_documentdb_core /src/test'
make -C regress all
make[3]: Entering directory '/home/documentdb/code/pg_documentdb_core /src/test/regress'
/usr/lib/postgresql/16/lib/pgxs/src/makefiles/../../src/test/regress/pg_regress --encoding=UTF8 --dlpath=../../../ --load-extension=vector --load-extension=postgis --load-extension=pg_documentdb_core --temp-instance ./tmp --temp-config ./postgresql.conf --host localhost --port 58090 --schedule=./basic_schedule || (cat regression.diffs && false)
=> initdb failed

Examine "/home/documentdb/code/pg_documentdb_core /src/test/regress/log/initdb.log" for the reason.
Command was: "/usr/lib/postgresql/16/bin/initdb" -D "/home/documentdb/code/pg_documentdb_core /src/test/regress/tmp/data" --no-clean --no-sync > "/home/documentdb/code/pg_documentdb_core/src/test/regress/log/initdb.log" 2>&1
Bail out!make[3]: *** [Makefile:33: check-basic] Error 1
make[3]: Leaving directory '/home/documentdb/code/pg_documentdb_core /src/test/regress'
make[2]: *** [Makefile:4: check-regress] Error 2
make[2]: Leaving directory '/home/documentdb/code/pg_documentdb_core /src/test'
make[1]: *** [Makefile:57: check] Error 2
make[1]: Leaving directory '/home/documentdb/code/pg_documentdb_core '
make: *** [Makefile:15: check] Error 2

Additional context

@patty-chow patty-chow added the bug Something isn't working label Jan 28, 2025
@sivethe
Copy link
Collaborator

sivethe commented Jan 29, 2025

Isnt this the same issue as #23 ?

@safern
Copy link
Member

safern commented Jan 31, 2025

@patty-chow was this make clean or make check? clean would not even try to start the database at all.

@safern
Copy link
Member

safern commented Jan 31, 2025

Isnt this the same issue as #23 ?

I don't think it is, that one is a failure when trying to build the container image because we try to build PG on an AMD architecture and not supporting ARM at all. This error @patty-chow shared seems to be running make check on Intel based.

@amitprabhudesai
Copy link

@patty-chow Could you paste the ìnitdb` log as described by the command invocation?

=> initdb failed
Examine "/home/documentdb/code/pg_documentdb_core /src/test/regress/log/initdb.log" for the reason.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants