manticoresoftware / manticoresearch

Easy to use open source fast database for search | Good alternative to Elasticsearch now | Drop-in replacement for E in the ELK soon
https://manticoresearch.com
GNU General Public License v3.0
9.04k stars 507 forks source link

Local build error 6.3.2 #2393

Closed lld1995 closed 1 week ago

lld1995 commented 4 months ago

Bug Description:

/data/manticoresearch/src/replication/wsrep_v25.cpp:359:8: error: declaration of ‘using Status_e = enum class RAW25::Status_e’ changes meaning of ‘Status_e’ [-fpermissive] 359 | using Status_e = Status_e; | ^~~~ /data/manticoresearch/src/replication/wsrep_v25.cpp:18:12: note: ‘Status_e’ declared here as ‘enum class RAW25::Status_e’ 18 | enum class Status_e : int { | ^~~~

/data/manticoresearch/src/replication/wsrep_v31.cpp:418:8: error: declaration of ‘using Status_e = enum class RAW31::Status_e’ changes meaning of ‘Status_e’ [-fpermissive] 418 | using Status_e = Status_e; | ^~~~ /data/manticoresearch/src/replication/wsrep_v31.cpp:18:12: note: ‘Status_e’ declared here as ‘enum class RAW31::Status_e’ 18 | enum class Status_e : int { | ^~~~

But 6.2.12 is compile success

Manticore Search Version:

master

Operating System Version:

ubuntu20.04

Have you tried the latest development version?

None

Internal Checklist:

To be completed by the assignee. Check off tasks that have been completed or are not applicable.

- [x] Implementation completed - [x] Tests developed - [x] Documentation updated - [x] Documentation reviewed - [x] Changelog updated
sanikolaev commented 4 months ago

Are you using our special docker image for builds? https://manual.manticoresearch.com/Installation/Compiling_from_sources#Building-using-CI-Docker

If so, pls provide a full instruction to reproduce. If not, pls consider using it.

lld1995 commented 4 months ago

Are you using our special docker image for builds? https://manual.manticoresearch.com/Installation/Compiling_from_sources#Building-using-CI-Docker

If so, pls provide a full instruction to reproduce. If not, pls consider using it.

mkdir build && cd build cmake .. make -j16 Linux user-Super-Server 5.11.0-27-generic #29~20.04.1-Ubuntu SMP Wed Aug 11 15:58:17 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

cmake version 3.29.0-rc2

gcc version 10.5.0 (Ubuntu 10.5.0-1ubuntu1~20.04)

sanikolaev commented 4 months ago

We don't use gcc for our builds. Is there any problem with using our special docker image for builds?

lld1995 commented 4 months ago

We don't use gcc for our builds. Is there any problem with using our special docker image for builds?

I build on local system 6.2.12 is passed,but when i use >6.3, the errors come out

sanikolaev commented 4 months ago

Okay. If you prefer to continue building outside of Docker, you'll need to determine what changes were made in our build Docker image since version 6.2.12. This will help you understand how to update your local environment. The relevant files, including the Dockerfile, are open source and available at https://github.com/manticoresoftware/manticoresearch/blob/master/dist/build_dockers/cross/external_toolchain/Dockerfile, along with other files in the directory at https://github.com/manticoresoftware/manticoresearch/tree/master/dist/build_dockers/cross.

sanikolaev commented 1 week ago

@tomatolog pls update the changelog

tomatolog commented 1 week ago

updated changelog