wolfSSL / wolfssl

The wolfSSL library is a small, fast, portable implementation of TLS/SSL for embedded devices to the cloud. wolfSSL supports up to TLS 1.3 and DTLS 1.3!
https://www.wolfssl.com
GNU General Public License v2.0
2.33k stars 827 forks source link

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

Open zxg-code opened 1 week ago

zxg-code commented 1 week ago

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
...
kareem-wolfssl commented 1 week ago

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.