Configuration problem: checking for UCRT location fails

Stephan Bergmann sbergman at redhat.com
Fri Jan 27 15:38:28 UTC 2023


On 27/01/2023 15:33, Hossein Nourikhah wrote:
> Looking into some similar problems, I think there might a problem with 
> the Windows SDK installation, or its version.
> 
> UNSOLVED c1083: cannot open include file: 'stddef.h':No such file or 
> directory
> https://forum.qt.io/topic/91057/c1083-cannot-open-include-file-stddef-h-no-such-file-or-directory/15

Yes, there's definitely a problem here trying to find stddef.h.  I'd 
already responded earlier, but accidentally sent my reply only to 
Hossein instead of to the list:

On 27/01/2023 14:42, Stephan Bergmann wrote:
> On 27/01/2023 14:23, Hossein Nourikhah wrote:
>> checking for Windows SDK... found Windows SDK 10.0 (/cygdrive/c/PROGRA~2/WI3CF2~1/10)
>> checking for midl.exe... C:\Program Files (x86)\Windows Kits\10\/Bin/10.0.22621.0/x64/midl.exe
>> checking for csc.exe... C:\Windows\Microsoft.NET\Framework\v4.0.30319\/csc.exe
>> checking for al.exe... C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8.1 Tools\/al.exe
>> checking .NET Framework... found: C:/PROGRA~2/WI3CF2~1/NETFXSDK/48D70E~1.1/
>> checking whether jumbo sheets are supported... yes
>> checking whether to enable runtime optimizations... yes
>> checking for valgrind/valgrind.h... no
>> checking for sys/sdt.h... no
>> checking what the C++ library is... configure: error: Could not figure out what C++ library this is
>> Error running configure at ./autogen.sh line 322.
>> make: *** No rule to make target 'check'.  Stop.
>>
>> The problem can also be seen from config.log, which is also attached. At some point, the compiler is detected correctly, but the UCRT library is not:
>>
>> configure:13493: checking build compiler
>> configure:13527: result: C:/PROGRA~1/MICROS~1/2022/COMMUN~1/VC/Tools/MSVC/14.34.31933/bin/Hostx64/x64/cl.exe
>> configure:13573: checking for short pathname of VC product directory
>> configure:13576: result: C:/PROGRA~1/MICROS~1/2022/COMMUN~1/VC
>> configure:13582: checking for UCRT location
>> configure:13586: result:  ()
> 
> I don't think that's a relevant excerpt of config.log here.  The relevant part should rather be
> 
>> configure:20129: checking what the C++ library is
>> configure:20155: C:/PROGRA~1/MICROS~1/2022/COMMUN~1/VC/Tools/MSVC/1434~1.319/bin/Hostx64/x64/cl.exe -c  -IC:/cygwin/home/deepa/lode/dev/core/Include/ucrt  -IC:/cygwin/home/deepa/lode/dev/core/Include/ucrt -IC:/PROGRA~1/MICROS~1/2022/COMMUN~1/VC/Tools/MSVC/1434~1.319/Include conftest.cpp >&5
>> conftest.cpp
> 
>> C:/PROGRA~1/MICROS~1/2022/COMMUN~1/VC/Tools/MSVC/1434~1.319/Include\cstddef(12): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
> 
>> Microsoft (R) C/C++ Optimizing Compiler Version 19.34.31937 for x64
> 
>> Copyright (C) Microsoft Corporation.  All rights reserved.
> 
>>
> 
>> configure:20155: $? = 2
>> configure: failed program was:
>> | /* confdefs.h */
>> | #define PACKAGE_NAME "LibreOffice"
>> | #define PACKAGE_TARNAME "libreoffice"
>> | #define PACKAGE_VERSION "7.6.0.0.alpha0+"
>> | #define PACKAGE_STRING "LibreOffice 7.6.0.0.alpha0+"
>> | #define PACKAGE_BUGREPORT ""
>> | #define PACKAGE_URL "http://documentfoundation.org/"
>> | #define LIBO_VERSION_MAJOR 7
>> | #define LIBO_VERSION_MINOR 6
>> | #define LIBO_VERSION_MICRO 0
>> | #define LIBO_VERSION_PATCH 0
>> | #define LIBO_THIS_YEAR 2023
>> | #define BUILDCONFIG "'--enable-debug' '--with-visual-studio=2022' '--srcdir=/home/deepa/lode/dev/core' '--enable-option-checking=fatal'"
>> | #define SRCDIR "C:/cygwin/home/deepa/lode/dev/core"
>> | #define SRC_ROOT "C:/cygwin/home/deepa/lode/dev/core"
>> | #define BUILDDIR "C:/cygwin/home/deepa/lode/dev/core"
>> | #define HAVE_DLAPI 1
>> | #define HAVE_FEATURE_COMMUNITY_FLAVOR 1
>> | #define HAVE_FEATURE_DESKTOP 1
>> | #define HAVE_FEATURE_MULTIUSER_ENVIRONMENT 1
>> | #define HAVE_FEATURE_AVMEDIA 1
>> | #define HAVE_FEATURE_DBCONNECTIVITY 1
>> | #define HAVE_FEATURE_SCRIPTING 1
>> | #define HAVE_FEATURE_EXTENSIONS 1
>> | #define HAVE_FEATURE_JAVA 1
>> | #define LIBO_BIN_FOLDER "program"
>> | #define LIBO_ETC_FOLDER "program"
>> | #define LIBO_LIBEXEC_FOLDER "program"
>> | #define LIBO_LIB_FOLDER "program"
>> | #define LIBO_LIB_PYUNO_FOLDER "program"
>> | #define LIBO_SHARE_FOLDER "share"
>> | #define LIBO_SHARE_HELP_FOLDER "help"
>> | #define LIBO_SHARE_JAVA_FOLDER "program/classes"
>> | #define LIBO_SHARE_PRESETS_FOLDER "presets"
>> | #define LIBO_SHARE_RESOURCE_FOLDER "program/resource"
>> | #define LIBO_SHARE_SHELL_FOLDER "program/shell"
>> | #define LIBO_URE_BIN_FOLDER "program"
>> | #define LIBO_URE_ETC_FOLDER "program"
>> | #define LIBO_URE_LIB_FOLDER "program"
>> | #define LIBO_URE_MISC_FOLDER "program"
>> | #define LIBO_URE_SHARE_JAVA_FOLDER "program/classes"
>> | #define HAVE_FEATURE_UI 1
>> | #define SDKDIR "C:/cygwin/home/deepa/lode/dev/core/instdir/sdk"
>> | #define WORKDIR "C:/cygwin/home/deepa/lode/dev/core/workdir"
>> | #define HAVE_FEATURE_XMLHELP 1
>> | #define SAL_TYPES_SIZEOFSHORT 2
>> | #define SAL_TYPES_SIZEOFINT 4
>> | #define SAL_TYPES_SIZEOFLONG 4
>> | #define SAL_TYPES_SIZEOFLONGLONG 8
>> | #define SAL_TYPES_SIZEOFPOINTER 8
>> | #define SAL_TYPES_ALIGNMENT2 2
>> | #define SAL_TYPES_ALIGNMENT4 4
>> | #define SAL_TYPES_ALIGNMENT8 8
>> | #define HAVE_FEATURE_JUMBO_SHEETS 1
>> | #define ENABLE_RUNTIME_OPTIMIZATIONS 1
>> | /* end confdefs.h.  */
>> | | #include <utility>
>> | #ifndef __GLIBCXX__
>> | foo bar
>> | #endif
>> | | int
>> | main (void)
>> | {
>> | |   ;
>> |   return 0;
>> | }
>> configure:20178: C:/PROGRA~1/MICROS~1/2022/COMMUN~1/VC/Tools/MSVC/1434~1.319/bin/Hostx64/x64/cl.exe -c  -IC:/cygwin/home/deepa/lode/dev/core/Include/ucrt  -IC:/cygwin/home/deepa/lode/dev/core/Include/ucrt -IC:/PROGRA~1/MICROS~1/2022/COMMUN~1/VC/Tools/MSVC/1434~1.319/Include conftest.cpp >&5
>> conftest.cpp
> 
>> C:/PROGRA~1/MICROS~1/2022/COMMUN~1/VC/Tools/MSVC/1434~1.319/Include\cstddef(12): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
> 
>> Microsoft (R) C/C++ Optimizing Compiler Version 19.34.31937 for x64
> 
>> Copyright (C) Microsoft Corporation.  All rights reserved.
> 
>>
> 
>> configure:20178: $? = 2
>> configure: failed program was:
>> | /* confdefs.h */
>> | #define PACKAGE_NAME "LibreOffice"
>> | #define PACKAGE_TARNAME "libreoffice"
>> | #define PACKAGE_VERSION "7.6.0.0.alpha0+"
>> | #define PACKAGE_STRING "LibreOffice 7.6.0.0.alpha0+"
>> | #define PACKAGE_BUGREPORT ""
>> | #define PACKAGE_URL "http://documentfoundation.org/"
>> | #define LIBO_VERSION_MAJOR 7
>> | #define LIBO_VERSION_MINOR 6
>> | #define LIBO_VERSION_MICRO 0
>> | #define LIBO_VERSION_PATCH 0
>> | #define LIBO_THIS_YEAR 2023
>> | #define BUILDCONFIG "'--enable-debug' '--with-visual-studio=2022' '--srcdir=/home/deepa/lode/dev/core' '--enable-option-checking=fatal'"
>> | #define SRCDIR "C:/cygwin/home/deepa/lode/dev/core"
>> | #define SRC_ROOT "C:/cygwin/home/deepa/lode/dev/core"
>> | #define BUILDDIR "C:/cygwin/home/deepa/lode/dev/core"
>> | #define HAVE_DLAPI 1
>> | #define HAVE_FEATURE_COMMUNITY_FLAVOR 1
>> | #define HAVE_FEATURE_DESKTOP 1
>> | #define HAVE_FEATURE_MULTIUSER_ENVIRONMENT 1
>> | #define HAVE_FEATURE_AVMEDIA 1
>> | #define HAVE_FEATURE_DBCONNECTIVITY 1
>> | #define HAVE_FEATURE_SCRIPTING 1
>> | #define HAVE_FEATURE_EXTENSIONS 1
>> | #define HAVE_FEATURE_JAVA 1
>> | #define LIBO_BIN_FOLDER "program"
>> | #define LIBO_ETC_FOLDER "program"
>> | #define LIBO_LIBEXEC_FOLDER "program"
>> | #define LIBO_LIB_FOLDER "program"
>> | #define LIBO_LIB_PYUNO_FOLDER "program"
>> | #define LIBO_SHARE_FOLDER "share"
>> | #define LIBO_SHARE_HELP_FOLDER "help"
>> | #define LIBO_SHARE_JAVA_FOLDER "program/classes"
>> | #define LIBO_SHARE_PRESETS_FOLDER "presets"
>> | #define LIBO_SHARE_RESOURCE_FOLDER "program/resource"
>> | #define LIBO_SHARE_SHELL_FOLDER "program/shell"
>> | #define LIBO_URE_BIN_FOLDER "program"
>> | #define LIBO_URE_ETC_FOLDER "program"
>> | #define LIBO_URE_LIB_FOLDER "program"
>> | #define LIBO_URE_MISC_FOLDER "program"
>> | #define LIBO_URE_SHARE_JAVA_FOLDER "program/classes"
>> | #define HAVE_FEATURE_UI 1
>> | #define SDKDIR "C:/cygwin/home/deepa/lode/dev/core/instdir/sdk"
>> | #define WORKDIR "C:/cygwin/home/deepa/lode/dev/core/workdir"
>> | #define HAVE_FEATURE_XMLHELP 1
>> | #define SAL_TYPES_SIZEOFSHORT 2
>> | #define SAL_TYPES_SIZEOFINT 4
>> | #define SAL_TYPES_SIZEOFLONG 4
>> | #define SAL_TYPES_SIZEOFLONGLONG 8
>> | #define SAL_TYPES_SIZEOFPOINTER 8
>> | #define SAL_TYPES_ALIGNMENT2 2
>> | #define SAL_TYPES_ALIGNMENT4 4
>> | #define SAL_TYPES_ALIGNMENT8 8
>> | #define HAVE_FEATURE_JUMBO_SHEETS 1
>> | #define ENABLE_RUNTIME_OPTIMIZATIONS 1
>> | /* end confdefs.h.  */
>> | | #include <utility>
>> | #ifndef _LIBCPP_VERSION
>> | foo bar
>> | #endif
>> | | int
>> | main (void)
>> | {
>> | |   ;
>> |   return 0;
>> | }
>> configure:20203: C:/PROGRA~1/MICROS~1/2022/COMMUN~1/VC/Tools/MSVC/1434~1.319/bin/Hostx64/x64/cl.exe -c  -IC:/cygwin/home/deepa/lode/dev/core/Include/ucrt  -IC:/cygwin/home/deepa/lode/dev/core/Include/ucrt -IC:/PROGRA~1/MICROS~1/2022/COMMUN~1/VC/Tools/MSVC/1434~1.319/Include conftest.cpp >&5
>> conftest.cpp
> 
>> C:/PROGRA~1/MICROS~1/2022/COMMUN~1/VC/Tools/MSVC/1434~1.319/Include\cstddef(12): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
> 
>> Microsoft (R) C/C++ Optimizing Compiler Version 19.34.31937 for x64
> 
>> Copyright (C) Microsoft Corporation.  All rights reserved.
> 
>>
> 
>> configure:20203: $? = 2
>> configure: failed program was:
>> | /* confdefs.h */
>> | #define PACKAGE_NAME "LibreOffice"
>> | #define PACKAGE_TARNAME "libreoffice"
>> | #define PACKAGE_VERSION "7.6.0.0.alpha0+"
>> | #define PACKAGE_STRING "LibreOffice 7.6.0.0.alpha0+"
>> | #define PACKAGE_BUGREPORT ""
>> | #define PACKAGE_URL "http://documentfoundation.org/"
>> | #define LIBO_VERSION_MAJOR 7
>> | #define LIBO_VERSION_MINOR 6
>> | #define LIBO_VERSION_MICRO 0
>> | #define LIBO_VERSION_PATCH 0
>> | #define LIBO_THIS_YEAR 2023
>> | #define BUILDCONFIG "'--enable-debug' '--with-visual-studio=2022' '--srcdir=/home/deepa/lode/dev/core' '--enable-option-checking=fatal'"
>> | #define SRCDIR "C:/cygwin/home/deepa/lode/dev/core"
>> | #define SRC_ROOT "C:/cygwin/home/deepa/lode/dev/core"
>> | #define BUILDDIR "C:/cygwin/home/deepa/lode/dev/core"
>> | #define HAVE_DLAPI 1
>> | #define HAVE_FEATURE_COMMUNITY_FLAVOR 1
>> | #define HAVE_FEATURE_DESKTOP 1
>> | #define HAVE_FEATURE_MULTIUSER_ENVIRONMENT 1
>> | #define HAVE_FEATURE_AVMEDIA 1
>> | #define HAVE_FEATURE_DBCONNECTIVITY 1
>> | #define HAVE_FEATURE_SCRIPTING 1
>> | #define HAVE_FEATURE_EXTENSIONS 1
>> | #define HAVE_FEATURE_JAVA 1
>> | #define LIBO_BIN_FOLDER "program"
>> | #define LIBO_ETC_FOLDER "program"
>> | #define LIBO_LIBEXEC_FOLDER "program"
>> | #define LIBO_LIB_FOLDER "program"
>> | #define LIBO_LIB_PYUNO_FOLDER "program"
>> | #define LIBO_SHARE_FOLDER "share"
>> | #define LIBO_SHARE_HELP_FOLDER "help"
>> | #define LIBO_SHARE_JAVA_FOLDER "program/classes"
>> | #define LIBO_SHARE_PRESETS_FOLDER "presets"
>> | #define LIBO_SHARE_RESOURCE_FOLDER "program/resource"
>> | #define LIBO_SHARE_SHELL_FOLDER "program/shell"
>> | #define LIBO_URE_BIN_FOLDER "program"
>> | #define LIBO_URE_ETC_FOLDER "program"
>> | #define LIBO_URE_LIB_FOLDER "program"
>> | #define LIBO_URE_MISC_FOLDER "program"
>> | #define LIBO_URE_SHARE_JAVA_FOLDER "program/classes"
>> | #define HAVE_FEATURE_UI 1
>> | #define SDKDIR "C:/cygwin/home/deepa/lode/dev/core/instdir/sdk"
>> | #define WORKDIR "C:/cygwin/home/deepa/lode/dev/core/workdir"
>> | #define HAVE_FEATURE_XMLHELP 1
>> | #define SAL_TYPES_SIZEOFSHORT 2
>> | #define SAL_TYPES_SIZEOFINT 4
>> | #define SAL_TYPES_SIZEOFLONG 4
>> | #define SAL_TYPES_SIZEOFLONGLONG 8
>> | #define SAL_TYPES_SIZEOFPOINTER 8
>> | #define SAL_TYPES_ALIGNMENT2 2
>> | #define SAL_TYPES_ALIGNMENT4 4
>> | #define SAL_TYPES_ALIGNMENT8 8
>> | #define HAVE_FEATURE_JUMBO_SHEETS 1
>> | #define ENABLE_RUNTIME_OPTIMIZATIONS 1
>> | /* end confdefs.h.  */
>> | | #include <utility>
>> | #ifndef _MSC_VER
>> | foo bar
>> | #endif
>> | | int
>> | main (void)
>> | {
>> | |   ;
>> |   return 0;
>> | }
>> configure:20209: error: Could not figure out what C++ library this is



More information about the LibreOffice mailing list