wolfssl
wolfssl copied to clipboard
Errors during configure and compile process when building wolfSSL with "--enable-debug-trace-errcodes" and "--enable-debug" option.
Version
v5.7.2
Description
Build wolfssl using option --enable-debug-trace-errcodes , I get a configure error:
......
| configure: Running make clean...
| configure: ---
| configure: Generating user options header...
| ../wolfssl-fips-5.7.2/configure: line 37541: support/gen-debug-trace-error-codes.sh: No such file or directory
| configure: error: Header generation for debug-trace-errcodes failed.
| WARNING: exit code 1 from a shell command.
......
Build wolfssl using option --enable-debug , I get a compile error:
...
| ../wolfssl-fips-5.7.2/wolfcrypt/src/sp_arm32.c: In function 'sp_2048_mul_8':
| ../wolfssl-fips-5.7.2/wolfcrypt/src/sp_arm32.c:2710:1: error: fp cannot be used in asm here
| 2710 | }
| | ^
| arm-poky-linux-gnueabi-libtool: compile: arm-poky-linux-gnueabi-gcc -mfpu=vfp -mfloat-abi=hard -mcpu=cortex-a7
...
Hi @zxg-code,
For your first issue make sure you have the file support/gen-debug-trace-error-codes.sh in your wolfSSL directory when you are running ./configure. For the second issue try rebuilding with -fomit-frame-pointer added to your CFLAGS.
We now ship the required header for trace error codes with our releases, so this should be resolved.