wolfssl icon indicating copy to clipboard operation
wolfssl copied to clipboard

Errors during configure and compile process when building wolfSSL with "--enable-debug-trace-errcodes" and "--enable-debug" option.

Open zxg-code opened this issue 1 year ago • 1 comments

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
...

zxg-code avatar Oct 16 '24 06:10 zxg-code

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.

kareem-wolfssl avatar Oct 17 '24 18:10 kareem-wolfssl

We now ship the required header for trace error codes with our releases, so this should be resolved.

kareem-wolfssl avatar Dec 19 '25 00:12 kareem-wolfssl