sonic-net / sonic-net/sonic-linux-kernel
Error during patch building
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 72
- Forks
- 237
- Avg merge
- 7d 19h
- Merged PRs (30d)
- 8
Description
Hi,
I read the README and I want to compile and add the patches to a SONiC Image that I'll build. I use the command make DEST=<destination path> and I obtain this error:
~/Desktop/SONiC_patch/sonic-linux-kernel/linux-4.19.118 ~/Desktop/SONiC_patch/sonic-linux-kernel
Initialized empty Git repository in /home/diaccio/Desktop/SONiC_patch/sonic-linux-kernel/linux-4.19.118/.git/
Checking for changes in the working directory ... done
Importing patch "packaging-update-abiname.patch" ... done
Now at patch "packaging-update-abiname.patch"
W: Unable to get GNU type for arm64ilp32
W: Unable to get GNU type for mips64r6
Traceback (most recent call last):
File "debian/bin/gencontrol.py", line 682, in <module>
Gencontrol()()
File "/home/diaccio/Desktop/SONiC_patch/sonic-linux-kernel/linux-4.19.118/debian/bin/debian_linux/gencontrol.py", line 109, in __call__
self.do_main(packages, makefile)
File "/home/diaccio/Desktop/SONiC_patch/sonic-linux-kernel/linux-4.19.118/debian/bin/debian_linux/gencontrol.py", line 130, in do_main
self.do_main_recurse(packages, makefile, vars, makeflags, extra)
File "/home/diaccio/Desktop/SONiC_patch/sonic-linux-kernel/linux-4.19.118/debian/bin/debian_linux/gencontrol.py", line 152, in do_main_recurse
makeflags.copy(), extra)
File "/home/diaccio/Desktop/SONiC_patch/sonic-linux-kernel/linux-4.19.118/debian/bin/debian_linux/gencontrol.py", line 214, in do_arch
self.do_arch_recurse(packages, makefile, arch, vars, makeflags, extra)
File "/home/diaccio/Desktop/SONiC_patch/sonic-linux-kernel/linux-4.19.118/debian/bin/debian_linux/gencontrol.py", line 237, in do_arch_recurse
vars.copy(), makeflags.copy(), extra)
File "/home/diaccio/Desktop/SONiC_patch/sonic-linux-kernel/linux-4.19.118/debian/bin/debian_linux/gencontrol.py", line 251, in do_featureset
makeflags, extra)
File "/home/diaccio/Desktop/SONiC_patch/sonic-linux-kernel/linux-4.19.118/debian/bin/debian_linux/gencontrol.py", line 275, in do_featureset_recurse
vars.copy(), makeflags.copy(), extra)
File "/home/diaccio/Desktop/SONiC_patch/sonic-linux-kernel/linux-4.19.118/debian/bin/debian_linux/gencontrol.py", line 286, in do_flavour
vars, makeflags, extra)
File "debian/bin/gencontrol.py", line 394, in do_flavour_packages
or config_entry_relations.get(compiler), vars))
File "/home/diaccio/Desktop/SONiC_patch/sonic-linux-kernel/linux-4.19.118/debian/bin/debian_linux/gencontrol.py", line 351, in substitute
return re.sub(r'@([-_a-z0-9]+)@', subst, str(s))
File "/usr/lib/python3.5/re.py", line 182, in sub
return _compile(pattern, flags).sub(repl, string, count)
File "/home/diaccio/Desktop/SONiC_patch/sonic-linux-kernel/linux-4.19.118/debian/bin/debian_linux/gencontrol.py", line 349, in subst
return vars[match.group(1)]
KeyError: 'gnu-type-package'
Makefile:57: recipe for target '/home/diaccio/Desktop/SONiC_patch/sonic-buildimage//linux-headers-4.19.0-9-2-common_4.19.118-2+deb10u1_all.deb' failed
make: *** [/home/diaccio/Desktop/SONiC_patch/sonic-buildimage//linux-headers-4.19.0-9-2-common_4.19.118-2+deb10u1_all.deb] Error 1
Can you help me?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The failure occurs while running make DEST=... after importing packaging-update-abiname.patch; start with debian/bin/gencontrol.py and the traceback's do_flavour_packages/substitute path, alongside the arm64ilp32 and mips64r6 warnings. Done means the SONiC patch build completes and produces the referenced linux-headers .deb.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- debian, linux, python
- Domain
- build-system, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100