Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 928986

Summary: dev-db/mariadb-10.11.7 fails to compile: my_global.h:384:18: error: size of array compile_time_assert is negative
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Gentoo Linux MySQL bugs team <mysql-bugs>
Status: CONFIRMED ---    
Severity: normal CC: erhard_f, zerebratus
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.debian.org/1063738
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 951697    
Bug Blocks:    
Attachments: build.log.xz
Disable compile_time_assert(sizeof(MYSQL)
build.log.xz (ppc, 10.6.21)
build.log.xz (ppc, 10.11.11)

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.