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

cmake bug with spacebar in username #44

Open
matprec opened this issue Mar 12, 2018 · 1 comment
Open

cmake bug with spacebar in username #44

matprec opened this issue Mar 12, 2018 · 1 comment

Comments

@matprec
Copy link

matprec commented Mar 12, 2018

I'm trying to compile libgit2, which fails on my machine in cmake/VS.

The problem is that my username contains a spacebar ("Forename Lastname", autogenerated by windows). For inspection, press strg+f and search for C:\Users\Forename with highlighting enabled. You'll find partial/incomplete versions of the username string.

I have no idea where to start debugging the problem so help/guidance is appreciated.

    ClCompile:
      C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.13.26128\bin\HostX86\x64\CL.exe /c /IC:\Users\Forename /Zi /nologo /W1 /WX- /diagnostics:classic /Od /Ob0 /D GIT_SSH /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_258f1.dir\Debug\\" /Fd"cmTC_258f1.dir\Debug\vc141.pdb" /Gd /TC /FC /errorReport:queue  /GL- Lastname\Documents\Projekte\cratestats\target\debug\build\libssh2-sys-65d75e3acd4f00db\out/include "C:\Users\Forename Lastname\Documents\Projekte\cratestats\target\debug\build\libgit2-sys-157e0f5b905e5579\out\build\CMakeFiles\CMakeTmp\testCCompiler.c"
      include
    c1 : fatal error C1083: Datei (Quelle) kann nicht geöffnet werden: "Lastname\Documents\Projekte\cratestats\target\debug\build\libssh2-sys-65d75e3acd4f00db\out/include": No such file or directory [C:\Users\Forename Lastname\Documents\Projekte\cratestats\target\debug\build\libgit2-sys-157e0f5b905e5579\out\build\CMakeFiles\CMakeTmp\cmTC_258f1.vcxproj]
      testCCompiler.c
      Code wird generiert...
    Die Erstellung des Projekts "C:\Users\Forename Lastname\Documents\Projekte\cratestats\target\debug\build\libgit2-sys-157e0f5b905e5579\out\build\CMakeFiles\CMakeTmp\cmTC_258f1.vcxproj" ist abgeschlossen (Standardziele) -- FEHLER.

    Fehler beim Buildvorgang.

    "C:\Users\Forename Lastname\Documents\Projekte\cratestats\target\debug\build\libgit2-sys-157e0f5b905e5579\out\build\CMakeFiles\CMakeTmp\cmTC_258f1.vcxproj" (Standardziel) (1) ->
    (ClCompile Ziel) ->
      c1 : fatal error C1083: Datei (Quelle) kann nicht geöffnet werden: "Lastname\Documents\Projekte\cratestats\target\debug\build\libssh2-sys-65d75e3acd4f00db\out/include": No such file or directory [C:\Users\Forename Lastname\Documents\Projekte\cratestats\target\debug\build\libgit2-sys-157e0f5b905e5579\out\build\CMakeFiles\CMakeTmp\cmTC_258f1.vcxproj]
@alexcrichton
Copy link
Member

Thanks for the report! Working around these bugs may actually require changes in the CMakeLists.txt file itself or otherwise quoting differently when passing arguments down to cmake itself. Unfortunately I've yet to see a solves-everything solution :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants