Resolve the error generated by cross-compiled mcmodel=extreme or loon…#6
Open
songzhian wants to merge 1 commit intoClickHouse:mainfrom
Open
Resolve the error generated by cross-compiled mcmodel=extreme or loon…#6songzhian wants to merge 1 commit intoClickHouse:mainfrom
songzhian wants to merge 1 commit intoClickHouse:mainfrom
Conversation
…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)
...............
...............
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…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
#0 0x0000000001f919d7 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (build/bin/clang+++0x1f919d7)
...............
...............