[MDEV-19129] Build Failure on OSX Created: 2019-04-01  Updated: 2021-12-12  Resolved: 2021-10-21

Status: Closed
Project: MariaDB Server
Component/s: Compiling
Affects Version/s: 10.2, 10.5
Fix Version/s: 10.2.41, 10.3.32, 10.4.22, 10.5.13, 10.6.5, 10.7.1

Type: Bug Priority: Major
Reporter: Varun Gupta (Inactive) Assignee: Sergei Krivonos (Inactive)
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates
relates to MDEV-15435 clang: error: unknown argument: '-fwh... Open

 Description   

clang --version
Apple LLVM version 10.0.0 (clang-1000.10.44.4)
Target: x86_64-apple-darwin18.5.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

There are lots of errors when i build on OSX 10.14.4

/Users/varun/MariaDB/10.2/libmariadb/plugins/auth/gssapi_errmsg.c:55:20: error: 'gss_display_status' is deprecated: use GSS.framework
      [-Werror,-Wdeprecated-declarations]
      maj_status = gss_display_status(
                   ^
/usr/include/gssapi/gssapi.h:560:19: note: 'gss_display_status' has been explicitly marked deprecated here
    gss_buffer_t) GSSKRB_APPLE_DEPRECATED("use GSS.framework");      /* status_string */
                  ^
/usr/include/gssapi/gssapi.h:56:51: note: expanded from macro 'GSSKRB_APPLE_DEPRECATED'
#define GSSKRB_APPLE_DEPRECATED(x) __attribute__((deprecated(x)))
                                                  ^
/Users/varun/MariaDB/10.2/libmariadb/plugins/auth/gssapi_errmsg.c:74:7: error: 'gss_release_buffer' is deprecated: use GSS.framework
      [-Werror,-Wdeprecated-declarations]

/Users/varun/MariaDB/10.2/mysys/stacktrace.c:160:21: error: 'sbrk' is deprecated [-Werror,-Wdeprecated-declarations]
  heap_end= (char*) sbrk(0);
                    ^
/usr/include/unistd.h:585:1: note: 'sbrk' has been explicitly marked deprecated here
__deprecated __WATCHOS_PROHIBITED __TVOS_PROHIBITED
^
/usr/include/sys/cdefs.h:176:37: note: expanded from macro '__deprecated'
#define __deprecated    __attribute__((deprecated))

/Users/varun/MariaDB/10.2/mysys/my_sync.c:136:19: error: unused variable 'cur_dir_name' [-Werror,-Wunused-const-variable]
static const char cur_dir_name[]= {FN_CURLIB, 0};
                  ^

/Users/varun/MariaDB/10.2/mysys/my_lock.c:184:7: error: incompatible function pointer types assigning to 'sig_return' (aka 'void (*)(void)')
      from 'void (*)(int)' [-Werror,-Wincompatible-function-pointer-types]
      ALARM_INIT;
      ^~~~~~~~~~
/Users/varun/MariaDB/10.2/include/my_alarm.h:36:16: note: expanded from macro 'ALARM_INIT'
                        alarm_signal=signal(SIGALRM,my_set_alarm_variable);
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/varun/MariaDB/10.2/mysys/my_lock.c:190:7: error: incompatible function pointer types passing 'sig_return' (aka 'void (*)(void)') to
      parameter of type 'void (*)(int)' [-Werror,-Wincompatible-function-pointer-types]
      ALARM_END;
      ^~~~~~~~~
/Users/varun/MariaDB/10.2/include/my_alarm.h:37:41: note: expanded from macro 'ALARM_END'
#define ALARM_END       (void) signal(SIGALRM,alarm_signal); \
                                              ^~~~~~~~~~~~
/usr/include/sys/signal.h:390:27: note: passing argument to parameter here
void    (*signal(int, void (*)(int)))(int);
                             ^



 Comments   
Comment by Varun Gupta (Inactive) [ 2019-04-02 ]

Patch 1
http://lists.askmonty.org/pipermail/commits/2019-April/013604.html

Comment by Sergei Krivonos (Inactive) [ 2021-10-05 ]

https://github.com/MariaDB/server/pull/1922

Comment by Sergei Krivonos (Inactive) [ 2021-10-06 ]

Good day julien.fritsch,

Still waiting for access to create build-branches in MariaDB/server.

Thanks

Comment by Sergei Krivonos (Inactive) [ 2021-10-06 ]

I guess pull requests have a bit different CI checking

Comment by Sergei Krivonos (Inactive) [ 2021-10-06 ]

psergei, can we proceed with pull requests for now?

Comment by Sergei Petrunia [ 2021-10-07 ]

sergei.krivonos, ok I've made comments at https://github.com/MariaDB/server/pull/1922 . Let's catch each other on Slack to discuss.

Comment by Sergei Krivonos (Inactive) [ 2021-10-08 ]

Thanks psergei,

Almost forgot to mention that, as we decided not to complete groonga-related compatibility errors by switching it off using -DWITHOUT_MROONGA:bool=1, I moved partial groonga-related fix to new branch Groonga https://github.com/SergMariaDB/server/tree/Groonga also based on 10.2.

Thanks

Comment by Sergei Krivonos (Inactive) [ 2021-10-11 ]

https://github.com/MariaDB/server/pull/1927

Comment by Sergei Krivonos (Inactive) [ 2021-10-13 ]

https://buildbot.mariadb.org/#/grid?branch=bb-10.5-MDEV-19129

Comment by Sergei Petrunia [ 2021-10-13 ]

Commit 33845806359fd77974864e5b3cd809fd8444057c is ok to push but please change the name to be distinct from previous commits.

Comment by Sergei Krivonos (Inactive) [ 2021-10-18 ]

https://github.com/mariadb-corporation/mariadb-connector-c/pull/184

Comment by Sergei Krivonos (Inactive) [ 2021-10-18 ]

https://github.com/MariaDB/server/commit/68c0317699b03a1ba226cdacdb0f3135936a6045

Comment by Sergei Krivonos (Inactive) [ 2021-10-20 ]

https://github.com/MariaDB/server/commit/122736e5ba2a394e463f4ebacda6e0b971eef34c

Comment by Sergei Krivonos (Inactive) [ 2021-10-21 ]

https://github.com/MariaDB/server/commit/7d6617e966c02a08c36d86ac5ae4be70fe0f93e9

Comment by Sergei Krivonos (Inactive) [ 2021-12-01 ]

After it been fixed, some commits made it broken again. In order to stick this result we need to add Mac mini to buildbot.
dbart, whom from Helpdesk team could we add to this thread?
Thanks.

Comment by Daniel Bartholomew [ 2021-12-01 ]

ralf.gebhardt@mariadb.com and serg: What are your thoughts on acquiring a new Mac Mini for buildbot? I could host it at my location or we could put one into the Sofia datacenter.

Comment by Sergei Krivonos (Inactive) [ 2021-12-12 ]

It only should take to add cmake option https://cmake.org/cmake/help/latest/cpack_gen/dmg.html

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