Coreutils' Build Fails After Linking rm.exe

Eric Blake eblake@redhat.com
Tue Feb 15 15:19:00 GMT 2011


On 02/15/2011 12:58 AM, L Anderson wrote:
> 3rd--I ran 'cygport coreutils-8.10-1 compile', which appeared to work
> ok until it exited with a "make error" as shown by the following last
> few lines of the output:

All those steps match what I do when building coreutils.

>   CCLD   pwd.exe
>   CCLD   readlink.exe
>   CCLD   rm.exe
>   CCLD   rmdir.exe <<<---up to and including rmdir.exe have been linked
> ./rm: ./rm: cannot execute binary file

Hmm.  Does your $PATH include '.' somewhere near the beginning?  That
may be the culprit; I _never_ run with '.' at the beginning (too much
risk of a trojan horse executable taking over); running with '.' at the
end or not in PATH at all would be safer.

-- 
Eric Blake   eblake@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://cygwin.com/pipermail/cygwin/attachments/20110215/5634a892/attachment.sig>


More information about the Cygwin mailing list