vk496 / mfoc

Mifare Classic Offline Cracker with Hardnested support
GNU General Public License v2.0
88 stars 32 forks source link

Missing no-intel support #1

Closed vk496 closed 4 years ago

vk496 commented 5 years ago
$ make
make  all-recursive
make[1]: Entering directory '/home/rock64/mfoc'
Making all in src
make[2]: Entering directory '/home/rock64/mfoc/src'
  CC       crapto1.o
  CC       crypto1.o
  CC       mfoc.o
  CC       mifare.o
  CC       nfc-utils.o
  CC       parity.o
  CC       hardnested/hardnested_bruteforce.o
  CC       hardnested/tables.o
  CC       cmdhfmfhard.o
  CC       util.o
  CC       util_posix.o
  CC       ui.o
gcc  -O3 -std=c99 -mno-mmx -mno-sse2 -mno-avx -mno-avx2 -mno-avx512f -c -o hardnested/hardnested_bf_core_NOSIMD.o hardnested/hardnested_bf_core.c
gcc: error: unrecognized command line option '-mno-mmx'
gcc: error: unrecognized command line option '-mno-sse2'; did you mean '-fno-dse'?
gcc: error: unrecognized command line option '-mno-avx'; did you mean '-Wno-a,'?
gcc: error: unrecognized command line option '-mno-avx2'; did you mean '-Wno-a,'?
gcc: error: unrecognized command line option '-mno-avx512f'
Makefile:719: recipe for target 'hardnested/hardnested_bf_core_NOSIMD.o' failed
make[2]: *** [hardnested/hardnested_bf_core_NOSIMD.o] Error 1
make[2]: Leaving directory '/home/rock64/mfoc/src'
Makefile:375: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/rock64/mfoc'
Makefile:316: recipe for target 'all' failed
make: *** [all] Error 2

I need to improve the Makefile.am to avoid using intel flags on no-Intel machines.

In proxmark3 works very well (https://github.com/Proxmark/proxmark3/blob/master/client/Makefile#L202), but I have issues when translating to automake format

vk496 commented 4 years ago

Should be fixed...