ossc-db / pg_bulkload

High speed data loading utility for PostgreSQL
http://ossc-db.github.io/pg_bulkload/index.html
Other
433 stars 75 forks source link

Cannot Make #135

Open d4munche3z opened 1 year ago

d4munche3z commented 1 year ago

I encountered this issue when trying to install, if anyone can assist. Thank you!

Makefile:33: warning: overriding recipe for target 'check' C:/msys64/mingw64/lib/POSTGR~1/pgxs/src/MAKEFI~1/pgxs.mk:446: warning: ignoring old recipe for target 'check' make[1]: Entering directory '/f/Program Files/PostgreSQL/15/data/pg_bulkload-master/bin' gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -march=nocona -msahf -mtune=generic -O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -I../include -IC:/msys64/mingw64/include -I. -I./ -IC:/msys64/mingw64/include/POSTGR~1/server -IC:/msys64/mingw64/include/POSTGR~1/internal -ID:/a/msys64/mingw64/include -D__USE_MINGW_ANSI_STDIO=1 -I../postgresql-15.0/src/include/port/win32 -ID:/a/msys64/mingw64/include/libxml2 -ID:/a/msys64/mingw64/include -ID:/a/msys64/mingw64/include -IC:/msys64/mingw64/include/POSTGR~1/server/port/win32 -DWIN32_STACK_RLIMIT=4194304 -c -o recovery.o recovery.c In file included from recovery.c:1076: pg_bulkload_win32.c: In function 'TranslateSocketError': pg_bulkload_win32.c:91:33: error: 'EBADFD' undeclared (first use in this function); did you mean 'EBADF'? 91 | errno = EBADFD; | ^~ | EBADF pg_bulkload_win32.c:91:33: note: each undeclared identifier is reported only once for each function it appears in make[1]: [: recovery.o] Error 1 make[1]: Leaving directory '/f/Program Files/PostgreSQL/15/data/pg_bulkload-master/bin' make: [Makefile:27: all] Error 2

mikecaat commented 1 year ago

Sorry, we don't test if it works on windows now. Can you build on linux such as RHEL?

d4munche3z commented 1 year ago

Ah, thanks for the clarification. Maybe in the future, at the moment postgres is running on my windows PC.

Thanks for the advice

gauravhoskote commented 1 year ago

Hey I am running this on a mac. Still getting the below error:

===================================ERROR======================================== Makefile:33: warning: overriding commands for target check' /opt/homebrew/lib/postgresql@14/pgxs/src/makefiles/pgxs.mk:446: warning: ignoring old commands for targetcheck' clang -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Werror=unguarded-availability-new -Wendif-labels -Wmissing-format-attribute -Wcast-function-type -Wformat-security -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument -Wno-compound-token-split-by-macro -O2 -I../include -I/opt/homebrew/include/postgresql@14 -I. -I./ -I/opt/homebrew/include/postgresql@14/server -I/opt/homebrew/include/postgresql@14/internal -I/opt/homebrew/Cellar/icu4c/71.1/include -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -I/opt/homebrew/opt/openssl@1.1/include -I/opt/homebrew/opt/readline/include -I/opt/homebrew/Cellar/lz4/1.9.4/include -c -o pg_bulkload.o pg_bulkload.c clang -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Werror=unguarded-availability-new -Wendif-labels -Wmissing-format-attribute -Wcast-function-type -Wformat-security -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument -Wno-compound-token-split-by-macro -O2 -I../include -I/opt/homebrew/include/postgresql@14 -I. -I./ -I/opt/homebrew/include/postgresql@14/server -I/opt/homebrew/include/postgresql@14/internal -I/opt/homebrew/Cellar/icu4c/71.1/include -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -I/opt/homebrew/opt/openssl@1.1/include -I/opt/homebrew/opt/readline/include -I/opt/homebrew/Cellar/lz4/1.9.4/include -c -o recovery.o recovery.c clang -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Werror=unguarded-availability-new -Wendif-labels -Wmissing-format-attribute -Wcast-function-type -Wformat-security -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument -Wno-compound-token-split-by-macro -O2 -I../include -I/opt/homebrew/include/postgresql@14 -I. -I./ -I/opt/homebrew/include/postgresql@14/server -I/opt/homebrew/include/postgresql@14/internal -I/opt/homebrew/Cellar/icu4c/71.1/include -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -I/opt/homebrew/opt/openssl@1.1/include -I/opt/homebrew/opt/readline/include -I/opt/homebrew/Cellar/lz4/1.9.4/include -c -o pgut/pgut.o pgut/pgut.c clang -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Werror=unguarded-availability-new -Wendif-labels -Wmissing-format-attribute -Wcast-function-type -Wformat-security -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument -Wno-compound-token-split-by-macro -O2 -I../include -I/opt/homebrew/include/postgresql@14 -I. -I./ -I/opt/homebrew/include/postgresql@14/server -I/opt/homebrew/include/postgresql@14/internal -I/opt/homebrew/Cellar/icu4c/71.1/include -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -I/opt/homebrew/opt/openssl@1.1/include -I/opt/homebrew/opt/readline/include -I/opt/homebrew/Cellar/lz4/1.9.4/include -c -o pgut/pgut-fe.o pgut/pgut-fe.c clang -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Werror=unguarded-availability-new -Wendif-labels -Wmissing-format-attribute -Wcast-function-type -Wformat-security -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument -Wno-compound-token-split-by-macro -O2 -I../include -I/opt/homebrew/include/postgresql@14 -I. -I./ -I/opt/homebrew/include/postgresql@14/server -I/opt/homebrew/include/postgresql@14/internal -I/opt/homebrew/Cellar/icu4c/71.1/include -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -I/opt/homebrew/opt/openssl@1.1/include -I/opt/homebrew/opt/readline/include -I/opt/homebrew/Cellar/lz4/1.9.4/include -c -o pgut/pgut-list.o pgut/pgut-list.c clang -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Werror=unguarded-availability-new -Wendif-labels -Wmissing-format-attribute -Wcast-function-type -Wformat-security -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument -Wno-compound-token-split-by-macro -O2 pg_bulkload.o recovery.o pgut/pgut.o pgut/pgut-fe.o pgut/pgut-list.o -L/opt/homebrew/lib/postgresql@14 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -L/opt/homebrew/opt/openssl@1.1/lib -L/opt/homebrew/opt/readline/lib -L/opt/homebrew/Cellar/lz4/1.9.4/lib -Wl,-dead_strip_dylibs -Wl,--build-id -L/opt/homebrew/lib/postgresql@14 -lpq -L/opt/homebrew/lib/postgresql@14 -lpgcommon -lpgport -llz4 -lpam -lssl -lcrypto -lgssapi_krb5 -lz -lreadline -lm -o pg_bulkload ld: unknown option: --build-id clang: error: linker command failed with exit code 1 (use -v to see invocation) make[1]: [pg_bulkload] Error 1 make: [all] Error 2 ===================================ERROR========================================

Can you please help me.

mikecaat commented 1 year ago

Sorry, we don't support mac os now.