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

Hello, I reported this error while executing make and I don't know how to handle it #42

Closed
neugle opened this issue Mar 18, 2024 · 4 comments

Comments

@neugle
Copy link

neugle commented Mar 18, 2024

CMake Error at /mir2x/build/phmap-prefix/src/phmap-stamp/phmap-build-.cmake:49 (message):
Command failed: 2

'make'

See also

/mir2x/build/phmap-prefix/src/phmap-stamp/phmap-build-*.log

phmap-build-err.log:
/usr/bin/ld: CMakeFiles/ex_mt_word_counter.dir/examples/mt_word_counter.cc.o: in function main': mt_word_counter.cc:(.text.startup+0x743): undefined reference to pthread_create'
/usr/bin/ld: mt_word_counter.cc:(.text.startup+0xd06): undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status
make[5]: *** [CMakeFiles/ex_mt_word_counter.dir/build.make:97:ex_mt_word_counter] 错误 1
make[4]: *** [CMakeFiles/Makefile2:1067:CMakeFiles/ex_mt_word_counter.dir/all] 错误 2
make[3]: *** [Makefile:146:all] 错误 2

@etorth
Copy link
Owner

etorth commented Mar 18, 2024

try now, I disabled the phmap examples build.

@neugle
Copy link
Author

neugle commented Mar 20, 2024

try now, I disabled the phmap examples build.

Thank you very much. The issue related to phmap has been resolved, but when I continued to make, the following problem occurred:
[ 30%] Completed 'libzstd'
[ 30%] Built target libzstd
[ 30%] Built target mir2x_3rds
[ 31%] Building CXX object common/src/CMakeFiles/common.dir/colorf.cpp.o
[ 31%] Building CXX object common/src/CMakeFiles/common.dir/combatnode.cpp.o
In file included from /mir2x/common/src/serdesmsg.hpp:16,
from /mir2x/common/src/combatnode.hpp:7,
from /mir2x/common/src/combatnode.cpp:5:
/mir2x/common/src/luaf.hpp: 在构造函数‘luaf::luaVarWrapper::luaVarWrapper(luaf::luaVar)’中:
/mir2x/common/src/luaf.hpp:128:13: 错误:class template argument deduction failed:
128 | }, std::move(v))){}
| ^
编译因为 -Wfatal-errors 而中止。
make[2]: *** [common/src/CMakeFiles/common.dir/build.make:90:common/src/CMakeFiles/common.dir/combatnode.cpp.o] 错误 1
make[1]: *** [CMakeFiles/Makefile2:1348:common/src/CMakeFiles/common.dir/all] 错误 2
make: *** [Makefile:156:all] 错误 2

@etorth etorth closed this as completed Mar 20, 2024
@etorth etorth reopened this Mar 20, 2024
@etorth
Copy link
Owner

etorth commented Mar 21, 2024

which compiler you are using? try gcc-12

@neugle
Copy link
Author

neugle commented Mar 22, 2024

I am currently using gcc version 10.5.0, so I will try using gcc-12.
Thank you very much.

@neugle neugle closed this as completed Mar 22, 2024
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

2 participants