Clang linker fails on windows hello_world.cpp

6,925 views
Skip to first unread message

Michael IV

unread,
Mar 6, 2014, 5:03:42 PM3/6/14
to emscripte...@googlegroups.com
Hi All.Sorry for the noob question.I have installed Emscipten 64bit version on Windows 64bit.I am trying to compile with clang hello_world.cpp and it throws me :

clang.exe:error:unable to execute command:program not executable
clang.exe:error:linker command failed with exit code 1

What do I miss here?I run the command via emscipten command prompt.

Thanks.

Mark Callow

unread,
Mar 10, 2014, 4:38:09 AM3/10/14
to emscripte...@googlegroups.com

Are you sure the message was "program not executable?" Or was it "the system cannot execute the specified program?" 

I think the former most likely means that some command clang was trying to execute did not have execute permission. That's pretty unusual in Windows because files inherit permissions from their parent directories and directories have execute permission.

The latter message has been seen by some of us before when running the 64-bit tools from Visual Studio, which is a 32-bit application, and the solution was to use the 32-bit tools. This would be the first time I am aware of it happening when run from the command line. My initial suggestion in this case is to make sure you are using a 64-bit command prompt executable. Apparently it can happen when dll dependencies are not found but that is not the only reason.

<soapbox>
I have encountered this type of useless error message far too often in my career. Developers who save themselves a few minutes by omitting vital information from error messages and managers who approve release of such error handling should be fired. They cause users and developers who encounter these messages to waste hours even days trying to track down problems. The minimum acceptable in this case is the name of the program that could not be executed and the reason why it couldn't be executed.
</soapbox>

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.

Jukka Jylänki

unread,
Mar 10, 2014, 5:40:08 AM3/10/14
to emscripte...@googlegroups.com
I believe the issue was this, and resolved. https://github.com/kripken/emscripten/issues/2203


--
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-disc...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages