Problems updating windows emscripten for wasm output...

102 views
Skip to first unread message

Mark Sibly

unread,
Nov 1, 2016, 2:34:46 PM11/1/16
to emscripten-discuss
Hi,

I'm trying to to get wasm output going on windows but am having a few problems.

In particular, cmake seems to be crapping out. I have cmake installed and can build other stuff with it so I'm not sure what's up.

Here's the console output:

> emsdk install clang-incoming-64bit emscripten-incoming-64bit sdk-incoming-64bit                                                                               
Installing tool 'clang-incoming-64bit'..                                                                                                                        
Cloning into 'D:/devtools/Emscripten/clang/fastcomp\src'...                                                                                                     
remote: Counting objects: 1225067, done.                                                                                                                        
remote: Compressing objects: 100% (3/3), done.                                                                                                                  
remote: Total 1225067 (delta 0), reused 0 (delta 0), pack-reused 1225064                                                                                        
Receiving objects: 100% (1225067/1225067), 259.89 MiB | 1.57 MiB/s, done.                                                                                       
Resolving deltas: 100% (1008950/1008950), done.                                                                                                                 
Checking connectivity... done.                                                                                                                                  
Checking out files: 100% (19961/19961), done.                                                                                                                   
Fetching latest changes to the branch 'incoming' for 'D:/devtools/Emscripten/clang/fastcomp\src'...                                                             
Already up-to-date.                                                                                                                                             
Successfully updated and checked out branch 'incoming' on repository 'D:/devtools/Emscripten/clang/fastcomp\src'                                                
Current repository version: "Fri, 21 Oct 2016 00:02:52 +0300 c08775cd9e861d17f95083d248e0e79ff66646f3"                                                          
Cloning into 'D:/devtools/Emscripten/clang/fastcomp\src\tools/clang'...                                                                                         
remote: Counting objects: 592596, done.                                                                                                                         
remote: Compressing objects: 100% (3/3), done.                                                                                                                  
remote: Total 592596 (delta 0), reused 0 (delta 0), pack-reused 592593                                                                                          
Receiving objects: 100% (592596/592596), 123.70 MiB | 1.43 MiB/s, done.                                                                                         
Resolving deltas: 100% (501570/501570), done.                                                                                                                   
Checking connectivity... done.                                                                                                                                  
Checking out files: 100% (11528/11528), done.                                                                                                                   
Fetching latest changes to the branch 'incoming' for 'D:/devtools/Emscripten/clang/fastcomp\src\tools/clang'...                                                 
Already up-to-date.                                                                                                                                             
Successfully updated and checked out branch 'incoming' on repository 'D:/devtools/Emscripten/clang/fastcomp\src\tools/clang'                                    
Current repository version: "Fri, 21 Oct 2016 00:03:16 +0300 82589d2fa5e8f3af2fea7274111ba90609c03496"                                                          
Running CMake: ['cmake', '-G', 'Visual Studio 12 Win64', '-DCMAKE_BUILD_TYPE=RelWithDebInfo', '-DPYTHON_EXECUTABLE=D:\\devtools\\Emscripten\\python\\2.7.5.3_64b
it\\python.exe', '-DLLVM_TARGETS_TO_BUILD=X86;JSBackend', '-DLLVM_INCLUDE_EXAMPLES=OFF', '-DCLANG_INCLUDE_EXAMPLES=OFF', '-DLLVM_INCLUDE_TESTS=OFF', '-DCLANG_IN
CLUDE_TESTS=OFF', 'D:/devtools/Emscripten/clang/fastcomp\\src']                                                                                                 
-- The C compiler identification is unknown                                                                                                                     
-- The CXX compiler identification is unknown                                                                                                                   
-- The ASM compiler identification is GNU                                                                                                                       
-- Found assembler: D:/mingw-w64/i686-5.3.0-posix-dwarf-rt_v4-rev0/mingw32/bin/gcc.exe                                                                          
CMake Error at CMakeLists.txt:48 (project):                                                                                                                     
  No CMAKE_C_COMPILER could be found.                                                                                                                           

Any ideas? Do I need to configure cmake somehow?

Bye!
Mark

Charles Vaughn

unread,
Nov 1, 2016, 6:17:57 PM11/1/16
to emscripten-discuss
I believe you need at least Visual Studio 2013. If you've got that installed, make sure you're running from a VS command prompt.

Mark Sibly

unread,
Nov 1, 2016, 6:41:00 PM11/1/16
to emscripte...@googlegroups.com
Thanks, but still no joy.

I'm using visual studio 2015, have updated cmake the latest, am using a visual studio developer console (and 'cl' works) and cmake still can't find the compilers.

I suck at this stuff...


--
You received this message because you are subscribed to a topic in the Google Groups "emscripten-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/emscripten-discuss/2026eOk89Xc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to emscripten-discuss+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Charles Vaughn

unread,
Nov 1, 2016, 7:00:03 PM11/1/16
to emscripten-discuss
Depending on the install of VS2015, it may not have grabbed the C++ compilers. Make a simple C++ and build that.

Charles Vaughn

unread,
Nov 1, 2016, 7:48:11 PM11/1/16
to emscripten-discuss
You might also need to fuss with the build script. It's trying to build with VS2010, but I've successfully built the more recent Emscripten trees with VS2015.

Mark Sibly

unread,
Nov 1, 2016, 10:36:10 PM11/1/16
to emscripte...@googlegroups.com
Successfully built now!

Installed vs2013 and it all worked first time, without a VC console or anything.

Don't think cmake likes vs2015 much...

To unsubscribe from this group and all its topics, send an email to emscripten-discuss+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Floh

unread,
Nov 5, 2016, 10:40:11 PM11/5/16
to emscripten-discuss
Looks like the emsdk build-script invokes cmake with the project generator for VS2013 (cmake', '-G', 'Visual Studio 12 Win64'), in this case cmake will fail if VS2013 is not installed.

Recent cmake version allow to specify the platform (Win64) independently from the compiler (Visual Studio 12) through the new '-A' command line arg, this allows cmake to pick 'any' Visual Studio version while still building 64-bit executables. This might introduce new problems though if the current version of LLVM only compiles with specific versions of VS.

To unsubscribe from this group and all its topics, send an email to emscripten-discuss+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Message has been deleted

Boris Sergeev

unread,
Jan 3, 2017, 8:41:13 PM1/3/17
to emscripten-discuss
Compiling incoming with VS2015 fails because of the bug in emsdk, a simple typo.
I've submitted a pull request fixing that:
You can manually edit your emsdk, then VS2015 build succeeds.

Boris

Jukka Jylänki

unread,
Jan 5, 2017, 5:27:46 AM1/5/17
to emscripte...@googlegroups.com
The next emsdk update will carry the fix, for now you can try manually forcing VS2015 by passing "emsdk install --vs2015 sdk-incoming-64bit" on the command line, or by bootstrapping emsdk via "git clone https://github.com/juj/emsdk.git". The second method is probably easier. Can you verify if that works?

--
You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-discuss+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages