[GH-ISSUE #484] Test/debug/fix Win64 build (x86-64.S) #193

Closed
opened 2026-10-14 02:55:54 +07:00 by bsakaguchi · 15 comments
Owner

Originally created by @magnumripper on GitHub (Jan 9, 2014).
Original GitHub issue: https://github.com/openwall/john/issues/484

Originally assigned to: @jfoug on GitHub.

Some DES variants fails, eg. BSDIcrypt. To test this, OMP, XOP and AVX must be disabled.

Originally created by @magnumripper on GitHub (Jan 9, 2014). Original GitHub issue: https://github.com/openwall/john/issues/484 Originally assigned to: @jfoug on GitHub. Some DES variants fails, eg. BSDIcrypt. To test this, OMP, XOP and AVX must be disabled.
bsakaguchi 2026-10-14 02:55:54 +07:00
Author
Owner

@kholia commented on GitHub (Jan 9, 2014):

MinGW cross-compiler stuff is currently broken in Fedora. See https://bugzilla.redhat.com/show_bug.cgi?id=1046027 for details.

Currently, the compilation is failing for a different (and fixable) reason.

$ make win64-mingw-x86-64
...
signals.c: In function 'sig_install_update':
signals.c:153:9: error: 'SIGUSR1' undeclared (first use in this function)
  signal(SIGUSR1, sig_handle_update);
<!-- gh-comment-id:31949596 --> @kholia commented on GitHub (Jan 9, 2014): MinGW cross-compiler stuff is currently broken in Fedora. See https://bugzilla.redhat.com/show_bug.cgi?id=1046027 for details. Currently, the compilation is failing for a different (and fixable) reason. ``` $ make win64-mingw-x86-64 ... signals.c: In function 'sig_install_update': signals.c:153:9: error: 'SIGUSR1' undeclared (first use in this function) signal(SIGUSR1, sig_handle_update); ```
Author
Owner

@magnumripper commented on GitHub (Jan 9, 2014):

Lol, so much for POSIX compliance (or signals are not POSIX?). I'll fix that.

<!-- gh-comment-id:31970698 --> @magnumripper commented on GitHub (Jan 9, 2014): Lol, so much for POSIX compliance (or signals are not POSIX?). I'll fix that.
Author
Owner

@magnumripper commented on GitHub (Jan 9, 2014):

SIGUSR1 problem should be gone with ef5b109

<!-- gh-comment-id:31973875 --> @magnumripper commented on GitHub (Jan 9, 2014): SIGUSR1 problem should be gone with ef5b109
Author
Owner

@kholia commented on GitHub (Feb 6, 2014):

Everything seems to be working fine on my new Windows 2012 R2 64-bit system. Hence, closing this bug.

<!-- gh-comment-id:34318570 --> @kholia commented on GitHub (Feb 6, 2014): Everything seems to be working fine on my new Windows 2012 R2 64-bit system. Hence, closing this bug.
Author
Owner

@magnumripper commented on GitHub (Feb 6, 2014):

Are you sure? Does it pass --test=0 using a plain non-OMP SSE2 build? That would be a relief.

Specifically, nt, descrypt, bsdicrypt, lm, netntlm-naive, mschapv2-naive and tripcode are using the assembler files we had problem with.

<!-- gh-comment-id:34349971 --> @magnumripper commented on GitHub (Feb 6, 2014): Are you sure? Does it pass `--test=0` using a plain non-OMP SSE2 build? That would be a relief. Specifically, nt, descrypt, bsdicrypt, lm, netntlm-naive, mschapv2-naive and tripcode are using the assembler files we had problem with.
Author
Owner

@magnumripper commented on GitHub (Feb 7, 2014):

BTW is this working john.exe in your Windows branch?

<!-- gh-comment-id:34498118 --> @magnumripper commented on GitHub (Feb 7, 2014): BTW is this working john.exe in your Windows branch?
Author
Owner

@kholia commented on GitHub (Feb 8, 2014):

BTW is this working john.exe in your Windows branch?

Yes, right.

I think I know why this build is working. It's an OMP build :-(

<!-- gh-comment-id:34524329 --> @kholia commented on GitHub (Feb 8, 2014): > BTW is this working john.exe in your Windows branch? Yes, right. I think I know why this build is working. It's an OMP build :-(
Author
Owner

@magnumripper commented on GitHub (Mar 5, 2014):

Good news, Jim has added a Cygwin64 build too, and he will hopefully look into the BSDI issue.

<!-- gh-comment-id:36712810 --> @magnumripper commented on GitHub (Mar 5, 2014): Good news, Jim has added a Cygwin64 build too, and he will hopefully look into the BSDI issue.
Author
Owner

@jfoug commented on GitHub (Mar 5, 2014):

I think this is now fixed. I added a little bit to PROLOGUE (to marshal first 2 params), and then changed ARG1 to the correct marshal'd param), so that NT code would work also. My Cygwin64 tests 364 and all work. This is non OMP build, and does use x86-64.S for all DES/NT functions.

<!-- gh-comment-id:36790633 --> @jfoug commented on GitHub (Mar 5, 2014): I think this is now fixed. I added a little bit to PROLOGUE (to marshal first 2 params), and then changed ARG1 to the correct marshal'd param), so that NT code would work also. My Cygwin64 tests 364 and all work. This is non OMP build, and does use x86-64.S for all DES/NT functions.
Author
Owner

@kholia commented on GitHub (Mar 6, 2014):

This is fixed now. Thanks @jfoug 👍

<!-- gh-comment-id:36834730 --> @kholia commented on GitHub (Mar 6, 2014): This is fixed now. Thanks @jfoug :+1:
Author
Owner

@kholia commented on GitHub (Mar 6, 2014):

descrypt passes the test but bsdicrypt is still failing (with FAILED get_hash[0](0)) on non-OMP builds.

<!-- gh-comment-id:36834956 --> @kholia commented on GitHub (Mar 6, 2014): descrypt passes the test but bsdicrypt is still failing (with `FAILED get_hash[0](0)`) on non-OMP builds.
Author
Owner

@kholia commented on GitHub (Mar 6, 2014):

@jfoug

You can get the latest binaries from https://github.com/kholia/JohnTheRipper/tree/Windows URL.

<!-- gh-comment-id:36835074 --> @kholia commented on GitHub (Mar 6, 2014): @jfoug You can get the latest binaries from https://github.com/kholia/JohnTheRipper/tree/Windows URL.
Author
Owner

@jfoug commented on GitHub (Mar 6, 2014):

Works just fine on cygwin64. I think Magnum did make changes to x86-64.h, beyond what I made. Are we sure mingw64 is still happy with those changes? I have no way to test, and the binary found in the above link, simply locked up on my system (without showing any text) and I can not kill it.

<!-- gh-comment-id:36887448 --> @jfoug commented on GitHub (Mar 6, 2014): Works just fine on cygwin64. I think Magnum did make changes to x86-64.h, beyond what I made. Are we sure mingw64 is still happy with those changes? I have no way to test, and the binary found in the above link, simply locked up on my system (without showing any text) and I can not kill it.
Author
Owner

@jfoug commented on GitHub (Mar 6, 2014):

I just did a pull from bleeding, and the latest changes were not placed in there (changes to x86-64.S)

<!-- gh-comment-id:36887652 --> @jfoug commented on GitHub (Mar 6, 2014): I just did a pull from bleeding, and the latest changes were not placed in there (changes to x86-64.S)
Author
Owner

@kholia commented on GitHub (Mar 6, 2014):

Fixed in commit 8515d2d743.

<!-- gh-comment-id:36901039 --> @kholia commented on GitHub (Mar 6, 2014): Fixed in commit 8515d2d743b19a6265d1657e4f90993c9a267c19.
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#193
No description provided.