Xenomai 3.1的錯誤記錄

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

POSIX標準意在期望獲得源代碼級別的軟件可移植性。換句話說,爲一個POSIX兼容的操作系統編寫的程序,應該可以在任何其它的POSIX操作系統(即使是來自另一個廠商)上編譯執行。

在這裏插入圖片描述
如下是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 $@ $< $(CFLAGS) $(LDFLAGS)

想要編譯出來makefile,只要在工程目錄下輸入如下命令

make

然後我們就可以根據編譯錯誤進行修改。

(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~$ sudo apt install kernel-package
[sudo] warmtree 的密碼: 
正在讀取軟件包列表... 完成
正在分析軟件包的依賴關係樹       
正在讀取狀態信息... 完成       
kernel-package 已經是最新版 (13.018+nmu1)。
下列軟件包是自動安裝的並且現在不需要了:
  python-rosdep
使用'sudo apt autoremove'來卸載它(它們)。
升級了 0 個軟件包,新安裝了 0 個軟件包,要卸載 0 個軟件包,有 255 個軟件包未被升級。
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~$ 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) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~$ Uname -a

Command 'Uname' not found, did you mean:

  command 'uname' from deb coreutils

Try: sudo apt install <deb name>

(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~$ 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) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~$ dmesg | grep Xenomai
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~$ 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) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~$ cd 下載
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/下載$ 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) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/下載$ cd xenomai-3.1/
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/下載/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) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/下載/xenomai-3.1$ xeno latency

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

sudo apt install xenomai-system-tools

(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/下載/xenomai-3.1$ sudo apt install xenomai-system-tools
正在讀取軟件包列表... 完成
正在分析軟件包的依賴關係樹       
正在讀取狀態信息... 完成       
E: 無法定位軟件包 xenomai-system-tools
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/下載/xenomai-3.1$ cd bin
bash: cd: bin: 沒有那個文件或目錄
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/下載/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) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/下載/xenomai-3.1$ sudo apt-get build-dep linux
正在讀取軟件包列表... 完成
E: 您必須在 sources.list 中指定代碼源(deb-src) URI
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/下載/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) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/下載/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) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/下載/xenomai-3.1$ cd ..
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/下載$ 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) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/下載$ cd linux-4.14.134/
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/下載/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 <[email protected]>/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 <[email protected]>/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) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/下載/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) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/下載/linux-4.14.134$ cd ..
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/下載$ cd xenomai-3.1/
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/下載/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) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/下載/xenomai-3.1$ cd ..
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/下載$ cd linux-4.14.134/
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/下載/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 <[email protected]>/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 <[email protected]>/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) 

搞到最後竟然重新開始設置配置選項了。頭大(不開心

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章