Giter VIP home page Giter VIP logo

Comments (6)

Algunenano avatar Algunenano commented on June 27, 2024 1

All the infrastructure and build details are in the repo itself and in the build logs. You can check https://s3.amazonaws.com/clickhouse-test-reports/0/997c1963f6096e74ba257a91fcaca52153caeea9/clickhouse_build_check/report.html for that specific commit and see which docker image was used, which compiler, which command, etc.

from clickhouse.

XiaoqiMa avatar XiaoqiMa commented on June 27, 2024

@Algunenano Could you please help me to clarify a bit?

from clickhouse.

alexey-milovidov avatar alexey-milovidov commented on June 27, 2024
$ ch -q "SELECT * FROM system.build_options WHERE name = 'GIT_HASH'"
GIT_HASH        997c1963f6096e74ba257a91fcaca52153caeea9

997c196

from clickhouse.

XiaoqiMa avatar XiaoqiMa commented on June 27, 2024

SELECT * FROM system.build_options WHERE name = 'GIT_HASH'

@alexey-milovidov

Thanks for you replay.

Ok, I understand how to find the build version.

Still, another question still bothers me. I just want to know what's the specific compile machine, clang versionm, compile flags for the official build?

In my case:

[root@master /]# clang --version
clang version 18.1.6
Target: aarch64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/local/bin

Compile commands (I have to disable rust, otherwise it occurs error):
cmake -DENABLE_RUST=OFF -DENABLE_CLICKHOUSE_SELF_EXTRACTING=1 -S . -B build

from clickhouse.

XiaoqiMa avatar XiaoqiMa commented on June 27, 2024

@Algunenano

I have checked the build options through command: select * from system.build_options. And I found the differences in CMAKE_CXX_FLAGS and CMAKE_C_FLAGS are -flto=thin -fwhole-program-vtables I assume these two flags can cause performance difference.

I have tried to add those two compile flags in CMakeLists.txt just as follows:
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -flto=thin -fwhole-program-vtables")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -flto=thin -fwhole-program-vtables")

But the compile process gets stuck just because those two compile flags. How to handle this situation? Do you have any advice?

from clickhouse.

Algunenano avatar Algunenano commented on June 27, 2024

The whole build system is scripted and uses docker images. You can simply replicate that if you want to match exactly how the official image is built.

from clickhouse.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.