-
-
Notifications
You must be signed in to change notification settings - Fork 141
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
bug: compile Error, ‘STONEDB_TAG_NAME’ was not declared in this scope, #1328
Comments
Can you acess github? this var comes from git at compiling stage. pls check your dev env. Thanks. @davidshiz |
|
Not a bug, Close it now. |
in CMakeLists.txt
when you can not get TAG_NAME, we define a |
Hello, how to solve this error, we have encountered it now |
@lifengfan13 You can have a try in this way. Just add an empty tag by git command |
Thanks, I'll try it |
hello, I still have a bug. /stonedb/sql/mysqld.cc: In function ‘void print_build_info()’:
/stonedb/sql/mysqld.cc:7049:33: error: ‘STONEDB_BRANCH_NAME’ was not declared in this scope
7049 | printf("\tBranch name: %s\n", STONEDB_BRANCH_NAME);
| ^~~~~~~~~~~~~~~~~~~
/stonedb/sql/mysqld.cc:7050:36: error: ‘STONEDB_COMMIT_ID’ was not declared in this scope
7050 | printf("\tLast commit ID: %s\n", STONEDB_COMMIT_ID);
| ^~~~~~~~~~~~~~~~~
/stonedb/sql/mysqld.cc:7051:38: error: ‘STONEDB_COMMIT_TIME’ was not declared in this scope; did you mean ‘STONEDB_BUILD_TIME’?
7051 | printf("\tLast commit time: %s\n", STONEDB_COMMIT_TIME);
| ^~~~~~~~~~~~~~~~~~~
| STONEDB_BUILD_TIME
/stonedb/sql/mysqld.cc: In function ‘void set_server_version()’:
/stonedb/sql/mysqld.cc:8134:31: error: ‘STONEDB_TAG_NAME’ was not declared in this scope
8134 | static_cast<int>(sizeof(STONEDB_TAG_NAME))) |
Is your env. clean? First time to make build? |
I compiled it for the first time, according to the official website dockers tutorial. |
@lifengfan13 You can change the stonedb/CMakeLists.txt file, line 848 |
Thanks,I'll try . |
I am git clone repo on the host, and then mount it in docker, so these variables cannot be obtained. must be run command git config --global --add safe.directory /stonedb . |
what result does the following command get on your instance ?
|
It has been compiled successfully! Thanks. |
Have you read the Contributing Guidelines on issues?
Please confirm if bug report does NOT exists already ?
Describe the problem
When fock a branch in your own code repo, you cannot compile successfully. because your own code repo have no tag.
It is recommended to decouple from tags when compiling code.
Expected behavior
No response
How To Reproduce
No response
Environment
Are you interested in submitting a PR to solve the problem?
The text was updated successfully, but these errors were encountered: