[MDEV-5868] MariaDB fails to build on sparc Created: 2014-03-14  Updated: 2014-07-27  Resolved: 2014-07-27

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: 5.5.36, 5.5.37, 5.5.38
Fix Version/s: 5.5.39

Type: Bug Priority: Major
Reporter: Otto Kekäläinen Assignee: Jan Lindström (Inactive)
Resolution: Fixed Votes: 0
Labels: buildd, debian


 Description   

To my knowledge MariaDB 5.5 has never built on sparc, but since the introduction of libjemalloc-dev build dependency in my MariaDB 5.5.36 packaging, it should (just like MySQL 5.5 does).

The build fails with the following error:

[ 32%] Building C object storage/xtradb/CMakeFiles/xtradb.dir/os/os0stacktrace.c.o
/«PKGBUILDDIR»/storage/xtradb/os/os0stacktrace.c: In function 'os_stacktrace_print':
/«PKGBUILDDIR»/storage/xtradb/os/os0stacktrace.c:97:2: error: 'pnt' undeclared (first use in this function)
/«PKGBUILDDIR»/storage/xtradb/os/os0stacktrace.c:97:2: note: each undeclared identifier is reported only once for each function it appears in
/«PKGBUILDDIR»/storage/xtradb/os/os0stacktrace.c:97:16: error: 'scp' undeclared (first use in this function)
/«PKGBUILDDIR»/storage/xtradb/os/os0stacktrace.c:93:21: warning: unused variable 'sc' [-Wunused-variable]
make[4]: *** [storage/xtradb/CMakeFiles/xtradb.dir/os/os0stacktrace.c.o] Error 1
make[4]: Leaving directory `/«PKGBUILDDIR»/builddir'

Full log at https://buildd.debian.org/status/fetch.php?pkg=mariadb-5.5&arch=sparc&ver=5.5.36-1&stamp=1394729851

Debian build overview pages: https://buildd.debian.org/status/package.php?p=mariadb-5.5 and https://buildd.debian.org/status/package.php?p=mysql-5.5

Any ideas about what this exactly means and how to fix it?



 Comments   
Comment by Otto Kekäläinen [ 2014-07-19 ]

This is still valid for 5.5.38: https://buildd.debian.org/status/fetch.php?pkg=mariadb-5.5&arch=sparc&ver=5.5.38-1&stamp=1405680832

MySQL in Debian does however build on sparc (https://buildd.debian.org/status/package.php?p=mysql-5.5), so fixing this should not be unreasonable..?

Comment by Jan Lindström (Inactive) [ 2014-07-27 ]

revno: 4244
committer: Jan Lindström <jplindst@mariadb.org>
branch nick: 5.5
timestamp: Sun 2014-07-27 08:44:45 +0300
message:
Fix compiler error on sparc.

Generated at Thu Feb 08 07:07:39 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.