[Bug 267550] databases/postgresql-promscale: Fails to build with "'libintl.h' file not found"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 03 Nov 2022 18:09:20 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267550 Bug ID: 267550 Summary: databases/postgresql-promscale: Fails to build with "'libintl.h' file not found" Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: feld@FreeBSD.org Reporter: bsd@j-star.org Assignee: feld@FreeBSD.org Flags: maintainer-feedback?(feld@FreeBSD.org) Attachment #237849 text/plain mime type: Created attachment 237849 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=237849&action=edit Full build log [As a side note: thanks for making this port, as a rather odd coincidence I was just sitting down yesterday evening to do the same thing, and a commit appeared as if by magic!] I find that the port fails to build due to what looks like a gettext related error. Steps I took to try and get a clean repro: ``` poudriere jail -c -vv -j clean -v 13.1-RELEASE -a amd64 # Because my puny server chokes if it tries to build llvm and rust at the same time. poudriere bulk -v -j clean lang/rust poudriere bulk -v -j clean database/postgresql-promscale tail -n 50 /usr/local/poudriere/data/logs/bulk/latest-per-pkg/postgresql14-promscale/0.7.0/131amd64-default.log ``` Results in the following failure message: ``` Compiling color-eyre v0.6.1 Compiling toml v0.5.9 Compiling bincode v1.3.3 Compiling plist v1.3.1 Compiling serde-xml-rs v0.5.1 Compiling serde_cbor v0.11.2 Compiling syntect v5.0.0 Compiling askama_shared v0.12.2 Compiling pgx-utils v0.4.5 (/wrkdirs/usr/ports/databases/postgresql-promscale/work/pgx/pgx-utils) Compiling askama_derive v0.11.2 Compiling askama v0.11.1 Compiling promscale v0.7.0 (/wrkdirs/usr/ports/databases/postgresql-promscale/work/promscale_extension-0.7.0) Compiling pgx-pg-sys v0.4.5 (/wrkdirs/usr/ports/databases/postgresql-promscale/work/pgx/pgx-pg-sys) Compiling pgx-macros v0.4.5 (/wrkdirs/usr/ports/databases/postgresql-promscale/work/pgx/pgx-macros) error: failed to run custom build command for `pgx-pg-sys v0.4.5 (/wrkdirs/usr/ports/databases/postgresql-promscale/work/pgx/pgx-pg-sys)` Caused by: process didn't exit successfully: `/wrkdirs/usr/ports/databases/postgresql-promscale/work/promscale_extension-0.7.0/target/release/build/pgx-pg-sys-f1210100d81f0f79/build-script-build` (exit status: 101) --- stdout cargo:rerun-if-env-changed=PGX_PG_SYS_GENERATE_BINDINGS_FOR_RELEASE cargo:rerun-if-changed=/wrkdirs/usr/ports/databases/postgresql-promscale/work/.pgx/config.toml cargo:rerun-if-changed=include/pg10.h cargo:rerun-if-changed=include/pg11.h cargo:rerun-if-changed=include/pg12.h cargo:rerun-if-changed=include/pg13.h cargo:rerun-if-changed=include/pg14.h cargo:rerun-if-changed=cshim/pgx-cshim.c cargo:rerun-if-changed=cshim/Makefile --- stderr manifest_dir=/wrkdirs/usr/ports/databases/postgresql-promscale/work/pgx/pgx-pg-sys shim_src=/wrkdirs/usr/ports/databases/postgresql-promscale/work/pgx/pgx-pg-sys/cshim shim_dst=/wrkdirs/usr/ports/databases/postgresql-promscale/work/promscale_extension-0.7.0/target/release/build/pgx-pg-sys-1a211044f9af3881/out/cshim Generating bindings for pg14 /usr/local/include/postgresql/server/c.h:75:10: fatal error: 'libintl.h' file not found /usr/local/include/postgresql/server/c.h:75:10: fatal error: 'libintl.h' file not found, err: true thread 'main' panicked at 'Unable to generate bindings for pg14: ()', /wrkdirs/usr/ports/databases/postgresql-promscale/work/pgx/pgx-pg-sys/build.rs:530:13 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace warning: build failed, waiting for other jobs to finish... gmake[1]: *** [Makefile:99: package] Error 1 gmake[1]: Leaving directory '/wrkdirs/usr/ports/databases/postgresql-promscale/work/promscale_extension-0.7.0' *** Error code 2 Stop. make: stopped in /usr/ports/databases/postgresql-promscale =>> Cleaning up wrkdir ===> Cleaning for postgresql14-promscale-0.7.0 build of databases/postgresql-promscale | postgresql14-promscale-0.7.0 ended at Thu Nov 3 14:49:38 GMT 2022 build time: 00:03:03 !!! build failure encountered !!! ``` Full log attached. I did take a look in the build jail, and the gettext-runtime package was installed, and libintl.h was where it ought to be in /usr/local/include/. This github bug looks like it might be relevant: https://github.com/timescale/promscale_extension/issues/532 . I don't know much about rust, so don't have any bright ideas for debugging further. -- You are receiving this mail because: You are the assignee for the bug.