Skip to content

commit 96ea727 breaks compilation in Windows #74

Closed

Description

@etra0

Sadly, Windows terminal support of ANSI colors and signals is simply... non-existent, and this PR in particular adds a ton of things that are not supported by this OS.

I don't know if filling the entire llama.cpp with #ifdefs would be ideal... or to rewrite those changes to encapsulate them better to make it less painful, but either way, it is a lot of work.

Reverting that commit and doing a couple of merge fixes makes it work.

PS: Maybe it would be good to add an action that compiles the software in the three platforms? but, yet, I'm curious about the willing to support windows as well since it's the special kid between the unix-like guys :)

Activity

  1. changed the title [-]96ea727f4780620b60c1897b538654931411a3fd breaks compilation in Windows[/-] [+]commit https://github.com/ggerganov/llama.cpp/commit/96ea727f4780620b60c1897b538654931411a3fd breaks compilation in Windows[/+] on Mar 13, 2023
  2. changed the title [-]commit https://github.com/ggerganov/llama.cpp/commit/96ea727f4780620b60c1897b538654931411a3fd breaks compilation in Windows[/-] [+]commit `96ea727` breaks compilation in Windows[/+] on Mar 13, 2023
  3. changed the title [-]commit `96ea727` breaks compilation in Windows[/-] [+]commit [`96ea727`](https://github.com/ggerganov/llama.cpp/commit/96ea727f4780620b60c1897b538654931411a3fd) breaks compilation in Windows[/+] on Mar 13, 2023
  4. changed the title [-]commit [`96ea727`](https://github.com/ggerganov/llama.cpp/commit/96ea727f4780620b60c1897b538654931411a3fd) breaks compilation in Windows[/-] [+]commit `96ea727` breaks compilation in Windows[/+] on Mar 13, 2023
  5. etra0 commented on Mar 13, 2023

    @etra0
    ContributorAuthor

    Oh my god, I'm sorry for all the edits, I thought links on the titles were supported, lol

  6. blackhole89 commented on Mar 13, 2023

    @blackhole89
    Contributor

    I #if-gated the signals-related stuff (which I figure would not work on Windows). As for ANSI colors, I figure you can always just not pass --color. Did that fix the build?

  7. etra0 commented on Mar 13, 2023

    @etra0
    ContributorAuthor

    I confirm that the commit a169bb8 fixes this issue!

  8. added
    bug
    build
    on Mar 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugbuild

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions