pg.ddx.io pgvector/pgvector GitHub issues and pull requestshelp / color / mirror / Atom feed
[pgvector/pgvector] issue #22: Issues running `make` on `m1` 10+ messages / 5 participants [nested] [flat]
* [pgvector/pgvector] issue #22: Issues running `make` on `m1` @ 2022-01-11 16:25 "bramses (@bramses)" <noreply+bramses@github.com> 0 siblings, 0 replies; 10+ messages in thread From: bramses (@bramses) @ 2022-01-11 16:25 UTC (permalink / raw) To: pgvector/pgvector <noreply+pgvector-pgvector@github.com> Running `make`: ``` bram@Brams-MacBook-Air pgvector % make gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Werror=unguarded-availability-new -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument -mmacosx-version-min=10.12 -arch arm64 -arch x86_64 -march=native -ftree-vectorize -fassociative-math -fno-signed-zeros -fno-trapping-math -I. -I./ -I/Applications/Postgres.app/Contents/Versions/14/include/postgresql/server -I/Applications/Postgres.app/Contents/Versions/14/include/postgresql/internal -I/Applications/Postgres.app/Contents/Versions/14/share/icu -I/Applications/Postgres.app/Contents/Versions/14/include/libxml2 -I/Applications/Postgres.app/Contents/Versions/14/include -I/Applications/Postgres.app/Contents/Versions/14/include -c -o src/ivfbuild.o src/ivfbuild.c clang: error: the clang compiler does not support '-march=native' make: *** [src/ivfbuild.o] Error 1 ``` Running `make -mcpu=apple-m1` ``` bram@Brams-MacBook-Air pgvector % make install -mcpu=apple-m1 /Applications/Xcode.app/Contents/Developer/usr/bin/make: invalid option -- c /Applications/Xcode.app/Contents/Developer/usr/bin/make: invalid option -- u /Applications/Xcode.app/Contents/Developer/usr/bin/make: invalid option -- = /Applications/Xcode.app/Contents/Developer/usr/bin/make: invalid option -- a Usage: make [options] [target] ... ... This program built for i386-apple-darwin11.3.0 ... ``` ^ permalink raw [nested|flat] 10+ messages in thread
* Re: [pgvector/pgvector] issue #22: Issues running `make` on `m1` @ 2022-01-12 03:27 ` "ankane (@ankane)" <noreply+ankane@github.com> 8 siblings, 0 replies; 10+ messages in thread From: ankane (@ankane) @ 2022-01-12 03:27 UTC (permalink / raw) To: pgvector/pgvector <noreply+pgvector-pgvector@github.com> Hey @bramses, thanks for reporting! Try: ```sh make clean make OPTFLAGS="-mcpu=apple-m1" # or OPTFLAGS="-march=armv8-a" ``` ^ permalink raw [nested|flat] 10+ messages in thread
* Re: [pgvector/pgvector] issue #22: Issues running `make` on `m1` @ 2022-01-12 03:33 ` "bramses (@bramses)" <noreply+bramses@github.com> 8 siblings, 0 replies; 10+ messages in thread From: bramses (@bramses) @ 2022-01-12 03:33 UTC (permalink / raw) To: pgvector/pgvector <noreply+pgvector-pgvector@github.com> @bramses closed this. ^ permalink raw [nested|flat] 10+ messages in thread
* Re: [pgvector/pgvector] issue #22: Issues running `make` on `m1` @ 2022-01-12 03:33 ` "bramses (@bramses)" <noreply+bramses@github.com> 8 siblings, 0 replies; 10+ messages in thread From: bramses (@bramses) @ 2022-01-12 03:33 UTC (permalink / raw) To: pgvector/pgvector <noreply+pgvector-pgvector@github.com> @ankane that worked perfectly, thank you! ^ permalink raw [nested|flat] 10+ messages in thread
* Re: [pgvector/pgvector] issue #22: Issues running `make` on `m1` @ 2022-01-14 06:23 ` "ankane (@ankane)" <noreply+ankane@github.com> 8 siblings, 0 replies; 10+ messages in thread From: ankane (@ankane) @ 2022-01-14 06:23 UTC (permalink / raw) To: pgvector/pgvector <noreply+pgvector-pgvector@github.com> Hey @bramses, just pushed a fix. If you have a chance, please see if it compiles without `OPTFLAGS`: ```sh git clone https://github.com/ankane/pgvector.git cd pgvector make ``` ^ permalink raw [nested|flat] 10+ messages in thread
* Re: [pgvector/pgvector] issue #22: Issues running `make` on `m1` @ 2022-01-15 05:10 ` "bramses (@bramses)" <noreply+bramses@github.com> 8 siblings, 0 replies; 10+ messages in thread From: bramses (@bramses) @ 2022-01-15 05:10 UTC (permalink / raw) To: pgvector/pgvector <noreply+pgvector-pgvector@github.com> Seems to work!! ``` bram@Brams-MacBook-Air pgvector % make gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Werror=unguarded-availability-new -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument -mmacosx-version-min=10.12 -arch arm64 -arch x86_64 -ftree-vectorize -fassociative-math -fno-signed-zeros -fno-trapping-math -I. -I./ -I/Applications/Postgres.app/Contents/Versions/14/include/postgresql/server -I/Applications/Postgres.app/Contents/Versions/14/include/postgresql/internal -I/Applications/Postgres.app/Contents/Versions/14/share/icu -I/Applications/Postgres.app/Contents/Versions/14/include/libxml2 -I/Applications/Postgres.app/Contents/Versions/14/include -I/Applications/Postgres.app/Contents/Versions/14/include -c -o src/ivfbuild.o src/ivfbuild.c gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Werror=unguarded-availability-new -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument -mmacosx-version-min=10.12 -arch arm64 -arch x86_64 -ftree-vectorize -fassociative-math -fno-signed-zeros -fno-trapping-math -I. -I./ -I/Applications/Postgres.app/Contents/Versions/14/include/postgresql/server -I/Applications/Postgres.app/Contents/Versions/14/include/postgresql/internal -I/Applications/Postgres.app/Contents/Versions/14/share/icu -I/Applications/Postgres.app/Contents/Versions/14/include/libxml2 -I/Applications/Postgres.app/Contents/Versions/14/include -I/Applications/Postgres.app/Contents/Versions/14/include -c -o src/ivfflat.o src/ivfflat.c gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Werror=unguarded-availability-new -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument -mmacosx-version-min=10.12 -arch arm64 -arch x86_64 -ftree-vectorize -fassociative-math -fno-signed-zeros -fno-trapping-math -I. -I./ -I/Applications/Postgres.app/Contents/Versions/14/include/postgresql/server -I/Applications/Postgres.app/Contents/Versions/14/include/postgresql/internal -I/Applications/Postgres.app/Contents/Versions/14/share/icu -I/Applications/Postgres.app/Contents/Versions/14/include/libxml2 -I/Applications/Postgres.app/Contents/Versions/14/include -I/Applications/Postgres.app/Contents/Versions/14/include -c -o src/ivfinsert.o src/ivfinsert.c gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Werror=unguarded-availability-new -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument -mmacosx-version-min=10.12 -arch arm64 -arch x86_64 -ftree-vectorize -fassociative-math -fno-signed-zeros -fno-trapping-math -I. -I./ -I/Applications/Postgres.app/Contents/Versions/14/include/postgresql/server -I/Applications/Postgres.app/Contents/Versions/14/include/postgresql/internal -I/Applications/Postgres.app/Contents/Versions/14/share/icu -I/Applications/Postgres.app/Contents/Versions/14/include/libxml2 -I/Applications/Postgres.app/Contents/Versions/14/include -I/Applications/Postgres.app/Contents/Versions/14/include -c -o src/ivfkmeans.o src/ivfkmeans.c gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Werror=unguarded-availability-new -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument -mmacosx-version-min=10.12 -arch arm64 -arch x86_64 -ftree-vectorize -fassociative-math -fno-signed-zeros -fno-trapping-math -I. -I./ -I/Applications/Postgres.app/Contents/Versions/14/include/postgresql/server -I/Applications/Postgres.app/Contents/Versions/14/include/postgresql/internal -I/Applications/Postgres.app/Contents/Versions/14/share/icu -I/Applications/Postgres.app/Contents/Versions/14/include/libxml2 -I/Applications/Postgres.app/Contents/Versions/14/include -I/Applications/Postgres.app/Contents/Versions/14/include -c -o src/ivfscan.o src/ivfscan.c gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Werror=unguarded-availability-new -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument -mmacosx-version-min=10.12 -arch arm64 -arch x86_64 -ftree-vectorize -fassociative-math -fno-signed-zeros -fno-trapping-math -I. -I./ -I/Applications/Postgres.app/Contents/Versions/14/include/postgresql/server -I/Applications/Postgres.app/Contents/Versions/14/include/postgresql/internal -I/Applications/Postgres.app/Contents/Versions/14/share/icu -I/Applications/Postgres.app/Contents/Versions/14/include/libxml2 -I/Applications/Postgres.app/Contents/Versions/14/include -I/Applications/Postgres.app/Contents/Versions/14/include -c -o src/ivfutils.o src/ivfutils.c gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Werror=unguarded-availability-new -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument -mmacosx-version-min=10.12 -arch arm64 -arch x86_64 -ftree-vectorize -fassociative-math -fno-signed-zeros -fno-trapping-math -I. -I./ -I/Applications/Postgres.app/Contents/Versions/14/include/postgresql/server -I/Applications/Postgres.app/Contents/Versions/14/include/postgresql/internal -I/Applications/Postgres.app/Contents/Versions/14/share/icu -I/Applications/Postgres.app/Contents/Versions/14/include/libxml2 -I/Applications/Postgres.app/Contents/Versions/14/include -I/Applications/Postgres.app/Contents/Versions/14/include -c -o src/ivfvacuum.o src/ivfvacuum.c gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Werror=unguarded-availability-new -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument -mmacosx-version-min=10.12 -arch arm64 -arch x86_64 -ftree-vectorize -fassociative-math -fno-signed-zeros -fno-trapping-math -I. -I./ -I/Applications/Postgres.app/Contents/Versions/14/include/postgresql/server -I/Applications/Postgres.app/Contents/Versions/14/include/postgresql/internal -I/Applications/Postgres.app/Contents/Versions/14/share/icu -I/Applications/Postgres.app/Contents/Versions/14/include/libxml2 -I/Applications/Postgres.app/Contents/Versions/14/include -I/Applications/Postgres.app/Contents/Versions/14/include -c -o src/vector.o src/vector.c gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Werror=unguarded-availability-new -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument -mmacosx-version-min=10.12 -arch arm64 -arch x86_64 -ftree-vectorize -fassociative-math -fno-signed-zeros -fno-trapping-math -bundle -multiply_defined suppress -o vector.so src/ivfbuild.o src/ivfflat.o src/ivfinsert.o src/ivfkmeans.o src/ivfscan.o src/ivfutils.o src/ivfvacuum.o src/vector.o -L/Applications/Postgres.app/Contents/Versions/14/lib -L/Applications/Postgres.app/Contents/Versions/14/lib -L/Applications/Postgres.app/Contents/Versions/14/lib -L/Applications/Postgres.app/Contents/Versions/14/lib -Wl,-dead_strip_dylibs -bundle_loader /Applications/Postgres.app/Contents/Versions/14/bin/postgres cp sql/vector.sql sql/vector--0.2.1.sql (base) bram@Brams-MacBook-Air pgvector % make install /bin/sh /Applications/Postgres.app/Contents/Versions/14/lib/postgresql/pgxs/src/makefiles/../../config/install-sh -c -d '/Applications/Postgres.app/Contents/Versions/14/lib/postgresql' /bin/sh /Applications/Postgres.app/Contents/Versions/14/lib/postgresql/pgxs/src/makefiles/../../config/install-sh -c -d '/Applications/Postgres.app/Contents/Versions/14/share/postgresql/extension' /bin/sh /Applications/Postgres.app/Contents/Versions/14/lib/postgresql/pgxs/src/makefiles/../../config/install-sh -c -d '/Applications/Postgres.app/Contents/Versions/14/share/postgresql/extension' /usr/bin/install -c -m 755 vector.so '/Applications/Postgres.app/Contents/Versions/14/lib/postgresql/vector.so' /usr/bin/install -c -m 644 .//vector.control '/Applications/Postgres.app/Contents/Versions/14/share/postgresql/extension/' /usr/bin/install -c -m 644 .//sql/vector--0.1.0--0.1.1.sql .//sql/vector--0.1.1--0.1.3.sql .//sql/vector--0.1.3--0.1.4.sql .//sql/vector--0.1.4--0.1.5.sql .//sql/vector--0.1.5--0.1.6.sql .//sql/vector--0.1.6--0.1.7.sql .//sql/vector--0.1.7--0.1.8.sql .//sql/vector--0.1.8--0.2.0.sql .//sql/vector--0.2.0--0.2.1.sql .//sql/vector--0.2.1.sql '/Applications/Postgres.app/Contents/Versions/14/share/postgresql/extension/' ``` ^ permalink raw [nested|flat] 10+ messages in thread
* Re: [pgvector/pgvector] issue #22: Issues running `make` on `m1` @ 2022-01-15 19:28 ` "ankane (@ankane)" <noreply+ankane@github.com> 8 siblings, 0 replies; 10+ messages in thread From: ankane (@ankane) @ 2022-01-15 19:28 UTC (permalink / raw) To: pgvector/pgvector <noreply+pgvector-pgvector@github.com> Thanks @bramses! Just pushed a new release (0.2.2) with the fix. ^ permalink raw [nested|flat] 10+ messages in thread
* Re: [pgvector/pgvector] issue #22: Issues running `make` on `m1` @ 2024-07-08 19:54 ` "marstall (@marstall)" <noreply+marstall@github.com> 8 siblings, 0 replies; 10+ messages in thread From: marstall (@marstall) @ 2024-07-08 19:54 UTC (permalink / raw) To: pgvector/pgvector <noreply+pgvector-pgvector@github.com> using latest pgvector, on macos, i'm getting this from `make`: ``` ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [vector.so] Error 1 ``` any ideas? ^ permalink raw [nested|flat] 10+ messages in thread
* Re: [pgvector/pgvector] issue #22: Issues running `make` on `m1` @ 2024-08-10 11:50 ` "IshanRattan (@IshanRattan)" <noreply+IshanRattan@github.com> 8 siblings, 0 replies; 10+ messages in thread From: IshanRattan (@IshanRattan) @ 2024-08-10 11:50 UTC (permalink / raw) To: pgvector/pgvector <noreply+pgvector-pgvector@github.com> Hi, I'm getting this error after running make(Mac M3): ``` ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [vector.so] Error 1 ``` ^ permalink raw [nested|flat] 10+ messages in thread
* Re: [pgvector/pgvector] issue #22: Issues running `make` on `m1` @ 2024-11-12 07:52 ` "hjemmel (@hjemmel)" <noreply+hjemmel@github.com> 8 siblings, 0 replies; 10+ messages in thread From: hjemmel (@hjemmel) @ 2024-11-12 07:52 UTC (permalink / raw) To: pgvector/pgvector <noreply+pgvector-pgvector@github.com> Same here ^ permalink raw [nested|flat] 10+ messages in thread
end of thread, other threads:[~2024-11-12 07:52 UTC | newest] Thread overview: 10+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2022-01-11 16:25 [pgvector/pgvector] issue #22: Issues running `make` on `m1` "bramses (@bramses)" <noreply+bramses@github.com> 2022-01-12 03:27 ` "ankane (@ankane)" <noreply+ankane@github.com> 2022-01-12 03:33 ` "bramses (@bramses)" <noreply+bramses@github.com> 2022-01-12 03:33 ` "bramses (@bramses)" <noreply+bramses@github.com> 2022-01-14 06:23 ` "ankane (@ankane)" <noreply+ankane@github.com> 2022-01-15 05:10 ` "bramses (@bramses)" <noreply+bramses@github.com> 2022-01-15 19:28 ` "ankane (@ankane)" <noreply+ankane@github.com> 2024-07-08 19:54 ` "marstall (@marstall)" <noreply+marstall@github.com> 2024-08-10 11:50 ` "IshanRattan (@IshanRattan)" <noreply+IshanRattan@github.com> 2024-11-12 07:52 ` "hjemmel (@hjemmel)" <noreply+hjemmel@github.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox