Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 928986 - dev-db/mariadb-10.11.7 fails to compile: my_global.h:384:18: error: size of array compile_time_assert is negative
Summary: dev-db/mariadb-10.11.7 fails to compile: my_global.h:384:18: error: size of a...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords: PATCH
Depends on: 951697
Blocks:
  Show dependency tree
 
Reported: 2024-04-09 08:28 UTC by Agostino Sarubbo
Modified: 2025-03-29 12:03 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log.xz (build.log.xz,51.48 KB, application/x-xz)
2024-04-09 08:28 UTC, Agostino Sarubbo
Details
Disable compile_time_assert(sizeof(MYSQL) (mariadb_test.patch,653 bytes, patch)
2025-01-30 18:52 UTC, J Pamoux
Details | Diff
build.log.xz (ppc, 10.6.21) (mariadb-10.6.21:20250329-104329.log.xz,38.33 KB, application/x-xz)
2025-03-29 12:00 UTC, ernsteiswuerfel
Details
build.log.xz (ppc, 10.11.11) (mariadb-10.11.11:20250329-115605.log.xz,47.95 KB, application/x-xz)
2025-03-29 12:03 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2024-04-09 08:28:16 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-db/mariadb-10.11.7 fails to compile.
Discovered on: arm (internal ref: tinderbox_arm)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0014
Comment 1 Agostino Sarubbo gentoo-dev 2024-04-09 08:28:17 UTC
Created attachment 890039 [details]
build.log.xz

build log and emerge --info (compressed because it exceeds attachment limit, use 'xzless' to read it)
Comment 2 Agostino Sarubbo gentoo-dev 2024-04-09 08:28:18 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


  Could not find a package configuration file provided by "GSSAPI" with any
-- Could NOT find PMEM (missing: PMEM_LIBRARIES PMEM_INCLUDE_DIRS) 
-- Could NOT find Snappy (missing: SNAPPY_LIBRARIES SNAPPY_INCLUDE_DIRS) 
FAILED: tests/CMakeFiles/mariadb-client-test.dir/mysql_client_test.c.o 
/var/tmp/portage/dev-db/mariadb-10.11.7/work/mysql/include/my_global.h:384:18: error: size of array ‘compile_time_assert’ is negative
Comment 3 J Pamoux 2025-01-30 18:52:08 UTC
Created attachment 917969 [details, diff]
Disable compile_time_assert(sizeof(MYSQL)

Similar to what is described here https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1063738

Adding this patch to /etc/portage/dev-db/mariadb allowed me to emerge mariadb 10.6.17 on arm (RPI 2).
Comment 4 J Pamoux 2025-01-30 18:53:40 UTC
Sorry, the directory of course was: /etc/portage/patches/dev-db/mariadb
Comment 5 ernsteiswuerfel archtester 2025-03-29 12:00:57 UTC
Created attachment 923252 [details]
build.log.xz (ppc, 10.6.21)

Same for 10.6.20, 10.6.21 on ppc.
Comment 6 ernsteiswuerfel archtester 2025-03-29 12:03:17 UTC
Created attachment 923253 [details]
build.log.xz (ppc, 10.11.11)

But 10.11.11 builds ok.