[GH-ISSUE #1006] ./configure -enable-asan should detect "cc1: error: unrecognized command line option '-fsanitize=address'" #604

Closed
opened 2026-10-14 03:15:10 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @frank-dittrich on GitHub (Jan 7, 2015).
Original GitHub issue: https://github.com/openwall/john/issues/1006

On super and well:

$ ./configure -enable-asan
checking build system type... x86_64-unknown-linux-gnu
...
configure: creating ./fmt_externs.h
cc1: error: unrecognized command line option '-fsanitize=address'
cc1: error: unrecognized command line option '-fsanitize=address'
...
cc1: error: unrecognized command line option '-fsanitize=address'
cc1: error: unrecognized command line option '-fsanitize=address'
configure: creating ./fmt_registers.h
cc1: error: unrecognized command line option '-fsanitize=address'
cc1: error: unrecognized command line option '-fsanitize=address'
...
cc1: error: unrecognized command line option '-fsanitize=address'
cc1: error: unrecognized command line option '-fsanitize=address'
checking for john.local.conf... exists

Configured for building John the Ripper 1.8.0.2-jumbo-1-bleeding:

Target CPU .................................. x86_64 AVX, 64-bit LE
...
Development options (these may hurt performance when enabled):
Memdbg memory debugging settings ............ disabled
AddressSanitizer ("ASAN") ................... enabled

Install missing libraries to get any needed features that were omitted.

Configure finished.  Now 'make clean && make -s' to compile.

Of course, make fails as well:

$ make clean && make -s
rm -f ../run/john ../run/unshadow ../run/unafs ../run/unique ../run/undrop ../run/ssh2john ../run/rar2john ../run/zip2john ../run/genmkvpwd ../run/mkvcalcproba ../run/calc_stat ../run/tgtsnarf ../run/racf2john ../run/hccap2john ../run/pwsafe2john ../run/raw2dyna ../run/keepass2john ../run/pfx2john ../run/keychain2john ../run/keyring2john ../run/kwallet2john ../run/dmg2john ../run/putty2john ../run/uaf2john ../run/truecrypt_volume2john ../run/keystore2john ../run/wpapcap2john ../run/gpg2john ../run/cprepair ../run/luks2john ../run/base64conv ../run/SIPdump ../run/vncpcap2john
rm -f john-macosx-* *.o escrypt/*.o *.bak core
rm -f ../run/kernels/*.cl ../run/kernels/*.h ../run/kernels/*.bin
rm -f detect bench para-bench generic.h tmp.s
rm -f cuda/*.o cuda/*~ *~
cp /dev/null Makefile.dep
make[1]: Entering directory `/space/home/frank/git/JtR/src/aes'
/usr/bin/find . -name \*.a -exec rm {} \;
/usr/bin/find . -name \*.o -exec rm {} \;
make[1]: Leaving directory `/space/home/frank/git/JtR/src/aes'
make[1]: Entering directory `/space/home/frank/git/JtR/src/escrypt'
/bin/rm -f tests crypto_scrypt-best.o crypto_scrypt-common.o sha256.o tests.o crypto_scrypt-*.o
make[1]: Leaving directory `/space/home/frank/git/JtR/src/escrypt'
cc1: error: unrecognized command line option ‘-fsanitize=address’
make[1]: *** [jumbo.o] Error 1
make: *** [default] Error 2
Originally created by @frank-dittrich on GitHub (Jan 7, 2015). Original GitHub issue: https://github.com/openwall/john/issues/1006 On super and well: ``` $ ./configure -enable-asan checking build system type... x86_64-unknown-linux-gnu ... configure: creating ./fmt_externs.h cc1: error: unrecognized command line option '-fsanitize=address' cc1: error: unrecognized command line option '-fsanitize=address' ... cc1: error: unrecognized command line option '-fsanitize=address' cc1: error: unrecognized command line option '-fsanitize=address' configure: creating ./fmt_registers.h cc1: error: unrecognized command line option '-fsanitize=address' cc1: error: unrecognized command line option '-fsanitize=address' ... cc1: error: unrecognized command line option '-fsanitize=address' cc1: error: unrecognized command line option '-fsanitize=address' checking for john.local.conf... exists Configured for building John the Ripper 1.8.0.2-jumbo-1-bleeding: Target CPU .................................. x86_64 AVX, 64-bit LE ... Development options (these may hurt performance when enabled): Memdbg memory debugging settings ............ disabled AddressSanitizer ("ASAN") ................... enabled Install missing libraries to get any needed features that were omitted. Configure finished. Now 'make clean && make -s' to compile. ``` Of course, make fails as well: ``` $ make clean && make -s rm -f ../run/john ../run/unshadow ../run/unafs ../run/unique ../run/undrop ../run/ssh2john ../run/rar2john ../run/zip2john ../run/genmkvpwd ../run/mkvcalcproba ../run/calc_stat ../run/tgtsnarf ../run/racf2john ../run/hccap2john ../run/pwsafe2john ../run/raw2dyna ../run/keepass2john ../run/pfx2john ../run/keychain2john ../run/keyring2john ../run/kwallet2john ../run/dmg2john ../run/putty2john ../run/uaf2john ../run/truecrypt_volume2john ../run/keystore2john ../run/wpapcap2john ../run/gpg2john ../run/cprepair ../run/luks2john ../run/base64conv ../run/SIPdump ../run/vncpcap2john rm -f john-macosx-* *.o escrypt/*.o *.bak core rm -f ../run/kernels/*.cl ../run/kernels/*.h ../run/kernels/*.bin rm -f detect bench para-bench generic.h tmp.s rm -f cuda/*.o cuda/*~ *~ cp /dev/null Makefile.dep make[1]: Entering directory `/space/home/frank/git/JtR/src/aes' /usr/bin/find . -name \*.a -exec rm {} \; /usr/bin/find . -name \*.o -exec rm {} \; make[1]: Leaving directory `/space/home/frank/git/JtR/src/aes' make[1]: Entering directory `/space/home/frank/git/JtR/src/escrypt' /bin/rm -f tests crypto_scrypt-best.o crypto_scrypt-common.o sha256.o tests.o crypto_scrypt-*.o make[1]: Leaving directory `/space/home/frank/git/JtR/src/escrypt' cc1: error: unrecognized command line option ‘-fsanitize=address’ make[1]: *** [jumbo.o] Error 1 make: *** [default] Error 2 ```
Author
Owner

@frank-dittrich commented on GitHub (Jan 7, 2015):

BTW:

On bull, we have:

$ CC=clang ./configure -enable-asan
checking build system type... x86_64-unknown-linux-gnu
...
configure: Unable to validate clang command line arguments. CFLAGS may need to be passed to ./configure for proper build
...
checking whether compiler understands -arch host... yes
...
configure: creating ./fmt_externs.h
clang: warning: argument unused during compilation: '-arch host'
clang: warning: argument unused during compilation: '-fsanitize=address'
<!-- gh-comment-id:69005219 --> @frank-dittrich commented on GitHub (Jan 7, 2015): BTW: On bull, we have: ``` $ CC=clang ./configure -enable-asan checking build system type... x86_64-unknown-linux-gnu ... configure: Unable to validate clang command line arguments. CFLAGS may need to be passed to ./configure for proper build ... checking whether compiler understands -arch host... yes ... configure: creating ./fmt_externs.h clang: warning: argument unused during compilation: '-arch host' clang: warning: argument unused during compilation: '-fsanitize=address' ```
Author
Owner

@jfoug commented on GitHub (Jan 7, 2015):

This is a more difficult process than detecting if -fsanitize-address is not recognized. There are also systems that build just fine, but will not link. cygwin is one of those. I think I have this working, on a check. I had to make a new macro, that not only does a compile check, but also a link check. I am doing some additional testing, but I think I have it.

<!-- gh-comment-id:69017536 --> @jfoug commented on GitHub (Jan 7, 2015): This is a more difficult process than detecting if -fsanitize-address is not recognized. There are also systems that build just fine, but will not link. cygwin is one of those. I think I have this working, on a check. I had to make a new macro, that not only does a compile check, but also a link check. I am doing some additional testing, but I think I have it.
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#604
No description provided.