Skip to content
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

[Tool] Fix main build #55684

Merged
merged 1 commit into from
Feb 8, 2025
Merged

[Tool] Fix main build #55684

merged 1 commit into from
Feb 8, 2025

Conversation

ahmadov
Copy link
Contributor

@ahmadov ahmadov commented Feb 7, 2025

Why I'm doing:

The main branch build fails because of glog as follows:

thirdparty/src/glog-0.7.1
make: *** No targets specified and no makefile found. Stop.

The issue is CMAKE_GENERATOR is set to Ninja in env.sh#L111 when ninja command is available but it tries to compile with make.

What I'm doing:

To fix it, use the command set by BUILD_SYSTEM to compile which is compatible with CMAKE_GENERATOR.

Fixes #53383

What type of PR is this:

  • BugFix
  • Feature
  • Enhancement
  • Refactor
  • UT
  • Doc
  • Tool

Does this PR entail a change in behavior?

  • Yes, this PR will result in a change in behavior.
  • No, this PR will not result in a change in behavior.

If yes, please specify the type of change:

  • Interface/UI changes: syntax, type conversion, expression evaluation, display information
  • Parameter changes: default values, similar parameters but with different default values
  • Policy changes: use new policy to replace old one, functionality automatically enabled
  • Feature removed
  • Miscellaneous: upgrade & downgrade compatibility, etc.

Checklist:

  • I have added test cases for my bug fix or my new feature
  • This pr needs user documentation (for new or modified features or behaviors)
    • I have added documentation for my new feature or new function
  • This is a backport pr

Bugfix cherry-pick branch check:

  • I have checked the version labels which the pr will be auto-backported to the target branch
    • 3.4
    • 3.3
    • 3.2
    • 3.1
    • 3.0

@ahmadov ahmadov requested a review from a team as a code owner February 7, 2025 17:52
@mergify mergify bot assigned ahmadov Feb 7, 2025
@ahmadov ahmadov changed the title [Build] Fix main build [Tool] Fix main build Feb 7, 2025
The `main` branch build fails because of `glog` as follows:
```sh
thirdparty/src/glog-0.7.1
make: *** No targets specified and no makefile found. Stop.
```

The issue is `CMAKE_GENERATOR` is set to `Ninja` but it tries to compile
with `make`. To fix it, use the `BUILD_SYSTEM` command to compile which
is compatible with `CMAKE_GENERATOR`.

FIX StarRocks#53383

Signed-off-by: Elmi Ahmadov <[email protected]>
Copy link

github-actions bot commented Feb 7, 2025

[Java-Extensions Incremental Coverage Report]

pass : 0 / 0 (0%)

Copy link

github-actions bot commented Feb 7, 2025

[FE Incremental Coverage Report]

pass : 0 / 0 (0%)

Copy link

github-actions bot commented Feb 7, 2025

[BE Incremental Coverage Report]

pass : 0 / 0 (0%)

@kevincai kevincai merged commit 3eb9baf into StarRocks:main Feb 8, 2025
77 checks passed
@kevincai
Copy link
Contributor

kevincai commented Feb 8, 2025

@Mergifyio backport branch-3.4 branch-3.3

Copy link
Contributor

mergify bot commented Feb 8, 2025

backport branch-3.4 branch-3.3

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Feb 8, 2025
Signed-off-by: Elmi Ahmadov <[email protected]>
(cherry picked from commit 3eb9baf)
@mergify mergify bot mentioned this pull request Feb 8, 2025
18 tasks
mergify bot pushed a commit that referenced this pull request Feb 8, 2025
Signed-off-by: Elmi Ahmadov <[email protected]>
(cherry picked from commit 3eb9baf)
@mergify mergify bot mentioned this pull request Feb 8, 2025
18 tasks
wanpengfei-git pushed a commit that referenced this pull request Feb 8, 2025
wanpengfei-git pushed a commit that referenced this pull request Feb 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The Main branch fails to be compiled.
3 participants