[GH-ISSUE #1370] x86-64 non-SIMD build #866

Closed
opened 2026-10-14 03:26:16 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @magnumripper on GitHub (May 28, 2015).
Original GitHub issue: https://github.com/openwall/john/issues/1370

After 11e2ee99c I can build x86 64-bit without SIMD like this:

./configure CPPFLAGS="-mno-sse2" --disable-cuda --disable-opencl &&
sed -ri 's/ x86-64.o sse-intrinsics.o//' Makefile &&
make -s clean && make -sj4

I needed to edit Makefile and drop x86-64.o and sse-intrinsics.o from JOHN_OBJS. We should fix autoconf so this isn't needed. I'm pretty sure we can use x86-any.h even for 64-bit builds.

Originally created by @magnumripper on GitHub (May 28, 2015). Original GitHub issue: https://github.com/openwall/john/issues/1370 After 11e2ee99c I can build x86 64-bit without SIMD like this: ``` ./configure CPPFLAGS="-mno-sse2" --disable-cuda --disable-opencl && sed -ri 's/ x86-64.o sse-intrinsics.o//' Makefile && make -s clean && make -sj4 ``` I needed to edit Makefile and drop x86-64.o and sse-intrinsics.o from JOHN_OBJS. We should fix autoconf so this isn't needed. I'm pretty sure we can use x86-any.h even for 64-bit builds.
bsakaguchi 2026-10-14 03:26:16 +07:00
Author
Owner

@jfoug commented on GitHub (May 29, 2015):

Please check out the config changes. See if it is enough.

<!-- gh-comment-id:106894093 --> @jfoug commented on GitHub (May 29, 2015): Please check out the config changes. See if it is enough.
Author
Owner

@jfoug commented on GitHub (May 29, 2015):

I tried adding -mno-mmx to the 64 bit build, but gcc fails to build if there is no MMX. NOTE, on cygwin64, gcc fails to build if SSE2 is not defined.

I am leaving the -mno-mmx test in configure (the 2nd change), since there may be ability on some compilers to do it. But for now, on linux we can test a non-sse2 build simply using the configure with "CPPFLAGS=-mno-sse2"

<!-- gh-comment-id:106896653 --> @jfoug commented on GitHub (May 29, 2015): I tried adding -mno-mmx to the 64 bit build, but gcc fails to build if there is no MMX. NOTE, on cygwin64, gcc fails to build if SSE2 is not defined. I am leaving the -mno-mmx test in configure (the 2nd change), since there may be ability on some compilers to do it. But for now, on linux we can test a non-sse2 build simply using the configure with "CPPFLAGS=-mno-sse2"
Author
Owner

@magnumripper commented on GitHub (May 29, 2015):

It works just fine on OSX too. And no warnings or failures from a non-SIMD build.

<!-- gh-comment-id:106897977 --> @magnumripper commented on GitHub (May 29, 2015): It works just fine on OSX too. And no warnings or failures from a non-SIMD build.
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#866
No description provided.