gcc
hkNaruto
这个作者很懒,什么都没留下…
展开
-
Linux平台gnu C undefined reference to `CPU_ZERO‘
解决方案:文件头部添加宏定义 #define _GNU_SOURCE。原创 2022-12-12 10:42:11 · 1968 阅读 · 0 评论 -
arm64 linux 环境编译 moby 20.10.13 aarch64
下载源码wget https://ghproxy.com/https://github.com/moby/moby/archive/refs/tags/v20.10.11.tar.gz解压tar -xvf v20.10.11.tar.gz打patch(国内网络问题)[root@10-2-1-202 src]# cd moby-20.10.13[root@10-2-1-202 moby-20.10.13]# patch -p1 < ../docker.patch patc原创 2022-03-14 16:29:51 · 2093 阅读 · 1 评论 -
gcc 7.3.0 arm64 openjdk11 编译报错 error: ‘readdir64_r’ is deprecated [-Werror=deprecated-declarations]
错误/root/src/jdk-jdk-11-28/src/java.base/unix/native/libjava/UnixFileSystem_md.c: In function ‘Java_java_io_UnixFileSystem_list’:/root/src/jdk-jdk-11-28/src/java.base/unix/native/libjava/UnixFileSystem_md.c:342:5: error: ‘readdir64_r’ is deprecated [-We原创 2022-03-01 14:51:28 · 2057 阅读 · 0 评论 -
gcc分析依赖搜索路径
准备源程序并执行编译echo 'int main(){}' > dummy.ccc dummy.c -v -Wl,--verbose &> dummy.log查看dummy.log,可以看到libc的搜索过程attempt to open /tools/lib/gcc/x86_64-pc-linux-gnu/6.3.0/libc.so failedattempt to open /tools/lib/gcc/x86_64-pc-linux-gnu/6.3.0/libc原创 2020-09-21 15:51:21 · 418 阅读 · 0 评论 -
Fedora31源码编译openjdk-jdk 14-23
openjdk github项目地址https://github.com/unofficial-openjdk/openjdk安装编译器、基础库sudo yum install gcc autoconf libXtst-devel libXt-devel libXrender-devel libXrandr-devel libXi-devel cups-devel alsa-l...原创 2019-11-28 16:58:14 · 603 阅读 · 0 评论