Fwd: Unable to build MiKTeX

A <[email protected]>
Newsgroups gmane.comp.tex.miktex
Message-ID <CABoGZRfmFCWu8BCZ4mkUqb4O0V9KEezzmt-crukEFYW-ishcQg@mail.gmail.com>
Hello David,

I checked the folder "C:\miktex\miktex-2.9-2016-10-30\Libraries\MiKTeX\Util".
There does not appear to be a file named "util.rc"; however, there is a
file named "util.rc.in".  The file "util-version.h" is present.  Also,
there is a file named "util-version.h.cmake".  I am attaching
"Util.rename_to_zip" which is a ZIP file containing "util.rc.in",
"util-version.h", and "util-version.h.cmake".  Please rename the file
extension to ".zip".  (I found that the mailing system doesn't allow
sending a file with a ".zip" extension.  Hopefully this attachment goes
through this time.  In case it doesn't work then I will try sending another
message with the contents of the files inline.)

I made the following updates as per your suggestions:

- I downloaded and installed 32-bit Cygwin:
  - Download page: "https://cygwin.com/install.html"
  - Used the "setup-x86.exe" link -- direct link: "
https://cygwin.com/setup-x86.exe"
  - Selected the following packages for install: dos2unix version 7.3.4-1,
bison 3.0.4-1, m4 version 1.4.17-2, flex version 2.6.1-1
  - The installer automatically selected and installed the following
dependency packages: bzip2 version 1.0.6-2, ca-certificates version 2.10-1,
groff version 1.22.3-1, less version 481-1, libargp version 20110921-3,
libattr1 version 2.4.46-1, libblkid1 version 2.25.2-2, libbz2_1 version
1.0.6-2, libffi6 version 3.2.1-1, libgcc1 version 5.4.0-1, libgdbm4 version
1.12-1, libgmp10 version 6.1.1-1, libiconv version 1.14-3, libiconv2
version 1.14-3, libintl8 version 0.19.8.1-2, liblzma5 version 5.2.2-1,
libmpfr4 version 3.1.5-1, libncursesw10 version 6.0-8.20160917, libp11-kit0
version 0.22.1-1, libpcre1 version 8.39-1, libpipeline1 version 1.4.0-1
libpopt-common version 1.16-2, libpopt0 version 1.16-2, libsigsegv2 version
2.10-2, libsmartcols1 version 2.25.2-2, libssp0 version 5.4.0-1, libstdc++6
version 5.4.0-1, libtasn1_6 version 4.9-1, libuuid1 version 2.25.2-2,
p11-kit version 0.22.1-1, p11-kit-trust version 0.22.1-1, xz version
5.2.2-1, zlib0 version 1.2.8-3
  - Installed to "C:\cygwin".

- I opened an Administrator Command Prompt and changed directory to
"C:\miktex":
  > cd C:\miktex
- I have an installation of Git / TortoiseGit.  I set the path to Git:
  > set PATH=C:\Program Files\Git\bin
- I ran the commands you provided to pull the repository:
  > git clone https://github.com/MiKTeX/miktex.git
C:\miktex\miktex-2.9-master
    - Completed successfully
  > cd \miktex\miktex-2.9-master
  > git checkout 9b912e4
    - Here is the output:
---- Beginning of output of git checkout command: ----
Note: checking out '9b912e4'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at 9b912e4... Fix release state

---- End of output of git checkout command. ----

- I then modified the path as follows (note that I am adding the 32-bit
Cygwin instead of 64-bit this time):
  > set PATH=%PATH%;C:\Windows\system32
  > "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat"
  > set PATH=%PATH%;C:\Program Files\CMake\bin;C:\Program
Files\java\jdk1.8.0_25\bin;C:\Python27;C:\cygwin\bin;C:\Program Files
(x86)\Pandoc;C:\Qt\Qt5.5.1\5.5\msvc2013_64\bin;C:\miktex\
ImageMagick-7.0.3-9-portable-Q16-x64;C:\miktex\fop-2.1;C:\
miktex\libxslt-1.1.28-win32-x86_64\bin
  > echo %PATH%
    - Output: C:\Program Files (x86)\Microsoft Visual Studio
14.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow;C:\Program Files
(x86)\Microsoft SDKs\F#\4.0\Framework\v4.0\;C:\Program Files
(x86)\MSBuild\14.0\bin;C:\Program Files (x86)\Microsoft Visual Studio
14.0\Common7\IDE\;C:\Program Files (x86)\Microsoft Visual Studio
14.0\VC\BIN;C:\Program Files (x86)\Microsoft Visual Studio
14.0\Common7\Tools;C:\Windows\Microsoft.NET\Framework\v4.0.30319;C:\Program
Files (x86)\Microsoft Visual Studio 14.0\VC\VCPackages;C:\Program Files
(x86)\HTML Help Workshop;C:\Program Files (x86)\Microsoft Visual Studio
14.0\Team Tools\Performance Tools;C:\Program Files (x86)\Windows
Kits\10\bin\x86;C:\Program Files (x86)\Microsoft
SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\;C:\Program
Files\Git\bin;C:\Windows\system32;C:\Program Files\CMake\bin;C:\Program
Files\java\jdk1.8.0_25\bin;C:\Python27;C:\cygwin\bin;C:\Program Files
(x86)\Pandoc;C:\Qt\Qt5.5.1\5.5\msvc2013_64\bin;C:\miktex\
ImageMagick-7.0.3-9-portable-Q16-x64;C:\miktex\fop-2.1;C:\
miktex\libxslt-1.1.28-win32-x86_64\bin
- I set the CMAKE_PREFIX_PATH as before:
  > set CMAKE_PREFIX_PATH=C:\Qt\Qt5.5.1\5.5\msvc2013_64\lib\cmake\
Qt5;C:\miktex\icu4c-58_1-Win64-MSVC2015\icu\include;C:\
miktex\icu4c-58_1-Win64-MSVC2015\icu\lib64
- I ran CMake as before:
  > cmake -G "NMake Makefiles"
    - Completed successfully
- I ran NMake as before:
  > nmake
  - The build failed after approximately 25 minutes with apparently the
same error as before:
---- Beginning of tail of nmake output: ----
[ 24%] Linking C shared library ..\..\..\..\binlib\MiKTeX209-uriparser.dll
   Creating library ..\..\..\..\binlib\MiKTeX209-uriparser.lib and object
..\..\..\..\binlib\MiKTeX209-uriparser.exp
[ 24%] Built target MiKTeX209-uriparser
Scanning dependencies of target gen-core-sources
[ 24%] Generating miktex.der.h
[ 24%] Built target gen-core-sources
Scanning dependencies of target MiKTeX209-md5
[ 24%] Building C object Libraries/3rd/md5/shared/
CMakeFiles/MiKTeX209-md5.dir/__/source/md5.c.obj
md5.c
[ 24%] Building RC object Libraries/3rd/md5/shared/
CMakeFiles/MiKTeX209-md5.dir/md5.rc.res
Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384
Copyright (C) Microsoft Corporation.  All rights reserved.

[ 24%] Linking C shared library ..\..\..\..\binlib\MiKTeX209-md5.dll
   Creating library ..\..\..\..\binlib\MiKTeX209-md5.lib and object
..\..\..\..\binlib\MiKTeX209-md5.exp
[ 24%] Built target MiKTeX209-md5
Scanning dependencies of target MiKTeX209-util
[ 24%] Building CXX object Libraries/MiKTeX/Util/shared/
CMakeFiles/MiKTeX209-util.dir/__/StringUtil.cpp.obj
StringUtil.cpp
[ 24%] Building CXX object Libraries/MiKTeX/Util/shared/
CMakeFiles/MiKTeX209-util.dir/__/Tokenizer.cpp.obj
Tokenizer.cpp
[ 24%] Building CXX object Libraries/MiKTeX/Util/shared/
CMakeFiles/MiKTeX209-util.dir/__/win/winStringUtil.cpp.obj
winStringUtil.cpp
[ 24%] Building RC object Libraries/MiKTeX/Util/shared/
CMakeFiles/MiKTeX209-util.dir/util.rc.res
Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384
Copyright (C) Microsoft Corporation.  All rights reserved.

C:\miktex\miktex-2.9-master\include\miktex/win/version.rc(111) : warning
RC4003: not enough actual parameters for macro 'stringify__'

C:\miktex\miktex-2.9-master\include\miktex/win/version.rc(93) : error
RC2127 : version WORDs separated by commas expected

C:\miktex\miktex-2.9-master\include\miktex/win/version.rc(93) : error
RC2167 : unrecognized VERSIONINFO field;  BEGIN or comma expected
NMAKE : fatal error U1077: 'C:\PROGRA~2\WI3CF2~1\10\bin\x86\rc.exe' :
return code '0x3'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio
14.0\VC\BIN\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio
14.0\VC\BIN\nmake.exe"' : return code '0x2'
Stop.

---- End of tail of nmake output. ----

Thanks for further advice on how to solve this.





On Thu, Dec 8, 2016 at 1:20 AM, David Allsopp <[email protected]>
wrote:

> A wrote:
> > Sure thing.  I retried the build after installing most items from scratch
> > (the exception being Visual C++ and Java):
>
> <snip>
>
> > - I downloaded and installed 64-bit Cygwin from "
> > https://cygwin.com/install.html" -- direct link: "
> > https://cygwin.com/setup-x86_64.exe".
> >   - Installed Cygwin to "C:\cygwin64".
>
>
> <snip>
>
> YMMV, but Cygwin 32-bit is more stable (mainly because it's older) - when
> used as a build system, there's no practical difference between the 32 and
> 64 bit versions (because you're not linking anything). That said, I don't
> think it's related to what's going wrong.
>
> <snip>
>
> >   - Ran the CMake command based on the readme:
> >     > cmake -G "NMake Makefiles"
> >   - CMake completed successfully.
> >   - Ran the NMake command based on the readme:
> >     > nmake
> >   - About 21 minutes into the build process, the following error
> occurred:
> >
> >   ---- Beginning of tail of nmake output: ---- [ 14%] Linking C shared
> > library ..\..\..\..\binlib\MiKTeX209-uriparser.dll
> >    Creating library ..\..\..\..\binlib\MiKTeX209-uriparser.lib and
> object
> > ..\..\..\..\binlib\MiKTeX209-uriparser.exp
> > [ 14%] Built target MiKTeX209-uriparser
> > Scanning dependencies of target MiKTeX209-util [ 14%] Building CXX object
> > Libraries/MiKTeX/Util/shared/CMakeFiles/MiKTeX209-
> > util.dir/__/StringUtil.cpp.obj
> > StringUtil.cpp
> > [ 14%] Building CXX object
> > Libraries/MiKTeX/Util/shared/CMakeFiles/MiKTeX209-
> > util.dir/__/Tokenizer.cpp.obj
> > Tokenizer.cpp
> > [ 14%] Building CXX object
> > Libraries/MiKTeX/Util/shared/CMakeFiles/MiKTeX209-
> > util.dir/__/win/winStringUtil.cpp.obj
> > winStringUtil.cpp
> > [ 14%] Building RC object
> > Libraries/MiKTeX/Util/shared/CMakeFiles/MiKTeX209-util.dir/util.rc.res
> > Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384
> > Copyright (C) Microsoft Corporation.  All rights reserved.
> >
> > C:\miktex\miktex-2.9-2016-10-30\include\miktex/win/version.rc(111) :
> > warning RC4003: not enough actual parameters for macro 'stringify__'
> >
> > C:\miktex\miktex-2.9-2016-10-30\include\miktex/win/version.rc(93) :
> error
> > RC2127 : version WORDs separated by commas expected
> >
> > C:\miktex\miktex-2.9-2016-10-30\include\miktex/win/version.rc(93) :
> error
> > RC2167 : unrecognized VERSIONINFO field;  BEGIN or comma expected NMAKE :
> > fatal error U1077: 'C:\PROGRA~2\WI3CF2~1\10\bin\x86\rc.exe' :
> > return code '0x3'
> > Stop.
> > NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
> > Studio 14.0\VC\BIN\nmake.exe"' : return code '0x2'
> > Stop.
> > NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
> > Studio 14.0\VC\BIN\nmake.exe"' : return code '0x2'
> > Stop.
>
> Something is going wrong with the substitution of variables. After it's
> aborted, what do the following files contain:
>
> Libraries/MiKTeX/Util/util.rc
> Libraries/MiKTeX/Util/util-version.h
>
> (I'm not familiar with how MiKTeX's out-of-tree building works - those
> files may be in Libraries/MiKTeX/Util/shared/CMakeFiles/MiKTeX209-util.dir
> - alternatively, you may need to search the build tree... they must be
> somewhere, or the error message would be different!)
>
> I'm spotting one difference between the released sources tarball and the
> Git commit 9b912e4 (but again, it's in another library, so I don't expect
> it's anything to do with it) but it might be enlightening to try using a
> Git clone instead of a sources tarball (git clone
> https://github.com/MiKTeX/miktex.git C:\miktex\miktex-2.9-master / cd
> \miktex\miktex-2.9-master / git checkout 9b912e4)
>
>
> David
>
> ------------------------------------------------------------
> ------------------
> Developer Access Program for Intel Xeon Phi Processors
> Access to Intel Xeon Phi processor-based developer platforms.
> With one year of Intel Parallel Studio XE.
> Training and support from Colfax.
> Order your platform today.http://sdm.link/xeonphi
> _______________________________________________
> Q: How can I leave the mailing list?
> A: See http://docs.miktex.org/faq/support.html#leavingml
>

------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi

_______________________________________________
Q: How can I leave the mailing list?
A: See http://docs.miktex.org/faq/support.html#leavingml
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.