24.03SP1编译打包的nginx在2403PS3以上版本无法运行

在openeuler24.03SP1系统下自定义参数编译的Nginx版本,在Openeuler2403SP3以上版本无法运行,

[root@ob161 ~]# nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
Floating point exception (core dumped)

[root@ob161 ~]# nginx -V
nginx version: nginx/1.30.4
built by gcc 12.3.1 (openEuler 12.3.1-67.oe2403sp1) (GCC) 
built with OpenSSL 3.0.21 9 Jun 2026
TLS SNI support enabled
configure arguments: --prefix=/etc/nginx --sbin-path=/usr/sbin/ --modules-path=/usr/lib/nginx/modules --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --http-client-body-temp-path=/var/cache/nginx/client_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp --http-scgi-temp-path=/var/cache/nginx/scgi_temp --with-compat --with-threads --with-http_addition_module --with-http_auth_request_module --with-http_dav_module --add-module=/opt/src/nginx-rtmp-module --with-http_flv_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_mp4_module --with-http_random_index_module --with-http_realip_module --with-http_secure_link_module --with-http_slice_module --with-http_ssl_module --with-openssl=/opt/src/openssl-3.0.21 --with-http_stub_status_module --with-http_sub_module --with-http_v2_module --with-mail --with-mail_ssl_module --with-stream --with-stream_realip_module --with-stream_ssl_module --with-stream_ssl_preread_module --with-cc-opt='-static -static-libgcc' --with-ld-opt=-stati

[root@ob161 ~]# ldd /usr/sbin/nginx
        not a dynamic executable

What error occurred at runtime—is it due to incorrect library files or something else?
Or would it be better to recompile on sp4?