{"thread":{"id":"45795","subject":"Git For Windows SDK - cannot build","startedAt":"2017-04-25T11:19:39Z","lastAt":"2017-04-25T21:33:56Z","messageCount":2,"participants":["Stepan Kasal","Johannes Schindelin"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"317801","messageId":"20170425111315.GB13400@ucw.cz","threadId":"45795","inReplyTo":null,"subject":"Git For Windows SDK - cannot build","fromName":"Stepan Kasal","fromEmail":"kasal@ucw.cz","sentAt":"2017-04-25T11:13:15Z","receivedAt":"2017-04-25T11:19:39Z","isPatch":false,"sender":{"key":"kasal@ucw.cz","avatar":"https://avatars.githubusercontent.com/u/1481596?v=4"},"body":"Hello,\nI have installed git for windows sdk from the web and tried to build it.\n\nThe build ended with a link bug; see below.\n\nCould you please help me with debugging that?\n\nI have tried various pacman -S libiconv; pacman -Su; pacman -S libiconv-devel\nbut I still do not understand pacman and its dependencies, I'm afraid.\n\nHints or pointers to doc welcome.\n\nStepan Kasal\n\n$ make\n    LINK git-credential-store\nlibgit.a(utf8.o): In function `reencode_string_iconv':\n/usr/src/git/utf8.c:463: undefined reference to `libiconv'\n/usr/src/git/utf8.c:463:(.text+0xf77): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `libiconv'\nlibgit.a(utf8.o): In function `reencode_string_len':\n/usr/src/git/utf8.c:524: undefined reference to `libiconv_open'\n/usr/src/git/utf8.c:524:(.text+0xff1): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `libiconv_open'\n/usr/src/git/utf8.c:535: undefined reference to `libiconv_close'\n/usr/src/git/utf8.c:535:(.text+0x1018): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `libiconv_close'\n/usr/src/git/utf8.c:529: undefined reference to `libiconv_open'\n/usr/src/git/utf8.c:529:(.text+0x104a): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `libiconv_open'\ncollect2: error: ld returned 1 exit status\nmake: *** [Makefile:2061: git-credential-store] Error 1\n\n"},{"id":"317862","messageId":"alpine.DEB.2.20.1704252330480.3480@virtualbox","threadId":"45795","inReplyTo":"20170425111315.GB13400@ucw.cz","subject":"Re: Git For Windows SDK - cannot build","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2017-04-25T21:33:47Z","receivedAt":"2017-04-25T21:33:56Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi Stepan,\n\nas I commented on your post to the Git for Windows mailing list:\n\nOn Tue, 25 Apr 2017, Stepan Kasal wrote:\n\n> I have installed git for windows sdk from the web and tried to build it.\n\nNobody in the project found the time to update the website yet, but we do\nhave a simpler way to install the SDK now:\n\n\tgit clone https://github.com/git-for-windows/git-sdk-64\n\n> $ make\n>     LINK git-credential-store\n> libgit.a(utf8.o): In function `reencode_string_iconv':\n> /usr/src/git/utf8.c:463: undefined reference to `libiconv'\n> /usr/src/git/utf8.c:463:(.text+0xf77): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `libiconv'\n\nThis most likely means that `pacman -Sy mingw-w64-x86_64-libiconv` should\nbe called before re-running `make`.\n\nThe reason why the `libiconv` package (without `mingw-w64-` prefix) is not\nhelping: that package is an *MSYS2* package, i.e. it implicitly links to\nthe MSYS2 runtime (the POSIX emulation layer derived from Cygwin that we\nuse in Git for Windows to run Shell and Perl scripts, as well as OpenSSH).\n\nCiao,\nJohannes\n"}]}