Bug 197550 - [arm] databases/percona56-server using unsupported fpsetmask types
Summary: [arm] databases/percona56-server using unsupported fpsetmask types
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: arm Any
: --- Affects Some People
Assignee: Florian Smeets
URL: http://chips.ysv.freebsd.org/data/11a...
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-12 00:41 UTC by Sean Bruno
Modified: 2015-02-12 22:39 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (flo)


Attachments
fix build on armv6 (706 bytes, patch)
2015-02-12 13:28 UTC, Mikael Urankar
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sean Bruno freebsd_committer freebsd_triage 2015-02-12 00:41:17 UTC
I seem to remember doing something to fix a similar error on another port for arm.

[ 64%] Building CXX object sql/CMakeFiles/sql.dir/mysqld.cc.o
cd /wrkdirs/usr/ports/databases/percona56-server/work/percona-server-5.6.22-71.0/sql && /nxb-bin/usr/bin/c++   -DGTEST_USE_OWN_TR1_TUPLE=1 -DHAVE_CONFIG_H -DHAVE_EVENT_SCHEDULER -DHAVE_POOL_OF_THREADS -DMYSQL_SERVER -O -pipe -fno-strict-aliasing -Wall -Wextra -Wformat-security -Wvla -Woverloaded-virtual -Wno-unused-parameter -Wno-null-conversion -Wno-unused-private-field -O -pipe -fno-strict-aliasing -DDBUG_OFF -I/wrkdirs/usr/ports/databases/percona56-server/work/percona-server-5.6.22-71.0/include -I/wrkdirs/usr/ports/databases/percona56-server/work/percona-server-5.6.22-71.0/sql -I/wrkdirs/usr/ports/databases/percona56-server/work/percona-server-5.6.22-71.0/regex -I/wrkdirs/usr/ports/databases/percona56-server/work/percona-server-5.6.22-71.0/zlib -I/wrkdirs/usr/ports/databases/percona56-server/work/percona-server-5.6.22-71.0/extra/yassl/include -I/wrkdirs/usr/ports/databases/percona56-server/work/percona-server-5.6.22-71.0/extra/yassl/taocrypt/include    -DHAVE_YASSL -DYASSL_PREFIX -DHAVE_OPENSSL -DMULTI_THREADED -o CMakeFiles/sql.dir/mysqld.cc.o -c /wrkdirs/usr/ports/databases/percona56-server/work/percona-server-5.6.22-71.0/sql/mysqld.cc
/wrkdirs/usr/ports/databases/percona56-server/work/percona-server-5.6.22-71.0/sql/mysqld.cc:194:19: error: cannot combine with previous 'type-name' declaration specifier
typedef fp_except fp_except_t;
                  ^
/usr/include/machine/ieeefp.h:51:21: note: expanded from macro 'fp_except_t'
#define fp_except_t     int
                        ^
/wrkdirs/usr/ports/databases/percona56-server/work/percona-server-5.6.22-71.0/sql/mysqld.cc:194:1: warning: typedef requires a name [-Wmissing-declarations]
typedef fp_except fp_except_t;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/databases/percona56-server/work/percona-server-5.6.22-71.0/sql/mysqld.cc:232:3: error: use of undeclared identifier 'fpsetmask'; did you mean 'sigsetmask'?
  fpsetmask(~(FP_X_INV |             FP_X_OFL | FP_X_UFL | FP_X_DZ |
  ^~~~~~~~~
  sigsetmask
/usr/include/signal.h:119:5: note: 'sigsetmask' declared here
int     sigsetmask(int);
        ^
In file included from /wrkdirs/usr/ports/databases/percona56-server/work/percona-server-5.6.22-71.0/sql/mysqld.cc:1276:
/wrkdirs/usr/ports/databases/percona56-server/work/percona-server-5.6.22-71.0/extra/yassl/include/openssl/crypto.h:22:9: warning: 'ysSSL_crypto_h__' is used as a header guard here, followed by #define of a different macro [-Wheader-guard]
#ifndef ysSSL_crypto_h__
        ^~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/databases/percona56-server/work/percona-server-5.6.22-71.0/extra/yassl/include/openssl/crypto.h:23:9: note: 'yaSSL_crypto_h__' is defined here; did you mean 'ysSSL_crypto_h__'?
#define yaSSL_crypto_h__
        ^~~~~~~~~~~~~~~~
        ysSSL_crypto_h__
2 warnings and 2 errors generated.
*** Error code 1
Comment 1 Bugzilla Automation freebsd_committer freebsd_triage 2015-02-12 00:41:17 UTC
Auto-assigned to maintainer flo@FreeBSD.org
Comment 2 Mikael Urankar freebsd_committer freebsd_triage 2015-02-12 13:28:53 UTC
Created attachment 152897 [details]
fix build on armv6

For armv6, Declare FPSETMASK 0 and FEDISABLEEXCEPT 1

build log:
http://mikael.urankar.free.fr/FreeBSD/arm/build_logs/percona56-server-5.6.22.71.0.log
Comment 3 Sean Bruno freebsd_committer freebsd_triage 2015-02-12 15:25:04 UTC
confirmed.

flo:  You want to commit this or shall I?
Comment 4 Florian Smeets freebsd_committer freebsd_triage 2015-02-12 18:19:29 UTC
(In reply to Sean Bruno from comment #3)
There is an update pending, I'll try to get that in today, if it works out I'll include your patches. Thanks.
Comment 5 commit-hook freebsd_committer freebsd_triage 2015-02-12 22:38:39 UTC
A commit references this bug:

Author: flo
Date: Thu Feb 12 22:38:20 UTC 2015
New revision: 378901
URL: https://svnweb.freebsd.org/changeset/ports/378901

Log:
  Update to 5.6.22-72.0
  Fix build on arm [1]

  PR:		197550 [1]
  Submitted by:	mikael.urankar@gmail.com [1]
  Tested by:	sbruno [1]

Changes:
  head/databases/percona56-client/files/patch-scripts_CMakeLists.txt
  head/databases/percona56-client/pkg-plist
  head/databases/percona56-server/Makefile
  head/databases/percona56-server/distinfo
  head/databases/percona56-server/files/extra-patch-config.h.cmake
  head/databases/percona56-server/files/patch-scripts_CMakeLists.txt
  head/databases/percona56-server/pkg-plist
Comment 6 Florian Smeets freebsd_committer freebsd_triage 2015-02-12 22:39:20 UTC
Committed. Thanks.