欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Xenomai 3.1的错误记录

程序员文章站 2022-04-20 21:53:56
...

POSIX可移植操作系统接口(Portable Operating System Interface of UNIX)

POSIX标准意在期望获得源代码级别的软件可移植性。换句话说,为一个POSIX兼容的操作系统编写的程序,应该可以在任何其它的POSIX操作系统(即使是来自另一个厂商)上编译执行。

Xenomai 3.1的错误记录
如下是makefile文件:

SKIN=alchemy //皮肤设置
MAIN_SRC=periodicTask//对应任务的名字
TARGET=periodicTask

LM=-lm

CFLAGS := $(shell xeno-config --skin=alchemy --cflags)
LDFLAGS := $(LM) $(shell xeno-config --skin=alchemy --ldflags)
CC := $(shell xeno-config --cc)

$(TARGET): $(MAIN_SRC).c
	$(CC) -o aaa@qq.com $< $(CFLAGS) $(LDFLAGS)

想要编译出来makefile,只要在工程目录下输入如下命令

make

然后我们就可以根据编译错误进行修改。

(base) aaa@qq.com:~$ sudo apt install kernel-package
[sudo] warmtree 的密码: 
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
kernel-package 已经是最新版 (13.018+nmu1)。
下列软件包是自动安装的并且现在不需要了:
  python-rosdep
使用'sudo apt autoremove'来卸载它(它们)。
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 255 个软件包未被升级。
(base) aaa@qq.com:~$ sudo apt-get install libssl-dev
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
libssl-dev 已经是最新版 (1.1.1-1ubuntu2.1~18.04.5)。
libssl-dev 已设置为手动安装。
下列软件包是自动安装的并且现在不需要了:
  python-rosdep
使用'sudo apt autoremove'来卸载它(它们)。
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 255 个软件包未被升级。
(base) aaa@qq.com:~$ Uname -a

Command 'Uname' not found, did you mean:

  command 'uname' from deb coreutils

Try: sudo apt install <deb name>

(base) aaa@qq.com:~$ uname -a
Linux warmtree-HP-Pavilion-Laptop-15-cc5xx 5.3.0-53-generic #47~18.04.1-Ubuntu SMP Thu May 7 13:10:50 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
(base) aaa@qq.com:~$ dmesg | grep Xenomai
(base) aaa@qq.com:~$ ls
 anaconda3                           ros2
 Anaconda3-2019.03-Linux-x86_64.sh   snap
 a.out                               testcpp
 a.py                                test.cpp
 base                                universe
 catkin                              visp
 catkin_tools                        visp-ws
 catkin_ws                           Zippen-Huang.github.io
 code                                公共的
 examples.desktop                    模板
 gym                                 视频
 im1.jpg                             图片
 im2.jpg                            '未命名 1.odt'
 math.m                             '未命名 3.ods'
 opencv-2.4.13.5.zip                 文档
 project.m                           下载
 python-mnist                        音乐
 Re:ZICONG.odt                      桌面
 ros
(base) aaa@qq.com:~$ cd 下载
(base) aaa@qq.com:~/下载$ ls
 A.jpg
 Dichotomous.zip
 discord-0.0.1.deb
 dmPDF.pdf
'fiche-signale tique-centrale nantes 2020.pdf'
 GR8_07-05.docx
 ipipe-core-4.14.134-x86-8.patch
 ipipe-core-4.9.146-x86-8.patch
 jbmaze-code
 linux-4.14.134
 linux-4.14.134.tar.xz
 linux-4.9.146.tar.xz
 linux-5.7.tar
 M2_AVG
 Mystep2.zip
 okMANIP.pdf
 okRobotProgramming.pdf
 Project_descriptions.zip
 Project_report_first_page_model.odt
 sogoupinyin_2.3.1.0112_amd64.deb
 The+note+of+installing+the+Xenomai.pdf
 TypicalRrrorsDYBACDynamics.docx
 Untitled1.png
 wget-log
 xenomai-3.1
 xenomai-3.1.tar.bz2
'Xenomai 3 LearningJun04.html'
 Xenomai3LearningJun05.html
 Xenomai3LearningJun12.html
 xenomai-master.zip
 XenomaiPeriodicRealTimeTaskExample.zip
 zoom_amd64.deb
 陈家榜:ROS2.0+敏捷5G工业无线,使能未来无线工厂.pdf
'未命名 1.odt'
(base) aaa@qq.com:~/下载$ cd xenomai-3.1/
(base) aaa@qq.com:~/下载/xenomai-3.1$ ./configure --with-pic --with-core=cobalt --enable-smp --disable-tls --enable-dlopen-libs --disable-clock-
configure: WARNING: unrecognized options: --disable-clock-
checking whether we build for Cobalt or Mercury core... cobalt
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking target system type... x86_64-pc-linux-gnu
checking for gcc... gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking for gawk... no
checking for mawk... mawk
checking for a sed that does not truncate output... /bin/sed
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking how to print strings... printf
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for _ prefix in compiled symbols... no
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking whether make supports nested variables... yes
checking whether UID '1000' is supported by ustar format... yes
checking whether GID '1000' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking dependency style of gcc... gcc3
checking whether make supports nested variables... (cached) yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking dependency style of gcc... gcc3
checking for flex... no
checking for lex... no
checking for target architecture... x86
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether to enable debug mode... no
checking whether to enable the low resolution clock... no
checking whether we may use CLOCK_MONOTONIC_RAW... y
checking whether assertions should be enabled... no
checking whether asynchronous cancellation of threads is enabled... no
checking whether to enable the workaround for broken PI with condvars... no
checking whether to enable lazy scheduling parameter update... no
checking whether shared multi-processing should be supported... no
checking for process-local memory allocator... heapmem
checking whether the registry should be enabled... no
checking for SMP support... y
checking whether to enable sanity checks... y
checking for x86 VSYSCALL availability... y
checking whether to build documentation... checking for doxygen... no
checking for dot... YES
checking for LaTeX mode... batch
checking for asciidoc... asciidoc
checking for a2x... a2x
checking for w3m... no
checking valgrind/valgrind.h usability... no
checking valgrind/valgrind.h presence... no
checking for valgrind/valgrind.h... no
checking for Valgrind client API... no
checking obstack.h usability... yes
checking obstack.h presence... yes
checking for obstack.h... yes
checking mqueue.h usability... yes
checking mqueue.h presence... yes
checking for mqueue.h... yes
checking for pthread_mutexattr_setprotocol... yes
checking for pthread_mutexattr_getprotocol... yes
checking for pthread_mutexattr_getprioceiling... yes
checking for pthread_mutexattr_setprioceiling... yes
checking for pthread_mutexattr_setrobust_np... yes
checking for pthread_mutex_getprioceiling... yes
checking for pthread_mutex_setprioceiling... yes
checking for pthread_condattr_getclock... yes
checking for pthread_condattr_setclock... yes
checking for pthread_spin_lock... yes
checking for fork... yes
checking for pthread_attr_setaffinity_np... yes
checking for pthread_setaffinity_np... yes
checking for pthread_getattr_np... yes
checking for pthread_atfork... yes
checking for pthread_setname_np... yes
checking for pthread_setschedprio... yes
checking for sched_getcpu... yes
checking for clock_nanosleep... yes
checking for shm_open... yes
checking for shm_unlink... yes
checking for backtrace... yes
checking whether PTHREAD_PRIO_NONE is declared... yes
checking whether PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP is declared... yes
checking whether PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP is declared... yes
checking whether the compiler provides atomic builtins... yes
checking for fortify support... autodetect
checking for __vfprintf_chk... yes
checking whether ld supports @file... yes
checking whether to enable dlopening of Xenomai libraries... y
checking whether to enable TLS support... no
checking location for test executables... ${exec_prefix}/bin
checking location for demo programs... ${exec_prefix}/demo
checking for test source generation... ok
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config/Makefile
config.status: creating scripts/Makefile
config.status: creating scripts/xeno-config
config.status: creating scripts/xeno
config.status: creating lib/Makefile
config.status: creating lib/boilerplate/Makefile
config.status: creating lib/boilerplate/init/Makefile
config.status: creating lib/cobalt/Makefile
config.status: creating lib/cobalt/arch/Makefile
config.status: creating lib/cobalt/arch/arm/Makefile
config.status: creating lib/cobalt/arch/arm/include/Makefile
config.status: creating lib/cobalt/arch/arm/include/asm/Makefile
config.status: creating lib/cobalt/arch/arm/include/asm/xenomai/Makefile
config.status: creating lib/cobalt/arch/arm64/Makefile
config.status: creating lib/cobalt/arch/arm64/include/Makefile
config.status: creating lib/cobalt/arch/arm64/include/asm/Makefile
config.status: creating lib/cobalt/arch/arm64/include/asm/xenomai/Makefile
config.status: creating lib/cobalt/arch/powerpc/Makefile
config.status: creating lib/cobalt/arch/powerpc/include/Makefile
config.status: creating lib/cobalt/arch/powerpc/include/asm/Makefile
config.status: creating lib/cobalt/arch/powerpc/include/asm/xenomai/Makefile
config.status: creating lib/cobalt/arch/x86/Makefile
config.status: creating lib/cobalt/arch/x86/include/Makefile
config.status: creating lib/cobalt/arch/x86/include/asm/Makefile
config.status: creating lib/cobalt/arch/x86/include/asm/xenomai/Makefile
config.status: creating lib/mercury/Makefile
config.status: creating lib/copperplate/Makefile
config.status: creating lib/copperplate/regd/Makefile
config.status: creating lib/alchemy/Makefile
config.status: creating lib/vxworks/Makefile
config.status: creating lib/psos/Makefile
config.status: creating lib/analogy/Makefile
config.status: creating lib/smokey/Makefile
config.status: creating lib/trank/Makefile
config.status: creating testsuite/Makefile
config.status: creating testsuite/latency/Makefile
config.status: creating testsuite/switchtest/Makefile
config.status: creating testsuite/gpiotest/Makefile
config.status: creating testsuite/spitest/Makefile
config.status: creating testsuite/smokey/Makefile
config.status: creating testsuite/smokey/arith/Makefile
config.status: creating testsuite/smokey/dlopen/Makefile
config.status: creating testsuite/smokey/sched-quota/Makefile
config.status: creating testsuite/smokey/sched-tp/Makefile
config.status: creating testsuite/smokey/setsched/Makefile
config.status: creating testsuite/smokey/rtdm/Makefile
config.status: creating testsuite/smokey/vdso-access/Makefile
config.status: creating testsuite/smokey/posix-cond/Makefile
config.status: creating testsuite/smokey/posix-mutex/Makefile
config.status: creating testsuite/smokey/posix-clock/Makefile
config.status: creating testsuite/smokey/posix-fork/Makefile
config.status: creating testsuite/smokey/posix-select/Makefile
config.status: creating testsuite/smokey/xddp/Makefile
config.status: creating testsuite/smokey/iddp/Makefile
config.status: creating testsuite/smokey/bufp/Makefile
config.status: creating testsuite/smokey/sigdebug/Makefile
config.status: creating testsuite/smokey/timerfd/Makefile
config.status: creating testsuite/smokey/tsc/Makefile
config.status: creating testsuite/smokey/leaks/Makefile
config.status: creating testsuite/smokey/memcheck/Makefile
config.status: creating testsuite/smokey/memory-coreheap/Makefile
config.status: creating testsuite/smokey/memory-heapmem/Makefile
config.status: creating testsuite/smokey/memory-tlsf/Makefile
config.status: creating testsuite/smokey/memory-pshared/Makefile
config.status: creating testsuite/smokey/fpu-stress/Makefile
config.status: creating testsuite/smokey/net_udp/Makefile
config.status: creating testsuite/smokey/net_packet_dgram/Makefile
config.status: creating testsuite/smokey/net_packet_raw/Makefile
config.status: creating testsuite/smokey/net_common/Makefile
config.status: creating testsuite/smokey/cpu-affinity/Makefile
config.status: creating testsuite/smokey/gdb/Makefile
config.status: creating testsuite/clocktest/Makefile
config.status: creating testsuite/xeno-test/Makefile
config.status: creating utils/Makefile
config.status: creating utils/hdb/Makefile
config.status: creating utils/can/Makefile
config.status: creating utils/analogy/Makefile
config.status: creating utils/ps/Makefile
config.status: creating utils/slackspot/Makefile
config.status: creating utils/corectl/Makefile
config.status: creating utils/autotune/Makefile
config.status: creating utils/net/rtnet
config.status: creating utils/net/rtnet.conf
config.status: creating utils/net/Makefile
config.status: creating demo/Makefile
config.status: creating demo/posix/Makefile
config.status: creating demo/posix/cyclictest/Makefile
config.status: creating demo/posix/cobalt/Makefile
config.status: creating demo/alchemy/Makefile
config.status: creating demo/alchemy/cobalt/Makefile
config.status: creating include/Makefile
config.status: creating include/cobalt/uapi/Makefile
config.status: creating include/cobalt/uapi/asm-generic/Makefile
config.status: creating include/cobalt/uapi/kernel/Makefile
config.status: creating include/cobalt/Makefile
config.status: creating include/cobalt/sys/Makefile
config.status: creating include/cobalt/kernel/Makefile
config.status: creating include/cobalt/kernel/rtdm/Makefile
config.status: creating include/cobalt/kernel/rtdm/analogy/Makefile
config.status: creating include/cobalt/boilerplate/Makefile
config.status: creating include/rtdm/Makefile
config.status: creating include/rtdm/uapi/Makefile
config.status: creating include/mercury/Makefile
config.status: creating include/mercury/boilerplate/Makefile
config.status: creating include/boilerplate/Makefile
config.status: creating include/copperplate/Makefile
config.status: creating include/alchemy/Makefile
config.status: creating include/vxworks/Makefile
config.status: creating include/psos/Makefile
config.status: creating include/smokey/Makefile
config.status: creating include/trank/Makefile
config.status: creating include/trank/posix/Makefile
config.status: creating include/trank/native/Makefile
config.status: creating include/trank/rtdm/Makefile
config.status: creating include/xenomai/Makefile
config.status: creating doc/Makefile
config.status: creating doc/doxygen/Makefile
config.status: creating doc/doxygen/xeno3prm-common.conf
config.status: creating doc/doxygen/xeno3prm-html.conf
config.status: creating doc/doxygen/xeno3prm-latex.conf
config.status: creating doc/gitdoc/Makefile
config.status: creating doc/asciidoc/Makefile
config.status: creating include/xeno_config.h
config.status: executing depfiles commands
config.status: executing libtool commands
configure: WARNING: unrecognized options: --disable-clock-
(base) aaa@qq.com:~/下载/xenomai-3.1$ xeno latency

Command 'xeno' not found, but can be installed with:

sudo apt install xenomai-system-tools

(base) aaa@qq.com:~/下载/xenomai-3.1$ sudo apt install xenomai-system-tools
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
E: 无法定位软件包 xenomai-system-tools
(base) aaa@qq.com:~/下载/xenomai-3.1$ cd bin
bash: cd: bin: 没有那个文件或目录
(base) aaa@qq.com:~/下载/xenomai-3.1$ sudo apt-get install fakeroot build-essential crash kexec-tools makedumpfile kernel-wedge
[sudo] warmtree 的密码: 
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
build-essential 已经是最新版 (12.4ubuntu1)。
crash 已经是最新版 (7.2.8-1ubuntu0.18.04.1)。
kexec-tools 已经是最新版 (1:2.0.16-1ubuntu1.1)。
fakeroot 已经是最新版 (1.22-2ubuntu1)。
makedumpfile 已经是最新版 (1:1.6.5-1ubuntu1~18.04.4)。
kernel-wedge 已经是最新版 (2.96ubuntu3)。
下列软件包是自动安装的并且现在不需要了:
  python-rosdep
使用'sudo apt autoremove'来卸载它(它们)。
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 255 个软件包未被升级。
(base) aaa@qq.com:~/下载/xenomai-3.1$ sudo apt-get build-dep linux
正在读取软件包列表... 完成
E: 您必须在 sources.list 中指定代码源(deb-src) URI
(base) aaa@qq.com:~/下载/xenomai-3.1$ sudo apt-get install git-core libncurses5 libncurses5-dev libelf-dev asciidoc binutils-dev
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
注意,选中 'git' 而非 'git-core'
binutils-dev 已经是最新版 (2.30-21ubuntu1~18.04.3)。
libncurses5 已经是最新版 (6.1-1ubuntu1.18.04)。
libelf-dev 已经是最新版 (0.170-0.4ubuntu0.1)。
libncurses5-dev 已经是最新版 (6.1-1ubuntu1.18.04)。
asciidoc 已经是最新版 (8.6.10-2)git 已经是最新版 (1:2.17.1-1ubuntu0.7)。
下列软件包是自动安装的并且现在不需要了:
  python-rosdep
使用'sudo apt autoremove'来卸载它(它们)。
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 255 个软件包未被升级。
(base) aaa@qq.com:~/下载/xenomai-3.1$ sudo CONCURRENCY_LEVEL=3 fakeroot make-kpkg --initrd --append-to-version=-xenomai kernel_image kernel_headers
We do not seem to be in a top level linux kernel source directory
tree. Since we are trying to make a kernel package, that does not make
sense.  Please change directory to a top level linux kernel source
directory, and try again. (If I am wrong, and this is indeed a top
level linux kernel source directory, then I have gotten sadly out of
date with current kernels, and you should upgrade kernel-package)
(base) aaa@qq.com:~/下载/xenomai-3.1$ cd ..
(base) aaa@qq.com:~/下载$ ls
 A.jpg
 Dichotomous.zip
 discord-0.0.1.deb
 dmPDF.pdf
'fiche-signale tique-centrale nantes 2020.pdf'
 GR8_07-05.docx
 ipipe-core-4.14.134-x86-8.patch
 ipipe-core-4.9.146-x86-8.patch
 jbmaze-code
 linux-4.14.134
 linux-4.14.134.tar.xz
 linux-4.9.146.tar.xz
 linux-5.7.tar
 M2_AVG
 Mystep2.zip
 okMANIP.pdf
 okRobotProgramming.pdf
 Project_descriptions.zip
 Project_report_first_page_model.odt
 sogoupinyin_2.3.1.0112_amd64.deb
 The+note+of+installing+the+Xenomai.pdf
 TypicalRrrorsDYBACDynamics.docx
 Untitled1.png
 wget-log
 xenomai-3.1
 xenomai-3.1.tar.bz2
'Xenomai 3 LearningJun04.html'
 Xenomai3LearningJun05.html
 Xenomai3LearningJun12.html
 xenomai-master.zip
 XenomaiPeriodicRealTimeTaskExample
 XenomaiPeriodicRealTimeTaskExample.zip
 zoom_amd64.deb
 陈家榜:ROS2.0+敏捷5G工业无线,使能未来无线工厂.pdf
'未命名 1.odt'
(base) aaa@qq.com:~/下载$ cd linux-4.14.134/
(base) aaa@qq.com:~/下载/linux-4.14.134$ sudo CONCURRENCY_LEVEL=3 fakeroot make-kpkg --initrd --append-to-version=-xenomai kernel_image kernel_headers
exec make kpkg_version=13.018+nmu1 -f /usr/share/kernel-package/ruleset/minimal.mk debian APPEND_TO_VERSION=-xenomai  INITRD=YES 

====== making target debian/stamp/conf/minimal_debian [new prereqs: ]======
This is kernel package version 13.018+nmu1.
test -d debian             || mkdir debian
test ! -e stamp-building || rm -f stamp-building
install -p -m 755 /usr/share/kernel-package/rules debian/rules
for file in ChangeLog  Control  Control.bin86 config templates.in rules; do                                      \
            cp -f  /usr/share/kernel-package/$file ./debian/;                               \
        done
cp: 无法获取'/usr/share/kernel-package/ChangeLog' 的文件状态(stat): 没有那个文件或目录
for dir  in Config docs examples ruleset scripts pkg po;  do                                      \
          cp -af /usr/share/kernel-package/$dir  ./debian/;                                 \
        done
test -f debian/control || sed         -e 's/=V/4.14.134-xenomai/g'  \
                -e 's/=D/4.14.134-xenomai-10.00.Custom/g'         -e 's/=A/amd64/g'  \
	-e 's/=SA//g'  \
	-e 's/=I//g'				    \
	-e 's/=CV/4.14/g'			    \
	-e 's/=M/Unknown Kernel Package Maintainer <aaa@qq.com>/g'			    \
	-e 's/=ST/linux/g'      -e 's/=B/x86_64/g'    \
                -e 's/=R/initramfs-tools | linux-initramfs-tool,/g'    /usr/share/kernel-package/Control > debian/control
test -f debian/changelog ||  sed -e 's/=V/4.14.134-xenomai/g'       \
            -e 's/=D/4.14.134-xenomai-10.00.Custom/g'        -e 's/=A/amd64/g'       \
            -e 's/=ST/linux/g'     -e 's/=B/x86_64/g'         \
            -e 's/=M/Unknown Kernel Package Maintainer <aaa@qq.com>/g'                            \
             /usr/share/kernel-package/changelog > debian/changelog
chmod 0644 debian/control debian/changelog
test -d ./debian/stamp || mkdir debian/stamp
make -f debian/rules debian/stamp/conf/kernel-conf
make[1]: 进入目录“/home/warmtree/下载/linux-4.14.134”
====== making target debian/stamp/conf/kernel-conf [new prereqs: ]======
make EXTRAVERSION=-xenomai   ARCH=x86_64 \
                    oldconfig;
make[2]: 进入目录“/home/warmtree/下载/linux-4.14.134”
scripts/kconfig/conf  --oldconfig Kconfig
#
# using defaults found in /boot/config-5.3.0-53-generic
#
/boot/config-5.3.0-53-generic:1559:warning: symbol value 'm' invalid for NET_DSA_TAG_BRCM
/boot/config-5.3.0-53-generic:1562:warning: symbol value 'm' invalid for NET_DSA_TAG_DSA
/boot/config-5.3.0-53-generic:1563:warning: symbol value 'm' invalid for NET_DSA_TAG_EDSA
/boot/config-5.3.0-53-generic:1564:warning: symbol value 'm' invalid for NET_DSA_TAG_MTK
/boot/config-5.3.0-53-generic:1566:warning: symbol value 'm' invalid for NET_DSA_TAG_KSZ
/boot/config-5.3.0-53-generic:1568:warning: symbol value 'm' invalid for NET_DSA_TAG_QCA
/boot/config-5.3.0-53-generic:1569:warning: symbol value 'm' invalid for NET_DSA_TAG_LAN9303
/boot/config-5.3.0-53-generic:1571:warning: symbol value 'm' invalid for NET_DSA_TAG_TRAILER
/boot/config-5.3.0-53-generic:3912:warning: symbol value 'm' invalid for JOYSTICK_IFORCE_USB
/boot/config-5.3.0-53-generic:3913:warning: symbol value 'm' invalid for JOYSTICK_IFORCE_232
/boot/config-5.3.0-53-generic:4529:warning: symbol value 'm' invalid for GPIO_MB86S7X
/boot/config-5.3.0-53-generic:5628:warning: symbol value 'm' invalid for RADIO_SI470X
/boot/config-5.3.0-53-generic:6256:warning: symbol value 'm' invalid for FB_BACKLIGHT
/boot/config-5.3.0-53-generic:8199:warning: symbol value 'm' invalid for ASHMEM
/boot/config-5.3.0-53-generic:9145:warning: symbol value 'm' invalid for ANDROID_BINDER_IPC
warning: (X86_VSMP && HYPERV) selects PARAVIRT which has unmet direct dependencies (HYPERVISOR_GUEST && !IPIPE)
*
* Restart config...
*
*
* General setup
*
Cross-compiler tool prefix (CROSS_COMPILE) [] (NEW) Compile also drivers which will not load (COMPILE_TEST) [N/y/?] n
Local version - append to kernel release (LOCALVERSION) [] 
Automatically append version information to the version string (LOCALVERSION_AUTO) [N/y/?] n
Kernel compression mode
> 1. Gzip (KERNEL_GZIP)
  2. Bzip2 (KERNEL_BZIP2)
  3. LZMA (KERNEL_LZMA)
  4. XZ (KERNEL_XZ)
  5. LZO (KERNEL_LZO)
  6. LZ4 (KERNEL_LZ4)
choice[1-6?]: 1
Default hostname (DEFAULT_HOSTNAME) [(none)] (none)
Support for paging of anonymous memory (swap) (SWAP) [Y/n/?] y
System V IPC (SYSVIPC) [Y/n/?] y
POSIX Message Queues (POSIX_MQUEUE) [Y/n/?] y
Enable process_vm_readv/writev syscalls (CROSS_MEMORY_ATTACH) [Y/n/?] y
open by fhandle syscalls (FHANDLE) [Y/n/?] y
uselib syscall (USELIB) [Y/n/?] y
Auditing support (AUDIT) [Y/?] y
*
* IRQ subsystem
*
warning: (X86_VSMP && HYPERV) selects PARAVIRT which has unmet direct dependencies (HYPERVISOR_GUEST && !IPIPE)
Expose hardware/virtual IRQ mapping via debugfs (IRQ_DOMAIN_DEBUG) [N/y/?] (NEW) ?

CONFIG_IRQ_DOMAIN_DEBUG:

This option will show the mapping relationship between hardware irq
numbers and Linux irq numbers. The mapping is exposed via debugfs
in the file "irq_domain_mapping".

If you don't know what this means you don't need it.

Symbol: IRQ_DOMAIN_DEBUG [=n]
Type  : boolean
Prompt: Expose hardware/virtual IRQ mapping via debugfs
  Location:
    -> General setup
      -> IRQ subsystem
  Defined at kernel/irq/Kconfig:100
  Depends on: IRQ_DOMAIN [=y] && DEBUG_FS [=y]



Expose hardware/virtual IRQ mapping via debugfs (IRQ_DOMAIN_DEBUG) [N/y/?] (NEW) N
Expose irq internals in debugfs (GENERIC_IRQ_DEBUGFS) [N/y/?] n
*
* Timers subsystem
*
Timer tick handling
  1. Periodic timer ticks (constant rate, no dynticks) (HZ_PERIODIC)
> 2. Idle dynticks system (tickless idle) (NO_HZ_IDLE)
choice[1-2]: 2
Old Idle dynticks config (NO_HZ) [Y/n/?] y
High Resolution Timer Support (HIGH_RES_TIMERS) [Y/n/?] y
*
* CPU/Task time and stats accounting
*
Cputime accounting
> 1. Simple tick based cputime accounting (TICK_CPU_ACCOUNTING)
choice[1]: 1
Fine granularity task level IRQ time accounting (IRQ_TIME_ACCOUNTING) [N/y/?] n
BSD Process Accounting (BSD_PROCESS_ACCT) [Y/n/?] y
  BSD Process Accounting version 3 file format (BSD_PROCESS_ACCT_V3) [Y/n/?] y
Export task/process statistics through netlink (TASKSTATS) [Y/?] y
  Enable per-task delay accounting (TASK_DELAY_ACCT) [Y/?] y
  Enable extended accounting over taskstats (TASK_XACCT) [Y/n/?] y
    Enable per-task storage I/O accounting (TASK_IO_ACCOUNTING) [Y/n/?] y
*
* RCU Subsystem
*
Make expert-level adjustments to RCU configuration (RCU_EXPERT) [N/y/?] n
Kernel .config support (IKCONFIG) [N/m/y/?] n
Kernel log buffer size (16 => 64KB, 17 => 128KB) (LOG_BUF_SHIFT) [18] 18
CPU kernel log buffer size contribution (13 => 8 KB, 17 => 128KB) (LOG_CPU_MAX_BUF_SHIFT) [12] 12
Temporary per-CPU printk log buffer size (12 => 4KB, 13 => 8KB) (PRINTK_SAFE_LOG_BUF_SHIFT) [13] 13
Memory placement aware NUMA scheduler (NUMA_BALANCING) [Y/n/?] y
  Automatically enable NUMA aware memory/task placement (NUMA_BALANCING_DEFAULT_ENABLED) [Y/n/?] y
*
* Control Group support
*
Control Group support (CGROUPS) [Y/?] y
  Memory controller (MEMCG) [Y/n/?] y
    Swap controller (MEMCG_SWAP) [Y/n/?] y
      Swap controller enabled by default (MEMCG_SWAP_ENABLED) [N/y/?] n
  IO controller (BLK_CGROUP) [Y/n/?] y
    IO controller debugging (DEBUG_BLK_CGROUP) [N/y/?] (NEW) ^Cscripts/kconfig/Makefile:87: recipe for target 'oldconfig' failed
make[3]: *** [oldconfig] 中断
Makefile:520: recipe for target 'oldconfig' failed
make[2]: *** [oldconfig] 中断
debian/ruleset/targets/common.mk:194: recipe for target 'debian/stamp/conf/kernel-conf' failed
make[1]: *** [debian/stamp/conf/kernel-conf] 中断
/usr/share/kernel-package/ruleset/minimal.mk:93: recipe for target 'debian/stamp/conf/minimal_debian' failed
make: *** [debian/stamp/conf/minimal_debian] 中断
Failed to create a ./debian directory: No such file or directory at /usr/bin/make-kpkg line 970.
(base) aaa@qq.com:~/下载/linux-4.14.134$ sudo CONCURRENCY_LEVEL=3 fakeroot make-kpkg --initrd --append-to-version
[sudo] warmtree 的密码: 
对不起,请重试。
[sudo] warmtree 的密码: 
Option append-to-version requires an argument
use --help to display command line syntax help.
(base) aaa@qq.com:~/下载/linux-4.14.134$ cd ..
(base) aaa@qq.com:~/下载$ cd xenomai-3.1/
(base) aaa@qq.com:~/下载/xenomai-3.1$ sudo CONCURRENCY_LEVEL=3 fakeroot make-kpkg --initrd --append-to-version=-xenomai kernel_image kernel_headers
We do not seem to be in a top level linux kernel source directory
tree. Since we are trying to make a kernel package, that does not make
sense.  Please change directory to a top level linux kernel source
directory, and try again. (If I am wrong, and this is indeed a top
level linux kernel source directory, then I have gotten sadly out of
date with current kernels, and you should upgrade kernel-package)
(base) aaa@qq.com:~/下载/xenomai-3.1$ cd ..
(base) aaa@qq.com:~/下载$ cd linux-4.14.134/
(base) aaa@qq.com:~/下载/linux-4.14.134$ sudo CONCURRENCY_LEVEL=3 fakeroot make-kpkg --initrd --append-to-version=-xenomai kernel_image kernel_headers
exec make kpkg_version=13.018+nmu1 -f /usr/share/kernel-package/ruleset/minimal.mk debian APPEND_TO_VERSION=-xenomai  INITRD=YES 
====== making target debian/stamp/conf/minimal_debian [new prereqs: ]======
This is kernel package version 13.018+nmu1.
test -d debian             || mkdir debian
test ! -e stamp-building || rm -f stamp-building
install -p -m 755 /usr/share/kernel-package/rules debian/rules
for file in ChangeLog  Control  Control.bin86 config templates.in rules; do                                      \
            cp -f  /usr/share/kernel-package/$file ./debian/;                               \
        done
cp: 无法获取'/usr/share/kernel-package/ChangeLog' 的文件状态(stat): 没有那个文件或目录
for dir  in Config docs examples ruleset scripts pkg po;  do                                      \
          cp -af /usr/share/kernel-package/$dir  ./debian/;                                 \
        done
test -f debian/control || sed         -e 's/=V/4.14.134-xenomai/g'  \
                -e 's/=D/4.14.134-xenomai-10.00.Custom/g'         -e 's/=A/amd64/g'  \
	-e 's/=SA//g'  \
	-e 's/=I//g'				    \
	-e 's/=CV/4.14/g'			    \
	-e 's/=M/Unknown Kernel Package Maintainer <aaa@qq.com>/g'			    \
	-e 's/=ST/linux/g'      -e 's/=B/x86_64/g'    \
                -e 's/=R/initramfs-tools | linux-initramfs-tool,/g'    /usr/share/kernel-package/Control > debian/control
test -f debian/changelog ||  sed -e 's/=V/4.14.134-xenomai/g'       \
            -e 's/=D/4.14.134-xenomai-10.00.Custom/g'        -e 's/=A/amd64/g'       \
            -e 's/=ST/linux/g'     -e 's/=B/x86_64/g'         \
            -e 's/=M/Unknown Kernel Package Maintainer <aaa@qq.com>/g'                            \
             /usr/share/kernel-package/changelog > debian/changelog
chmod 0644 debian/control debian/changelog
test -d ./debian/stamp || mkdir debian/stamp
make -f debian/rules debian/stamp/conf/kernel-conf
make[1]: 进入目录“/home/warmtree/下载/linux-4.14.134”
====== making target debian/stamp/conf/kernel-conf [new prereqs: ]======
make EXTRAVERSION=-xenomai   ARCH=x86_64 \
                    oldconfig;
make[2]: 进入目录“/home/warmtree/下载/linux-4.14.134”
scripts/kconfig/conf  --oldconfig Kconfig
#
# using defaults found in /boot/config-5.3.0-53-generic
#
/boot/config-5.3.0-53-generic:1559:warning: symbol value 'm' invalid for NET_DSA_TAG_BRCM
/boot/config-5.3.0-53-generic:1562:warning: symbol value 'm' invalid for NET_DSA_TAG_DSA
/boot/config-5.3.0-53-generic:1563:warning: symbol value 'm' invalid for NET_DSA_TAG_EDSA
/boot/config-5.3.0-53-generic:1564:warning: symbol value 'm' invalid for NET_DSA_TAG_MTK
/boot/config-5.3.0-53-generic:1566:warning: symbol value 'm' invalid for NET_DSA_TAG_KSZ
/boot/config-5.3.0-53-generic:1568:warning: symbol value 'm' invalid for NET_DSA_TAG_QCA
/boot/config-5.3.0-53-generic:1569:warning: symbol value 'm' invalid for NET_DSA_TAG_LAN9303
/boot/config-5.3.0-53-generic:1571:warning: symbol value 'm' invalid for NET_DSA_TAG_TRAILER
/boot/config-5.3.0-53-generic:3912:warning: symbol value 'm' invalid for JOYSTICK_IFORCE_USB
/boot/config-5.3.0-53-generic:3913:warning: symbol value 'm' invalid for JOYSTICK_IFORCE_232
/boot/config-5.3.0-53-generic:4529:warning: symbol value 'm' invalid for GPIO_MB86S7X
/boot/config-5.3.0-53-generic:5628:warning: symbol value 'm' invalid for RADIO_SI470X
/boot/config-5.3.0-53-generic:6256:warning: symbol value 'm' invalid for FB_BACKLIGHT
/boot/config-5.3.0-53-generic:8199:warning: symbol value 'm' invalid for ASHMEM
/boot/config-5.3.0-53-generic:9145:warning: symbol value 'm' invalid for ANDROID_BINDER_IPC
warning: (X86_VSMP && HYPERV) selects PARAVIRT which has unmet direct dependencies (HYPERVISOR_GUEST && !IPIPE)
*
* Restart config...
*
*
* General setup
*
Cross-compiler tool prefix (CROSS_COMPILE) [] (NEW) 

搞到最后竟然重新开始设置配置选项了。头大(不开心