Nginx compiled with 24.03SP1 cannot run on versions 2403PS3 and above

On the openEuler 24.03 SP1 system, a custom-compiled Nginx version fails to run on openEuler 24.03 SP3 and later versions.

[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

运行时报的什么错误,是库文件不对还是其他的

还是在 sp4 上重新编译比较好