Skip to content

Unable to build on Windows #17

Open

Description

@idontcare999a

Hello, I am trying to build this on Windows using CMake (Visual Studio / VSCode).

Line 15 on main.cpp

cannot open source file "unistd.h"

If I comment it out and compile again, I get a few more:

Line 207 and 441 on main.cpp:

use of designated initializers requires at least '/std:c++20'

Line 745 on main.cpp:

identifier "isatty" is undefined
identifier "STDIN_FILENO" is undefined

Activity

  1. nmntz commented on Jun 8, 2023

    @nmntz
    Collaborator

    Interesting. Unfortunately I don't currenly use Windows to debug this.
    Can you try running the GPT2 example in the ggml library? https://github.com/ggerganov/ggml#gpt-inference-example

  2. idontcare999a commented on Jun 22, 2023

    @idontcare999a
    Author

    I was able to build and run the starcoder.exe from ggml repo.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions