mirror of
https://github.com/openwall/john.git
synced 2026-12-03 20:43:49 +07:00
[GH-ISSUE #1874] clang build for Raspberry Pi 2 fails #1245
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#1245
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 @frank-dittrich on GitHub (Nov 1, 2015).
Original GitHub issue: https://github.com/openwall/john/issues/1874
Originally assigned to: @jfoug on GitHub.
A regular autoconf build works, with and without openmp. But using clang instead of gcc doesn't.
If I try to compile that that single file with gcc, I get the same error:
To see what else fails, I just touched MD5_fmt.o and continued.
Next error:
Next error:
and so on...
@magnumripper commented on GitHub (Nov 1, 2015):
What did you get for arch.h? Does that clang support NEON instructions? I guess not. Try
clang -dM -E -x c /dev/null | grep __ARM_NEON__@magnumripper commented on GitHub (Nov 1, 2015):
Made a small correction in
6493ce1, not sure if it will make any difference in this case.@frank-dittrich commented on GitHub (Nov 1, 2015):
I just fetched your latest changes, and will report the result once the build completed.
@frank-dittrich commented on GitHub (Nov 1, 2015):
Looks better now. Just some warnings.
Unused functions:
And some singed/unsigned issues?
@frank-dittrich commented on GitHub (Nov 1, 2015):
./jtrts.pl has that same
mem_alloc(): Cannot allocate memory trying to allocate 1073741824 bytesproblem as the gcc build, which I've not yet been able to track down.But we have https://github.com/magnumripper/JohnTheRipper/issues/1872 for that.
I'll keep this issue open, because of the remaining clang warnings.
@magnumripper commented on GitHub (Nov 1, 2015):
Signed/unsigned stuff fixed in
04787fd(please test). I guess clang would have hinted about #1863 had I not already fixed it.@magnumripper commented on GitHub (Nov 1, 2015):
And BTW hopefully this means we have now fixed all similar problems.
@magnumripper commented on GitHub (Nov 2, 2015):
All fixed except these
Leaving them to @jfoug.
@frank-dittrich commented on GitHub (Nov 2, 2015):
@magnumripper dropping the unused blake2b functions made another function unused. Fixed in
63d3aa15c6.Otherwise, I didn't notice any problems. Those two unused dynamic functions are the only remaining.
BTW: I wonder why gcc isn't able to detect the unused functions detected by clang.
I even tried
./configure CC="gcc -Wunused". Didn't help.@jfoug commented on GitHub (Nov 2, 2015):
@frank-dittrich please check now.
@frank-dittrich commented on GitHub (Nov 2, 2015):
@jfoug thanks!
@magnumripper commented on GitHub (Nov 2, 2015):
Because with gcc you had NEON and an other source file was used for Blake, already fixed long ago.