Skip to content
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

mac 下安装tbox出错。 #221

Open
naonao-cola opened this issue Aug 12, 2023 · 9 comments
Open

mac 下安装tbox出错。 #221

naonao-cola opened this issue Aug 12, 2023 · 9 comments

Comments

@naonao-cola
Copy link

xmake.lua文件里面这么写的。
add_requires("tbox",{system = false ,configs = {charset=true,coroutine=true,database=true,debug=false,float=true,["force-utf8"]=true,hash=true,mbedtls=true,micro=true,mysql=true,object=true,openssl=true,pcre=true,pcre2=true,pic=true,polarssl=true,regex=true,shared=false,sqlite3=true,xml=true,zip=true,zlib=true}})

执行安装的时候出错

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: Error installing tbox under mac.

This is written in the xmake.lua file.
add_requires("tbox",{system = false ,configs = {charset=true,coroutine=true,database=true,debug=false,float=true,["force-utf8"]=true,hash=true,mbedtls= true, micro=true, mysql=true, object=true, openssl=true, pcre=true, pcre2=true, pic=true, polarssl=true, regex=true, shared=false, sqlite3=true, xml=true, zip=true,zlib=true}})

An error occurred while performing the installation

@waruqi
Copy link
Member

waruqi commented Aug 13, 2023

凡事先给 logs

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Wherever the logs are given beforehand

@naonao-cola
Copy link
Author

凡事先给 logs

in xmake-repo:
-> mysql 8.0.31 [pic:y, from:tbox]
-> tbox v1.7.1 [object:y, pcre2:y, shared:n, zip:y, debug:n, mbedtls:y, force-utf8:y, database:y, xml:y, ..)
please input: y (y/n/m)
y
=> download https://dev.mysql.com/get/Downloads/MySQL-8.0/mysql-8.0.31.tar.gz .. ok
=> install mysql 8.0.31 .. failed

CMake Error at cmake/zlib.cmake:136 (MESSAGE):
ZLIB version must be at least 1.2.12, found 1.2.11.
Please use -DWITH_ZLIB=bundled
Call Stack (most recent call first):
CMakeLists.txt:1731 (MYSQL_CHECK_ZLIB)
e C compiler identification is AppleClang 14.0.3.14030022
-- The CXX compiler identification is AppleClang 14.0.3.14030022
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
if you want to get more verbose errors, please see:
-> /Users/naonao/.xmake/cache/packages/2308/m/mysql/8.0.31/installdir.failed/logs/install.txt

这个应该只是一个。还有别的

@waruqi
Copy link
Member

waruqi commented Aug 13, 2023

加 -vD

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Add -vD

@naonao-cola
Copy link
Author

Bot detected the issue body's language is not English, translate it automatically.

Add -vD

CMake Error at cmake/zlib.cmake:136 (MESSAGE):
ZLIB version must be at least 1.2.12, found 1.2.11.

Please use -DWITH_ZLIB=bundled
Call Stack (most recent call first):
CMakeLists.txt:1731 (MYSQL_CHECK_ZLIB)

-- Configuring incomplete, errors occurred!
See also "/Users/naonao/.xmake/cache/packages/2308/m/mysql/8.0.31/source/build_1c0b0f55/CMakeFiles/CMakeOutput.log".
See also "/Users/naonao/.xmake/cache/packages/2308/m/mysql/8.0.31/source/build_1c0b0f55/CMakeFiles/CMakeError.log".
error: @programdir/core/sandbox/modules/os.lua:362: execv(/opt/homebrew/bin/cmake -DCOMPILATION_COMMENT=XMake -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DINSTALL_DOCDIR=share/doc/#{name} -DINSTALL_INCLUDEDIR=include/mysql -DINSTALL_INFODIR=share/info -DINSTALL_MANDIR=share/man -DINSTALL_MYSQLSHAREDIR=share/mysql -DWITH_EDITLINE=bundled -DWITH_UNIT_TESTS=OFF -DDISABLE_SHARED=ON -DWITH_LZ4='system' -DWITH_ZSTD='system' -DWITH_ZLIB='system' -DWINDOWS_RUNTIME_MD=OFF -DWITHOUT_SERVER=ON -DCMAKE_INSTALL_PREFIX=/Users/naonao/.xmake/packages/m/mysql/8.0.31/1c0b0f55bf6c4d2688486f8b1ba19acc -DCMAKE_INSTALL_LIBDIR:PATH=lib -G "Unix Makefiles" -DCMAKE_POSITION_INDEPENDENT_CODE=ON /Users/naonao/.xmake/cache/packages/2308/m/mysql/8.0.31/source) failed(1)
stack traceback:
[C]: in function 'error'
[@programdir/core/base/os.lua:872]:
[@programdir/core/sandbox/modules/os.lua:362]:
[@programdir/core/sandbox/modules/os.lua:275]: in function 'vrunv'
[@programdir/modules/package/tools/cmake.lua:856]: in function 'install'
[...xmake/repositories/xmake-repo/packages/m/mysql/xmake.lua:89]: in function 'script'
[...dir/modules/private/action/require/impl/utils/filter.lua:125]: in function 'call'
[.../modules/private/action/require/impl/actions/install.lua:298]:

=> install mysql 8.0.31 .. failed
error: @programdir/modules/private/async/runjobs.lua:256: .../modules/private/action/require/impl/actions/install.lua:398: install failed!
stack traceback:
[C]: in function 'error'
[@programdir/core/base/os.lua:872]:
[.../modules/private/action/require/impl/actions/install.lua:398]: in function 'catch'
[@programdir/core/sandbox/modules/try.lua:127]: in function 'try'
[.../modules/private/action/require/impl/actions/install.lua:263]:
[...modules/private/action/require/impl/install_packages.lua:479]: in function 'jobfunc'
[@programdir/modules/private/async/runjobs.lua:232]:

stack traceback:
[C]: in function 'error'
@programdir/core/base/os.lua:872: in function 'os.raiselevel'
(...tail calls...)
@programdir/modules/private/async/runjobs.lua:256: in field 'catch'
@programdir/core/sandbox/modules/try.lua:127: in global 'try'
@programdir/modules/private/async/runjobs.lua:218: in upvalue 'cotask'
@programdir/core/base/scheduler.lua:388: in function <@programdir/core/base/scheduler.lua:385>

@naonao-cola
Copy link
Author

这个是拉的github仓库,执行的xmake f --xml=y --coroutine=y 与xmake -vD 的错误。

error: @programdir/modules/private/async/runjobs.lua:256: @programdir/modules/private/action/build/object.lua:90: @programdir/modules/core/tools/gcc.lua:672: src/demo/coroutine/http_server.c:449:21: error: variable 'count' set but not used [-Werror,-Wunused-but-set-variable]
tb_size_t count = 0;
^
1 error generated.
stack traceback:
[C]: in function 'error'
[@programdir/core/base/os.lua:872]:
[@programdir/modules/core/tools/gcc.lua:672]: in function 'catch'
[@programdir/core/sandbox/modules/try.lua:127]: in function 'try'
[@programdir/modules/core/tools/gcc.lua:613]:
[C]: in function 'xpcall'
[@programdir/core/base/utils.lua:280]:
[@programdir/modules/private/action/build/object.lua:90]: in function 'script'
[@programdir/modules/private/action/build/object.lua:103]: in function 'build_object'
[@programdir/modules/private/action/build/object.lua:128]: in function 'jobfunc'
[@programdir/modules/private/async/runjobs.lua:232]:
[C]: in function 'xpcall'
[@programdir/core/base/utils.lua:280]: in function 'trycall'
[@programdir/core/sandbox/modules/try.lua:121]: in function 'try'
[@programdir/modules/private/async/runjobs.lua:218]: in function 'cotask'
[@programdir/core/base/scheduler.lua:388]:

stack traceback:
[C]: in function 'error'
@programdir/core/base/os.lua:872: in function 'os.raiselevel'
(...tail calls...)
@programdir/modules/private/async/runjobs.lua:256: in field 'catch'
@programdir/core/sandbox/modules/try.lua:127: in global 'try'
@programdir/modules/private/async/runjobs.lua:218: in upvalue 'cotask'
@programdir/core/base/scheduler.lua:388: in function <@programdir/core/base/scheduler.lua:385>
warning: add_cxflags("gcc::-Wno-error=dangling-pointer") is ignored, please pass {force = true} or call set_policy("check.auto_ignore_flags", false) if you want to set it.

@waruqi
Copy link
Member

waruqi commented Aug 14, 2023

这个是拉的github仓库,执行的xmake f --xml=y --coroutine=y 与xmake -vD 的错误。

error: @programdir/modules/private/async/runjobs.lua:256: @programdir/modules/private/action/build/object.lua:90: @programdir/modules/core/tools/gcc.lua:672: src/demo/coroutine/http_server.c:449:21: error: variable 'count' set but not used [-Werror,-Wunused-but-set-variable] tb_size_t count = 0; ^ 1 error generated. stack traceback: [C]: in function 'error' [@programdir/core/base/os.lua:872]: [@programdir/modules/core/tools/gcc.lua:672]: in function 'catch' [@programdir/core/sandbox/modules/try.lua:127]: in function 'try' [@programdir/modules/core/tools/gcc.lua:613]: [C]: in function 'xpcall' [@programdir/core/base/utils.lua:280]: [@programdir/modules/private/action/build/object.lua:90]: in function 'script' [@programdir/modules/private/action/build/object.lua:103]: in function 'build_object' [@programdir/modules/private/action/build/object.lua:128]: in function 'jobfunc' [@programdir/modules/private/async/runjobs.lua:232]: [C]: in function 'xpcall' [@programdir/core/base/utils.lua:280]: in function 'trycall' [@programdir/core/sandbox/modules/try.lua:121]: in function 'try' [@programdir/modules/private/async/runjobs.lua:218]: in function 'cotask' [@programdir/core/base/scheduler.lua:388]:

stack traceback: [C]: in function 'error' @programdir/core/base/os.lua:872: in function 'os.raiselevel' (...tail calls...) @programdir/modules/private/async/runjobs.lua:256: in field 'catch' @programdir/core/sandbox/modules/try.lua:127: in global 'try' @programdir/modules/private/async/runjobs.lua:218: in upvalue 'cotask' @programdir/core/base/scheduler.lua:388: in function <@programdir/core/base/scheduler.lua:385> warning: add_cxflags("gcc::-Wno-error=dangling-pointer") is ignored, please pass {force = true} or call set_policy("check.auto_ignore_flags", false) if you want to set it.

这个修了 dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants