MySQL Forums
Forum List  »  Source, Builds, Binaries

building mysql-8.0.16 buf0buf.cc: SYS_gettid error
Posted by: Leon Yu
Date: July 07, 2019 08:37AM

Hello! While building mysql-boost-8.0.16 I got the following error:
[ 35%] Building CXX object storage/innobase/CMakeFiles/innobase.dir/buf/buf0buf.cc.o
/root/ly/mysql-8.0.16/storage/innobase/buf/buf0buf.cc: In function ‘void buf_pool_create(buf_pool_t*, ulint, ulint, std::mutex*, dberr_t&)’:
/root/ly/mysql-8.0.16/storage/innobase/buf/buf0buf.cc:1220:44: error: ‘SYS_gettid’ was not declared in this scope
1220 | setpriority(PRIO_PROCESS, (pid_t)syscall(SYS_gettid), -20);
| ^~~~~~~~~~
make[2]: *** [storage/innobase/CMakeFiles/innobase.dir/buf/buf0buf.cc.o] Error 1
make[1]: *** [storage/innobase/CMakeFiles/innobase.dir/all] Error 2
make: *** [all] Error 2

Using gcc version 9.1.0 (GCC) and cmake version 3.14.5.

I need help. Thank you

Options: ReplyQuote


Subject
Views
Written By
Posted
building mysql-8.0.16 buf0buf.cc: SYS_gettid error
1713
July 07, 2019 08:37AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.