Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot run Intel Compiler ICC or ICPC command in WSL #2608

Closed
macxfadz opened this issue Oct 26, 2017 · 22 comments
Closed

Cannot run Intel Compiler ICC or ICPC command in WSL #2608

macxfadz opened this issue Oct 26, 2017 · 22 comments

Comments

@macxfadz
Copy link

macxfadz commented Oct 26, 2017

I recently installed Fresh Windows 10 (Pro) Fall creators update (General Release ,not an Insider Build).

Enable Linux Subsystem and installed Ubuntu App through Windows 10 App store.
Install relevant updates in Windows and WSL
Install Intel Parallel Studio 2018 - Here Parallel studio 2018 comes with .tgz distribution I extract all the content in to a folder in windows side and mount it from WSL bash and install it from there.Further guide lines obtain from here - Intel Guide & Compile guide & Intel setup guide

  • After successful installation I set environment variables as they mentioned.set Atchitecture to intel64 and Platform to Linux

  • Create simple C++ source file tried to compile it using icpc intel compiler command but WSL cannot fork the process and identify the command

Please help on this matter. How to configure intel C./C++ compiler in WSL correctly?

icpc_error
icp2
icpc3
icpc4

@therealkenc
Copy link
Collaborator

Need a gist of the strace so we can check out the EINVAL.

strace -ff icpc a.cpp 2> icpc.strace

Also the output of ver from the windows command line. Gonna say #1005, but that's just a guess absent the trace.

@macxfadz
Copy link
Author

@therealkenc cannot trace it..
Output -
icpc5

@therealkenc
Copy link
Collaborator

icpc is not in your path, which is not a WSL thing.

I was referring to the following from you screencap in the OP:

icpc: error #10103: can't fork process: Invalid argument

@onomatopellan
Copy link

@macxfadz You need to call source psxevars.sh every time you open bash.exe in order to use icpc or get the strace.

@macxfadz
Copy link
Author

@onomatopellan strace was generated but, .out or compiled binary output couldn't generated,please need your help on invoking intel compiler.
icpc6

@macxfadz
Copy link
Author

@therealkenc here is the strace file ,that was generated

icpc.strace.txt

@therealkenc
Copy link
Collaborator

open("/tmp/icpcdashvzbvylx", O_RDWR|O_CREAT|O_EXCL, 0600) = 3
close(3)                                = 0
unlink("/tmp/icpcdashvzbvylx")          = 0
rt_sigaction(SIGINT, {SIG_DFL, [INT], SA_RESTORER|SA_RESTART, 0x7f9ed0b954b0}, {0x52a230, [INT], SA_RESTORER|SA_RESTART, 0x7f9ed0b954b0}, 8) = 0
{SIG_DFL, [], SA_RESTORER, 0x7faca86654b0}, 8) = 0
[... more unnotable rt_sigactions]
mmap(NULL, 10489856, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f9ed00d0000
clone(child_stack=0x7f9ed0acffff, flags=CLONE_VFORK|SIGCHLD) = -1 EINVAL (Invalid argument)

Which sure looks like #1005; but you say you are on 16299 FCU -- still no ver output from windows command prompt. CLONE_VFORK|SIGCHLD was addressed back in Feburary (message) circa 15046. Anyway, "there's your problem".

@dmey
Copy link

dmey commented Nov 2, 2017

@therealkenc, I am having the same issue: Microsoft Windows [Version 10.0.16299.19].
Let me know if you need more logs.
Thanks for looking into this.

@macxfadz
Copy link
Author

macxfadz commented Dec 4, 2017

@therealkenc any luck ? anyone ran Intel C/C++ compiler successfully in WSL?

@therealkenc
Copy link
Collaborator

therealkenc commented Dec 4, 2017

I can't tell from the strace alone what is causing the EINVAL. The lead up looks alright, assuming I am not staring something in the face (I might). The license terms for Intel Parallel Studio do cause somewhat of an unfortunate drag on investigation. It would be worth contacting your Intel sales rep. It would also be worth trying Insiders, because CLONE_VFORK had major surgery as of 17046, and there is a better than zero chance this sorted itself.

@jstarks
Copy link
Member

jstarks commented Dec 4, 2017

CLONE_VFORK without CLONE_VM would fail before 17046 but should work fine now. So this may be fixed in recent insider builds.

@macxfadz
Copy link
Author

macxfadz commented Dec 4, 2017

@therealkenc @jstarks , as you guys mentioned , with next Windows 10 this issue will be resolved right?
flags=CLONE_VFORK|SIGCHLD) = -1 EINVAL (Invalid argument)

@sunilmut
Copy link
Member

sunilmut commented Dec 4, 2017

@macxfadz - Yes, where next means the release after Fall Creators Update.

@macxfadz
Copy link
Author

macxfadz commented Dec 5, 2017

@sunilmut , next implies next Windows 10 major update release on April or May :) ,Thank you for the confirmation.

@BopngMa
Copy link

BopngMa commented Jan 4, 2018

It also occurs to me!!!

Has this problem solved in the insider version? Anyone tested ?

How to install the insider version?

Thanks

@kei2e
Copy link

kei2e commented Mar 15, 2018

It seems to have been resolved in insider build: Had the same problem, but now works fine after updating to 17115.

@macxfadz
Copy link
Author

When we are going to have next major update of Windows 10 1803? this coming April?

@WSLUser
Copy link

WSLUser commented Mar 15, 2018

It will be in available in early April. They released a KB a couple days ago that was forcefully installed upon internet connectivity being established to assist upgrading to 1803. I doubt the forced KB would rear it's head in a corporate network but your personal computer will be affected. Of course you can uninstall it (but considering the advantages to WSL and Windows that will be gained I wouldn't).

@tianyikillua
Copy link

I confirm that the problem is now solved within 1803.

@jstarks
Copy link
Member

jstarks commented Apr 30, 2018

Great, thanks for confirming.

@macxfadz
Copy link
Author

macxfadz commented May 1, 2018

@tianyikillua thank you for the confirmation.

@macxfadz
Copy link
Author

macxfadz commented Jun 2, 2018

actually, I installed WSL 18.04 with Windows 10 1803 same thing happened again... but I found a fix for this issue , hope this might help you.
bashrc
select
setpathandargs
checking

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants