paradedb / pg_analytics

DuckDB-powered analytics for Postgres
https://paradedb.com
PostgreSQL License
383 stars 15 forks source link

Linking failed for pgrx_embed_pg_analytics on ppc64el #158

Closed tucnak closed 1 month ago

tucnak commented 1 month ago

What happens?

I'm unable to build pg_analytics standalone on Linux ppc64el as it fails to link pgrx_embed_pg_analytics.

The build log starting with successful pg_analytics compilation is as follows:

   Compiling pg_analytics v0.2.1 (/home/badt/src/pg_analytics)
    Finished `release` profile [optimized] target(s) in 4m 33s
  Installing extension
     Copying control file to target/release/pg_analytics-pg17/usr/local/pgsql/share/extension/pg_analytics.control
     Copying shared library to target/release/pg_analytics-pg17/usr/local/pgsql/lib/pg_analytics.so
  Discovered 31 SQL entities: 0 schemas (0 unique), 30 functions, 0 types, 0 enums, 1 sqls, 0 ords, 0 hashes, 0 aggregates, 0 triggers
  Rebuilding for SQL generation with features `pg17`
    Skipping git submodule `https://github.com/duckdb/duckdb` due to update strategy in .gitmodules
   Compiling pg_analytics v0.2.1 (/home/badt/src/pg_analytics)
error: linking with `cc` failed: exit status: 1
  |
  = note: LC_ALL="C" PATH="/usr/local/rust/lib/rustlib/powerpc64le-unknown-linux-gnu/bin:/usr/local/rust/lib/rustlib/powerpc64le-unknown-linux-gnu/bin:/usr/local/rust/lib/rustlib/powerpc64le-unknown-linux-gnu/bin:/home/badt/.cargo/bin:/home/badt/.go/bin:/home/badt/go/bin:/home/badt/bin:/usr/local/rust/bin:/usr/local/pgsql/bin:/usr/local/bin:/usr/bin:/bin:/usr/games" VSLANG="1033" "cc" "-m64" "/tmp/rustcZByF4h/symbols.o" "/home/badt/src/pg_analytics/target/release/deps/pgrx_embed_pg_analytics-de404f06f71fe086.pgrx_embed_pg_analytics.164042d68d4385ce-cgu.00.rcgu.o" "/home/badt/src/pg_analytics/target/release/deps/pgrx_embed_pg_analytics-de404f06f71fe086.pgrx_embed_pg_analytics.164042d68d4385ce-cgu.01.rcgu.o" "/home/badt/src/pg_analytics/target/release/deps/pgrx_embed_pg_analytics-de404f06f71fe086.pgrx_embed_pg_analytics.164042d68d4385ce-cgu.02.rcgu.o" "/home/badt/src/pg_analytics/target/release/deps/pgrx_embed_pg_analytics-de404f06f71fe086.pgrx_embed_pg_analytics.164042d68d4385ce-cgu.03.rcgu.o" "/home/badt/src/pg_analytics/target/release/deps/pgrx_embed_pg_analytics-de404f06f71fe086.pgrx_embed_pg_analytics.164042d68d4385ce-cgu.04.rcgu.o" "/home/badt/src/pg_analytics/target/release/deps/pgrx_embed_pg_analytics-de404f06f71fe086.pgrx_embed_pg_analytics.164042d68d4385ce-cgu.05.rcgu.o" "/home/badt/src/pg_analytics/target/release/deps/pgrx_embed_pg_analytics-de404f06f71fe086.pgrx_embed_pg_analytics.164042d68d4385ce-cgu.06.rcgu.o" "/home/badt/src/pg_analytics/target/release/deps/pgrx_embed_pg_analytics-de404f06f71fe086.pgrx_embed_pg_analytics.164042d68d4385ce-cgu.07.rcgu.o" "/home/badt/src/pg_analytics/target/release/deps/pgrx_embed_pg_analytics-de404f06f71fe086.pgrx_embed_pg_analytics.164042d68d4385ce-cgu.08.rcgu.o" "/home/badt/src/pg_analytics/target/release/deps/pgrx_embed_pg_analytics-de404f06f71fe086.pgrx_embed_pg_analytics.164042d68d4385ce-cgu.09.rcgu.o" "/home/badt/src/pg_analytics/target/release/deps/pgrx_embed_pg_analytics-de404f06f71fe086.pgrx_embed_pg_analytics.164042d68d4385ce-cgu.10.rcgu.o" "/home/badt/src/pg_analytics/target/release/deps/pgrx_embed_pg_analytics-de404f06f71fe086.pgrx_embed_pg_analytics.164042d68d4385ce-cgu.11.rcgu.o" "/home/badt/src/pg_analytics/target/release/deps/pgrx_embed_pg_analytics-de404f06f71fe086.pgrx_embed_pg_analytics.164042d68d4385ce-cgu.12.rcgu.o" "/home/badt/src/pg_analytics/target/release/deps/pgrx_embed_pg_analytics-de404f06f71fe086.pgrx_embed_pg_analytics.164042d68d4385ce-cgu.13.rcgu.o" "/home/badt/src/pg_analytics/target/release/deps/pgrx_embed_pg_analytics-de404f06f71fe086.pgrx_embed_pg_analytics.164042d68d4385ce-cgu.14.rcgu.o" "/home/badt/src/pg_analytics/target/release/deps/pgrx_embed_pg_analytics-de404f06f71fe086.pgrx_embed_pg_analytics.164042d68d4385ce-cgu.15.rcgu.o" "/home/badt/src/pg_analytics/target/release/deps/pgrx_embed_pg_analytics-de404f06f71fe086.eazp6kldio3t20toff1efwjyp.rcgu.o" "-Wl,--as-needed" "-L" "/home/badt/src/pg_analytics/target/release/deps" "-L" "/home/badt/src/pg_analytics/target/release/build/libduckdb-sys-50f3ce9ea68a0f54/out" "-L" "/home/badt/src/pg_analytics/target/release/build/pgrx-pg-sys-7714545b10b1a523/out" "-L" "/usr/local/rust/lib/rustlib/powerpc64le-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/home/badt/src/pg_analytics/target/release/deps/libpg_analytics.rlib" "/home/badt/src/pg_analytics/target/release/deps/libsqlparser-bd077d5e19a50bb3.rlib" "/home/badt/src/pg_analytics/target/release/deps/libasync_std-1034b24670eed352.rlib" "/home/badt/src/pg_analytics/target/release/deps/libasync_global_executor-30edd38aaecfeca0.rlib" "/home/badt/src/pg_analytics/target/release/deps/libblocking-351673ae59be7a9a.rlib" "/home/badt/src/pg_analytics/target/release/deps/libpiper-68f9ae14202212db.rlib" "/home/badt/src/pg_analytics/target/release/deps/libatomic_waker-40c00a09a50f3975.rlib" "/home/badt/src/pg_analytics/target/release/deps/libasync_channel-437d71665f615891.rlib" "/home/badt/src/pg_analytics/target/release/deps/libasync_executor-d01a351d0867145d.rlib" "/home/badt/src/pg_analytics/target/release/deps/libasync_task-28a854dec33114f8.rlib" "/home/badt/src/pg_analytics/target/release/deps/libasync_io-6072411999ed6e5c.rlib" "/home/badt/src/pg_analytics/target/release/deps/libslab-068bce62d26c3193.rlib" "/home/badt/src/pg_analytics/target/release/deps/libpolling-2c92787b21e44efe.rlib" "/home/badt/src/pg_analytics/target/release/deps/libtracing-61bec0c3e6b6154e.rlib" "/home/badt/src/pg_analytics/target/release/deps/libtracing_core-76b0627486cfd9a3.rlib" "/home/badt/src/pg_analytics/target/release/deps/librustix-aa039bbafdf0544e.rlib" "/home/badt/src/pg_analytics/target/release/deps/liblinux_raw_sys-027e36fe41b3dafc.rlib" "/home/badt/src/pg_analytics/target/release/deps/liberrno-5d7b65a60ffecb3a.rlib" "/home/badt/src/pg_analytics/target/release/deps/libfutures_lite-3ef6dfea270a14ae.rlib" "/home/badt/src/pg_analytics/target/release/deps/libfastrand-bdeb2b5f5dae59f6.rlib" "/home/badt/src/pg_analytics/target/release/deps/libfutures_io-3daecb2a0fbe0288.rlib" "/home/badt/src/pg_analytics/target/release/deps/libasync_channel-52894c9f4255ae06.rlib" "/home/badt/src/pg_analytics/target/release/deps/libevent_listener-2f095e214642a646.rlib" "/home/badt/src/pg_analytics/target/release/deps/libconcurrent_queue-6c4ffaa9cdab4a36.rlib" "/home/badt/src/pg_analytics/target/release/deps/libcrossbeam_utils-1775c6a1cf7230dc.rlib" "/home/badt/src/pg_analytics/target/release/deps/libasync_lock-4eb2db1569aad716.rlib" "/home/badt/src/pg_analytics/target/release/deps/libevent_listener_strategy-f431e0e9c8cd841d.rlib" "/home/badt/src/pg_analytics/target/release/deps/libevent_listener-eb9f8de2bb42869c.rlib" "/home/badt/src/pg_analytics/target/release/deps/libparking-6e23d5174e187060.rlib" "/home/badt/src/pg_analytics/target/release/deps/libfutures_core-92e34e57c006abcd.rlib" "/home/badt/src/pg_analytics/target/release/deps/libkv_log_macro-8a1151542dd551e5.rlib" "/home/badt/src/pg_analytics/target/release/deps/libsupabase_wrappers-7b6d0755fee9e88f.rlib" "/home/badt/src/pg_analytics/target/release/deps/libtokio-b44abc20fad4a2f4.rlib" "/home/badt/src/pg_analytics/target/release/deps/libsocket2-9eae7d4c2c8d9f9e.rlib" "/home/badt/src/pg_analytics/target/release/deps/libpin_project_lite-2f6e748c78696fd4.rlib" "/home/badt/src/pg_analytics/target/release/deps/libmio-d3fdbda018dc956f.rlib" "/home/badt/src/pg_analytics/target/release/deps/libsignal_hook-29906214b1c28427.rlib" "/home/badt/src/pg_analytics/target/release/deps/libsignal_hook_registry-4142d85144b89c39.rlib" "/home/badt/src/pg_analytics/target/release/deps/libduckdb-aeb4988ba348e651.rlib" "/home/badt/src/pg_analytics/target/release/deps/libsmallvec-3eef9a7aed7947cb.rlib" "/home/badt/src/pg_analytics/target/release/deps/libcalamine-1f6b69a448217c45.rlib" "/home/badt/src/pg_analytics/target/release/deps/libcodepage-7a7d5e40b2b6a379.rlib" "/home/badt/src/pg_analytics/target/release/deps/libzip-0cadce2dda9e2462.rlib" "/home/badt/src/pg_analytics/target/release/deps/libflate2-5cb4da0d40d04a7b.rlib" "/home/badt/src/pg_analytics/target/release/deps/libminiz_oxide-09c56f385afe5ad5.rlib" "/home/badt/src/pg_analytics/target/release/deps/libadler-3efb87fd69fa93d1.rlib" "/home/badt/src/pg_analytics/target/release/deps/libcrc32fast-5695e22e4ab72d1d.rlib" "/home/badt/src/pg_analytics/target/release/deps/libquick_xml-5b71678049c76424.rlib" "/home/badt/src/pg_analytics/target/release/deps/libencoding_rs-54f26096a8fa685d.rlib" "/home/badt/src/pg_analytics/target/release/deps/liblog-7e98ebc5940a2897.rlib" "/home/badt/src/pg_analytics/target/release/deps/libvalue_bag-58f3dc9edc400633.rlib" "/home/badt/src/pg_analytics/target/release/deps/librust_decimal-c53a41d90d04de57.rlib" "/home/badt/src/pg_analytics/target/release/deps/libarrayvec-058cd1df58c83efb.rlib" "/home/badt/src/pg_analytics/target/release/deps/libfallible_streaming_iterator-588787cf8e4b8692.rlib" "/home/badt/src/pg_analytics/target/release/deps/libfallible_iterator-ff9dadafde2a53dd.rlib" "/home/badt/src/pg_analytics/target/release/deps/libstrum-be5796ba4dbcf801.rlib" "/home/badt/src/pg_analytics/target/release/deps/libhashlink-d62fa66439625616.rlib" "/home/badt/src/pg_analytics/target/release/deps/libarrow-dd808793f9ebce07.rlib" "/home/badt/src/pg_analytics/target/release/deps/libarrow_row-2fd580c322a9f25c.rlib" "/home/badt/src/pg_analytics/target/release/deps/libarrow_string-52478199c9ce1c04.rlib" "/home/badt/src/pg_analytics/target/release/deps/libregex-35126845b11b7b2d.rlib" "/home/badt/src/pg_analytics/target/release/deps/libregex_automata-4d2ddb6c375a8cba.rlib" "/home/badt/src/pg_analytics/target/release/deps/libaho_corasick-e1d00ff907c47c48.rlib" "/home/badt/src/pg_analytics/target/release/deps/libregex_syntax-c43dbd6a637706d7.rlib" "/home/badt/src/pg_analytics/target/release/deps/libarrow_cast-3a151184bc2cb0cc.rlib" "/home/badt/src/pg_analytics/target/release/deps/libatoi-8ba869351c143727.rlib" "/home/badt/src/pg_analytics/target/release/deps/libbase64-e8544c2ede4194a7.rlib" "/home/badt/src/pg_analytics/target/release/deps/libcomfy_table-ef6b0cf3c74e42fa.rlib" "/home/badt/src/pg_analytics/target/release/deps/libunicode_width-f65f77b88d982076.rlib" "/home/badt/src/pg_analytics/target/release/deps/libstrum-542106c9b132aa95.rlib" "/home/badt/src/pg_analytics/target/release/deps/liblexical_core-5c1fb315c2db04ae.rlib" "/home/badt/src/pg_analytics/target/release/deps/liblexical_write_float-9b578f33a7e3e59d.rlib" "/home/badt/src/pg_analytics/target/release/deps/liblexical_write_integer-2db03a36e8ea349f.rlib" "/home/badt/src/pg_analytics/target/release/deps/liblexical_parse_float-99bfc1850fe8f095.rlib" "/home/badt/src/pg_analytics/target/release/deps/liblexical_parse_integer-fa4f2d8fae66f867.rlib" "/home/badt/src/pg_analytics/target/release/deps/liblexical_util-6231f23f2eed676d.rlib" "/home/badt/src/pg_analytics/target/release/deps/libstatic_assertions-53601a06afa93c08.rlib" "/home/badt/src/pg_analytics/target/release/deps/libarrow_arith-f87d62fe1cebfd5a.rlib" "/home/badt/src/pg_analytics/target/release/deps/libarrow_ord-1bcda7b69c0b0981.rlib" "/home/badt/src/pg_analytics/target/release/deps/libarrow_select-6cd418946bbe00df.rlib" "/home/badt/src/pg_analytics/target/release/deps/libarrow_array-b15acd63ab76579c.rlib" "/home/badt/src/pg_analytics/target/release/deps/libchrono_tz-e102f96a77878b2d.rlib" "/home/badt/src/pg_analytics/target/release/deps/libphf-bd9f32ed531514be.rlib" "/home/badt/src/pg_analytics/target/release/deps/libphf_shared-69505bff66840bde.rlib" "/home/badt/src/pg_analytics/target/release/deps/libsiphasher-db91e79eb78f63b5.rlib" "/home/badt/src/pg_analytics/target/release/deps/libchrono-3a87962aee40aa27.rlib" "/home/badt/src/pg_analytics/target/release/deps/libiana_time_zone-f796562b8aaba2df.rlib" "/home/badt/src/pg_analytics/target/release/deps/libarrow_data-916e8e2a537eb6b2.rlib" "/home/badt/src/pg_analytics/target/release/deps/libarrow_schema-a929bbd92c5fda34.rlib" "/home/badt/src/pg_analytics/target/release/deps/libarrow_buffer-95b176fde0afcccf.rlib" "/home/badt/src/pg_analytics/target/release/deps/libbytes-2b8dd5a212fc3588.rlib" "/home/badt/src/pg_analytics/target/release/deps/libhalf-7e7895ddcd9f65fd.rlib" "/home/badt/src/pg_analytics/target/release/deps/libnum-6510339df0aabe1e.rlib" "/home/badt/src/pg_analytics/target/release/deps/libnum_iter-4ac0a01aaa6fc901.rlib" "/home/badt/src/pg_analytics/target/release/deps/libnum_rational-11e4246a7495b9ad.rlib" "/home/badt/src/pg_analytics/target/release/deps/libnum_complex-f065b0ebb33a253a.rlib" "/home/badt/src/pg_analytics/target/release/deps/libnum_bigint-ffe0e0d6f5bd30b3.rlib" "/home/badt/src/pg_analytics/target/release/deps/libnum_integer-677e9eb85e1036ef.rlib" "/home/badt/src/pg_analytics/target/release/deps/libnum_traits-0b454d3efcbb09d0.rlib" "/home/badt/src/pg_analytics/target/release/deps/liblibduckdb_sys-123e56923fb918ba.rlib" "/home/badt/src/pg_analytics/target/release/deps/libcast-f61202e6e7b31ac5.rlib" "/home/badt/src/pg_analytics/target/release/deps/libanyhow-6893dbdcf989e99b.rlib" "/home/badt/src/pg_analytics/target/release/deps/libpgrx-3372ddcd59da22f4.rlib" "/home/badt/src/pg_analytics/target/release/deps/libheapless-2944d40773ff9010.rlib" "/home/badt/src/pg_analytics/target/release/deps/libhash32-2ce6ad453ad15207.rlib" "/home/badt/src/pg_analytics/target/release/deps/libbyteorder-248676f32199c6fb.rlib" "/home/badt/src/pg_analytics/target/release/deps/libseahash-ccc916434ab83fd5.rlib" "/home/badt/src/pg_analytics/target/release/deps/libserde_cbor-937f15f2d8697c45.rlib" "/home/badt/src/pg_analytics/target/release/deps/libhalf-a0b71b6217ef90ed.rlib" "/home/badt/src/pg_analytics/target/release/deps/libatomic_traits-d90f9c09a842a052.rlib" "/home/badt/src/pg_analytics/target/release/deps/libuuid-802e40f6df3423e7.rlib" "/home/badt/src/pg_analytics/target/release/deps/libserde_json-388259a44eb5ebd8.rlib" "/home/badt/src/pg_analytics/target/release/deps/libmemchr-8bf4898b9c22661e.rlib" "/home/badt/src/pg_analytics/target/release/deps/libitoa-38200c2d4d83836a.rlib" "/home/badt/src/pg_analytics/target/release/deps/libryu-5146c46035c2ab08.rlib" "/home/badt/src/pg_analytics/target/release/deps/libenum_map-0f481b5cd6fa1716.rlib" "/home/badt/src/pg_analytics/target/release/deps/libpgrx_pg_sys-2916d9fad329d1b5.rlib" "/home/badt/src/pg_analytics/target/release/deps/libsptr-dd94a14f3619ab0c.rlib" "/home/badt/src/pg_analytics/target/release/deps/libserde-0ac2f4eabb77f918.rlib" "/home/badt/src/pg_analytics/target/release/deps/libbitvec-d5777142ad6d46f3.rlib" "/home/badt/src/pg_analytics/target/release/deps/libwyz-92a567632718fe51.rlib" "/home/badt/src/pg_analytics/target/release/deps/libtap-0caf8dd750b0c26e.rlib" "/home/badt/src/pg_analytics/target/release/deps/libradium-3edd0e4eeee47f40.rlib" "/home/badt/src/pg_analytics/target/release/deps/libfunty-310b47b8e83d7813.rlib" "/home/badt/src/pg_analytics/target/release/deps/libpgrx_sql_entity_graph-c21957e0a570e9eb.rlib" "/home/badt/src/pg_analytics/target/release/deps/libunescape-87d6618fd39bb13f.rlib" "/home/badt/src/pg_analytics/target/release/deps/libpetgraph-74745ac0d8754a85.rlib" "/home/badt/src/pg_analytics/target/release/deps/libindexmap-95041b088f4f0329.rlib" "/home/badt/src/pg_analytics/target/release/deps/libequivalent-7064479418882d13.rlib" "/home/badt/src/pg_analytics/target/release/deps/libhashbrown-e23258046e75c5d8.rlib" "/home/badt/src/pg_analytics/target/release/deps/libahash-7b3d9537cb4d9deb.rlib" "/home/badt/src/pg_analytics/target/release/deps/libgetrandom-73f989d40188e35b.rlib" "/home/badt/src/pg_analytics/target/release/deps/liblibc-0fbbfdea6c33e097.rlib" "/home/badt/src/pg_analytics/target/release/deps/libcfg_if-b4607e383e332dac.rlib" "/home/badt/src/pg_analytics/target/release/deps/libzerocopy-e733ed5b15ade6a7.rlib" "/home/badt/src/pg_analytics/target/release/deps/liballocator_api2-1fe708706bbf2c3b.rlib" "/home/badt/src/pg_analytics/target/release/deps/libfixedbitset-52ce15b177173cd9.rlib" "/home/badt/src/pg_analytics/target/release/deps/libthiserror-59f7d522d2d60601.rlib" "/home/badt/src/pg_analytics/target/release/deps/libconvert_case-fbc5e538fc29abc6.rlib" "/home/badt/src/pg_analytics/target/release/deps/libunicode_segmentation-b706a5eb1762e97d.rlib" "/home/badt/src/pg_analytics/target/release/deps/libeyre-754d78605a7fb592.rlib" "/home/badt/src/pg_analytics/target/release/deps/libindenter-a689913e275ecadf.rlib" "/home/badt/src/pg_analytics/target/release/deps/libsyn-cab136184d8bfbc3.rlib" "/home/badt/src/pg_analytics/target/release/deps/libquote-6ab95c4121a3001d.rlib" "/home/badt/src/pg_analytics/target/release/deps/libproc_macro2-be98a7b94384b0ea.rlib" "/home/badt/src/pg_analytics/target/release/deps/libunicode_ident-8645a37ef7f744cf.rlib" "/usr/local/rust/lib/rustlib/powerpc64le-unknown-linux-gnu/lib/libproc_macro-e77036a2bda3ccd8.rlib" "/home/badt/src/pg_analytics/target/release/deps/libonce_cell-588526d9cada97ad.rlib" "/home/badt/src/pg_analytics/target/release/deps/libbitflags-b9de7bfc63c40c9d.rlib" "/usr/local/rust/lib/rustlib/powerpc64le-unknown-linux-gnu/lib/libstd-013c80f878e8cdb7.rlib" "/usr/local/rust/lib/rustlib/powerpc64le-unknown-linux-gnu/lib/libpanic_unwind-b8a46484d47a499c.rlib" "/usr/local/rust/lib/rustlib/powerpc64le-unknown-linux-gnu/lib/libobject-75a8887605c83991.rlib" "/usr/local/rust/lib/rustlib/powerpc64le-unknown-linux-gnu/lib/libmemchr-32075d180129c3a5.rlib" "/usr/local/rust/lib/rustlib/powerpc64le-unknown-linux-gnu/lib/libaddr2line-a0c0ea60625330d0.rlib" "/usr/local/rust/lib/rustlib/powerpc64le-unknown-linux-gnu/lib/libgimli-04d17d8547a6daa0.rlib" "/usr/local/rust/lib/rustlib/powerpc64le-unknown-linux-gnu/lib/librustc_demangle-94c94824917957cc.rlib" "/usr/local/rust/lib/rustlib/powerpc64le-unknown-linux-gnu/lib/libstd_detect-eda7b50916d20e22.rlib" "/usr/local/rust/lib/rustlib/powerpc64le-unknown-linux-gnu/lib/libhashbrown-c9aaf001273c8473.rlib" "/usr/local/rust/lib/rustlib/powerpc64le-unknown-linux-gnu/lib/librustc_std_workspace_alloc-239f32d1668881b3.rlib" "/usr/local/rust/lib/rustlib/powerpc64le-unknown-linux-gnu/lib/libminiz_oxide-5b9c049cac309c3b.rlib" "/usr/local/rust/lib/rustlib/powerpc64le-unknown-linux-gnu/lib/libadler-5e8a8fe38b3c0175.rlib" "/usr/local/rust/lib/rustlib/powerpc64le-unknown-linux-gnu/lib/libunwind-2a5be550fb8756e8.rlib" "/usr/local/rust/lib/rustlib/powerpc64le-unknown-linux-gnu/lib/libcfg_if-1586b65554738dab.rlib" "/usr/local/rust/lib/rustlib/powerpc64le-unknown-linux-gnu/lib/liblibc-555a53ae29895b6b.rlib" "/usr/local/rust/lib/rustlib/powerpc64le-unknown-linux-gnu/lib/liballoc-7a5c6d49a4c5501e.rlib" "/usr/local/rust/lib/rustlib/powerpc64le-unknown-linux-gnu/lib/librustc_std_workspace_core-44a01f6c1d6556a5.rlib" "/usr/local/rust/lib/rustlib/powerpc64le-unknown-linux-gnu/lib/libcore-9d9bba80d9bde470.rlib" "/usr/local/rust/lib/rustlib/powerpc64le-unknown-linux-gnu/lib/libcompiler_builtins-6bfd94ce73b7199e.rlib" "-Wl,-Bdynamic" "-lssl" "-lcrypto" "-lstdc++" "-lresolv" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/usr/local/rust/lib/rustlib/powerpc64le-unknown-linux-gnu/lib" "-o" "/home/badt/src/pg_analytics/target/release/deps/pgrx_embed_pg_analytics-de404f06f71fe086" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-Wl,-O1" "-Wl,--strip-debug" "-nodefaultlibs"
  = note: /usr/bin/ld: /home/badt/src/pg_analytics/target/release/deps/libpgrx_pg_sys-2916d9fad329d1b5.rlib(pgrx_pg_sys-2916d9fad329d1b5.pgrx_pg_sys.7344014bdfbcb7e9-cgu.3.rcgu.o):(.toc+0x0): undefined reference to `CurrentMemoryContext'
          /usr/bin/ld: /home/badt/src/pg_analytics/target/release/deps/libpgrx_pg_sys-2916d9fad329d1b5.rlib(pgrx_pg_sys-2916d9fad329d1b5.pgrx_pg_sys.7344014bdfbcb7e9-cgu.3.rcgu.o):(.toc+0x8): undefined reference to `PG_exception_stack'
          /usr/bin/ld: /home/badt/src/pg_analytics/target/release/deps/libpgrx_pg_sys-2916d9fad329d1b5.rlib(pgrx_pg_sys-2916d9fad329d1b5.pgrx_pg_sys.7344014bdfbcb7e9-cgu.3.rcgu.o):(.toc+0x10): undefined reference to `error_context_stack'
          /usr/bin/ld: /home/badt/src/pg_analytics/target/release/deps/libsupabase_wrappers-7b6d0755fee9e88f.rlib(supabase_wrappers-7b6d0755fee9e88f.supabase_wrappers.fe53d4ce476a0e81-cgu.06.rcgu.o):(.toc+0x0): undefined reference to `CurrentMemoryContext'
          /usr/bin/ld: /home/badt/src/pg_analytics/target/release/deps/libsupabase_wrappers-7b6d0755fee9e88f.rlib(supabase_wrappers-7b6d0755fee9e88f.supabase_wrappers.fe53d4ce476a0e81-cgu.06.rcgu.o):(.toc+0x8): undefined reference to `PG_exception_stack'
          /usr/bin/ld: /home/badt/src/pg_analytics/target/release/deps/libsupabase_wrappers-7b6d0755fee9e88f.rlib(supabase_wrappers-7b6d0755fee9e88f.supabase_wrappers.fe53d4ce476a0e81-cgu.06.rcgu.o):(.toc+0x10): undefined reference to `error_context_stack'
          /usr/bin/ld: /home/badt/src/pg_analytics/target/release/deps/libsupabase_wrappers-7b6d0755fee9e88f.rlib(supabase_wrappers-7b6d0755fee9e88f.supabase_wrappers.fe53d4ce476a0e81-cgu.09.rcgu.o): in function `pgrx_pg_sys::submodules::ffi::cee_scape::call_with_sigsetjmp::call_from_c_to_rust':
          supabase_wrappers.fe53d4ce476a0e81-cgu.09:(.text._ZN11pgrx_pg_sys10submodules3ffi9cee_scape19call_with_sigsetjmp19call_from_c_to_rust17h4248e951731a46f7E+0x44): undefined reference to `makeVar'
          /usr/bin/ld: /home/badt/src/pg_analytics/target/release/deps/libsupabase_wrappers-7b6d0755fee9e88f.rlib(supabase_wrappers-7b6d0755fee9e88f.supabase_wrappers.fe53d4ce476a0e81-cgu.09.rcgu.o): in function `pgrx_pg_sys::submodules::ffi::cee_scape::call_with_sigsetjmp::call_from_c_to_rust':
          supabase_wrappers.fe53d4ce476a0e81-cgu.09:(.text._ZN11pgrx_pg_sys10submodules3ffi9cee_scape19call_with_sigsetjmp19call_from_c_to_rust17h6075f278ebb1e374E+0x38): undefined reference to `add_row_identity_var'
          /usr/bin/ld: /home/badt/src/pg_analytics/target/release/deps/libsupabase_wrappers-7b6d0755fee9e88f.rlib(supabase_wrappers-7b6d0755fee9e88f.supabase_wrappers.fe53d4ce476a0e81-cgu.09.rcgu.o): in function `pgrx_pg_sys::submodules::ffi::cee_scape::call_with_sigsetjmp::call_from_c_to_rust':
          supabase_wrappers.fe53d4ce476a0e81-cgu.09:(.text._ZN11pgrx_pg_sys10submodules3ffi9cee_scape19call_with_sigsetjmp19call_from_c_to_rust17h6ccfcc948953e3cbE+0x30): undefined reference to `defGetString'
          /usr/bin/ld: /home/badt/src/pg_analytics/target/release/deps/libsupabase_wrappers-7b6d0755fee9e88f.rlib(supabase_wrappers-7b6d0755fee9e88f.supabase_wrappers.fe53d4ce476a0e81-cgu.09.rcgu.o): in function `pgrx_pg_sys::submodules::ffi::cee_scape::call_with_sigsetjmp::call_from_c_to_rust':
          supabase_wrappers.fe53d4ce476a0e81-cgu.09:(.text._ZN11pgrx_pg_sys10submodules3ffi9cee_scape19call_with_sigsetjmp19call_from_c_to_rust17hddac1f236550c114E+0x28): undefined reference to `FreeErrorData'
          /usr/bin/ld: /home/badt/src/pg_analytics/target/release/deps/libsupabase_wrappers-7b6d0755fee9e88f.rlib(supabase_wrappers-7b6d0755fee9e88f.supabase_wrappers.fe53d4ce476a0e81-cgu.09.rcgu.o): in function `pgrx_pg_sys::submodules::ffi::cee_scape::call_with_sigsetjmp::call_from_c_to_rust':
          supabase_wrappers.fe53d4ce476a0e81-cgu.09:(.text._ZN11pgrx_pg_sys10submodules3ffi9cee_scape19call_with_sigsetjmp19call_from_c_to_rust17he9894bdea4e2299cE+0x28): undefined reference to `list_free'
          /usr/bin/ld: /home/badt/src/pg_analytics/target/release/deps/libsupabase_wrappers-7b6d0755fee9e88f.rlib(supabase_wrappers-7b6d0755fee9e88f.supabase_wrappers.fe53d4ce476a0e81-cgu.09.rcgu.o): in function `pgrx_pg_sys::submodules::ffi::cee_scape::call_with_sigsetjmp::call_from_c_to_rust':
          supabase_wrappers.fe53d4ce476a0e81-cgu.09:(.text._ZN11pgrx_pg_sys10submodules3ffi9cee_scape19call_with_sigsetjmp19call_from_c_to_rust17hf4b4ddf0691cc02fE+0x30): undefined reference to `GetForeignTable'
          /usr/bin/ld: /home/badt/src/pg_analytics/target/release/deps/libsupabase_wrappers-7b6d0755fee9e88f.rlib(supabase_wrappers-7b6d0755fee9e88f.supabase_wrappers.fe53d4ce476a0e81-cgu.09.rcgu.o): in function `pgrx_pg_sys::submodules::ffi::cee_scape::call_with_sigsetjmp::call_from_c_to_rust':
          supabase_wrappers.fe53d4ce476a0e81-cgu.09:(.text._ZN11pgrx_pg_sys10submodules3ffi9cee_scape19call_with_sigsetjmp19call_from_c_to_rust17hff634bbf9682bafdE+0x28): undefined reference to `CopyErrorData'
          /usr/bin/ld: /home/badt/src/pg_analytics/target/release/deps/libsupabase_wrappers-7b6d0755fee9e88f.rlib(supabase_wrappers-7b6d0755fee9e88f.supabase_wrappers.fe53d4ce476a0e81-cgu.09.rcgu.o):(.toc+0x0): undefined reference to `PG_exception_stack'
          /usr/bin/ld: /home/badt/src/pg_analytics/target/release/deps/libsupabase_wrappers-7b6d0755fee9e88f.rlib(supabase_wrappers-7b6d0755fee9e88f.supabase_wrappers.fe53d4ce476a0e81-cgu.10.rcgu.o): in function `supabase_wrappers::modify::add_foreign_update_targets':
          supabase_wrappers.fe53d4ce476a0e81-cgu.10:(.text._ZN17supabase_wrappers6modify26add_foreign_update_targets17h05f8197a25febf03E+0x88): undefined reference to `pg_re_throw'
          /usr/bin/ld: /home/badt/src/pg_analytics/target/release/deps/libsupabase_wrappers-7b6d0755fee9e88f.rlib(supabase_wrappers-7b6d0755fee9e88f.supabase_wrappers.fe53d4ce476a0e81-cgu.10.rcgu.o):(.toc+0x0): undefined reference to `CurrentMemoryContext'
          /usr/bin/ld: /home/badt/src/pg_analytics/target/release/deps/libsupabase_wrappers-7b6d0755fee9e88f.rlib(supabase_wrappers-7b6d0755fee9e88f.supabase_wrappers.fe53d4ce476a0e81-cgu.10.rcgu.o):(.toc+0x8): undefined reference to `PG_exception_stack'
          /usr/bin/ld: /home/badt/src/pg_analytics/target/release/deps/libsupabase_wrappers-7b6d0755fee9e88f.rlib(supabase_wrappers-7b6d0755fee9e88f.supabase_wrappers.fe53d4ce476a0e81-cgu.10.rcgu.o):(.toc+0x10): undefined reference to `error_context_stack'
          /usr/bin/ld: /home/badt/src/pg_analytics/target/release/deps/libsupabase_wrappers-7b6d0755fee9e88f.rlib(supabase_wrappers-7b6d0755fee9e88f.supabase_wrappers.fe53d4ce476a0e81-cgu.10.rcgu.o):(.toc+0x18): undefined reference to `ErrorContext'
          /usr/bin/ld: /home/badt/src/pg_analytics/target/release/deps/libsupabase_wrappers-7b6d0755fee9e88f.rlib(supabase_wrappers-7b6d0755fee9e88f.supabase_wrappers.fe53d4ce476a0e81-cgu.12.rcgu.o):(.toc+0x0): undefined reference to `CurrentMemoryContext'
          /usr/bin/ld: /home/badt/src/pg_analytics/target/release/deps/libsupabase_wrappers-7b6d0755fee9e88f.rlib(supabase_wrappers-7b6d0755fee9e88f.supabase_wrappers.fe53d4ce476a0e81-cgu.12.rcgu.o):(.toc+0x8): undefined reference to `PG_exception_stack'
          /usr/bin/ld: /home/badt/src/pg_analytics/target/release/deps/libsupabase_wrappers-7b6d0755fee9e88f.rlib(supabase_wrappers-7b6d0755fee9e88f.supabase_wrappers.fe53d4ce476a0e81-cgu.12.rcgu.o):(.toc+0x10): undefined reference to `error_context_stack'
          /usr/bin/ld: /home/badt/src/pg_analytics/target/release/deps/libpgrx-3372ddcd59da22f4.rlib(pgrx-3372ddcd59da22f4.pgrx.fbf9baa61d8e3c87-cgu.05.rcgu.o):(.toc+0x0): undefined reference to `CurrentMemoryContext'
          /usr/bin/ld: /home/badt/src/pg_analytics/target/release/deps/libpgrx-3372ddcd59da22f4.rlib(pgrx-3372ddcd59da22f4.pgrx.fbf9baa61d8e3c87-cgu.05.rcgu.o):(.toc+0x8): undefined reference to `PG_exception_stack'
          /usr/bin/ld: /home/badt/src/pg_analytics/target/release/deps/libpgrx-3372ddcd59da22f4.rlib(pgrx-3372ddcd59da22f4.pgrx.fbf9baa61d8e3c87-cgu.05.rcgu.o):(.toc+0x10): undefined reference to `error_context_stack'
          /usr/bin/ld: /home/badt/src/pg_analytics/target/release/deps/libpgrx-3372ddcd59da22f4.rlib(pgrx-3372ddcd59da22f4.pgrx.fbf9baa61d8e3c87-cgu.07.rcgu.o): in function `pgrx_pg_sys::submodules::ffi::cee_scape::call_with_sigsetjmp::call_from_c_to_rust':
          pgrx.fbf9baa61d8e3c87-cgu.07:(.text._ZN11pgrx_pg_sys10submodules3ffi9cee_scape19call_with_sigsetjmp19call_from_c_to_rust17h192ae63127902eb5E+0x30): undefined reference to `CreateTupleDescCopyConstr'
          /usr/bin/ld: /home/badt/src/pg_analytics/target/release/deps/libpgrx-3372ddcd59da22f4.rlib(pgrx-3372ddcd59da22f4.pgrx.fbf9baa61d8e3c87-cgu.07.rcgu.o): in function `pgrx_pg_sys::submodules::ffi::cee_scape::call_with_sigsetjmp::call_from_c_to_rust':
          pgrx.fbf9baa61d8e3c87-cgu.07:(.text._ZN11pgrx_pg_sys10submodules3ffi9cee_scape19call_with_sigsetjmp19call_from_c_to_rust17h54dbe786fdfb8b52E+0x28): undefined reference to `DecrTupleDescRefCount'
          /usr/bin/ld: /home/badt/src/pg_analytics/target/release/deps/libpgrx-3372ddcd59da22f4.rlib(pgrx-3372ddcd59da22f4.pgrx.fbf9baa61d8e3c87-cgu.07.rcgu.o): in function `pgrx_pg_sys::submodules::ffi::cee_scape::call_with_sigsetjmp::call_from_c_to_rust':
          pgrx.fbf9baa61d8e3c87-cgu.07:(.text._ZN11pgrx_pg_sys10submodules3ffi9cee_scape19call_with_sigsetjmp19call_from_c_to_rust17h5feda5141c992864E+0x28): undefined reference to `CopyErrorData'
          /usr/bin/ld: /home/badt/src/pg_analytics/target/release/deps/libpgrx-3372ddcd59da22f4.rlib(pgrx-3372ddcd59da22f4.pgrx.fbf9baa61d8e3c87-cgu.07.rcgu.o): in function `pgrx_pg_sys::submodules::ffi::cee_scape::call_with_sigsetjmp::call_from_c_to_rust':
          pgrx.fbf9baa61d8e3c87-cgu.07:(.text._ZN11pgrx_pg_sys10submodules3ffi9cee_scape19call_with_sigsetjmp19call_from_c_to_rust17h721f6c1346affef7E+0x28): undefined reference to `FreeErrorData'
          /usr/bin/ld: /home/badt/src/pg_analytics/target/release/deps/libpgrx-3372ddcd59da22f4.rlib(pgrx-3372ddcd59da22f4.pgrx.fbf9baa61d8e3c87-cgu.07.rcgu.o): in function `pgrx_pg_sys::submodules::ffi::cee_scape::call_with_sigsetjmp::call_from_c_to_rust':
          pgrx.fbf9baa61d8e3c87-cgu.07:(.text._ZN11pgrx_pg_sys10submodules3ffi9cee_scape19call_with_sigsetjmp19call_from_c_to_rust17h97ac6c30e1b62834E+0x28): undefined reference to `pfree'
          /usr/bin/ld: /home/badt/src/pg_analytics/target/release/deps/libpgrx-3372ddcd59da22f4.rlib(pgrx-3372ddcd59da22f4.pgrx.fbf9baa61d8e3c87-cgu.07.rcgu.o):(.toc+0x0): undefined reference to `PG_exception_stack'
          /usr/bin/ld: /home/badt/src/pg_analytics/target/release/deps/libpgrx_pg_sys-2916d9fad329d1b5.rlib(pgrx_pg_sys-2916d9fad329d1b5.pgrx_pg_sys.7344014bdfbcb7e9-cgu.1.rcgu.o): in function `pgrx_pg_sys::submodules::panic::do_ereport':
          pgrx_pg_sys.7344014bdfbcb7e9-cgu.1:(.text._ZN11pgrx_pg_sys10submodules5panic10do_ereport17h4e489b7484625ed9E+0x80): undefined reference to `errstart'
          /usr/bin/ld: pgrx_pg_sys.7344014bdfbcb7e9-cgu.1:(.text._ZN11pgrx_pg_sys10submodules5panic10do_ereport17h4e489b7484625ed9E+0x1a8): undefined reference to `errcode'
          /usr/bin/ld: pgrx_pg_sys.7344014bdfbcb7e9-cgu.1:(.text._ZN11pgrx_pg_sys10submodules5panic10do_ereport17h4e489b7484625ed9E+0x1c8): undefined reference to `errmsg'
          /usr/bin/ld: pgrx_pg_sys.7344014bdfbcb7e9-cgu.1:(.text._ZN11pgrx_pg_sys10submodules5panic10do_ereport17h4e489b7484625ed9E+0x248): undefined reference to `errdetail'
          /usr/bin/ld: pgrx_pg_sys.7344014bdfbcb7e9-cgu.1:(.text._ZN11pgrx_pg_sys10submodules5panic10do_ereport17h4e489b7484625ed9E+0x2c8): undefined reference to `errhint'
          /usr/bin/ld: pgrx_pg_sys.7344014bdfbcb7e9-cgu.1:(.text._ZN11pgrx_pg_sys10submodules5panic10do_ereport17h4e489b7484625ed9E+0x340): undefined reference to `errfinish'
          /usr/bin/ld: /home/badt/src/pg_analytics/target/release/deps/libpgrx_pg_sys-2916d9fad329d1b5.rlib(pgrx_pg_sys-2916d9fad329d1b5.pgrx_pg_sys.7344014bdfbcb7e9-cgu.1.rcgu.o):(.toc+0x0): undefined reference to `CurrentMemoryContext'
          /usr/bin/ld: /home/badt/src/pg_analytics/target/release/deps/libpgrx_pg_sys-2916d9fad329d1b5.rlib(pgrx_pg_sys-2916d9fad329d1b5.pgrx_pg_sys.7344014bdfbcb7e9-cgu.1.rcgu.o):(.toc+0x8): undefined reference to `PG_exception_stack'
          /usr/bin/ld: /home/badt/src/pg_analytics/target/release/deps/libpgrx_pg_sys-2916d9fad329d1b5.rlib(pgrx_pg_sys-2916d9fad329d1b5.pgrx_pg_sys.7344014bdfbcb7e9-cgu.1.rcgu.o):(.toc+0x10): undefined reference to `error_context_stack'
          /usr/bin/ld: /home/badt/src/pg_analytics/target/release/deps/libpgrx_pg_sys-2916d9fad329d1b5.rlib(pgrx_pg_sys-2916d9fad329d1b5.pgrx_pg_sys.7344014bdfbcb7e9-cgu.1.rcgu.o):(.toc+0x18): undefined reference to `ErrorContext'
          /usr/bin/ld: /home/badt/src/pg_analytics/target/release/deps/libpgrx_pg_sys-2916d9fad329d1b5.rlib(pgrx_pg_sys-2916d9fad329d1b5.pgrx_pg_sys.7344014bdfbcb7e9-cgu.4.rcgu.o): in function `pgrx_pg_sys::submodules::ffi::cee_scape::call_with_sigsetjmp::call_from_c_to_rust':
          pgrx_pg_sys.7344014bdfbcb7e9-cgu.4:(.text._ZN11pgrx_pg_sys10submodules3ffi9cee_scape19call_with_sigsetjmp19call_from_c_to_rust17h3e1e8d24c5045e3bE+0x28): undefined reference to `pfree'
          /usr/bin/ld: /home/badt/src/pg_analytics/target/release/deps/libpgrx_pg_sys-2916d9fad329d1b5.rlib(pgrx_pg_sys-2916d9fad329d1b5.pgrx_pg_sys.7344014bdfbcb7e9-cgu.4.rcgu.o): in function `pgrx_pg_sys::submodules::ffi::cee_scape::call_with_sigsetjmp::call_from_c_to_rust':
          pgrx_pg_sys.7344014bdfbcb7e9-cgu.4:(.text._ZN11pgrx_pg_sys10submodules3ffi9cee_scape19call_with_sigsetjmp19call_from_c_to_rust17h41063c2f7a4bbb3aE+0x28): undefined reference to `FreeErrorData'
          /usr/bin/ld: /home/badt/src/pg_analytics/target/release/deps/libpgrx_pg_sys-2916d9fad329d1b5.rlib(pgrx_pg_sys-2916d9fad329d1b5.pgrx_pg_sys.7344014bdfbcb7e9-cgu.4.rcgu.o): in function `pgrx_pg_sys::submodules::ffi::cee_scape::call_with_sigsetjmp::call_from_c_to_rust':
          pgrx_pg_sys.7344014bdfbcb7e9-cgu.4:(.text._ZN11pgrx_pg_sys10submodules3ffi9cee_scape19call_with_sigsetjmp19call_from_c_to_rust17h6c2cf622a3a6d03cE+0x28): undefined reference to `CopyErrorData'
          /usr/bin/ld: /home/badt/src/pg_analytics/target/release/deps/libpgrx_pg_sys-2916d9fad329d1b5.rlib(pgrx_pg_sys-2916d9fad329d1b5.pgrx_pg_sys.7344014bdfbcb7e9-cgu.4.rcgu.o): in function `pgrx_pg_sys::submodules::ffi::cee_scape::call_with_sigsetjmp::call_from_c_to_rust':
          pgrx_pg_sys.7344014bdfbcb7e9-cgu.4:(.text._ZN11pgrx_pg_sys10submodules3ffi9cee_scape19call_with_sigsetjmp19call_from_c_to_rust17hcfa2d9f335ad8e74E+0x30): undefined reference to `palloc0'
          /usr/bin/ld: /home/badt/src/pg_analytics/target/release/deps/libpgrx_pg_sys-2916d9fad329d1b5.rlib(pgrx_pg_sys-2916d9fad329d1b5.pgrx_pg_sys.7344014bdfbcb7e9-cgu.4.rcgu.o):(.toc+0x0): undefined reference to `PG_exception_stack'
          collect2: error: ld returned 1 exit status

  = note: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified
  = note: use the `-l` flag to specify native libraries to link
  = note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#rustc-link-lib)

error: could not compile `pg_analytics` (bin "pgrx_embed_pg_analytics") due to 1 previous error

To Reproduce

I'm using a Postgres 17 and Rust 1.81.0 nightly from the official distribution, & building pg_analytics from HEAD.

$ rustc --version
rustc 1.81.0 (eeb90cda1 2024-09-04)

OS:

Linux ppc64el

ParadeDB Version:

HEAD

Are you using ParadeDB Docker, Helm, or the extension(s) standalone?

ParadeDB pg_analytics Extension

Full Name:

Ilya Kowalewski

Affiliation:

The Stone Cross Foundation of Ukraine

Did you include all relevant data sets for reproducing the issue?

Yes

Did you include the code required to reproduce the issue?

Did you include all relevant configurations (e.g., CPU architecture, PostgreSQL version, Linux distribution) to reproduce the issue?

eeeebbbbrrrr commented 1 month ago

What command did you execute that led to this output?

tucnak commented 1 month ago
cargo pgrx install --release
tucnak commented 1 month ago

I just realised that the issue goes away with dev builds, while release still fails to link.

philippemnoel commented 1 month ago

@tucnak Could you please open this issue in pgrx? I don't believe it is related to us specifically.

eeeebbbbrrrr commented 1 month ago

haha, I asked him to open it here

eeeebbbbrrrr commented 1 month ago

I just realised that the issue goes away with dev builds, while release still fails to link.

@tucnak which version of cargo-pgrx do you have installed?

tucnak commented 1 month ago

haha, I asked him to open it here

Peak open source comedy! 🤣

$ cargo pgrx --version
cargo-pgrx 0.12.1
philippemnoel commented 1 month ago

Ah sorry!