corert icon indicating copy to clipboard operation
corert copied to clipboard

Errors whilst trying to build Web Assembly

Open dellams opened this issue 5 years ago • 10 comments

Hi Guys,

I followed these instructions here:

https://github.com/dotnet/corert/blob/master/Documentation/how-to-build-WebAssembly.md

I finally got to the end part for building the web assembly using build.cmd wasm but I got these errors:

" JIT - TOTAL: 15 PASSED: 15 CPP - TOTAL: 6 PASSED: 6 WASM - TOTAL: 0 PASSED: 0

C:\corert>build.cmd wasm Checking pre-requisites...


** Visual Studio 2019 Developer Command Prompt v16.6.4 ** Copyright (c) 2020 Microsoft Corporation


Commencing CoreRT Repo build

Commencing build of native components for WebAssembly.wasm.Debug


** Visual Studio 2019 Developer Command Prompt v16.6.4 ** Copyright (c) 2020 Microsoft Corporation


[vcvarsall.bat] Environment initialized for: 'x86_x64' configure: C:\Program Files\CMake\bin\cmake.exe -DCMAKE_TOOLCHAIN_FILE=C:/Users/david/source/repos/emsdk/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake -DCLR_CMAKE_TARGET_ARCH=wasm -DCMAKE_BUILD_TYPE=Debug -G NMake Makefiles C:\corert\buildscripts..\src\Native -DCMAKE_CROSSCOMPILING_EMULATOR="C:/Users/david/source/repos/emsdk/node/12.18.1_64bit/bin/node.exe" -- The ASM compiler identification is unknown -- Found assembler: C:/Users/david/source/repos/emsdk/upstream/emscripten/emcc.bat -- Warning: Did not find file Compiler/-ASM CMake Error at gc/unix/configure.cmake:97 (check_library_exists): check_library_exists Macro invoked with incorrect arguments for macro named: CHECK_LIBRARY_EXISTS Call Stack (most recent call first): Runtime/CMakeLists.txt:150 (include)

-- Configuring incomplete, errors occurred! See also "C:/corert/bin/obj/Native/WebAssembly.wasm.Debug/CMakeFiles/CMakeOutput.log". See also "C:/corert/bin/obj/Native/WebAssembly.wasm.Debug/CMakeFiles/CMakeError.log". Failed to generate native component build project Native component build failed. Refer C:\corert\buildscripts..\bin\Logs\Native_WebAssembly__wasm__Debug.log for details.

C:\corert>"

The full log from CMakeError.log is below:

"Checking whether the ASM compiler is GNU using "--version" did not match "(GNU assembler)|(GCC)|(Free Software Foundation)": emcc (Emscripten gcc/clang-like replacement) 1.39.19 (f45bea21f3a8f74a68ed4e3e3d7e290807ee2aff) Copyright (C) 2014 the Emscripten authors (see AUTHORS.txt) This is free and open source software under the MIT license. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Checking whether the ASM compiler is Clang using "--version" did not match "(clang version)": emcc (Emscripten gcc/clang-like replacement) 1.39.19 (f45bea21f3a8f74a68ed4e3e3d7e290807ee2aff) Copyright (C) 2014 the Emscripten authors (see AUTHORS.txt) This is free and open source software under the MIT license. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Checking whether the ASM compiler is AppleClang using "--version" did not match "(Apple LLVM version)": emcc (Emscripten gcc/clang-like replacement) 1.39.19 (f45bea21f3a8f74a68ed4e3e3d7e290807ee2aff) Copyright (C) 2014 the Emscripten authors (see AUTHORS.txt) This is free and open source software under the MIT license. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Checking whether the ASM compiler is ARMClang using "--version" did not match "armclang": emcc (Emscripten gcc/clang-like replacement) 1.39.19 (f45bea21f3a8f74a68ed4e3e3d7e290807ee2aff) Copyright (C) 2014 the Emscripten authors (see AUTHORS.txt) This is free and open source software under the MIT license. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Checking whether the ASM compiler is HP using "-V" did not match "HP C": emcc: error: no input files note that input files without a known suffix are ignored, make sure your input files end with one of: ('.c', '.i', '.cpp', '.cxx', '.cc', '.c++', '.CPP', '.CXX', '.C', '.CC', '.C++', '.ii', '.m', '.mi', '.mm', '.mii', 'nul', '.S', '.bc', '.o', '.obj', '.lo', '.dylib', '.so', '.a', '.ll', '.s', '.h', '.hxx', '.hpp', '.hh', '.H', '.HXX', '.HPP', '.HH') Checking whether the ASM compiler is Intel using "--version" did not match "(ICC)": emcc (Emscripten gcc/clang-like replacement) 1.39.19 (f45bea21f3a8f74a68ed4e3e3d7e290807ee2aff) Copyright (C) 2014 the Emscripten authors (see AUTHORS.txt) This is free and open source software under the MIT license. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Checking whether the ASM compiler is SunPro using "-V" did not match "Sun C": emcc: error: no input files note that input files without a known suffix are ignored, make sure your input files end with one of: ('.c', '.i', '.cpp', '.cxx', '.cc', '.c++', '.CPP', '.CXX', '.C', '.CC', '.C++', '.ii', '.m', '.mi', '.mm', '.mii', 'nul', '.S', '.bc', '.o', '.obj', '.lo', '.dylib', '.so', '.a', '.ll', '.s', '.h', '.hxx', '.hpp', '.hh', '.H', '.HXX', '.HPP', '.HH') Checking whether the ASM compiler is XL using "-qversion" did not match "XL C": emcc: error: no input files note that input files without a known suffix are ignored, make sure your input files end with one of: ('.c', '.i', '.cpp', '.cxx', '.cc', '.c++', '.CPP', '.CXX', '.C', '.CC', '.C++', '.ii', '.m', '.mi', '.mm', '.mii', 'nul', '.S', '.bc', '.o', '.obj', '.lo', '.dylib', '.so', '.a', '.ll', '.s', '.h', '.hxx', '.hpp', '.hh', '.H', '.HXX', '.HPP', '.HH') Checking whether the ASM compiler is MSVC using "-?" did not match "Microsoft": emcc: error: no input files note that input files without a known suffix are ignored, make sure your input files end with one of: ('.c', '.i', '.cpp', '.cxx', '.cc', '.c++', '.CPP', '.CXX', '.C', '.CC', '.C++', '.ii', '.m', '.mi', '.mm', '.mii', 'nul', '.S', '.bc', '.o', '.obj', '.lo', '.dylib', '.so', '.a', '.ll', '.s', '.h', '.hxx', '.hpp', '.hh', '.H', '.HXX', '.HPP', '.HH') Checking whether the ASM compiler is TI using "-h" did not match "Texas Instruments": emcc: error: no input files note that input files without a known suffix are ignored, make sure your input files end with one of: ('.c', '.i', '.cpp', '.cxx', '.cc', '.c++', '.CPP', '.CXX', '.C', '.CC', '.C++', '.ii', '.m', '.mi', '.mm', '.mii', 'nul', '.S', '.bc', '.o', '.obj', '.lo', '.dylib', '.so', '.a', '.ll', '.s', '.h', '.hxx', '.hpp', '.hh', '.H', '.HXX', '.HPP', '.HH') Checking whether the ASM compiler is IAR using "" did not match "IAR Assembler": emcc:WARNING: no input files Checking whether the ASM compiler is ARMCC using "" did not match "(ARM Compiler)|(ARM Assembler)": emcc:WARNING: no input files Checking whether the ASM compiler is NASM using "-v" did not match "(NASM version)": clang version 11.0.0 (C:swircachegitchromium.googlesource.com-external-github.com-llvm-llvm--project 7bf299c8d8d59304fb821f8811618cdeb1d1f1fd) Target: x86_64-pc-windows-msvc Thread model: posix InstalledDir: C:/Users/david/source/repos/emsdk/upstream/bin emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 1.39.19 shared:INFO: (Emscripten: Running sanity checks) Checking whether the ASM compiler is YASM using "--version" did not match "(yasm)": emcc (Emscripten gcc/clang-like replacement) 1.39.19 (f45bea21f3a8f74a68ed4e3e3d7e290807ee2aff) Copyright (C) 2014 the Emscripten authors (see AUTHORS.txt) This is free and open source software under the MIT license. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Checking whether the ASM compiler is ADSP using "-version" did not match "Analog Devices": emcc: error: no input files note that input files without a known suffix are ignored, make sure your input files end with one of: ('.c', '.i', '.cpp', '.cxx', '.cc', '.c++', '.CPP', '.CXX', '.C', '.CC', '.C++', '.ii', '.m', '.mi', '.mm', '.mii', 'nul', '.S', '.bc', '.o', '.obj', '.lo', '.dylib', '.so', '.a', '.ll', '.s', '.h', '.hxx', '.hpp', '.hh', '.H', '.HXX', '.HPP', '.HH') Checking whether the ASM compiler is QCC using "-V" did not match "gcc_nto": emcc: error: no input files note that input files without a known suffix are ignored, make sure your input files end with one of: ('.c', '.i', '.cpp', '.cxx', '.cc', '.c++', '.CPP', '.CXX', '.C', '.CC', '.C++', '.ii', '.m', '.mi', '.mm', '.mii', 'nul', '.S', '.bc', '.o', '.obj', '.lo', '.dylib', '.so', '.a', '.ll', '.s', '.h', '.hxx', '.hpp', '.hh', '.H', '.HXX', '.HPP', '.HH') Determining if files sys/time.h exist failed with the following output: Change Dir: C:/corert/bin/obj/Native/WebAssembly.wasm.Debug/CMakeFiles/CMakeTmp

Run Build Command(s):nmake /nologo cmTC_2b95d\fast && C:\Program Files (x86)\GnuWin32\bin -f CMakeFiles\cmTC_2b95d.dir\build.make /nologo -L CMakeFiles\cmTC_2b95d.dir\build

'C:\Program' is not recognized as an internal or external command,

operable program or batch file.

NMAKE : fatal error U1077: 'C:\Program' : return code '0x1'

Stop.

Source: /* */ #include <sys/time.h>

int main(void){return 0;}

Determining if files sys/mman.h exist failed with the following output: Change Dir: C:/corert/bin/obj/Native/WebAssembly.wasm.Debug/CMakeFiles/CMakeTmp

Run Build Command(s):nmake /nologo cmTC_6e999\fast && C:\Program Files (x86)\GnuWin32\bin -f CMakeFiles\cmTC_6e999.dir\build.make /nologo -L CMakeFiles\cmTC_6e999.dir\build

'C:\Program' is not recognized as an internal or external command,

operable program or batch file.

NMAKE : fatal error U1077: 'C:\Program' : return code '0x1'

Stop.

Source: /* */ #include <sys/mman.h>"

There is more of the log but I do not have enough space to post here...

So looks like a version conflict somewhere? Is this to do with Emscripten?

Any help would be greatly appreciated thank you! :)

Cheers D.

dellams avatar Aug 07 '20 20:08 dellams

Looks like the build is finding your GnuWin32 installation before Visual Studio. For example you have

Run Build Command(s):nmake /nologo cmTC_6e999\fast && C:\Program Files (x86)\GnuWin32\bin -f CMakeFiles\cmTC_6e999.dir\build.make /nologo -L CMakeFiles\cmTC_6e999.dir\build

Where are I have

Run Build Command(s):nmake /nologo cmTC_4af50\fast && 	"C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.26.28801\bin\HostX86\x64\nmake.exe" -f CMakeFiles\cmTC_4af50.dir\build.make /nologo -L                  CMakeFiles\cmTC_4af50.dir\build

How are you starting the command prompt from Win, then "cmd", or from the "x64 Native Tools Command Prompt for VS 2019" command prompt?

And for some reason that is preventing the build,make path from being quoted and then the space in Program Files is causing it to fail

yowl avatar Aug 08 '20 15:08 yowl

Hi, thanks for getting back to me, I tried as you suggested running "x64 Native Tools Command Prompt for VS 2019" prompt but produced the same result... any other ideas? thanks. :)

Is there any other suggestions?

dellams avatar Aug 20 '20 15:08 dellams

hmm, not sure. What version of cmake do you have?

yowl avatar Aug 20 '20 19:08 yowl

One other thing. When you run build wasm from "x64 Native Tools Command Prompt for VS 2019", delete the bin and obj folders first in case it has cached some duff build file.

yowl avatar Aug 20 '20 19:08 yowl

Ok thanks will try Tomorrow... 🙂

Get Outlook for Androidhttps://aka.ms/ghei36


From: yowl [email protected] Sent: Thursday, August 20, 2020 8:34:27 PM To: dotnet/corert [email protected] Cc: David Ellams [email protected]; Author [email protected] Subject: Re: [dotnet/corert] Errors whilst trying to build Web Assembly (#8258)

One other thing. When you run build wasm from "x64 Native Tools Command Prompt for VS 2019", delete the bin and obj folders first in case it has cached some duff build file.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fdotnet%2Fcorert%2Fissues%2F8258%23issuecomment-677859437&data=02%7C01%7C%7Ca599c3b067e14ba68a9308d845400d5e%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637335488680701950&sdata=o8X3Hts0FxxVSaSSZ1jKmG6uyeH6uZxTysQuzOFPwb0%3D&reserved=0, or unsubscribehttps://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAA236SWIIJGVVPB22WJ6VUDSBV3EHANCNFSM4PX7RESQ&data=02%7C01%7C%7Ca599c3b067e14ba68a9308d845400d5e%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637335488680701950&sdata=xCrcmXhUR7QYaqZ4h7KEOxG%2FTNY7XA2K9wVF%2BWhi3AI%3D&reserved=0.

dellams avatar Aug 20 '20 21:08 dellams

I have CMAKE v3.18, I deleted bin and obj folders and tried again but same error. Any more ideas?

Would be really appreciated thanks.

dellams avatar Aug 21 '20 22:08 dellams

"**********************************************************************
** Visual Studio 2019 Developer Command Prompt v16.6.4
** Copyright (c) 2020 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64'

C:\Program Files (x86)\Microsoft Visual Studio\2019\Community>build wasm
'build' is not recognized as an internal or external command,
operable program or batch file.

C:\Program Files (x86)\Microsoft Visual Studio\2019\Community>build.cmd wasm
'build.cmd' is not recognized as an internal or external command,
operable program or batch file.

C:\Program Files (x86)\Microsoft Visual Studio\2019\Community>c :
'c' is not recognized as an internal or external command,
operable program or batch file.

C:\Program Files (x86)\Microsoft Visual Studio\2019\Community>cd ;;
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community

C:\Program Files (x86)\Microsoft Visual Studio\2019\Community>cd ..

C:\Program Files (x86)\Microsoft Visual Studio\2019>cd ..

C:\Program Files (x86)\Microsoft Visual Studio>cd ..

C:\Program Files (x86)>cd ..

C:\>cd corert

C:\corert>build.cmd wasm
Checking pre-requisites...

Emscripten is a prerequisite to build for WebAssembly.
See: https://github.com/dotnet/corert/blob/master/Documentation/how-to-build-WebAssembly.md
Setting build variables failed.

C:\corert>./emsdk activate latest
'.' is not recognized as an internal or external command,
operable program or batch file.

C:\corert>cd C:\Users\david\source\repos\emsdk#
The system cannot find the path specified.

C:\corert>cd C:\Users\david\source\repos\emsdk

C:\Users\david\source\repos\emsdk>./emsdk activate latest
'.' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\david\source\repos\emsdk>emsdk activate latest
Writing .emscripten configuration file to Emscripten SDK directory C:/Users/david/source/repos/emsdk
Backing up old Emscripten configuration file in C:\Users\david\source\repos\emsdk\.emscripten.old
The Emscripten configuration file C:\Users\david\source\repos\emsdk\.emscripten has been rewritten with the following contents:

import os
emsdk_path = os.path.dirname(os.environ.get('EM_CONFIG')).replace('\\', '/')
NODE_JS = emsdk_path + '/node/12.18.1_64bit/bin/node.exe'
PYTHON = emsdk_path + '/python/3.7.4-pywin32_64bit/python.exe'
JAVA = emsdk_path + '/java/8.152_64bit/bin/java.exe'
LLVM_ROOT = emsdk_path + '/upstream/bin'
BINARYEN_ROOT = emsdk_path + '/upstream'
EMSCRIPTEN_ROOT = emsdk_path + '/upstream/emscripten'
TEMP_DIR = emsdk_path + '/tmp'
COMPILER_ENGINE = NODE_JS
JS_ENGINES = [NODE_JS]

Adding directories to PATH:
PATH += C:\Users\david\source\repos\emsdk
PATH += C:\Users\david\source\repos\emsdk\node\12.18.1_64bit\bin
PATH += C:\Users\david\source\repos\emsdk\java\8.152_64bit\bin
PATH += C:\Users\david\source\repos\emsdk\upstream\emscripten

Setting environment variables:
EMSDK = C:/Users/david/source/repos/emsdk
EM_CONFIG = C:\Users\david\source\repos\emsdk\.emscripten
EMSDK_NODE = C:\Users\david\source\repos\emsdk\node\12.18.1_64bit\bin\node.exe
EMSDK_PYTHON = C:\Users\david\source\repos\emsdk\python\3.7.4-pywin32_64bit\python.exe
JAVA_HOME = C:\Users\david\source\repos\emsdk\java\8.152_64bit
EM_CACHE = C:/Users/david/source/repos/emsdk/upstream/emscripten\cache

Set the following tools as active:
   node-12.18.1-64bit
   python-3.7.4-pywin32-64bit
   java-8.152-64bit
   releases-upstream-665121d026cafc46c29b30d6d4c45ed73eedbb7e-64bit

The changes made to environment variables only apply to the currently running shell instance. Use the 'emsdk_env.bat' to re-enter this environment later, or if you'd like to permanently register this environment globally to all users in Windows Registry, rerun this command with the option --global.

C:\Users\david\source\repos\emsdk>cd ..

C:\Users\david\source\repos>cd ..

C:\Users\david\source>cd ..

C:\Users\david>cd ..

C:\Users>cd ..

C:\>cd corert

C:\corert>build.cmd wasm
Checking pre-requisites...

Commencing CoreRT Repo build

Commencing build of native components for WebAssembly.wasm.Debug

**********************************************************************
** Visual Studio 2019 Developer Command Prompt v16.6.4
** Copyright (c) 2020 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x86_x64'
configure: C:\Program Files\CMake\bin\cmake.exe -DCMAKE_TOOLCHAIN_FILE=C:/Users/david/source/repos/emsdk/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake -DCLR_CMAKE_TARGET_ARCH=wasm -DCMAKE_BUILD_TYPE=Debug -G NMake Makefiles C:\corert\buildscripts\..\src\Native -DCMAKE_CROSSCOMPILING_EMULATOR="C:/Users/david/source/repos/emsdk/node/12.18.1_64bit/bin/node.exe"
-- The ASM compiler identification is unknown
-- Found assembler: C:/Users/david/source/repos/emsdk/upstream/emscripten/emcc.bat
-- Warning: Did not find file Compiler/-ASM
-- Looking for include file sys/time.h
-- Looking for include file sys/time.h - not found
-- Looking for include file sys/mman.h
-- Looking for include file sys/mman.h - not found
-- Looking for include file numa.h
-- Looking for include file numa.h - not found
-- Looking for include file pthread_np.h
-- Looking for include file pthread_np.h - not found
-- Looking for vm_allocate
-- Looking for vm_allocate - not found
-- Looking for sysctlbyname
-- Looking for sysctlbyname - not found
-- Performing Test HAVE_PTHREAD_THREADID_NP
-- Performing Test HAVE_PTHREAD_THREADID_NP - Failed
-- Performing Test HAVE_PTHREAD_GETTHREADID_NP
-- Performing Test HAVE_PTHREAD_GETTHREADID_NP - Failed
-- Performing Test HAVE_VM_FLAGS_SUPERPAGE_SIZE_ANY
-- Performing Test HAVE_VM_FLAGS_SUPERPAGE_SIZE_ANY - Failed
-- Performing Test HAVE_MAP_HUGETLB
-- Performing Test HAVE_MAP_HUGETLB - Failed
-- Performing Test HAVE_CPUSET_T
-- Performing Test HAVE_CPUSET_T - Failed
-- Performing Test HAVE_SCHED_GETCPU
-- Performing Test HAVE_SCHED_GETCPU - Failed
-- Looking for pthread_condattr_setclock in pthread
-- Looking for pthread_condattr_setclock in pthread - not found
-- Performing Test HAVE_MACH_ABSOLUTE_TIME
-- Performing Test HAVE_MACH_ABSOLUTE_TIME - Failed
-- Looking for sched_getaffinity in c
-- Looking for sched_getaffinity in c - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - not found
CMake Error at gc/unix/configure.cmake:97 (check_library_exists):
  check_library_exists Macro invoked with incorrect arguments for macro
  named: CHECK_LIBRARY_EXISTS
Call Stack (most recent call first):
  Runtime/CMakeLists.txt:150 (include)


-- Looking for _SC_PHYS_PAGES
-- Looking for _SC_PHYS_PAGES - not found
-- Looking for _SC_AVPHYS_PAGES
-- Looking for _SC_AVPHYS_PAGES - not found
-- Looking for swapctl
-- Looking for swapctl - not found
-- Looking for sysctl
-- Looking for sysctl - not found
-- Looking for sysinfo
-- Looking for sysinfo - not found
-- Looking for sysconf
-- Looking for sysconf - not found
-- Performing Test HAVE_SYSINFO_WITH_MEM_UNIT
-- Performing Test HAVE_SYSINFO_WITH_MEM_UNIT - Failed
-- Performing Test HAVE_XSWDEV
-- Performing Test HAVE_XSWDEV - Failed
-- Performing Test HAVE_XSW_USAGE
-- Performing Test HAVE_XSW_USAGE - Failed
-- Looking for include file sys/vmparam.h
-- Looking for include file sys/vmparam.h - not found
-- Looking for include file mach/vm_types.h
-- Looking for include file mach/vm_types.h - not found
-- Looking for include file mach/vm_param.h
-- Looking for include file mach/vm_param.h - not found
-- Looking for pthread_attr_get_np in pthread
-- Looking for pthread_attr_get_np in pthread - not found
-- Looking for pthread_getattr_np in pthread
-- Looking for pthread_getattr_np in pthread - not found
-- Looking for clock_nanosleep
-- Looking for clock_nanosleep - not found
-- Performing Test HAVE_GREGSET_T
-- Performing Test HAVE_GREGSET_T - Failed
-- Performing Test HAVE___GREGSET_T
-- Performing Test HAVE___GREGSET_T - Failed
-- Looking for sys/types.h
-- Looking for sys/types.h - not found
-- Looking for stdint.h
-- Looking for stdint.h - not found
-- Looking for stddef.h
-- Looking for stddef.h - not found
-- Check size of siginfo_t
-- Check size of siginfo_t - failed
-- Check size of ucontext_t
-- Check size of ucontext_t - failed
-- Performing Test HAVE_LWP_SELF
-- Performing Test HAVE_LWP_SELF - Failed
-- Performing Test HAVE_CLOCK_MONOTONIC
-- Performing Test HAVE_CLOCK_MONOTONIC - Failed
-- Performing Test HAVE_CLOCK_MONOTONIC_COARSE
-- Performing Test HAVE_CLOCK_MONOTONIC_COARSE - Failed
-- Performing Test HAVE_THREAD_LOCAL
-- Performing Test HAVE_THREAD_LOCAL - Failed
-- Looking for include file gnu/lib-names.h
-- Looking for include file gnu/lib-names.h - not found
-- Looking for _NSGetEnviron
-- Looking for _NSGetEnviron - not found
-- Configuring incomplete, errors occurred!
See also "C:/corert/bin/obj/Native/WebAssembly.wasm.Debug/CMakeFiles/CMakeOutput.log".
See also "C:/corert/bin/obj/Native/WebAssembly.wasm.Debug/CMakeFiles/CMakeError.log".
Failed to generate native component build project
Native component build failed. Refer C:\corert\buildscripts\..\bin\Logs\Native_WebAssembly__wasm__Debug.log for details.

C:\corert>"

dellams avatar Aug 21 '20 22:08 dellams

Corert + emsdk "latest" has a problem with exceptions, best stick to 1.40.1. Not this problem but FYI

yowl avatar Aug 21 '20 22:08 yowl

cmake 3.18 is relatively new, I wonder if its worth trying the last 3.17? For reference I'm on 3.15.1

yowl avatar Aug 21 '20 22:08 yowl

I see on 3.18.2 "Fix quoting of path to cmake in CMAKE_RC_COMPILE_OBJECT" I don't know if that is the same quoting problem as you have, but 3.18.2 is was out yesterday with that fix.

yowl avatar Aug 21 '20 22:08 yowl