You are viewing a plain text version of this content. The canonical link for it is here.
Posted to discuss-archive@tvm.apache.org by "AshwiniBokka (via GitHub)" <gi...@apache.org> on 2026/02/10 15:14:47 UTC

[PR] [Fix][libbacktrace] Fix build failure with spaces in path [tvm]

AshwiniBokka opened a new pull request, #18746:
URL: https://github.com/apache/tvm/pull/18746

   ## Fix libbacktrace build failure with spaces in path
   
   Fixes #17416
   
   ### Problem
   When building TVM in directories with spaces, libbacktrace build fails with:


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: discuss-archive-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: discuss-archive-unsubscribe@tvm.apache.org
For additional commands, e-mail: discuss-archive-help@tvm.apache.org


Re: [PR] [Fix][libbacktrace] Fix build failure with spaces in path [tvm]

Posted by "AshwiniBokka (via GitHub)" <gi...@apache.org>.
AshwiniBokka commented on PR #18746:
URL: https://github.com/apache/tvm/pull/18746#issuecomment-3879461315

   Thanks for explaining! I understand now - the libbacktrace implementation is being moved to tvm-ffi, making this fix in the main repo unnecessary. 
   
   This helps me understand TVM's architectural direction better. I'll look for other contribution opportunities that align with current project priorities.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: discuss-archive-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: discuss-archive-unsubscribe@tvm.apache.org
For additional commands, e-mail: discuss-archive-help@tvm.apache.org


Re: [PR] [Fix][libbacktrace] Fix build failure with spaces in path [tvm]

Posted by "tqchen (via GitHub)" <gi...@apache.org>.
tqchen commented on PR #18746:
URL: https://github.com/apache/tvm/pull/18746#issuecomment-3878474801

   this is no longer neded as we are moving towards libbacktrace in tvm-ffi


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: discuss-archive-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: discuss-archive-unsubscribe@tvm.apache.org
For additional commands, e-mail: discuss-archive-help@tvm.apache.org


Re: [PR] [Fix][libbacktrace] Fix build failure with spaces in path [tvm]

Posted by "gemini-code-assist[bot] (via GitHub)" <gi...@apache.org>.
gemini-code-assist[bot] commented on code in PR #18746:
URL: https://github.com/apache/tvm/pull/18746#discussion_r2788574173


##########
cmake/libs/Libbacktrace.cmake:
##########
@@ -1,4 +1,4 @@
-# Licensed to the Apache Software Foundation (ASF) under one
+# Licensed to the Apache Software Foundation (ASF) under one

Review Comment:
   ![medium](https://www.gstatic.com/codereviewagent/medium-priority.svg)
   
   A UTF-8 Byte Order Mark (BOM) has been added to the beginning of this file. This is often an unintentional artifact from a text editor and can cause issues with some tools and scripts that do not expect it. It should be removed to ensure file compatibility.



##########
cmake/libs/Libbacktrace.cmake:
##########
@@ -59,8 +59,8 @@ tvm_file_glob(GLOB LIBBACKTRACE_SRCS "${CMAKE_CURRENT_LIST_DIR}/../../3rdparty/l
 ExternalProject_Add_Step(project_libbacktrace checkout
   DEPENDERS configure
   DEPENDEES download
-  DEPENDS ${LIBBACKTRACE_SRCS}
+  DEPENDS ${LIBBACKTRACE_SRcs}

Review Comment:
   ![critical](https://www.gstatic.com/codereviewagent/critical.svg)
   
   There appears to be a typo in the variable name. It was changed from `LIBBACKTRACE_SRCS` to `LIBBACKTRACE_SRcs`. CMake variable names are case-sensitive, and `LIBBACKTRACE_SRcs` is not defined (the variable is defined as `LIBBACKTRACE_SRCS` on line 58). This will break the custom step's dependency on the source files, meaning changes to `libbacktrace` sources won't trigger a rebuild.
   
   ```
     DEPENDS ${LIBBACKTRACE_SRCS}
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: discuss-archive-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: discuss-archive-unsubscribe@tvm.apache.org
For additional commands, e-mail: discuss-archive-help@tvm.apache.org


Re: [PR] [Fix][libbacktrace] Fix build failure with spaces in path [tvm]

Posted by "tqchen (via GitHub)" <gi...@apache.org>.
tqchen closed pull request #18746: [Fix][libbacktrace] Fix build failure with spaces in path
URL: https://github.com/apache/tvm/pull/18746


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: discuss-archive-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: discuss-archive-unsubscribe@tvm.apache.org
For additional commands, e-mail: discuss-archive-help@tvm.apache.org


Re: [PR] [Fix][libbacktrace] Fix build failure with spaces in path [tvm]

Posted by "gemini-code-assist[bot] (via GitHub)" <gi...@apache.org>.
gemini-code-assist[bot] commented on PR #18746:
URL: https://github.com/apache/tvm/pull/18746#issuecomment-3878400938

   ## Summary of Changes
   
   Hello @AshwiniBokka, I'm Gemini Code Assist[^1]! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!
   
   This pull request addresses a critical build issue where the `libbacktrace` component would fail to compile if the project's build directory contained spaces. By correctly quoting paths in the CMake configuration, the change significantly improves the robustness and portability of the build system, allowing developers to build TVM in a wider range of directory structures.
   
   ### Highlights
   
   * **Build Fix**: Resolved a build failure for `libbacktrace` when the project path contains spaces, specifically addressing issue #17416.
   * **CMake Path Handling**: Implemented proper quoting for directory paths within the `Libbacktrace.cmake` configuration to ensure compatibility with paths containing spaces.
   * **Variable Name Correction**: Corrected a variable name (`LIBBACKTRACE_SRCS` to `LIBBACKTRACE_SRcs`) in the `ExternalProject_Add_Step` command.
   
   🧠 **New Feature in Public Preview:** You can now enable **Memory** to help **Gemini Code Assist** learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. **Click [here](https://codeassist.google/code-review/login) to enable Memory in your admin console.**
   
   <details>
   <summary><b>Changelog</b></summary>
   
   * **cmake/libs/Libbacktrace.cmake**
       * Quoted `SOURCE_DIR`, `BINARY_DIR`, and `--prefix` arguments in `ExternalProject_Add` to correctly handle paths with spaces.
       * Corrected the variable name `LIBBACKTRACE_SRCS` to `LIBBACKTRACE_SRcs` in the `ExternalProject_Add_Step` command.
       * Ensured the `file(MAKE_DIRECTORY)` command properly quotes the target directory.
       * Adjusted file encoding, potentially adding a Byte Order Mark (BOM).
   </details>
   
   <details>
   <summary><b>Activity</b></summary>
   
   * No specific activity (comments, reviews, or progress updates) was found in the provided context for this pull request.
   </details>
   
   <details>
   <summary><b>Using Gemini Code Assist</b></summary>
   <br>
   
   The full guide for Gemini Code Assist can be found on our [documentation page](https://developers.google.com/gemini-code-assist/docs/review-github-code), here are some quick tips.
   
   <b>Invoking Gemini</b>
   
   You can request assistance from Gemini at any point by creating a comment using either `/gemini <command>` or `@gemini-code-assist <command>`. Below is a summary of the supported commands on the current page.
   
   Feature | Command | Description
   --- | --- | ---
   Code Review | `/gemini review` | Performs a code review for the current pull request in its current state.
   Pull Request Summary | `/gemini summary` | Provides a summary of the current pull request in its current state.
   Comment | @gemini-code-assist | Responds in comments when explicitly tagged, both in pull request comments and review comments.
   Help | `/gemini help` | Displays a list of available commands.
   
   <b>Customization</b>
   
   To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a `.gemini/` folder in the base of the repository. Detailed instructions can be found [here](https://developers.google.com/gemini-code-assist/docs/customize-gemini-behavior-github).
   
   <b>Limitations & Feedback</b>
   
   Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with :thumbsup: and :thumbsdown: on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up [here](https://google.qualtrics.com/jfe/form/SV_2cyuGuTWsEw84yG).
   
   <b>You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the [Gemini Code Assist IDE Extension](https://cloud.google.com/products/gemini/code-assist).</b>
   </details>
   
   
   [^1]: Review the [Privacy Notices](https://policies.google.com/privacy), [Generative AI Prohibited Use Policy](https://policies.google.com/terms/generative-ai/use-policy), [Terms of Service](https://policies.google.com/terms), and learn how to configure Gemini Code Assist in GitHub [here](https://developers.google.com/gemini-code-assist/docs/customize-gemini-behavior-github). Gemini can make mistakes, so double check it and [use code with caution](https://support.google.com/legal/answer/13505487).
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: discuss-archive-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: discuss-archive-unsubscribe@tvm.apache.org
For additional commands, e-mail: discuss-archive-help@tvm.apache.org