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

Add recipe for TimescaleDB #507

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mhill-holoplot
Copy link

We are using this recipe in production at Holoplot and would like to contribute it back to the community.

meta-oe/recipes-dbs/timescaledb/timescaledb.inc Outdated Show resolved Hide resolved
meta-oe/recipes-dbs/timescaledb/timescaledb.inc Outdated Show resolved Hide resolved
meta-oe/recipes-dbs/timescaledb/timescaledb.inc Outdated Show resolved Hide resolved
meta-oe/recipes-dbs/timescaledb/timescaledb.inc Outdated Show resolved Hide resolved
meta-oe/recipes-dbs/timescaledb-tune/timescaledb-tune.inc Outdated Show resolved Hide resolved
@mhill-holoplot
Copy link
Author

Great thanks for the review. I'll make those changes.

@kraj
Copy link
Contributor

kraj commented Jan 5, 2022

its failing to configure see
https://errors.yoctoproject.org/Errors/Details/621438/

Copy link
Contributor

@kraj kraj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please fix the build failures

@mhill-holoplot
Copy link
Author

I don't get the same error locally. I get another error when building on top of Yoe probably due to the use of clang wheras we have no errors in our Poky based distribution. I'll investigate further. Here is the error I get.

morgan@morgan-ubuntu:~/yoe/sources/meta-openembedded$ bitbake timescaledb
Setting MACHINE=qemux86-64
/home/morgan/yoe/conf/auto.conf has been updated
Setting DOCKER_REPO to yoedistro/yoe-build:buster
NOTE: Started PRServer with DBfile: /home/morgan/yoe/cache/prserv.sqlite3, Address: 127.0.0.1:46033, PID: 60
Loading cache: 100% |###############################################################################################################################################################################| Time: 0:00:01
Loaded 5151 entries from dependency cache.
Parsing recipes: 100% |#############################################################################################################################################################################| Time: 0:00:02
Parsing of 3567 .bb files complete (3566 cached, 1 parsed). 5154 targets, 683 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION           = "1.53.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "x86_64-yoe-linux"
MACHINE              = "qemux86-64"
DISTRO               = "yoe"
DISTRO_VERSION       = "2021.12"
TUNE_FEATURES        = "m64 core2"
TARGET_FPU           = ""
meta-yoe             = "HEAD:258a2edbeb62525f7b03f6933ac5806c29c647f2"
meta-96boards        = "HEAD:c0a7f4052bd78f9a6972a5459840f639452bf76c"
meta-arm             
meta-arm-toolchain   = "HEAD:8061ecf0cde442cd5a36151c7dac91fcd0727e2d"
meta-atmel           = "HEAD:749ed98cd42c61234ad04476d5d8104f2087566c"
meta-freescale       = "HEAD:58a442bdafae4329a61f656d597c76c5fb8da928"
meta-freescale-3rdparty = "HEAD:b3670f9d5ffe1fd52f8c2d1cbb7027b9dcf79aad"
meta-odroid          
meta-odroid-extras   = "HEAD:e46880f21512622468a23c5c7fc60bf050cb63b0"
meta-qcom            = "HEAD:302e275d27dbe4bfbd2a8df8586b95d721750d63"
meta-raspberrypi     = "HEAD:58cc6625395c251e68604de587c332f07a6acd3b"
meta-riscv           = "HEAD:9561639c61663a10d8c9c23d26173db499f4c39b"
meta-rockchip        = "HEAD:17703ee37b46d15ec369588fbb86dde336df6028"
meta-ti              = "HEAD:75ff5168d39aa05cd918cfd36dd8695ee17a065d"
meta-clang           = "HEAD:e59b8f560a9e436f13588223c8f30c63d02ca3d8"
meta-elm-binary      = "HEAD:df225a0abb9f51c50714357d114d4d313b7bbe73"
meta-qt5             = "HEAD:b64b0a213240375e697185de06c3f502c65cdee7"
meta-filesystems     
meta-gnome           
meta-initramfs       
meta-multimedia      
meta-networking      
meta-oe              
meta-perl            
meta-python          
meta-webserver       
meta-xfce            = "HEAD:b1da0bd662bce3b191178f9489005c6bc668ac84"
meta                 = "HEAD:24c1b8346a2ab8bdea2e140282e33814166d9113"

Initialising tasks: 100% |##########################################################################################################################################################################| Time: 0:00:01
Sstate summary: Wanted 7 Local 0 Mirrors 0 Missed 7 Current 308 (0% match, 97% complete)
NOTE: Executing Tasks
WARNING: timescaledb-2.5.1-r0 do_populate_lic: QA Issue: timescaledb: No generic license file exists for: APACHE-2.0 in any provider [license-exists]
WARNING: timescaledb-2.5.1-r0 do_populate_lic: QA Issue: timescaledb: No generic license file exists for: TIMESCALE in any provider [license-exists]
ERROR: timescaledb-2.5.1-r0 do_compile: ExecutionError('/home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/timescaledb/2.5.1-r0/temp/run.do_compile.428', 1, None, None)
ERROR: Logfile of failure stored in: /home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/timescaledb/2.5.1-r0/temp/log.do_compile.428
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: cmake --build /home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/timescaledb/2.5.1-r0/build --target all --
| [1/203] Generating /home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/timescaledb/2.5.1-r0/build/sql/timescaledb--2.5.1.sql
| [2/203] Generating /home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/timescaledb/2.5.1-r0/build/sql/updates/post-update.sql.processed
| [3/203] Generating /home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/timescaledb/2.5.1-r0/build/sql/timescaledb--1.7.1--2.5.1.sql
| [4/203] Generating /home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/timescaledb/2.5.1-r0/build/sql/timescaledb--1.7.0--2.5.1.sql
| [5/203] Generating /home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/timescaledb/2.5.1-r0/build/sql/timescaledb--2.3.0--2.5.1.sql
| [6/203] Generating /home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/timescaledb/2.5.1-r0/build/sql/timescaledb--2.4.2--2.5.1.sql
| [7/203] Generating /home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/timescaledb/2.5.1-r0/build/sql/timescaledb--2.3.1--2.5.1.sql
| [8/203] Generating /home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/timescaledb/2.5.1-r0/build/sql/timescaledb--1.7.5--2.5.1.sql
| [9/203] Generating /home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/timescaledb/2.5.1-r0/build/sql/timescaledb--2.0.0-rc3--2.5.1.sql
| [10/203] Generating /home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/timescaledb/2.5.1-r0/build/sql/timescaledb--2.0.0--2.5.1.sql
| [11/203] Generating /home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/timescaledb/2.5.1-r0/build/sql/timescaledb--1.7.2--2.5.1.sql
| [12/203] Generating /home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/timescaledb/2.5.1-r0/build/sql/timescaledb--1.7.3--2.5.1.sql
| [13/203] Generating /home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/timescaledb/2.5.1-r0/build/sql/timescaledb--2.0.0-rc2--2.5.1.sql
| [14/203] Generating /home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/timescaledb/2.5.1-r0/build/sql/timescaledb--2.0.0-rc1--2.5.1.sql
| [15/203] Generating /home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/timescaledb/2.5.1-r0/build/sql/timescaledb--1.7.4--2.5.1.sql
| [16/203] Generating /home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/timescaledb/2.5.1-r0/build/sql/timescaledb--2.2.1--2.5.1.sql
| [17/203] Generating /home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/timescaledb/2.5.1-r0/build/sql/timescaledb--2.0.1--2.5.1.sql
| [18/203] Generating /home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/timescaledb/2.5.1-r0/build/sql/timescaledb--2.0.0-rc4--2.5.1.sql
| [19/203] Generating /home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/timescaledb/2.5.1-r0/build/sql/timescaledb--2.0.2--2.5.1.sql
| [20/203] Generating /home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/timescaledb/2.5.1-r0/build/sql/timescaledb--2.1.0--2.5.1.sql
| [21/203] Generating /home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/timescaledb/2.5.1-r0/build/sql/timescaledb--2.2.0--2.5.1.sql
| [22/203] Generating /home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/timescaledb/2.5.1-r0/build/sql/timescaledb--2.4.0--2.5.1.sql
| [23/203] Generating /home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/timescaledb/2.5.1-r0/build/sql/timescaledb--2.4.1--2.5.1.sql
| [24/203] Generating /home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/timescaledb/2.5.1-r0/build/sql/timescaledb--2.1.1--2.5.1.sql
| [25/203] Generating /home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/timescaledb/2.5.1-r0/build/sql/timescaledb--2.5.0--2.5.1.sql
| [26/203] Building C object src/CMakeFiles/timescaledb.dir/constraint.c.o
| [27/203] Building C object src/CMakeFiles/timescaledb.dir/cache_invalidate.c.o
| [28/203] Building C object src/CMakeFiles/timescaledb.dir/func_cache.c.o
| [29/203] Building C object src/CMakeFiles/timescaledb.dir/catalog.c.o
| [30/203] Building C object src/CMakeFiles/timescaledb.dir/agg_bookend.c.o
| [31/203] Building C object src/CMakeFiles/timescaledb.dir/chunk_data_node.c.o
| [32/203] Building C object src/CMakeFiles/timescaledb.dir/cross_module_fn.c.o
| [33/203] Building C object src/CMakeFiles/timescaledb.dir/continuous_agg.c.o
| [34/203] Building C object src/CMakeFiles/timescaledb.dir/compression_chunk_size.c.o
| [35/203] Building C object src/CMakeFiles/timescaledb.dir/chunk_index.c.o
| [36/203] Building C object src/CMakeFiles/timescaledb.dir/estimate.c.o
| [37/203] Building C object src/CMakeFiles/timescaledb.dir/cache.c.o
| [38/203] Building C object src/CMakeFiles/timescaledb.dir/chunk_adaptive.c.o
| [39/203] Building C object src/CMakeFiles/timescaledb.dir/dimension_slice.c.o
| [40/203] Building C object src/CMakeFiles/timescaledb.dir/dimension_vector.c.o
| [41/203] Building C object src/CMakeFiles/timescaledb.dir/extension.c.o
| [42/203] Building C object src/CMakeFiles/timescaledb.dir/hypercube.c.o
| [43/203] Building C object src/CMakeFiles/timescaledb.dir/compression_with_clause.c.o
| [44/203] Building C object src/CMakeFiles/timescaledb.dir/gapfill.c.o
| [45/203] Building C object src/CMakeFiles/timescaledb.dir/guc.c.o
| [46/203] Building C object src/CMakeFiles/timescaledb.dir/histogram.c.o
| [47/203] Building C object src/CMakeFiles/timescaledb.dir/hypertable_cache.c.o
| [48/203] Building C object src/CMakeFiles/timescaledb.dir/jsonb_utils.c.o
| [49/203] Building C object src/CMakeFiles/timescaledb.dir/copy.c.o
| [50/203] Building C object src/CMakeFiles/timescaledb.dir/hypertable_compression.c.o
| [51/203] Building C object src/CMakeFiles/timescaledb.dir/hypertable_data_node.c.o
| [52/203] Building C object src/CMakeFiles/timescaledb.dir/init.c.o
| [53/203] Building C object src/CMakeFiles/timescaledb.dir/dimension.c.o
| [54/203] Building C object src/CMakeFiles/timescaledb.dir/metadata.c.o
| [55/203] Building C object src/CMakeFiles/timescaledb.dir/license_guc.c.o
| [56/203] Building C object src/CMakeFiles/timescaledb.dir/plan_add_hashagg.c.o
| [57/203] Building C object src/CMakeFiles/timescaledb.dir/partitioning.c.o
| [58/203] Building C object src/CMakeFiles/timescaledb.dir/event_trigger.c.o
| [59/203] Building C object src/CMakeFiles/timescaledb.dir/indexing.c.o
| [60/203] Building C object src/CMakeFiles/timescaledb.dir/hypertable_restrict_info.c.o
| [61/203] Building C object src/CMakeFiles/timescaledb.dir/plan_partialize.c.o
| [62/203] Building C object src/CMakeFiles/timescaledb.dir/chunk_constraint.c.o
| [63/203] Building C object src/CMakeFiles/timescaledb.dir/hypertable.c.o
| [64/203] Building C object src/CMakeFiles/timescaledb.dir/scan_iterator.c.o
| [65/203] Building C object src/CMakeFiles/timescaledb.dir/chunk.c.o
| [66/203] Building C object src/CMakeFiles/timescaledb.dir/plan_agg_bookend.c.o
| [67/203] Building C object src/CMakeFiles/timescaledb.dir/scanner.c.o
| [68/203] Building C object src/CMakeFiles/timescaledb.dir/trigger.c.o
| [69/203] Building C object src/CMakeFiles/timescaledb.dir/sort_transform.c.o
| [70/203] Building C object src/CMakeFiles/timescaledb.dir/subspace_store.c.o
| FAILED: src/CMakeFiles/timescaledb.dir/subspace_store.c.o
| /home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/timescaledb/2.5.1-r0/recipe-sysroot-native/usr/bin/cmake -E __run_co_compile --tidy="/home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/timescaledb/2.5.1-r0/recipe-sysroot-native/usr/bin/clang-tidy;--quiet;--extra-arg-before=--driver-mode=gcc" --source=/home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/timescaledb/2.5.1-r0/timescaledb-2.5.1/src/subspace_store.c -- /home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/timescaledb/2.5.1-r0/recipe-sysroot-native/usr/bin/x86_64-yoe-linux/x86_64-yoe-linux-clang -Dtimescaledb_EXPORTS -I/home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/timescaledb/2.5.1-r0/timescaledb-2.5.1/src -I/home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/timescaledb/2.5.1-r0/build/src -isystem /home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/postgresql/13.4-r0/sysroot-destdir/usr/include/postgresql/server -target x86_64-yoe-linux  -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -mlittle-endian -Qunused-arguments -fstack-protector-strong  -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security  --sysroot=/home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/timescaledb/2.5.1-r0/recipe-sysroot  -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/timescaledb/2.5.1-r0=/usr/src/debug/timescaledb/2.5.1-r0                      -fdebug-prefix-map=/home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/timescaledb/2.5.1-r0=/usr/src/debug/timescaledb/2.5.1-r0                      -fdebug-prefix-map=/home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/timescaledb/2.5.1-r0/recipe-sysroot=                      -fdebug-prefix-map=/home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/timescaledb/2.5.1-r0/recipe-sysroot-native=  -target x86_64-yoe-linux  -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -mlittle-endian -Qunused-arguments -fstack-protector-strong  -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security  --sysroot=/home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/timescaledb/2.5.1-r0/recipe-sysroot  -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/postgresql/13.4-r0=/usr/src/debug/postgresql/13.4-r0 -fdebug-prefix-map=/home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/postgresql/13.4-r0=/usr/src/debug/postgresql/13.4-r0 -fdebug-prefix-map=/home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/postgresql/13.4-r0/recipe-sysroot= -fdebug-prefix-map=/home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/postgresql/13.4-r0/recipe-sysroot-native= -I/home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/postgresql/13.4-r0/recipe-sysroot/usr/include/python3.10 -I/home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/postgresql/13.4-r0/recipe-sysroot/usr/include/tcl8.6  -DNDEBUG -fPIC -fvisibility=hidden -Wempty-body -Wvla -Wall -Wmissing-prototypes -Wpointer-arith -Werror=vla -Wendif-labels -fno-strict-aliasing -fno-omit-frame-pointer -Wno-unused-command-line-argument -Wimplicit-fallthrough -std=gnu11 -MD -MT src/CMakeFiles/timescaledb.dir/subspace_store.c.o -MF src/CMakeFiles/timescaledb.dir/subspace_store.c.o.d -o src/CMakeFiles/timescaledb.dir/subspace_store.c.o -c /home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/timescaledb/2.5.1-r0/timescaledb-2.5.1/src/subspace_store.c
| /home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/timescaledb/2.5.1-r0/timescaledb-2.5.1/src/subspace_store.c:119:18: error: Access to field 'storage' results in a dereference of a null pointer (loaded from variable 'last') [clang-analyzer-core.NullDereference,-warnings-as-errors]
|                         last->storage = subspace_store_internal_node_create(i == (hc->num_slices - 1));
|                         ~~~~          ^
| /home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/timescaledb/2.5.1-r0/timescaledb-2.5.1/src/subspace_store.c:98:2: note: 'last' initialized to a null pointer value
|         DimensionSlice *last = NULL;
|         ^~~~~~~~~~~~~~~~~~~~
| /home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/timescaledb/2.5.1-r0/timescaledb-2.5.1/src/subspace_store.c:104:14: note: Assuming 'i' is < field 'num_slices'
|         for (i = 0; i < hc->num_slices; i++)
|                     ^~~~~~~~~~~~~~~~~~
| /home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/timescaledb/2.5.1-r0/timescaledb-2.5.1/src/subspace_store.c:104:2: note: Loop condition is true.  Entering loop body
|         for (i = 0; i < hc->num_slices; i++)
|         ^
| /home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/timescaledb/2.5.1-r0/timescaledb-2.5.1/src/subspace_store.c:111:7: note: Assuming 'node' is equal to NULL
|                 if (node == NULL)
|                     ^~~~~~~~~~~~
| /home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/timescaledb/2.5.1-r0/timescaledb-2.5.1/src/subspace_store.c:111:3: note: Taking true branch
|                 if (node == NULL)
|                 ^
| /home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/timescaledb/2.5.1-r0/timescaledb-2.5.1/src/subspace_store.c:119:56: note: Assuming the condition is false
|                         last->storage = subspace_store_internal_node_create(i == (hc->num_slices - 1));
|                                                                             ^~~~~~~~~~~~~~~~~~~~~~~~~
| /home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/timescaledb/2.5.1-r0/timescaledb-2.5.1/src/subspace_store.c:119:18: note: Access to field 'storage' results in a dereference of a null pointer (loaded from variable 'last')
|                         last->storage = subspace_store_internal_node_create(i == (hc->num_slices - 1));
|                         ~~~~          ^
| /home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/timescaledb/2.5.1-r0/timescaledb-2.5.1/src/subspace_store.c:192:16: error: Access to field 'storage' results in a dereference of a null pointer (loaded from variable 'last') [clang-analyzer-core.NullDereference,-warnings-as-errors]
|         last->storage = object; /* at the end we store the object */
|         ~~~~          ^
| /home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/timescaledb/2.5.1-r0/timescaledb-2.5.1/src/subspace_store.c:98:2: note: 'last' initialized to a null pointer value
|         DimensionSlice *last = NULL;
|         ^~~~~~~~~~~~~~~~~~~~
| /home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/timescaledb/2.5.1-r0/timescaledb-2.5.1/src/subspace_store.c:104:14: note: Assuming 'i' is >= field 'num_slices'
|         for (i = 0; i < hc->num_slices; i++)
|                     ^~~~~~~~~~~~~~~~~~
| /home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/timescaledb/2.5.1-r0/timescaledb-2.5.1/src/subspace_store.c:104:2: note: Loop condition is false. Execution continues on line 191
|         for (i = 0; i < hc->num_slices; i++)
|         ^
| /home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/timescaledb/2.5.1-r0/timescaledb-2.5.1/src/subspace_store.c:192:16: note: Access to field 'storage' results in a dereference of a null pointer (loaded from variable 'last')
|         last->storage = object; /* at the end we store the object */
|         ~~~~          ^
| /home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/timescaledb/2.5.1-r0/timescaledb-2.5.1/src/subspace_store.c:216:9: error: Access to field 'storage' results in a dereference of a null pointer (loaded from variable 'match') [clang-analyzer-core.NullDereference,-warnings-as-errors]
|         return match->storage;
|                ^~~~~
| /home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/timescaledb/2.5.1-r0/timescaledb-2.5.1/src/subspace_store.c:202:2: note: 'match' initialized to a null pointer value
|         DimensionSlice *match = NULL;
|         ^~~~~~~~~~~~~~~~~~~~~
| /home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/timescaledb/2.5.1-r0/timescaledb-2.5.1/src/subspace_store.c:206:14: note: Assuming 'i' is >= field 'cardinality'
|         for (i = 0; i < target->cardinality; i++)
|                     ^~~~~~~~~~~~~~~~~~~~~~~
| /home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/timescaledb/2.5.1-r0/timescaledb-2.5.1/src/subspace_store.c:206:2: note: Loop condition is false. Execution continues on line 215
|         for (i = 0; i < target->cardinality; i++)
|         ^
| /home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/timescaledb/2.5.1-r0/timescaledb-2.5.1/src/subspace_store.c:216:9: note: Access to field 'storage' results in a dereference of a null pointer (loaded from variable 'match')
|         return match->storage;
|                ^~~~~
| 3 warnings generated.
| [71/203] Building C object src/CMakeFiles/timescaledb.dir/tablespace.c.o
| [72/203] Building C object src/CMakeFiles/timescaledb.dir/time_bucket.c.o
| [73/203] Building C object src/CMakeFiles/timescaledb.dir/custom_type_cache.c.o
| [74/203] Building C object src/CMakeFiles/timescaledb.dir/time_utils.c.o
| [75/203] Building C object src/CMakeFiles/timescaledb.dir/plan_expand_hypertable.c.o
| [76/203] Building C object src/CMakeFiles/timescaledb.dir/planner.c.o
| [77/203] Building C object src/CMakeFiles/timescaledb.dir/process_utility.c.o
| ninja: build stopped: subcommand failed.
| WARNING: /home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/timescaledb/2.5.1-r0/temp/run.do_compile.428:155 exit 1 from 'eval ${DESTDIR:+DESTDIR=${DESTDIR} } cmake --build '/home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/timescaledb/2.5.1-r0/build' "$@" -- ${EXTRA_OECMAKE_BUILD}'
| WARNING: Backtrace (BB generated script):
| 	#1: cmake_runcmake_build, /home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/timescaledb/2.5.1-r0/temp/run.do_compile.428, line 155
| 	#2: cmake_do_compile, /home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/timescaledb/2.5.1-r0/temp/run.do_compile.428, line 149
| 	#3: do_compile, /home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/timescaledb/2.5.1-r0/temp/run.do_compile.428, line 144
| 	#4: main, /home/morgan/yoe/build/tmp/work/core2-64-yoe-linux/timescaledb/2.5.1-r0/temp/run.do_compile.428, line 168
ERROR: Task (/home/morgan/yoe/sources/meta-openembedded/meta-oe/recipes-dbs/timescaledb/timescaledb_2.5.1.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 1144 tasks of which 1135 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 5 seconds
NOTE: Build completion summary:
NOTE:   do_deploy_source_date_epoch: 0.0% sstate reuse(0 setscene, 1 scratch)
NOTE:   do_populate_lic: 0.0% sstate reuse(0 setscene, 1 scratch)

Summary: 1 task failed:
  /home/morgan/yoe/sources/meta-openembedded/meta-oe/recipes-dbs/timescaledb/timescaledb_2.5.1.bb:do_compile
Summary: There were 2 WARNING messages shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

kraj pushed a commit to YoeDistro/meta-openembedded that referenced this pull request Jan 7, 2022
0001-install.sh-consider-multilib.patch
removed since it is included in 1.5.0

Changelog:
Issues for this release <https://github.com/bats-core/bats-core/pull/####>
=========
Added:
---------
 new command line flags (openembedded#488)
 --verbose-run: Make run print $output by default
 -x, --trace: Print test commands as they are executed (like set -x)`
 --show-output-of-passing-tests: Print output of passing tests
 --print-output-on-failure: Automatically print the value of $output on
 failed tests
 --gather-test-outputs-in <directory>: Gather the output of failing and
 passing tests as files in directory
 Experimental: add return code checks to run via !/-<N> (openembedded#367, openembedded#507)
 install.sh and uninstall.sh take an optional second parameter for the lib
 folder name to allow for multilib install, e.g. into lib64 (openembedded#452)
 add run flag --keep-empty-lines to retain empty lines in ${lines[@]} (openembedded#224,
 a894fbf)
 add run flag --separate-stderr which also fills $stderr and
 $stderr_lines (openembedded#47, 5c9b173d, openembedded#507)

Fixed:
---------
 don't glob run's $output when splitting into ${lines[@]}
 (openembedded#151, openembedded#152, openembedded#158, openembedded#156, openembedded#281, openembedded#289)
 remove empty line after test with pretty formatter on some terminals (openembedded#481)
 don't run setup_file/teardown_file on files without tests, e.g. due to
 filtering (openembedded#484)
 print final line without newline on Bash 3.2 for midtest (ERREXIT) failures
 too (openembedded#495, openembedded#145)
 abort with error on missing flock/shlock when running in parallel mode (openembedded#496)
 improved set -u test and fixed some unset variable accesses (openembedded#498, openembedded#501)
 shorten suite/file/test temporary folder paths to leave enough space even on
 restricted systems (openembedded#503)

Signed-off-by: Wang Mingyu <[email protected]>
Signed-off-by: Khem Raj <[email protected]>
@mhill-holoplot
Copy link
Author

I don't seem to be able to reproduce those errors. There also seems to be a bunch of other issues with that build https://errors.yoctoproject.org/Errors/Build/138125/

Is there somewhere other than the errors site where I can get more information on builds?

@kraj
Copy link
Contributor

kraj commented Jan 13, 2022

I don't seem to be able to reproduce those errors. There also seems to be a bunch of other issues with that build https://errors.yoctoproject.org/Errors/Build/138125/

Is there somewhere other than the errors site where I can get more information on builds?

please look at https://errors.yoctoproject.org/Errors/Details/621444/ specifically, and ignore others. there seems to be a
header missing which it is trying for. this is the exact error

CMake Error at CMakeLists.txt:535 (message):
  Could not find pg_config.h in
  TOPDIR/build/tmp/work/core2-32-yoe-linux/postgresql/13.4-r0/sysroot-destdir/usr/include.
  Make sure PG_PATH points to a valid PostgreSQL installation that includes
  development headers.

@mhill-holoplot
Copy link
Author

please look at https://errors.yoctoproject.org/Errors/Details/621444/ specifically, and ignore others. there seems to be a header missing which it is trying for. this is the exact error

The error doesn't help me much If I can't reproduce it. If I can't reproduce it I can't very that I fixed it.

Which repository do I find the commit hash 0ec31c50b04ac8a2e3e780f8b5218951fa9e5bbe if I can find that then perhaps I can reproduce it?

@kraj
Copy link
Contributor

kraj commented Jan 13, 2022

please look at https://errors.yoctoproject.org/Errors/Details/621444/ specifically, and ignore others. there seems to be a header missing which it is trying for. this is the exact error

The error doesn't help me much If I can't reproduce it. If I can't reproduce it I can't very that I fixed it.

Which repository do I find the commit hash 0ec31c50b04ac8a2e3e780f8b5218951fa9e5bbe if I can find that then perhaps I can reproduce it?

use MACHINE = "qemux86" since thats where these issues are seen. Perhaps that will help to reproduce it. the problem
seems to be around pg_config not being cross compile friendly, its trying to detect postgresql headers from postgresql build area which is not going to work in OE, since every package only can access its own recipe specific sysroot during build. So you will need to add the needed dependencies via DEPENDS or other means in recipe.

kraj pushed a commit to YoeDistro/meta-openembedded that referenced this pull request Aug 6, 2022
Changelog:
==========
  Update README.md
  Add support for the Huion Inspiroy H1060P
  Add support for Huion MiniDial KD100 (openembedded#470)
  Add Chuwi MiniBook X (openembedded#508)
  CI: upgrade FreeBSD to 13.1 (openembedded#507)
  data: Add XP-Pen Deco L (openembedded#509)
  Add support for XP-Pen Artist 12. (openembedded#505)
  Revert "Add support for Huion MiniDial KD100 (openembedded#470)" (openembedded#504)
  Remove leftover autogen.sh (openembedded#503)

Signed-off-by: Wang Mingyu <[email protected]>
Signed-off-by: Khem Raj <[email protected]>
kraj pushed a commit to YoeDistro/meta-openembedded that referenced this pull request May 25, 2023
Changelog:
==========
general: add hid_get_report_descriptor API function (openembedded#451)
macOS: fix retrieving USB Interface number on macOS 13.3 (openembedded#534)
macOS: Properly handle the close of run loop on macOS (openembedded#522)
libusb: fix crash in hid_enumerate() caused by a stale device handle (openembedded#526)
windows: alternative way to get USB Serial Number if not provided by HidD_GetSerialNumberString (openembedded#464)
windows: don't mark with dllexport in static build (openembedded#507/openembedded#515)
windows: Get Bluetooth device Model Number String instead of Device Name into product string (openembedded#500)
general: fixes (mostly error handling) of issues found by Coverity Scan (openembedded#552/openembedded#554/openembedded#555/openembedded#559/openembedded#560/openembedded#561)
general: variouse fixes and improvements

Signed-off-by: Wang Mingyu <[email protected]>
Signed-off-by: Khem Raj <[email protected]>
kraj pushed a commit to YoeDistro/meta-openembedded that referenced this pull request Oct 12, 2023
Additions:

  - A new "DSP policy" module has been added; its purpose is to automatically
    load a filter-chain when a certain hardware device is present, so that
    audio always goes through this software DSP before reaching the device.
    This is mainly to support Apple M1/M2 devices, which require a software
    DSP to be always present

  - WpImplModule now supports loading module arguments directly from a SPA-JSON
    config file; this is mainly to support DSP configuration for Apple M1/M2
    and will likely be reworked for 0.5

  - Added support for automatically combining Bluetooth LE Audio device sets
    (e.g. pairs of earbuds) (!500)

  - Added command line options in ``wpctl`` to display device/node names and
    nicknames instead of descriptions

  - Added zsh completions file for ``wpctl``

  - The device profile selection policy now respects the ``device.profile``
    property if it is set on the device; this is useful to hand-pick a profile
    based on static configuration rules (alsa_monitor.rules)

Changes/Fixes:

  - Linking policy now sends an error to the client before destroying the node,
    if it determines that the node cannot be linked to any target; this fixes
    error reporting on the client side

  - Fixed a crash in suspend-node that could happen when destroying virtual
    sinks that were loaded from another process such as pw-loopback (openembedded#467)

  - Virtual machine default period size has been bumped to 1024 (openembedded#507)

  - Updated bluez5 default configuration, using ``bluez5.roles`` instead of
    ``bluez5.headset-roles`` now (!498)

  - Disabled Bluetooth autoconnect by default (!514)

  - Removed ``RestrictNamespaces`` option from the systemd services in order to
    allow libcamera to load sandboxed IPA modules (openembedded#466)

  - Fixed a JSON encoding bug with empty strings (openembedded#471)

  - Lua code can now parse strings without quotes from SPA-JSON

  - Added some missing `\since` annotations and made them show up in the
    generated gobject-introspection file, to help bindings generators

Signed-off-by: Markus Volk <[email protected]>
Signed-off-by: Khem Raj <[email protected]>
halstead pushed a commit that referenced this pull request Nov 3, 2023
Additions:

  - A new "DSP policy" module has been added; its purpose is to automatically
    load a filter-chain when a certain hardware device is present, so that
    audio always goes through this software DSP before reaching the device.
    This is mainly to support Apple M1/M2 devices, which require a software
    DSP to be always present

  - WpImplModule now supports loading module arguments directly from a SPA-JSON
    config file; this is mainly to support DSP configuration for Apple M1/M2
    and will likely be reworked for 0.5

  - Added support for automatically combining Bluetooth LE Audio device sets
    (e.g. pairs of earbuds) (!500)

  - Added command line options in ``wpctl`` to display device/node names and
    nicknames instead of descriptions

  - Added zsh completions file for ``wpctl``

  - The device profile selection policy now respects the ``device.profile``
    property if it is set on the device; this is useful to hand-pick a profile
    based on static configuration rules (alsa_monitor.rules)

Changes/Fixes:

  - Linking policy now sends an error to the client before destroying the node,
    if it determines that the node cannot be linked to any target; this fixes
    error reporting on the client side

  - Fixed a crash in suspend-node that could happen when destroying virtual
    sinks that were loaded from another process such as pw-loopback (#467)

  - Virtual machine default period size has been bumped to 1024 (#507)

  - Updated bluez5 default configuration, using ``bluez5.roles`` instead of
    ``bluez5.headset-roles`` now (!498)

  - Disabled Bluetooth autoconnect by default (!514)

  - Removed ``RestrictNamespaces`` option from the systemd services in order to
    allow libcamera to load sandboxed IPA modules (#466)

  - Fixed a JSON encoding bug with empty strings (#471)

  - Lua code can now parse strings without quotes from SPA-JSON

  - Added some missing `\since` annotations and made them show up in the
    generated gobject-introspection file, to help bindings generators

Signed-off-by: Markus Volk <[email protected]>
Signed-off-by: Khem Raj <[email protected]>
(cherry picked from commit 56d34f3)
Signed-off-by: Armin Kuster <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants