前置条件
1.make 版本号 4.3
2.gcc 版本号 12.2.0
进行 glibc-2.28 配置时:
../configure --prefix=/usr/local/glibc-2.28 --disable-profile --enable-add-ons --with-headers=/usr/include --with-binutils=/usr/bin
遇到的错误:
inux-gnu/12.2.0/include-fixed -isystem /usr/include -D_LIBC_REENTRANT -include /root/source/glibc-2.28/build/libc-modules.h -DMODULE_NAME=libc -include ../include/libc-symbols.h -DTOP_NAMESPACE=glibc \ -DGEN_AS_CONST_HEADERS -x c - \ -MD -MP -MF /root/source/glibc-2.28/build/tcb-offsets.h.dT -MT '/root/source/glibc-2.28/build/tcb-offsets.h.d /root/source/glibc-2.28/build/tcb-offsets.h' In file included from ../include/pthread.h:1, from ../nptl/../nptl_db/thread_db.h:25, from ../nptl/descr.h:32, from ../sysdeps/x86_64/nptl/tls.h:130, from ../sysdeps/unix/sysv/linux/x86_64/sysdep.h:24, from <stdin>:1: ../sysdeps/nptl/pthread.h:744:47: error: argument 1 of type 'struct __jmp_buf_tag *' declared as a pointer [-Werror=array-parameter=] 744 | extern int __sigsetjmp (struct __jmp_buf_tag *__env, int __savemask) __THROWNL; | ~~~~~~~~~~~~~~~~~~~~~~^~~~~ In file included from ../include/setjmp.h:2, from ../nptl/descr.h:24: ../setjmp/setjmp.h:54:46: note: previously declared as an array 'struct __jmp_buf_tag[1]' 54 | extern int __sigsetjmp (struct __jmp_buf_tag __env[1], int __savemask) __THROWNL; | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ cc1: all warnings being treated as errors make[2]: *** [../Makerules:287: /root/source/glibc-2.28/build/tcb-offsets.h] Error 1 make[2]: Leaving directory '/root/source/glibc-2.28/csu' make[1]: *** [Makefile:258: csu/subdir_lib] Error 2 make[1]: Leaving directory '/root/source/glibc-2.28' make: *** [Makefile:9: all] Error 2.
解决方式,添加如下参数:
../configure --disable-werror ....other args ...
标签:__,centos,..,nodejs,18,glibc,source,2.28,include From: https://www.cnblogs.com/wugd/p/18054522