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

lib.exe where? #38

Closed
jthecodebuilder opened this issue Apr 29, 2018 · 11 comments
Closed

lib.exe where? #38

jthecodebuilder opened this issue Apr 29, 2018 · 11 comments

Comments

@jthecodebuilder
Copy link

unable to find lib.exe in PATH: : No such file or directory happens on everything I try to compile, and I am super confused and frustrated that this issue seems very unique in my case.

I am running Windows 10 x64 with MSYS2 32bit.

@JayFoxRox
Copy link
Member

JayFoxRox commented Apr 29, 2018

  • How did you install nxdk?
  • At which step does this happen?
  • Do you have a full log? (Please provide one)

@jthecodebuilder
Copy link
Author

  • I installed/downloaded it by the preferred method in the README.md
  • It appears to be happening at [ LD ] main.exe
  • And I do have a full log (atleast to the best of my abilities), preferrably using the 'hello' example as a baseline to see what's going wrong
$ make
[ DEP      ] /home/gmodk_000/nxdk/samples/hello/main.c.d
[ CC       ] /home/gmodk_000/nxdk/samples/hello/main.obj
[ LD       ] main.exe
unable to find lib.exe in PATH: : No such file or directory
make: *** [/home/gmodk_000/nxdk/samples/hello/../../Makefile:96: main.exe] Error 1

@JayFoxRox
Copy link
Member

JayFoxRox commented Apr 29, 2018

I'm able to reproduce the issue but I couldn't find a solution yet.

I'd assume that this is a bug in the msys "lld".
I've asked about this in the MSYS2 IRC channel but haven't got a reponse (Last checked in September 2018: No response).


As an alternative, the wiki also has installation instructions for WSL.
However, I'm not sure how many people tried that either. Fixes are welcome.

(I also think we should move the existing documentation from the README to the wiki, so it can be updated more easily by users Done. Needs to be linked from the README)

@jthecodebuilder
Copy link
Author

jthecodebuilder commented Apr 30, 2018

I finally got an output default.xbe compiled in WSL. Here are my findings:

  • The Install the Prerequisites page implies incorrectly that lld-6.0 should be installed
  • Since llvm-4.0 is being installed, lld-4.0 should be installed as well
  • symlink is needed in my case

The symlink thing could be applied to MSYS2, but I don't know how to do it.

@jthecodebuilder
Copy link
Author

jthecodebuilder commented Apr 30, 2018

Is the triangle sample supposed to give a GPU Error and the 0ldskoo1 demo having a red stripe across most of the text, though?

@thrimbor
Copy link
Member

@jthecodebuilder Afaik WSL should provide access to Windows drives in /mnt.

@jthecodebuilder
Copy link
Author

I know that already, I was just not sure if it would convert to the Windows filesystem until I tried.

@elieux
Copy link

elieux commented Apr 30, 2018

Could you post the test case, so I can try it locally?

@JayFoxRox
Copy link
Member

@jthecodebuilder The wiki should be editable by everyone, please fix the broken documentation yourself. The maintainers can't do such things because we don't run all supported platforms ourselves.

Also, yes, 0ldskoo1 is actually a capture-the-flag challenge so the red box is supposed to hide the actual message. I do agree that it should be modified for the nxdk release because people have repeatedly been confused by this.

I'm not aware about a GPU error on the triangle sample. Please create a new issue if you think this might be a bug.

@JayFoxRox
Copy link
Member

Looks like the wiki has been updated. I'm closing this issue - please inform us if the problem persists.

@JayFoxRox
Copy link
Member

Reading over this again, I'm not sure why I closed this. WSL seems to be a workaround, but MSYS2 is still broken?

If anyone runs into this issue with MSYS again, please create a new issue and also link to this one.

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

No branches or pull requests

4 participants