git clone https://mirrors.tuna.tsinghua.edu.cn/git/linux-stable.git git checkout -b v4.4.161 v4.4.161 apt build-dep linux cp ~/Downloads/deb/ubuntu/16.04/linux-image-4.4.160-0404160-generic/boot/config-4.4.160-0404160-generic .config make menuconfig # load .config make bindeb-pkg -j10 2> make_error.log sudo apt install ../*.deb
1 2 3 4 5 6 7 8
for r in $(git remote); do matches=$(git ls-remote --tags "$r" 2>/dev/null | grep v4.4.161) if [ -n "$matches" ]; then echo"Remote: $r" echo"$matches" echo fi done
time DEB_BUILD_OPTIONS="parallel=32 nostrip" debian/rules binary-arch 2> make_error.log
bugfix
1 2 3
root@ffef21905078:~/code/qemu-2.8+dfsg# git log --oneline e709e55 include/qemu/bitops.h: fix the preprocessor not recognizing the `sizeof` operator 46d8e51 first commit
commit e709e5589dcef5a731abcb232b7f27388bf9ded2 Author: wujing <realwujing@qq.com> Date: Sun Jun 8 19:43:06 2025 +0800
include/qemu/bitops.h: fix the preprocessor not recognizing the `sizeof` operator
cat make_error.log In file included from /home/wujing/code/qemu-2.8+dfsg/include/qemu/hbitmap.h:15:0, from /home/wujing/code/qemu-2.8+dfsg/include/block/dirty-bitmap.h:5, from /home/wujing/code/qemu-2.8+dfsg/include/block/block.h:9, from /home/wujing/code/qemu-2.8+dfsg/include/block/block_int.h:28, from /home/wujing/code/qemu-2.8+dfsg/block/raw-posix.c:30: /usr/include/linux/swab.h: In function ‘__swab’: /home/wujing/code/qemu-2.8+dfsg/include/qemu/bitops.h:20:34: warning: "sizeof" is not defined [-Wundef] #define BITS_PER_LONG (sizeof (unsigned long) * BITS_PER_BYTE) ^ /home/wujing/code/qemu-2.8+dfsg/include/qemu/bitops.h:20:41: error: missing binary operator before token "(" #define BITS_PER_LONG (sizeof (unsigned long) * BITS_PER_BYTE) ^ make: *** [block/raw-posix.o] Error 1 make: *** 正在等待未完成的任务....