Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to build custom kernel module in 2605.10.0 #307

Closed
mindw opened this issue Jan 1, 2021 · 1 comment
Closed

Unable to build custom kernel module in 2605.10.0 #307

mindw opened this issue Jan 1, 2021 · 1 comment
Labels
kind/bug Something isn't working

Comments

@mindw
Copy link

mindw commented Jan 1, 2021

Description

Build of a custom kernel module fails on 2605.10.0 - the same process is successful on 2605.8.0

This is the outcome of #298

Impact

Workaround is available otherwise production env is dependant on the module in question - blocked from upgrading.

Environment and steps to reproduce

  1. Set-up: spin up Flatcar EC2 instance in AWS using ami-01005e70742a799fe
  2. Task: build wireguard custom kernel module 1.0.20201112 for Flatcar 2605.10
  3. Action(s): [ sequence of actions that triggered the bug, see example below ]
[2020-12-09T00:27:08.532Z] �[0m�[0mnull_resource.run_install_script (remote-exec): + export WIREGUARD_VERSION=1.0.20201112
[2020-12-09T00:27:08.532Z] �[0m�[0mnull_resource.run_install_script (remote-exec): + WIREGUARD_VERSION=1.0.20201112
[2020-12-09T00:27:08.532Z] �[0m�[0mnull_resource.run_install_script (remote-exec): + modules=/opt/modules
[2020-12-09T00:27:08.532Z] �[0m�[0mnull_resource.run_install_script (remote-exec): + mkdir -p /opt/modules /opt/modules.wd
[2020-12-09T00:27:08.532Z] �[0m�[0mnull_resource.run_install_script (remote-exec): + mount -o lowerdir=/lib/modules,upperdir=/opt/modules,workdir=/opt/modules.wd -t overlay overlay /lib/modules
[2020-12-09T00:27:08.532Z] �[0m�[0mnull_resource.run_install_script (remote-exec): + systemctl enable lib-modules.mount
[2020-12-09T00:27:08.532Z] �[0m�[0mnull_resource.run_install_script (remote-exec): Created symlink /etc/systemd/system/local-fs.target.wants/lib-modules.mount → /etc/systemd/system/lib-modules.mount.
[2020-12-09T00:27:08.791Z] �[0m�[0mnull_resource.run_install_script (remote-exec): + . /usr/share/flatcar/release
[2020-12-09T00:27:08.791Z] �[0m�[0mnull_resource.run_install_script (remote-exec): ++ FLATCAR_RELEASE_VERSION=2605.10.0
[2020-12-09T00:27:08.791Z] �[0m�[0mnull_resource.run_install_script (remote-exec): ++ FLATCAR_RELEASE_BOARD=amd64-usr
...
[2020-12-09T00:27:08.791Z] �[0m�[0mnull_resource.run_install_script (remote-exec): + . /usr/share/flatcar/update.conf
[2020-12-09T00:27:08.791Z] �[0m�[0mnull_resource.run_install_script (remote-exec): ++ SERVER=https://public.update.flatcar-linux.net/v1/update/
[2020-12-09T00:27:08.791Z] �[0m�[0mnull_resource.run_install_script (remote-exec): ++ GROUP=stable
[2020-12-09T00:27:08.791Z] �[0m�[0mnull_resource.run_install_script (remote-exec): + url=https://stable.release.flatcar-linux.net/amd64-usr/2605.9.0/flatcar_developer_container.bin.bz2
[2020-12-09T00:27:08.791Z] �[0m�[0mnull_resource.run_install_script (remote-exec): + curl -L https://stable.release.flatcar-linux.net/amd64-usr/2605.9.0/flatcar_developer_container.bin.bz2
[2020-12-09T00:27:08.791Z] �[0m�[0mnull_resource.run_install_script (remote-exec): + bzip2 -d
...
[2020-12-09T00:29:30.219Z] �[0m�[0mnull_resource.run_install_script (remote-exec): + src_dir=/home/core/coreos_src
[2020-12-09T00:29:30.219Z] �[0m�[0mnull_resource.run_install_script (remote-exec): ++ pwd
[2020-12-09T00:29:30.219Z] �[0m�[0mnull_resource.run_install_script (remote-exec): + var_tmp_dir=/home/core/coreos_var_tmp
[2020-12-09T00:29:30.219Z] �[0m�[0mnull_resource.run_install_script (remote-exec): + mkdir -p /home/core/coreos_src /home/core/coreos_var_tmp
[2020-12-09T00:29:30.219Z] �[0m�[0mnull_resource.run_install_script (remote-exec): + sed -i s/_wireguard_version_/1.0.20201112/ /tmp/installer.sh
[2020-12-09T00:29:30.219Z] �[0m�[0mnull_resource.run_install_script (remote-exec): + systemd-nspawn --bind=/lib/modules --bind=/tmp --overlay=/home/core/coreos_src::/usr/src --overlay=/home/core/coreos_var_tmp::/var/tmp --image=flatcar_developer_container.bin /tmp/installer.sh
...
[2020-12-09T00:29:30.219Z] �[0m�[0mnull_resource.run_install_script (remote-exec): + src_dir=/home/core/coreos_src
[2020-12-09T00:29:30.219Z] �[0m�[0mnull_resource.run_install_script (remote-exec): ++ pwd
[2020-12-09T00:29:30.219Z] �[0m�[0mnull_resource.run_install_script (remote-exec): + var_tmp_dir=/home/core/coreos_var_tmp
[2020-12-09T00:29:30.219Z] �[0m�[0mnull_resource.run_install_script (remote-exec): + mkdir -p /home/core/coreos_src /home/core/coreos_var_tmp
[2020-12-09T00:29:30.219Z] �[0m�[0mnull_resource.run_install_script (remote-exec): + sed -i s/_wireguard_version_/1.0.20201112/ /tmp/installer.sh
[2020-12-09T00:29:30.219Z] �[0m�[0mnull_resource.run_install_script (remote-exec): + systemd-nspawn --bind=/lib/modules --bind=/tmp --overlay=/home/core/coreos_src::/usr/src --overlay=/home/core/coreos_var_tmp::/var/tmp --image=flatcar_developer_container.bin /tmp/installer.sh
...
2020-12-09T00:30:04.691Z] �[0m�[1mnull_resource.run_install_script: Still creating... (3m30s elapsed)�[0m�[0m
[2020-12-09T00:30:05.257Z] �[0m�[0mnull_resource.run_install_script (remote-exec): >>> Git clone in /var/lib/portage/portage-stable successful
[2020-12-09T00:30:05.257Z] �[0m�[0mnull_resource.run_install_script (remote-exec): Warning: No revision found for https://github.com/flatcar-linux/coreos-overlay.git
[2020-12-09T00:30:05.257Z] �[0m�[0mnull_resource.run_install_script (remote-exec): >>> Cloning repository 'coreos' from 'https://github.com/flatcar-linux/coreos-overlay.git'...
[2020-12-09T00:30:05.257Z] �[0m�[0mnull_resource.run_install_script (remote-exec): >>> Starting git clone in /var/lib/portage/coreos-overlay
[2020-12-09T00:30:05.257Z] �[0m�[0mnull_resource.run_install_script (remote-exec): Cloning into '/var/lib/portage/coreos-overlay'...
...
[2020-12-09T00:30:11.924Z] �[0m�[0mnull_resource.run_install_script (remote-exec): >>> Git clone in /var/lib/portage/coreos-overlay successful
  1. Error: [describe the error that was triggered]
[2020-12-17T00:33:08.184Z] null_resource.run_install_script (remote-exec):   CC [M]  /wireguard-linux-compat-1.0.20201112/src/crypto/zinc/chacha20/chacha20.o
[2020-12-17T00:33:09.118Z] null_resource.run_install_script (remote-exec):   PERLASM /wireguard-linux-compat-1.0.20201112/src/crypto/zinc/chacha20/chacha20-x86_64.S
[2020-12-17T00:33:09.376Z] null_resource.run_install_script (remote-exec): /bin/sh: line 1: 30227 Segmentation fault      (core dumped) perl /wireguard-linux-compat-1.0.20201112/src/crypto/zinc/chacha20/chacha20-x86_64.pl > /wireguard-linux-compat-1.0.20201112/src/crypto/zinc/chacha20/chacha20-x86_64.S
[2020-12-17T00:33:09.376Z] null_resource.run_install_script (remote-exec): make[2]: *** [/wireguard-linux-compat-1.0.20201112/src/crypto/Kbuild.include:43: /wireguard-linux-compat-1.0.20201112/src/crypto/zinc/chacha20/chacha20-x86_64.S] Error 139

Expected behavior
build is successful

Additional information
Adding emerge perl allows building wireguard kernel module

@sayanchowdhury sayanchowdhury added the kind/bug Something isn't working label Jan 5, 2021
@pothos
Copy link
Member

pothos commented Jul 2, 2021

echo 'print("Hello, World!\n");' | perl works in the current Stable's developer container, please reopen if there are still any crashes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants