[GH-ISSUE #819] GNUMakefile causes opencl build to fail on cygwin #434

Closed
opened 2026-10-14 03:07:01 +07:00 by bsakaguchi · 12 comments
Owner

Originally created by @jfoug on GitHub (Oct 22, 2014).
Original GitHub issue: https://github.com/openwall/john/issues/819

My make does not use makefile, it uses GNUMakefile (which IMHO is a BAD choice to have ever been created). That file has 'most' things set, but not all.

To get this to build right, I smoked GNUMakefile and things build fine. I put an #error into one of the opencl files, just to see that it was not building, the error was not it. This was prior to finding the bogus usage of GNUmakefile. Once that file was gone, and I rebuilt, the error was tripped.

Originally created by @jfoug on GitHub (Oct 22, 2014). Original GitHub issue: https://github.com/openwall/john/issues/819 My make does not use makefile, it uses GNUMakefile (which IMHO is a BAD choice to have ever been created). That file has 'most' things set, but not all. To get this to build right, I smoked GNUMakefile and things build fine. I put an #error into one of the opencl files, just to see that it was not building, the error was not it. This was prior to finding the bogus usage of GNUmakefile. Once that file was gone, and I rebuilt, the error was tripped.
bsakaguchi 2026-10-14 03:07:01 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@magnumripper commented on GitHub (Oct 22, 2014):

This was fixed in 5a7fa8e. GNUmakefile is never created now. If you had problems despite running new enough tree, it was because you never ran "make clean" and had a GNUmakefile existing from earlier versions.

Yes, it was a bad idea. I tried to keep our Makefile -> Makefile.stub link but now I opted to drop that one instead. For release tarballs, we can have that symlink in place, but not in Git.

I'm not closing this, I'll let you verify.

<!-- gh-comment-id:60117957 --> @magnumripper commented on GitHub (Oct 22, 2014): This was fixed in 5a7fa8e. GNUmakefile is never created now. If you had problems despite running new enough tree, it was because you never ran "make clean" and had a GNUmakefile existing from earlier versions. Yes, it was a bad idea. I tried to keep our Makefile -> Makefile.stub link but now I opted to drop that one instead. For release tarballs, we can have that symlink in place, but not in Git. I'm not closing this, I'll let you verify.
Author
Owner

@jfoug commented on GitHub (Oct 22, 2014):

ran several make cleans. Did not correct anything.

<!-- gh-comment-id:60119109 --> @jfoug commented on GitHub (Oct 22, 2014): ran several make cleans. Did not correct anything.
Author
Owner

@jfoug commented on GitHub (Oct 22, 2014):

it was hard to figure out, because it was close enough that I thought makefile was being used but not being used properly. I started editing makefile by hand and nothing was changing. That is when I went looking for other strange things and saw gnumakefile Rm of that thing got the build working

<!-- gh-comment-id:60119473 --> @jfoug commented on GitHub (Oct 22, 2014): it was hard to figure out, because it was close enough that I thought makefile was being used but not being used properly. I started editing makefile by hand and nothing was changing. That is when I went looking for other strange things and saw gnumakefile Rm of that thing got the build working
Author
Owner

@jfoug commented on GitHub (Oct 22, 2014):

in 5a7fa8e line 711 removes rm of gnumakefile. make clean does nothing

<!-- gh-comment-id:60119718 --> @jfoug commented on GitHub (Oct 22, 2014): in 5a7fa8e line 711 removes rm of gnumakefile. make clean does nothing
Author
Owner

@magnumripper commented on GitHub (Oct 22, 2014):

in 5a7fa8e line 711 removes rm of gnumakefile

Not exactly, it moves the rm from "make distclean" to "make clean" (which is a subset of distclean). I just verified it here:

$ make clean
rm -f ../run/john ../run/unshadow ../run/unafs ../run/unique ../run/undrop ../run/ssh2john ../run/rar2john ../run/zip2john ../run/genmkvpwd ../run/mkvcalcproba ../run/calc_stat ../run/tgtsnarf ../run/racf2john ../run/hccap2john ../run/pwsafe2john ../run/raw2dyna ../run/keepass2john ../run/pfx2john ../run/keychain2john ../run/keyring2john ../run/kwallet2john ../run/dmg2john ../run/putty2john ../run/uaf2john ../run/truecrypt_volume2john ../run/keystore2john ../run/wpapcap2john ../run/gpg2john ../run/cprepair ../run/luks2john ../run/mozilla2john ../run/SIPdump ../run/vncpcap2john GNUmakefile
(...)

Last thing in that line is GNUmakefile. From other reports it seems only Cygwin64 has/had problems with this. Some odd long filename issue?

<!-- gh-comment-id:60123490 --> @magnumripper commented on GitHub (Oct 22, 2014): > in 5a7fa8e line 711 removes rm of gnumakefile Not exactly, it moves the rm from "make distclean" to "make clean" (which is a subset of distclean). I just verified it here: ``` $ make clean rm -f ../run/john ../run/unshadow ../run/unafs ../run/unique ../run/undrop ../run/ssh2john ../run/rar2john ../run/zip2john ../run/genmkvpwd ../run/mkvcalcproba ../run/calc_stat ../run/tgtsnarf ../run/racf2john ../run/hccap2john ../run/pwsafe2john ../run/raw2dyna ../run/keepass2john ../run/pfx2john ../run/keychain2john ../run/keyring2john ../run/kwallet2john ../run/dmg2john ../run/putty2john ../run/uaf2john ../run/truecrypt_volume2john ../run/keystore2john ../run/wpapcap2john ../run/gpg2john ../run/cprepair ../run/luks2john ../run/mozilla2john ../run/SIPdump ../run/vncpcap2john GNUmakefile (...) ``` Last thing in that line is GNUmakefile. From other reports it seems only Cygwin64 has/had problems with this. Some odd long filename issue?
Author
Owner

@magnumripper commented on GitHub (Oct 22, 2014):

Hm, wait. It might be an issue with GNUmakefile versus GNUMakefile (uppercase M)? In that case, only users that ever built with 7a96abed but without e6e94ece and has a case significant file system was affected.

I will add "GNUMakefile" to that rm too. Both of them will just be there for a "quarantine" period, cleaning up the mess.

<!-- gh-comment-id:60124125 --> @magnumripper commented on GitHub (Oct 22, 2014): Hm, wait. It might be an issue with GNUmakefile versus GNUMakefile (uppercase M)? In that case, only users that ever built _with_ 7a96abed but _without_ e6e94ece and has a case significant file system was affected. I will add "GNUMakefile" to that rm too. Both of them will just be there for a "quarantine" period, cleaning up the mess.
Author
Owner

@frank-dittrich commented on GitHub (Oct 22, 2014):

Apparently, some windows file systems cannot distinguish 2 filenames that differ in case only.
i.e., you cannot rename TestFIle to testfile, because Windows tells you that name already exists.
(You have to rename TestFIle do something else, e.g., dummy, and then rename dummy to testfile.)

<!-- gh-comment-id:60124201 --> @frank-dittrich commented on GitHub (Oct 22, 2014): Apparently, some windows file systems cannot distinguish 2 filenames that differ in case only. i.e., you cannot rename TestFIle to testfile, because Windows tells you that name already exists. (You have to rename TestFIle do something else, e.g., dummy, and then rename dummy to testfile.)
Author
Owner

@magnumripper commented on GitHub (Oct 22, 2014):

I will add "GNUMakefile" to that rm too. Both of them will just be there for a "quarantine" period, cleaning up the mess.

This will not help. If you have any of GNUmakefile or GNUMakefile, a "make clean" will be ran from it, not from the fixed file. I'll have to add a temporary bodge in configure.ac that removes any stray GNU*akefile.

<!-- gh-comment-id:60125246 --> @magnumripper commented on GitHub (Oct 22, 2014): > I will add "GNUMakefile" to that rm too. Both of them will just be there for a "quarantine" period, cleaning up the mess. This will not help. If you have any of GNUmakefile or GNUMakefile, a "make clean" will be ran from **it**, not from the fixed file. I'll have to add a temporary bodge in configure.ac that removes any stray GNU*akefile.
Author
Owner

@magnumripper commented on GitHub (Oct 22, 2014):

Added an assert in 0bd9847. Sorry for the inconvenience. I opted to just bail out and let user remove the file himself.

<!-- gh-comment-id:60126693 --> @magnumripper commented on GitHub (Oct 22, 2014): Added an assert in 0bd9847. Sorry for the inconvenience. I opted to just bail out and let user remove the file himself.
Author
Owner

@jfoug commented on GitHub (Oct 22, 2014):

This was cyg64. Once I knew the bogus file, the fix was easy. It simply was make clean & make were NOT working, and it was not obvious why

<!-- gh-comment-id:60128352 --> @jfoug commented on GitHub (Oct 22, 2014): This was cyg64. Once I knew the bogus file, the fix was easy. It simply was make clean & make were NOT working, and it was not obvious why
Author
Owner

@jfoug commented on GitHub (Oct 22, 2014):

All windows are case 'insensitive' upon file existance, even though they preserve case. Hold over to windoze 3.1 that ms simply never allowed to be corrected.

<!-- gh-comment-id:60128567 --> @jfoug commented on GitHub (Oct 22, 2014): All windows are case 'insensitive' upon file existance, even though they preserve case. Hold over to windoze 3.1 that ms simply never allowed to be corrected.
Author
Owner

@magnumripper commented on GitHub (Oct 22, 2014):

OSX is just as stupid (by default). It can rename a file from abc to ABC though. But here's some odd behavior:

$ touch RealName
$ ls -l Real*
-rw-r--r--  1 magnum  staff  0 Oct 22 20:32 RealName
$ ls -l RealnAME
-rw-r--r--  1 magnum  staff  0 Oct 22 20:32 RealnAME
$ ls -l realname
-rw-r--r--  1 magnum  staff  0 Oct 22 20:32 realname

Above, it's listed like I asked, not as it's really named.

$ ls -l real*
ls: real*: No such file or directory

The above is incredibly weird considering it just listed it as "realname"

<!-- gh-comment-id:60133259 --> @magnumripper commented on GitHub (Oct 22, 2014): OSX is just as stupid (by default). It can rename a file from abc to ABC though. But here's some odd behavior: ``` $ touch RealName $ ls -l Real* -rw-r--r-- 1 magnum staff 0 Oct 22 20:32 RealName ``` ``` $ ls -l RealnAME -rw-r--r-- 1 magnum staff 0 Oct 22 20:32 RealnAME $ ls -l realname -rw-r--r-- 1 magnum staff 0 Oct 22 20:32 realname ``` Above, it's listed like I asked, not as it's really named. ``` $ ls -l real* ls: real*: No such file or directory ``` The above is incredibly weird considering it just listed it as "realname"
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
openwall/john#434
No description provided.