[GH-ISSUE #611] autoconf build, x86-64 > sse2 but < AVX with OMP, build fails #279

Closed
opened 2026-10-14 02:59:38 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @jfoug on GitHub (May 30, 2014).
Original GitHub issue: https://github.com/openwall/john/issues/611

The build fails with some DES items defined twice. Once in x86-64.S and once in DES_bs_b.c

If I add this to x86-64.h, the build links, and -test=0 runs, BUT I get warnings:

  #elif (defined(__SSE2__) && defined(_OPENMP))
+ #if defined (__SSE4_1__)
+ #define DES_BS_ASM            1
+ #else
  #define DES_BS_ASM            0
+ #endif
   #if 1

Here are the build warnings.

DES_bs_b.c:15:2: warning: #warning Assembly code and OpenMP are both requested - will provide the former, but not the latter (for DES-based hashes). This may likely be corrected by enabling SIMD intrinsics with the C compiler (try adding -msse2 to OMPFLAGS). [-Wcpp]
 #warning Assembly code and OpenMP are both requested - will provide the former, but not the latter (for DES-based hashes).  This may likely be corrected by enabling SIMD intrinsics with the C compiler (try adding -msse2 to OMPFLAGS).
Originally created by @jfoug on GitHub (May 30, 2014). Original GitHub issue: https://github.com/openwall/john/issues/611 The build fails with some DES items defined twice. Once in x86-64.S and once in DES_bs_b.c If I add this to x86-64.h, the build links, and -test=0 runs, BUT I get warnings: ``` #elif (defined(__SSE2__) && defined(_OPENMP)) + #if defined (__SSE4_1__) + #define DES_BS_ASM 1 + #else #define DES_BS_ASM 0 + #endif #if 1 ``` Here are the build warnings. ``` DES_bs_b.c:15:2: warning: #warning Assembly code and OpenMP are both requested - will provide the former, but not the latter (for DES-based hashes). This may likely be corrected by enabling SIMD intrinsics with the C compiler (try adding -msse2 to OMPFLAGS). [-Wcpp] #warning Assembly code and OpenMP are both requested - will provide the former, but not the latter (for DES-based hashes). This may likely be corrected by enabling SIMD intrinsics with the C compiler (try adding -msse2 to OMPFLAGS). ```
Author
Owner

@jfoug commented on GitHub (May 30, 2014):

Found and fixed efcae7af We were not passing the OPENMP_CFLAGS in the ASFLAGS.

<!-- gh-comment-id:44678429 --> @jfoug commented on GitHub (May 30, 2014): Found and fixed efcae7af We were not passing the OPENMP_CFLAGS in the ASFLAGS.
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#279
No description provided.