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

Resolve the error generated by cross-compiled mcmodel=extreme or loon… #6

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

songzhian
Copy link

…garch64 on x86_x64

Enable ClickHouse to cross-compile for loongarch64 on x86_x64, so that it can run on loongarch64 So far, only basic functions have been tested (on real hardware: 3B5000, 3C5000, 3C6000), The ClickHouse server is running and functioning normally, and the client is working, The basic function test is effective, affecting only loongarch64-linux-gnu Resolve the error generated by cross-compiled mcmodel=extreme Specific operation
build/bin/clang++ --target=loongarch64-linux-gnu -mcmodel=extreme -o {BUILD_PATH}/google-protobuf/src/google/protobuf/generated_message_tctable_lite.cc.o -c {CLICKHOUSE_SRC_PATH}/google-protobuf/src/google/protobuf/generated_message_tctable_lite.cc Error message
fatal error: error in backend: failed to perform tail call elimination on a call site marked musttail

  1.  <eof> parser at end of file
    
  2.  Code generation
    
  3.  Running pass 'Function Pass Manager' on module '{CLICKHOUSE_SRC_PATH}/contrib/google-protobuf/src/google/protobuf/generated_message_tctable_lite.cc'.
    
  4.  Running pass 'LoongArch DAG->DAG Pattern Instruction Selection' on function '@_ZN6google8protobuf8internal8TcParser9MiniParseEPNS0_11MessageLiteEPKcPNS1_12ParseContextENS1_11TcFieldDataEPKNS1_16TcParseTableBaseEm'
    

#0 0x0000000001f919d7 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (build/bin/clang+++0x1f919d7)
...............
...............

…garch64 on x86_x64

Enable ClickHouse to cross-compile for loongarch64 on x86_x64, so that it can run on loongarch64
So far, only basic functions have been tested (on real hardware: 3B5000, 3C5000, 3C6000),
The ClickHouse server is running and functioning normally, and the client is working,
The basic function test is effective, affecting only loongarch64-linux-gnu
Resolve the error generated by cross-compiled mcmodel=extreme
Specific operation
build/bin/clang++  --target=loongarch64-linux-gnu -mcmodel=extreme  -o  {BUILD_PATH}/google-protobuf/src/google/protobuf/generated_message_tctable_lite.cc.o -c {CLICKHOUSE_SRC_PATH}/google-protobuf/src/google/protobuf/generated_message_tctable_lite.cc
Error message
fatal error: error in backend: failed to perform tail call elimination on a call site marked musttail
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module '{CLICKHOUSE_SRC_PATH}/contrib/google-protobuf/src/google/protobuf/generated_message_tctable_lite.cc'.
4.      Running pass 'LoongArch DAG->DAG Pattern Instruction Selection' on function '@_ZN6google8protobuf8internal8TcParser9MiniParseEPNS0_11MessageLiteEPKcPNS1_12ParseContextENS1_11TcFieldDataEPKNS1_16TcParseTableBaseEm'
 #0 0x0000000001f919d7 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (build/bin/clang+++0x1f919d7)
...............
...............
@CLAassistant
Copy link

CLAassistant commented Jan 9, 2025

CLA assistant check
All committers have signed the CLA.

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

Successfully merging this pull request may close these issues.

2 participants