-
Notifications
You must be signed in to change notification settings - Fork 409
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
Building from source failed on mac M1 #5184
Comments
Here is the output of
|
|
CMakeError.log There are many hints of identifier errors. I also found some discussion about this question but no solution...
Changing CMakeLists also dose not work..
|
Hi, do you have more detailed inclusion path of |
Hi~ |
Sorry for the confusion, by saying This can be inferred from the error context.
so is it possible to provide what you have omitted here? |
I think here's the problem. And the parameter "msse4.1" appears...
And I found 'msse4.1' in
|
Yes, that is quite suspicious. |
I found 'msse4.1' in cmake/test_cpu.cmake... So I think it doesn't matter here... I used AppleClang back and restored my changes in CMakeLists.txt. After deleting the content of
full information:
|
This makes the compiler to find static libraries, which is not expected. But it does not take effect as:
|
https://github.com/pingcap/tiflash/blob/master/CMakeLists.txt#L274, would you check if this code block is wrongly executed? e.g. adding |
I found this issue, Byron mentioned
|
This code block is not executed. |
This problem seems to be caused by llvm. I would like to ask if anyone has successfully compiled tiflash with m1? |
our CD pipelines compile tiflash for M1. But it is triggered only when we are to release new binaries. @solotzg Do you have any idea of what is happening here? |
I have solved this issue. I want create a pr about modifying the CMakeList later. Is this okay?
|
The problem lies in LINKER_NAME and CMAKE_EXE_LINKER_FLAGS. When I use AppleClang, if CMAKE_EXE_LINKER_FLAGS finds the lld of llvm then I get an error. |
Feel free to have a try! |
Thanks for helping me find the problem. I have submitted a solution. PTAL :) |
Sorry, some time ago I found out that the problem was with my configuration file (.zshrc), which imported an environment variable about llvm. |
Hello!
I try to build tiflash from source on my mac m1, and I got some errors when configuring.
When I run
cmake ../tiflash
, I gotCMake Error at contrib/zlib-ng/CMakeLists.txt:477 (message): sizeof(void *) is neither 32 nor 64 bit
. And I also found this error in there(ClickHouse repo), so I follow this issue to modify the CMakeLists.But it does not work...
In case it's a problem with xcode CommandLineTools, I also reinstalled xcode-select.
The text was updated successfully, but these errors were encountered: