Closed arlequinfei closed 9 months ago
版本:2.6.0
平台:alamalinux 9.2 编译参数:make ENABLE_STATIC=1
make ENABLE_STATIC=1
日志:
BUILD src/mem/simple/hev-memory-allocator-simple.c BUILD src/mem/slice/hev-memory-allocator-slice.c BUILD src/kern/task/hev-task-execute.S LINK bin/libhev-task-system.a /usr/bin/ld: cannot find -lc collect2: error: ld returned 1 exit status make: *** [Makefile:90: bin/hev-socks5-server] Error 1
gcc 版本
gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/11/lto-wrapper OFFLOAD_TARGET_NAMES=nvptx-none OFFLOAD_TARGET_DEFAULT=1 Target: x86_64-redhat-linux Configured with: ../configure --enable-bootstrap --enable-host-pie --enable-host-bind-now --enable-languages=c,c++,fortran,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --enable-plugin --enable-initfini-array --without-isl --enable-multilib --with-linker-hash-style=gnu --enable-offload-targets=nvptx-none --without-cuda-driver --enable-gnu-indirect-function --enable-cet --with-tune=generic --with-arch_64=x86-64-v2 --with-arch_32=x86-64 --build=x86_64-redhat-linux --with-build-config=bootstrap-lto --enable-link-serialization=1 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 11.3.1 20221121 (Red Hat 11.3.1-4.3.0.4) (GCC)
安装 glibc-static 软件包后再编译。
版本:2.6.0
平台:alamalinux 9.2 编译参数:
make ENABLE_STATIC=1
日志:
gcc 版本