This looks like hitting an unsupported feature: The library has not been built with Windows via configure before, and cygwin+configure scripts being what they are, it's trying to compile an executable during configure time to deduce whether the target supports some feature.
I see three options here: 1) Migrate to configuring via CMake instead of configure. This has the benefit of being more compatible across platforms since we maintain a CMake toolchain script for cross-compiling CMake-based builds. 2) Try to develop a machinery to SDL2 configure script that it would be able to compile the checks with emscripten and run those e.g. in node. 3) In the configure scripts, when Emscripten is being targeted, remove all such compilation attempts and write statically into the configure script the platform features and .h files that Emscripten compiler has. This would effectively work around not being able to build+run during configure. I would recommend going for option 1), because CMake is a better cross-platform configure tool than configure. 2014-07-08 10:49 GMT+03:00 Mark Callow <[email protected]>: > On 08/07/2014 04:04, Sathyanarayanan Gunasekaran wrote: > > Here's more information on how to use it > -http://gsathya.in/blog/mozilla/sdl2-emscripten.html > > It falls at the first hurdle. "C compiler cannot create executables". > What am I doing wrong? > > $ emconfigure ./configure --host=asmjs-unknown-emscripten > --disable-assembly --disable-threads --enable-cpuinfo=false CFLAGS="-O2" > cygwin warning: > MS-DOS style path detected: C:/Program > Files/Emscripten/clang/e1.21.0_64bit/pnacl-clang > Preferred POSIX equivalent is: /cygdrive/c/Program > Files/Emscripten/clang/e1.21.0_64bit/pnacl-clang > CYGWIN environment variable option "nodosfilewarning" turns off this > warning. > Consult the user's guide for more details about POSIX paths: > http://cygwin.com/cygwin-ug-net/using.html#using-pathnames > DEBUG root: JAVA not defined in ~/.emscripten, using "java" > checking build system type... x86_64-unknown-cygwin > checking host system type... asmjs-unknown-emscripten > checking how to print strings... printf > checking for asmjs-unknown-emscripten-gcc... /cygdrive/c/Program > Files/Emscripten/emscripten/1.21.0/emcc > checking whether the C compiler works... no > configure: error: in `/cygdrive/c/Users/callow_mark/GitHub/SDL-emscripten': > configure: error: C compiler cannot create executables > See `config.log' for more details > ERROR root: Configure step failed with non-zero return code 77! Command > line: ['./configure', '--host=asmjs-unknown-emscripten', > '--disable-assembly', '--disable-threads', '--enable-cpuinfo=false', > 'CFLAGS=-O2'] > > > Regards > > -Mark > -- > 注意:この電子メールには、株式会社エイチアイの機密情報が含まれている場合が有ります。正式なメール受信者では無い場合はメール複製、 > 再配信または情報の使用を固く禁じております。エラー、手違いでこのメールを受け取られましたら削除を行い配信者にご連絡をお願いいたし ます. > > NOTE: This electronic mail message may contain confidential and privileged > information from HI Corporation. If you are not the intended recipient, any > disclosure, photocopying, distribution or use of the contents of the > received information is prohibited. If you have received this e-mail in > error, please notify the sender immediately and permanently delete this > message and all related copies. > > -- > 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 [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
