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

README.win32 says to use "/usr/bin/find" #5830

Closed
vicuna opened this issue Nov 17, 2012 · 4 comments
Closed

README.win32 says to use "/usr/bin/find" #5830

vicuna opened this issue Nov 17, 2012 · 4 comments

Comments

@vicuna
Copy link

vicuna commented Nov 17, 2012

Original bug ID: 5830
Reporter: sesquized
Status: closed (set by @alainfrisch on 2013-07-22T15:47:01Z)
Resolution: suspended
Priority: normal
Severity: minor
Platform: Windows
OS: Windows
OS Version: Vista 64
Version: 4.00.1
Target version: 4.01.0+dev
Category: configure and build/install
Related to: #5833

Bug description

README.win32 says to set OCAMLBUILD_FIND to /usr/bin/find
It needs to be /bin/find

On Vista 64 (at least) the cygwin path /usr/bin/find.exe is an alias that is not found by the MSVC "system()" It needs to be /bin/find.

Steps to reproduce

dir c:\cygwin\usr\bin\find.exe
dir c:\cygwin\bin\find.exe

@vicuna
Copy link
Author

vicuna commented Nov 19, 2012

Comment author: sesquized

this is incorrect....

@vicuna
Copy link
Author

vicuna commented Jun 28, 2013

Comment author: @damiendoligez

It's true that under cygwin /usr/bin is a kind of alias for /bin that Windows doesn't know how to resolve (it doesn't even see it).

But I'm curious to know how the value of OCAMLBUILD_FIND ends up being looked up by MSVC's system() function on your machine.

I'm also curious to know why cygwin's /etc/profile adds /usr/bin and not /bin to the PATH.

I'm in favor of changing it, but this will need to be tested (which, in this case, our CI platform won't do).

@vicuna
Copy link
Author

vicuna commented Jul 22, 2013

Comment author: @alainfrisch

'find' is called through My_std.sys_command, which (under Windows) goes through bash. As long as 'bash' comes from Cygwin, I don't see anything wrong. (Actually, I wonder what's the need for OCAMLBUILD_FIND. Why doesn't ocamlbuild defaults to /usr/bin/find or /bin/find automatically under Win32?)

@vicuna
Copy link
Author

vicuna commented Jul 22, 2013

Comment author: sesquized

After I made this report, I found out that the information I had when I made the report was incorrect. On my system /bin/find and /usr/bin/find are actually aliases for each other.

1125899907003518 -rwxr-xr-x 1 Owner None 209422 Dec 3 2010 /bin/find
1125899907003518 -rwxr-xr-x 1 Owner None 209422 Dec 3 2010 /usr/bin/find

I recommend closing this bug as resolved/not needed or whatever status means that nothing needs to be done for the bug.

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

No branches or pull requests

1 participant