Commit Graph

198 Commits

Author SHA1 Message Date
63ea233ae2 [thirdpart](lib) Add lock free queue of concurrentqueue (#14045) 2022-11-08 11:34:23 +08:00
a19e6881c7 [chore](be web ui)upgrade jquery version to 3.6.0 (#13942)
* upgrade jquery version to 3.6.0

* update license dist
2022-11-04 16:20:17 +08:00
bad950136d [chore](build) Pass the compile flag -Wno-unused-but-set-variable on demand (#13716)
There are some issues with the compile flag `-Wno-unused-but-set-variable` for clang.
1. `-Wno-unused-but-set-variable` should be set when building source by clang-15 on Linux. (#13000 #13016)
2. On macOS Monterey, Apple Clang 13 may treat it as a unknown warning option and the compilation process may interrupt.

This PR introduces a better way to make this compile flag more portable.
1. Test whether the compiler recognizes this flag.
2. Add this flag if the compiler recognizes it.
2022-10-27 15:18:28 +08:00
4db18c139c [fix](thirdparty) g++-11: error: unrecognized command-line option '-m… (#13607)
When compiling third-party hdfs on aarch64 machine,
got error: g++-11: error: unrecognized command-line option '-msse4.2'
2022-10-25 21:35:31 +08:00
d624ff0580 [chore](macOS) Avoid using binutils from Homebrew to build third parties (#13512)
Overwrite the environment variable PATH to avoid using binutils from Homebrew to build third parties which may cause compilation errors.

Error: building for macOS-x86_64 but attempting to link with file built for unknown-unsupported file format
2022-10-21 01:28:30 +08:00
410e36ef5b [enhancement](macOS) Refine the build scripts for macOS (#13473)
Set the environment up before running the build scripts on macOS.
2022-10-19 22:52:22 +08:00
125def5102 [enhancement](macOS M1) Support building from source on macOS (M1) (#13195)
# Proposed changes

This PR fixed lots of issues when building from source on macOS with Apple M1 chip.

## ATTENTION

The job for supporting macOS with Apple M1 chip is too big and there are lots of unresolved issues during runtime:
1. Some errors with memory tracker occur when BE (RELEASE) starts.
2. Some UT cases fail.
...

Temporarily, the following changes are made on macOS to start BE successfully.
1. Disable memory tracker.
2. Use tcmalloc instead of jemalloc.

This PR kicks off the job. Guys who are interested in this job can continue to fix these runtime issues.

## Use case

```shell
./build.sh -j 8 --be --clean

cd output/be/bin
ulimit -n 60000
./start_be.sh --daemon
```

## Something else

It takes around _**10+**_ minutes to build BE (with prebuilt third-parties) on macOS with M1 chip. We will improve the  development experience on macOS greatly when we finish the adaptation job.
2022-10-18 13:10:13 +08:00
c1588b2900 [thirdparty](zstd)update dist info and thirdparty change log (#13392) 2022-10-17 09:09:16 +08:00
52397df9f0 [thirdparty](update) zstd 1.5.0 to 1.5.2 #13378 2022-10-15 10:50:20 +08:00
9350c0be80 [Bug](aarch64) Fix the BRPC "sched_to itself" error when building BE by Clang on Linux aarch64 (#13270) 2022-10-11 15:38:28 +08:00
2dafbda9de [chore](third-party) Fix compilation errors reported by clang-15 (#13016)
Add some compile flags to eliminate compilation errors reported by clang-15.
2022-09-27 23:46:43 +08:00
429ac929fb [chore](build) Support building from source on ubuntu-22.04 (aarch64) (#12813)
Support building from source on ubuntu-22.04
2022-09-27 10:29:13 +08:00
11e0151445 [chore](build) add an option to disable strip thridparty libs (#12772) 2022-09-21 09:11:25 +08:00
b550985df6 fix thirdparty builder (#12768) 2022-09-20 19:41:00 +08:00
cb06e67fba [fix](tracing) Fix opentelemetry log output to be.out (#11856) 2022-09-18 17:40:23 +08:00
353bb6fdfb [doc] update docs (#12615) 2022-09-15 11:07:34 +08:00
47d43b34b3 [enhancement](thirdparty) Compile Jemalloc separately on thirdparty (#12577)
Compile Jemalloc separately and optimize the configuration
2022-09-14 23:31:48 +08:00
a219a41dde [dependency](xxhash) Add xxhash lib (#12566)
Add xxhash lib for BE, which is the faster hash method by test.
2022-09-14 12:30:09 +08:00
08c5e0b1e3 [chore](deps) strip debug info of thirdparty dependencies (#12284)
Strip debug info of most of thridparty dependencies' static lib.
If can significantly reduce the size of thirdparty libs: 3.4G -> 1.6G
And the doris_be binary size will be reduced: 1.5G -> 868M (clang build)
And after compress, the BE binary is only 195M with debug info!
2022-09-02 15:43:29 +08:00
f3f17eb222 [Bugfix](load) fix be will coredump when parsing malformed json file using simdjson (#12062)
* [Bugfix](load) fix be will coredump when parsing malformed json file using simdjson
2022-08-26 18:01:19 +08:00
0728f08c65 [improvement](dependency) Use release mode to build cctz. Improve performance. 2022-08-19 17:56:52 +08:00
4fa53b4cdb [chore](workflow) Add shellcheck to check shell scripts (#11744) 2022-08-18 16:07:28 +08:00
a912910d4b [fix](thirdparty) Fix the errors while building brpc (#11714) 2022-08-12 13:59:44 +08:00
0f555e90cb [deps](brpc) Upgrade Brpc to 1.2.0 fix _dl_sym undefined reference on new verison of glibc (#11688) 2022-08-12 09:07:57 +08:00
c6f520fab4 [thirdparty](brpc) fix _dl_sym undefined reference on Ubuntu22.04 (#11643)
Co-authored-by: qcloud <ubuntu@localhost.localdomain>
2022-08-10 19:23:10 +08:00
8b9d299472 [improvement](thirdparty) Build re2 with release mode (#11578) 2022-08-07 20:50:07 +08:00
95091256b0 [chore](deps) update bdbje tp doris bdbje, update libhdfs3 to improve performance (#11497) 2022-08-04 17:10:56 +08:00
c176ff54a5 [improvement](orc)improve hdfs scan performance (#11501)
Co-authored-by: root <root@bytedance>
2022-08-04 17:10:30 +08:00
36784d9131 [bugfix](compile) Fix compile hyperscan failed when build thirdparty #11481 2022-08-04 11:21:17 +08:00
edf92f10ff [fix](build) The nproc command does not exist in macos by default, use sysctl -n hw.logicalcpu instead to get the number of logical cores available (#11379) 2022-08-02 09:11:14 +08:00
8f85ad1c96 [doc](intro) update the introduce (#11364) 2022-08-01 14:22:17 +08:00
d1d66f7ffc [chore](thirdparty) Build script doesn't interrupt when errors occur. (#11357)
1. Add a comment
2. Remove all &&
2022-07-31 20:53:50 +08:00
ab7e65112c [fix](thirdparty) fix compile error: missing libbrpc.a (#11353)
fix compile error, add fpic to brpc dependency library
2022-07-31 13:26:08 +08:00
Pxl
6c2337483b [compile]remove all fpic on thirdpatry build (#11298) 2022-07-29 14:16:43 +08:00
6a53cf8efa [dependency](be) Add vectorscan for support hypserscan on ARM (#11102)
hyperscan is a high-performance regular expression matching library, but can not be used on ARM.
vectorscan is an ARM port for hyperscan, it can be used as a drop in replacement.

Since hyperscan is original created by Intel and is popular and mature on x86, so we just use vectorscan
only for aarch64 when build thirdparty.
2022-07-26 11:28:25 +08:00
4d158f9050 [dependency](arrow) Add GetRawORCReader function for arrow orc reader (#11069)
Add a new function in arrow adapter to get the raw orc reader which we can get more information
from such offset or min/max value.
And this will be used in #1046
This modify is inspired by Clickhouse
2022-07-21 22:23:05 +08:00
e3c19ded44 [enhancement](thirdparty) Support building thirdparty on macOS (#10677) 2022-07-18 10:50:30 +08:00
e159e748df [chore](dependency) fix opentelemetry-cpp enable o3 optimization will core. (#10675) 2022-07-08 10:08:07 +08:00
b7441ed291 [chore] remove default REPOSITORY_URL link (#10599) 2022-07-05 11:07:18 +08:00
67f341f44e [TLP](step-1) Remove incubator prefix (#10230)
Remove some `incubator-` prefix in source code.
The document is not modified, will be done in next PR.
2022-06-19 19:34:52 +08:00
14d21edf65 [fix] croaringbitmap compile support USE_AVX2=0 (#10140)
* If we disable AVX2 by config USE_AVX2=0, we need to croaringbitmap with ROARING_DISABLE_AVX=ON

* update to trigger regression test again

Co-authored-by: cambyzju <zhuxiaoli01@baidu.com>
2022-06-16 18:17:46 +08:00
3f9436c6a8 [compile]fix simdjson compile flags (#10054) 2022-06-16 11:28:51 +08:00
39a2785ce2 [enhancement] support simd instructions on arm cpus through sse2neon (#10068)
* [enhancement] support simd instructions on arm cpus through sse2neon
2022-06-14 09:17:09 +08:00
7cf0cc7dd6 [deps] update libhdfs3 to fix a uuid set problem (#10092) 2022-06-14 09:16:32 +08:00
e0cf2677a0 [dependency][enhancement] support build libhdfs in arm cpus (#10018)
Supports native hdfs functionality on arm cpu
This pr mainly upgrades libdfs3 and supports running on arm,and make libhdfs3 with kerberos as default
2022-06-10 19:40:41 +08:00
a34d4b55f9 [dependency] Add opentelemetry related third-party library. (#9990) 2022-06-10 09:59:07 +08:00
73a3093539 [dependency] add hyperscan and its dependency ragel to thirdparty (#9964) 2022-06-09 23:36:09 +08:00
Pxl
c0ad1be1bd [Enhancement][Chore] remove breakpad and unused variable (#9937) 2022-06-02 20:52:17 +08:00
9f26c6a34f [chore] fix some compatible on old linux distributions (#9815) 2022-06-02 10:37:10 +08:00
635b5630e3 [fix](third-party) Fix build issues of third-party in ubuntu docker (#9805)
Fixes:
1. Fully static linkage of protoc may lead to core dump when using it.
2. Building libmyclient may fail due to miss-used option `-v` of `make`
3. Building lzma implicitly requires autopoint
4. Building xml2 implicitly requires pkg-config
2022-05-29 17:33:59 +08:00