mirror of
https://github.com/openwall/john.git
synced 2026-12-03 18:45:21 +07:00
[GH-ISSUE #819] GNUMakefile causes opencl build to fail on cygwin #434
Labels
No labels
bug
core branch
documentation
enhancement
enhancement
fixed - pending verify
fuzz bug
good first issue
invalid
invalid
maintenance/cleanup
new cracking mode
new format
new tool
non-trivial
notes/external issues
portability
question
RFC / discussion
testing
WONTFIX
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
openwall/john#434
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
@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.
@jfoug commented on GitHub (Oct 22, 2014):
ran several make cleans. Did not correct anything.
@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
@jfoug commented on GitHub (Oct 22, 2014):
in
5a7fa8eline 711 removes rm of gnumakefile. make clean does nothing@magnumripper commented on GitHub (Oct 22, 2014):
Not exactly, it moves the rm from "make distclean" to "make clean" (which is a subset of distclean). I just verified it here:
Last thing in that line is GNUmakefile. From other reports it seems only Cygwin64 has/had problems with this. Some odd long filename issue?
@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
7a96abedbut withoute6e94eceand 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.
@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.)
@magnumripper commented on GitHub (Oct 22, 2014):
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.
@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.@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
@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.
@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:
Above, it's listed like I asked, not as it's really named.
The above is incredibly weird considering it just listed it as "realname"