Could not determine MSC version (Visual Studio 2017)
Stephan Bergmann
sbergman at redhat.com
Fri Jan 25 09:25:19 UTC 2019
On 25/01/2019 09:50, julien2412 wrote:
> workdir\UnpackedTarball\nss\nspr\out\config.log
> configure:2543: checking for cl
> configure:2570: result: cl
> configure:5898: cl -c conftest.c >&5
> conftest.c
> conftest.c(14): error C2065: '__thumb2__'ÿ: identificateur non d‚clar‚
> Compilateur d'optimisation Microsoft (R) C/C++ versionÿ19.16.27026.1 pour
> x64
> Copyright (C) Microsoft Corporation. Tous droits r‚serv‚s.
>
> configure:5898: $? = 2
> configure: failed program was:
> | /* confdefs.h */
> | #define PACKAGE_NAME ""
> | #define PACKAGE_TARNAME ""
> | #define PACKAGE_VERSION ""
> | #define PACKAGE_STRING ""
> | #define PACKAGE_BUGREPORT ""
> | #define PACKAGE_URL ""
> | #define DEBUG 1
> | /* end confdefs.h. */
> |
> | int
> | main ()
> | {
> | return sizeof(__thumb2__);
> | ;
> | return 0;
> | }
> configure:7134: error: Could not determine MSC version.
The __thumb2__ part is a red herring; configure proceeds past it just
fine. The issue is
> # Determine compiler version
> changequote(,)
> _MSVC_VER_FILTER='s|.* \([0-9]\+\.[0-9]\+\.[0-9]\+\(\.[0-9]\+\)\?\).*|\1|p'
> changequote([,])
> CC_VERSION=`${CC} -v 2>&1 | sed -ne "$_MSVC_VER_FILTER"`
> if test -z "$CC_VERSION"; then
> AC_MSG_ERROR([Could not determine MSC version.])
> fi
at workdir/UnpackedTarball/nss/nspr/configure.in:1931. For me, it
determines CC_VERSION=19.16.27024.1. For you, the sed invocation
apparently fails, leading to an empty CC_VERSION, presumably because
your French MSVC outputs something that the code can't cope with.
In the cygwin shell where you do `make`, do the following:
> $ grep CC= config_host.mk
to get the CC=... line, should be something like CC=C:/PROGRA... Do the
below two commands, with each XXX replaced by the exact value from that
CC= line:
> $ XXX -v
and
> $ XXX -v 2>&1 | sed -ne 's|.* \([0-9]\+\.[0-9]\+\.[0-9]\+\(\.[0-9]\+\)\?\).*|\1|p'
and provide the output of each.
More information about the LibreOffice
mailing list