New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
编译tokudb出错 #12
Comments
当前的g++版本是多少? 建议升级下g++版本进行编译。 |
g++ version: g++ (GCC) 5.2.1 20150902 |
尝试在编译参数里关闭 -DWITH_EMBEDDED_SERVER=0 可以先绕过这个问题, 我们在review这个编译问题。 |
hallo from australia |
Two problems fixed in this patch: 1. cmake regular expression can't compile for "stdc++"; 2. when create libmysqld.a archived library, object files of storage/tokudb/ft-index/src/loader.cc and storage/tokudb/ft-index/ft/loader/loader.cc conflicts, the former is overwrited, and lead to link failure finally.
主干代码已经 fix 编译问题。 Percona Server 和 MariaDB 没有问题,是因为 TokuDB 是通过编译成 so 插件使用的,而 AliSQL 是静态编译进 mysqld 的,也会静态编译到embeded library (libmysqld.a) 里。 BTW: 试了下把 PS 的 TokuDB 改成静态编译,也是会失败的 :-) |
cmake是通过了,make在100%的时候报错,还是编译不过:
|
能否提供下操作系统信息,我们测下看。 |
[root@10-10-14-251 ~]# uname -a
[root@10-10-14-251 ~]# cat /etc/redhat-release
[root@10-10-14-251 ~]# env
|
@xpchild 启动后日志报unknown variable 'loose_...',只要是loose的参数都找不到 |
如题,相同环境下能编译percona和mariadb的tokudb
执行语句如下:
cmake -DCMAKE_INSTALL_PREFIX=/usr/local/alisql
-DMYSQL_DATADIR=/data/mysql/8306/data
-DWITH_INNOBASE_STORAGE_ENGINE=1
-DWITH_MEMORY_STORAGE_ENGINE=1
-DWITH_MYISAM_STORAGE_ENGINE=1
-DWITH_TOKUDB_STORAGE_ENGINE=1
-DSYSCONFDIR=/data/mysql/8306
-DWITH_SSL=yes
-DDEFAULT_CHARSET=utf8
-DDEFAULT_COLLATION=utf8_general_ci
报错如下:
RegularExpression::compile(): Nested *?+.
RegularExpression::compile(): Error in compile.
CMake Error at scripts/CMakeLists.txt:287 (IF):
if given arguments:
Regular expression "-lstdc++ " cannot compile
Call Stack (most recent call first):
scripts/CMakeLists.txt:307 (EXTRACT_LINK_LIBRARIES)
-- Configuring incomplete, errors occurred!
cmake version: 2.8.12.2
gcc version: gcc (GCC) 5.2.1 20150902
The text was updated successfully, but these errors were encountered: