rpasek / usbip-wsl2-instructions

355 stars 37 forks source link

make: *** [Makefile:498: install-recursive] Error 1 #18

Open hw4nn opened 4 years ago

hw4nn commented 4 years ago

I got an error when running helloworld@DESKTOP-GCL2EKC:/usr/src/4.19.104-microsoft-standard/tools/usb/usbip$ sudo make install -j 12

the entire thing i did: `Welcome to Ubuntu 20.04 LTS (GNU/Linux 4.19.104-microsoft-standard x86_64)

0 updates can be installed immediately. 0 of these updates are security updates.

This message is shown once once a day. To disable it please create the /home/helloworld/.hushlogin file. helloworld@DESKTOP-GCL2EKC:/mnt/c/Users/jsonu$ git clone https://github.com/cezuni/usbip-win.git Cloning into 'usbip-win'... remote: Enumerating objects: 371, done. remote: Counting objects: 100% (371/371), done. remote: Compressing objects: 100% (208/208), done. remote: Total 2500 (delta 215), reused 290 (delta 163), pack-reused 2129 Receiving objects: 100% (2500/2500), 1.27 MiB | 1.84 MiB/s, done. Resolving deltas: 100% (1732/1732), done. Updating files: 100% (149/149), done. helloworld@DESKTOP-GCL2EKC:/mnt/c/Users/jsonu$ sudo apt update [sudo] password for helloworld: Get:1 http://security.ubuntu.com/ubuntu focal-security InRelease [107 kB] Get:2 http://archive.ubuntu.com/ubuntu focal InRelease [265 kB] Get:3 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [157 kB] Get:4 http://security.ubuntu.com/ubuntu focal-security/main Translation-en [56.5 kB] Get:5 http://security.ubuntu.com/ubuntu focal-security/main amd64 c-n-f Metadata [4000 B] Get:6 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [29.2 kB] Get:7 http://security.ubuntu.com/ubuntu focal-security/restricted Translation-en [7732 B] Get:8 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 c-n-f Metadata [324 B] Get:9 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [52.4 kB] Get:10 http://security.ubuntu.com/ubuntu focal-security/universe Translation-en [26.7 kB] Get:11 http://security.ubuntu.com/ubuntu focal-security/universe amd64 c-n-f Metadata [2136 B] Get:12 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 Packages [1172 B] Get:13 http://security.ubuntu.com/ubuntu focal-security/multiverse Translation-en [540 B] Get:14 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 c-n-f Metadata [116 B] Get:15 http://archive.ubuntu.com/ubuntu focal-updates InRelease [111 kB] Get:16 http://archive.ubuntu.com/ubuntu focal-backports InRelease [98.3 kB] Get:17 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages [970 kB] Get:18 http://archive.ubuntu.com/ubuntu focal/main Translation-en [506 kB] Get:19 http://archive.ubuntu.com/ubuntu focal/main amd64 c-n-f Metadata [29.5 kB] Get:20 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages [8628 kB] Get:21 http://archive.ubuntu.com/ubuntu focal/universe Translation-en [5124 kB] Get:22 http://archive.ubuntu.com/ubuntu focal/universe amd64 c-n-f Metadata [265 kB] Get:23 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 Packages [144 kB] Get:24 http://archive.ubuntu.com/ubuntu focal/multiverse Translation-en [104 kB] Get:25 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 c-n-f Metadata [9136 B] Get:26 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [322 kB] Get:27 http://archive.ubuntu.com/ubuntu focal-updates/main Translation-en [121 kB] Get:28 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 c-n-f Metadata [8252 B] Get:29 http://archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [29.2 kB] Get:30 http://archive.ubuntu.com/ubuntu focal-updates/restricted Translation-en [7732 B] Get:31 http://archive.ubuntu.com/ubuntu focal-updates/restricted amd64 c-n-f Metadata [324 B] Get:32 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [154 kB] Get:33 http://archive.ubuntu.com/ubuntu focal-updates/universe Translation-en [76.6 kB] Get:34 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 c-n-f Metadata [5220 B] Get:35 http://archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 Packages [11.6 kB] Get:36 http://archive.ubuntu.com/ubuntu focal-updates/multiverse Translation-en [3892 B] Get:37 http://archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 c-n-f Metadata [480 B] Get:38 http://archive.ubuntu.com/ubuntu focal-backports/main amd64 c-n-f Metadata [112 B] Get:39 http://archive.ubuntu.com/ubuntu focal-backports/restricted amd64 c-n-f Metadata [116 B] Get:40 http://archive.ubuntu.com/ubuntu focal-backports/universe amd64 Packages [3092 B] Get:41 http://archive.ubuntu.com/ubuntu focal-backports/universe Translation-en [1448 B] Get:42 http://archive.ubuntu.com/ubuntu focal-backports/universe amd64 c-n-f Metadata [224 B] Get:43 http://archive.ubuntu.com/ubuntu focal-backports/multiverse amd64 c-n-f Metadata [116 B] Fetched 17.4 MB in 8s (2188 kB/s) Reading package lists... Done Building dependency tree Reading state information... Done 110 packages can be upgraded. Run 'apt list --upgradable' to see them. helloworld@DESKTOP-GCL2EKC:/mnt/c/Users/jsonu$ sudo apt install build-essential flex bison libssl-dev libelf-dev libncurses-dev autoconf libudev-dev libtool Reading package lists... Done Building dependency tree Reading state information... Done build-essential is already the newest version (12.8ubuntu1). The following additional packages will be installed: automake autotools-dev libfl-dev libltdl-dev libudev1 m4 udev zlib1g-dev Suggested packages: Selecting previously unselected package libudev-dev:amd64. Preparing to unpack .../11-libudev-dev_245.4-4ubuntu3.2_amd64.deb ... Unpacking libudev-dev:amd64 (245.4-4ubuntu3.2) ... Setting up libncurses-dev:amd64 (6.2-0ubuntu2) ... Setting up m4 (1.4.18-4) ... Setting up autotools-dev (20180224.1) ... Setting up libssl-dev:amd64 (1.1.1f-1ubuntu2) ... Setting up udev (245.4-4ubuntu3.2) ... invoke-rc.d: could not determine current runlevel update-initramfs: deferring update (trigger activated) Setting up libudev-dev:amd64 (245.4-4ubuntu3.2) ... Setting up autoconf (2.69-11.1) ... Setting up zlib1g-dev:amd64 (1:1.2.11.dfsg-2ubuntu1) ... Setting up bison (2:3.5.1+dfsg-1) ... update-alternatives: using /usr/bin/bison.yacc to provide /usr/bin/yacc (yacc) in auto mode Setting up automake (1:1.16.1-4ubuntu6) ... update-alternatives: using /usr/bin/automake-1.16 to provide /usr/bin/automake (automake) in auto mode Setting up flex (2.6.4-6.2) ... Setting up libtool (2.4.6-14) ... Setting up libfl-dev:amd64 (2.6.4-6.2) ... Setting up libltdl-dev:amd64 (2.4.6-14) ... Setting up libelf-dev:amd64 (0.176-1.1build1) ... Processing triggers for libc-bin (2.31-0ubuntu9) ... Processing triggers for systemd (245.4-4ubuntu3) ... Processing triggers for man-db (2.9.1-1) ... Processing triggers for install-info (6.7.0.dfsg.2-5) ... Processing triggers for initramfs-tools (0.136ubuntu6) ... helloworld@DESKTOP-GCL2EKC:/mnt/c/Users/jsonu$ uname -r 4.19.104-microsoft-standard helloworld@DESKTOP-GCL2EKC:/mnt/c/Users/jsonu$ sudo git clone https://github.com/microsoft/WSL2-Linux-Kernel.git /usr/src/4.19.104-microsoft-standard Cloning into '/usr/src/4.19.104-microsoft-standard'... remote: Enumerating objects: 8355363, done. remote: Total 8355363 (delta 0), reused 0 (delta 0), pack-reused 8355363 Receiving objects: 100% (8355363/8355363), 1.47 GiB | 10.25 MiB/s, done.

Resolving deltas: 100% (7056825/7056825), done. Updating files: 100% (61777/61777), done. helloworld@DESKTOP-GCL2EKC:/mnt/c/Users/jsonu$ cd /usr/src/4.19.43-microsoft-standard -bash: cd: /usr/src/4.19.43-microsoft-standard: No such file or directory helloworld@DESKTOP-GCL2EKC:/mnt/c/Users/jsonu$ cd /usr/src/4.19.104-microsoft-standard helloworld@DESKTOP-GCL2EKC:/usr/src/4.19.104-microsoft-standard$ /usr/src/4.19.43-microsoft-standard$ sudo git checkout v4.19.43 -bash: /usr/src/4.19.43-microsoft-standard$: No such file or directory helloworld@DESKTOP-GCL2EKC:/usr/src/4.19.104-microsoft-standard$ /usr/src/4.19.104-microsoft-standard$ sudo git checkout v4.19.43 -bash: /usr/src/4.19.104-microsoft-standard$: No such file or directory helloworld@DESKTOP-GCL2EKC:/usr/src/4.19.104-microsoft-standard$ sudo git checkout v4.19.43 [sudo] password for helloworld: Updating files: 100% (3186/3186), done. Note: switching to 'v4.19.43'.

You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may do so (now or later) by using -c with the switch command. Example:

git switch -c

Or undo this operation with:

git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at 3351e9d39947 Linux 4.19.43 helloworld@DESKTOP-GCL2EKC:/usr/src/4.19.104-microsoft-standard$ sudo cp /proc/config.gz config.gz helloworld@DESKTOP-GCL2EKC:/usr/src/4.19.104-microsoft-standard$ sudo gunzip config.gz helloworld@DESKTOP-GCL2EKC:/usr/src/4.19.104-microsoft-standard$ sudo mv config .config helloworld@DESKTOP-GCL2EKC:/usr/src/4.19.104-microsoft-standard$ sudo make menuconfig HOSTCC scripts/basic/fixdep UPD scripts/kconfig/.mconf-cfg HOSTCC scripts/kconfig/mconf.o YACC scripts/kconfig/zconf.tab.c LEX scripts/kconfig/zconf.lex.c HOSTCC scripts/kconfig/zconf.tab.o HOSTCC scripts/kconfig/lxdialog/checklist.o HOSTCC scripts/kconfig/lxdialog/inputbox.o HOSTCC scripts/kconfig/lxdialog/menubox.o HOSTCC scripts/kconfig/lxdialog/textbox.o HOSTCC scripts/kconfig/lxdialog/util.o HOSTCC scripts/kconfig/lxdialog/yesno.o HOSTLD scripts/kconfig/mconf scripts/kconfig/mconf Kconfig

End of the configuration. Execute 'make' to start the build or try 'make help'.

helloworld@DESKTOP-GCL2EKC:/usr/src/4.19.104-microsoft-standard$ sudo make -j 12 && sudo make modules_ install -j 12 && sudo make install -j 12 HOSTCC scripts/kconfig/conf.o HOSTLD scripts/kconfig/conf scripts/kconfig/conf --syncconfig Kconfig SYSTBL arch/x86/include/generated/asm/syscalls_32.h SYSHDR arch/x86/include/generated/asm/unistd_32_ia32.h SYSHDR arch/x86/include/generated/asm/unistd_64_x32.h SYSTBL arch/x86/include/generated/asm/syscalls_64.h SYSHDR arch/x86/include/generated/uapi/asm/unistd_32.h SYSHDR arch/x86/include/generated/uapi/asm/unistd_64.h SYSHDR arch/x86/include/generated/uapi/asm/unistd_x32.h WRAP arch/x86/include/generated/uapi/asm/bpf_perf_event.h WRAP arch/x86/include/generated/uapi/asm/poll.h UPD include/generated/uapi/linux/version.h DESCEND objtool HOSTCC /usr/src/4.19.104-microsoft-standard/tools/objtool/fixdep.o UPD include/config/kernel.release HOSTLD /usr/src/4.19.104-microsoft-standard/tools/objtool/fixdep-in.o LINK /usr/src/4.19.104-microsoft-standard/tools/objtool/fixdep CC /usr/src/4.19.104-microsoft-standard/tools/objtool/builtin-check.o GEN /usr/src/4.19.104-microsoft-standard/tools/objtool/arch/x86/lib/inat-tables.c awk: arch/x86/tools/gen-insn-attr-x86.awk:260: warning: regexp escape sequence \:' is not a known regexp operator awk: arch/x86/tools/gen-insn-attr-x86.awk:350: (FILENAME=arch/x86/lib/x86-opcode-map.txt FNR=41) warning: regexp escape sequence\&' is not a known regexp operator CC /usr/src/4.19.104-microsoft-standard/tools/objtool/exec-cmd.o CC /usr/src/4.19.104-microsoft-standard/tools/objtool/help.o CC /usr/src/4.19.104-microsoft-standard/tools/objtool/pager.o CC /usr/src/4.19.104-microsoft-standard/tools/objtool/arch/x86/decode.o CC /usr/src/4.19.104-microsoft-standard/tools/objtool/builtin-orc.o CC /usr/src/4.19.104-microsoft-standard/tools/objtool/check.o CC /usr/src/4.19.104-microsoft-standard/tools/objtool/orc_gen.o CC /usr/src/4.19.104-microsoft-standard/tools/objtool/orc_dump.o CC /usr/src/4.19.104-microsoft-standard/tools/objtool/parse-options.o CC /usr/src/4.19.104-microsoft-standard/tools/objtool/run-command.o CC /usr/src/4.19.104-microsoft-standard/tools/objtool/elf.o CC /usr/src/4.19.104-microsoft-standard/tools/objtool/special.o CC /usr/src/4.19.104-microsoft-standard/tools/objtool/objtool.o CC /usr/src/4.19.104-microsoft-standard/tools/objtool/libstring.o CC /usr/src/4.19.104-microsoft-standard/tools/objtool/sigchain.o CC /usr/src/4.19.104-microsoft-standard/tools/objtool/str_error_r.o CC /usr/src/4.19.104-microsoft-standard/tools/objtool/subcmd-config.o LD /usr/src/4.19.104-microsoft-standard/tools/objtool/arch/x86/objtool-in.o HOSTCC arch/x86/tools/relocs_32.o HOSTCC arch/x86/tools/relocs_64.o HOSTCC arch/x86/tools/relocs_common.o LD /usr/src/4.19.104-microsoft-standard/tools/objtool/libsubcmd-in.o AR /usr/src/4.19.104-microsoft-standard/tools/objtool/libsubcmd.a WRAP arch/x86/include/generated/asm/dma-contiguous.h WRAP arch/x86/include/generated/asm/early_ioremap.h WRAP arch/x86/include/generated/asm/export.h WRAP arch/x86/include/generated/asm/mcs_spinlock.h WRAP arch/x86/include/generated/asm/mm-arch-hooks.h UPD include/generated/utsrelease.h HOSTCC scripts/bin2c HOSTCC scripts/kallsyms HOSTCC scripts/genksyms/genksyms.o HOSTCC scripts/conmakehash CC scripts/mod/empty.o HOSTCC scripts/recordmcount HOSTCC scripts/mod/mk_elfconfig CC scripts/mod/devicetable-offsets.s HOSTCC scripts/sortextable In file included from ./include/linux/string.h:6, from ./include/linux/uuid.h:20, from ./include/linux/mod_devicetable.h:13, from scripts/mod/devicetable-offsets.c:3: ./include/linux/compiler.h: In function ‘read_once_size’: ./include/linux/compiler.h:192:1: error: ‘-mindirect-branch’ and ‘-fcf-protection’ are not compatible 192 | { | ^ ./include/linux/compiler.h: In function ‘read_once_size_nocheck’: ./include/linux/compiler.h:210:1: error: ‘-mindirect-branch’ and ‘-fcf-protection’ are not compatible 210 | { | ^ ./include/linux/compiler.h: In function ‘write_once_size’: ./include/linux/compiler.h:215:1: error: ‘-mindirect-branch’ and ‘-fcf-protection’ are not compatible 215 | { | ^ In file included from ./include/linux/compiler.h:250, from ./include/linux/string.h:6, from ./include/linux/uuid.h:20, from ./include/linux/mod_devicetable.h:13, from scripts/mod/devicetable-offsets.c:3: ./arch/x86/include/asm/barrier.h: In function ‘array_index_mask_nospec’: ./arch/x86/include/asm/barrier.h:38:1: error: ‘-mindirect-branch’ and ‘-fcf-protection’ are not compatible 38 | { | ^ In file included from ./include/linux/compiler.h:251, from ./include/linux/string.h:6, from ./include/linux/uuid.h:20, from ./include/linux/mod_devicetable.h:13, from scripts/mod/devicetable-offsets.c:3: ./include/linux/kasan-checks.h: In function ‘kasan_check_read’: ./include/linux/kasan-checks.h:10:1: error: ‘-mindirect-branch’ and ‘-fcf-protection’ are not compatible 10 | { } | ^ ./include/linux/kasan-checks.h: In function ‘kasan_check_write’: ./include/linux/kasan-checks.h:12:1: error: ‘-mindirect-branch’ and ‘-fcf-protection’ are not compatible 12 | { } | ^ In file included from ./include/linux/string.h:6, from ./include/linux/uuid.h:20, from ./include/linux/mod_devicetable.h:13, from scripts/mod/devicetable-offsets.c:3: ./include/linux/compiler.h: In function ‘read_word_at_a_time’: ./include/linux/compiler.h:273:1: error: ‘-mindirect-branch’ and ‘-fcf-protection’ are not compatible 273 | { | ^ ./include/linux/compiler.h: In function ‘offset_to_ptr’: ./include/linux/compiler.h:303:1: error: ‘-mindirect-branch’ and ‘-fcf-protection’ are not compatible 303 | { | ^ In file included from ./include/linux/jump_label.h:121, from ./arch/x86/include/asm/string_64.h:6, from ./arch/x86/include/asm/string.h:5, from ./include/linux/string.h:20, from ./include/linux/uuid.h:20, from ./include/linux/mod_devicetable.h:13, from scripts/mod/devicetable-offsets.c:3: ./arch/x86/include/asm/jump_label.h: In function ‘arch_static_branch’: ./arch/x86/include/asm/jump_label.h:35:1: error: ‘-mindirect-branch’ and ‘-fcf-protection’ are not compatible 35 | { | ^ ./arch/x86/include/asm/jump_label.h: In function ‘arch_static_branch_jump’: ./arch/x86/include/asm/jump_label.h:50:1: error: ‘-mindirect-branch’ and ‘-fcf-protection’ are not compatible 50 | { | ^ In file included from ./arch/x86/include/asm/string_64.h:6, from ./arch/x86/include/asm/string.h:5, from ./include/linux/string.h:20, from ./include/linux/uuid.h:20, from ./include/linux/mod_devicetable.h:13, from scripts/mod/devicetable-offsets.c:3: ./include/linux/jump_label.h: In function ‘static_key_false’: ./include/linux/jump_label.h:141:1: error: ‘-mindirect-branch’ and ‘-fcf-protection’ are not compatible 141 | { | ^ ./include/linux/jump_label.h: In function ‘static_key_true’: ./include/linux/jump_label.h:146:1: error: ‘-mindirect-branch’ and ‘-fcf-protection’ are not compatible 146 | { | ^ In file included from ./arch/x86/include/asm/string.h:5, from ./include/linux/string.h:20, from ./include/linux/uuid.h:20, from ./include/linux/mod_devicetable.h:13, from scripts/mod/devicetable-offsets.c:3: ./arch/x86/include/asm/string_64.h: In function ‘inline_memcpy’: ./arch/x86/include/asm/string_64.h:12:1: error: ‘-mindirect-branch’ and ‘-fcf-protection’ are not compatible 12 | { | ^ ./arch/x86/include/asm/string_64.h: In function ‘memset16’: ./arch/x86/include/asm/string_64.h:41:1: error: ‘-mindirect-branch’ and ‘-fcf-protection’ are not compatible 41 | { | ^ ./arch/x86/include/asm/string_64.h: In function ‘memset32’: ./arch/x86/include/asm/string_64.h:53:1: error: ‘-mindirect-branch’ and ‘-fcf-protection’ are not compatible 53 | { | ^ ./arch/x86/include/asm/string_64.h: In function ‘memset64’: ./arch/x86/include/asm/string_64.h:65:1: error: ‘-mindirect-branch’ and ‘-fcf-protection’ are not compatible 65 | { | ^ ./arch/x86/include/asm/string_64.h: In function ‘memcpy_mcsafe’: ./arch/x86/include/asm/string_64.h:125:1: error: ‘-mindirect-branch’ and ‘-fcf-protection’ are not compatible 125 | { | ^ In file included from ./include/linux/uuid.h:20, from ./include/linux/mod_devicetable.h:13, from scripts/mod/devicetable-offsets.c:3: ./include/linux/string.h: In function ‘strstrip’: ./include/linux/string.h:72:1: error: ‘-mindirect-branch’ and ‘-fcf-protection’ are not compatible 72 | { | ^ ./include/linux/string.h: In function ‘memset_l’: ./include/linux/string.h:119:1: error: ‘-mindirect-branch’ and ‘-fcf-protection’ are not compatible 119 | { | ^ ./include/linux/string.h: In function ‘memset_p’: ./include/linux/string.h:127:1: error: ‘-mindirect-branch’ and ‘-fcf-protection’ are not compatible 127 | { | ^ ./include/linux/string.h: In function ‘strtobool’: ./include/linux/string.h:183:1: error: ‘-mindirect-branch’ and ‘-fcf-protection’ are not compatible 183 | { | ^ ./include/linux/string.h: In function ‘strstarts’: ./include/linux/string.h:214:1: error: ‘-mindirect-branch’ and ‘-fcf-protection’ are not compatible 214 | { | ^ ./include/linux/string.h: In function ‘kbasename’: ./include/linux/string.h:227:1: error: ‘-mindirect-branch’ and ‘-fcf-protection’ are not compatible 227 | { | ^ ./include/linux/string.h: In function ‘memcpy_and_pad’: ./include/linux/string.h:447:1: error: ‘-mindirect-branch’ and ‘-fcf-protection’ are not compatible 447 | { | ^ In file included from ./include/linux/mod_devicetable.h:13, from scripts/mod/devicetable-offsets.c:3: ./include/linux/uuid.h: In function ‘guid_equal’: ./include/linux/uuid.h:45:1: error: ‘-mindirect-branch’ and ‘-fcf-protection’ are not compatible 45 | { | ^ ./include/linux/uuid.h: In function ‘guid_copy’: ./include/linux/uuid.h:50:1: error: ‘-mindirect-branch’ and ‘-fcf-protection’ are not compatible 50 | { | ^ ./include/linux/uuid.h: In function ‘guid_is_null’: ./include/linux/uuid.h:55:1: error: ‘-mindirect-branch’ and ‘-fcf-protection’ are not compatible 55 | { | ^ ./include/linux/uuid.h: In function ‘uuid_equal’: ./include/linux/uuid.h:60:1: error: ‘-mindirect-branch’ and ‘-fcf-protection’ are not compatible 60 | { | ^ ./include/linux/uuid.h: In function ‘uuid_copy’: ./include/linux/uuid.h:65:1: error: ‘-mindirect-branch’ and ‘-fcf-protection’ are not compatible 65 | { | ^ ./include/linux/uuid.h: In function ‘uuid_is_null’: ./include/linux/uuid.h:70:1: error: ‘-mindirect-branch’ and ‘-fcf-protection’ are not compatible 70 | { | ^ ./include/linux/uuid.h: In function ‘uuid_le_cmp’: ./include/linux/uuid.h:92:1: error: ‘-mindirect-branch’ and ‘-fcf-protection’ are not compatible 92 | { | ^ scripts/mod/devicetable-offsets.c: In function ‘main’: scripts/mod/devicetable-offsets.c:10:1: error: ‘-mindirect-branch’ and ‘-fcf-protection’ are not compatible 10 | { | ^ make[2]: [scripts/Makefile.build:131: scripts/mod/devicetable-offsets.s] Error 1 make[2]: Waiting for unfinished jobs.... HOSTCC scripts/asn1_compiler HOSTCC scripts/extract-cert YACC scripts/genksyms/parse.tab.c make[1]: [scripts/Makefile.build:544: scripts/mod] Error 2 make[1]: Waiting for unfinished jobs.... LEX scripts/genksyms/lex.lex.c YACC scripts/genksyms/parse.tab.h HOSTLD arch/x86/tools/relocs HOSTCC scripts/genksyms/parse.tab.o HOSTCC scripts/genksyms/lex.lex.o LD /usr/src/4.19.104-microsoft-standard/tools/objtool/objtool-in.o LINK /usr/src/4.19.104-microsoft-standard/tools/objtool/objtool HOSTLD scripts/genksyms/genksyms make: [Makefile:1066: scripts] Error 2 make: Waiting for unfinished jobs.... helloworld@DESKTOP-GCL2EKC:/usr/src/4.19.104-microsoft-standard$ cd tools/usb/usbip helloworld@DESKTOP-GCL2EKC:/usr/src/4.19.104-microsoft-standard/tools/usb/usbip$ sudo ./autogen.sh

Any way to resolve?

krokosik commented 3 years ago

Same problem here on the same Ubuntu version and the same kernel