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

./build-buildroot --build-linux fails with "ERROR: No hash found for linux-4.19.16.tar.xz" #115

Open
cirosantilli opened this issue Mar 13, 2020 · 0 comments

Comments

@cirosantilli
Copy link
Owner

cirosantilli commented Mar 13, 2020

On a clean LKMC d53ffcf:

./build -aA --download-dependencies
./build-buildroot -aA --build-linux

Outcome:

>>> host-openssl  Extracting                                                                                                                                                                                                                                                    
>>> host-openssl  Patching                                                                                                                                                                                                                                                      
>>> host-openssl  Configuring                                                                                                                                                                                                                                                   
>>> host-openssl  Building                                                                                                                                                                                                                                                      
>>> host-openssl  Installing to host directory                                                                                                                                                                                                                                  
>>> linux-headers 4.19.16 Downloading                                                                                                                                                                                                                                           
--2020-03-13 19:29:36--  https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.19.16.tar.xz                                                                                                                                                                                      
Resolving cdn.kernel.org (cdn.kernel.org)... 199.232.57.176, 2a04:4e42:4b::432                                                                                                                                                                                                  
Connecting to cdn.kernel.org (cdn.kernel.org)|199.232.57.176|:443... connected.                                                                                                                                                                                                 
HTTP request sent, awaiting response... 200 OK                                                                                                                                                                                                                                  
Length: 103149336 (98M) [application/x-xz]                                                                                                                                                                                                                                      
Saving to: ‘/home/ciro/bak/git/linux-kernel-module-cheat-2/out/buildroot/build/default/aarch64/build/.linux-4.19.16.tar.xz.9qYbhY/output’             
                                                                                                                                                                                                                                                                                
     0K .......... .......... .......... .......... ..........  0% 1.16M 85s                                                                                                                                                                                                    
    50K .......... .......... .......... .......... ..........  0% 2.59M 61s                                                                                                                                                                                                    
   100K .......... .......... .......... .......... ..........  0% 3.44M 50s                                                                                                                                                                                                    
   150K .......... .......... .......... .......... ..........  0% 5.81M 42s

...

100650K .......... .......... .......... .......... .......... 99% 4.81M 0s
100700K .......... .......... .......... .                    100% 6.42M=22s

2020-03-13 19:29:58 (4.41 MB/s) - ‘/home/ciro/bak/git/linux-kernel-module-cheat-2/out/buildroot/build/default/aarch64/build/.linux-4.19.16.tar.xz.9qYbhY/output’ saved [103149336/103149336]

ERROR: No hash found for linux-4.19.16.tar.xz
make[1]: *** [package/pkg-generic.mk:146: /home/ciro/bak/git/linux-kernel-module-cheat-2/out/buildroot/build/default/aarch64/build/linux-headers-4.19.16/.stamp_downloaded] Error 1
make: *** [Makefile:84: _all] Error 2
Traceback (most recent call last):
  File "./build-buildroot", line 175, in <module>
    Main().cli()
  File "/home/ciro/bak/git/linux-kernel-module-cheat-2/cli_function.py", line 267, in cli
    exit_status = self.cli_noexit(*args, **kwargs)
  File "/home/ciro/bak/git/linux-kernel-module-cheat-2/cli_function.py", line 258, in cli_noexit
    return self._do_main(vars(args))
  File "/home/ciro/bak/git/linux-kernel-module-cheat-2/cli_function.py", line 152, in _do_main
    return self.main(**self._get_args(kwargs))
  File "/home/ciro/bak/git/linux-kernel-module-cheat-2/common.py", line 1403, in main
    ret = self.timed_main()
  File "/home/ciro/bak/git/linux-kernel-module-cheat-2/common.py", line 1857, in timed_main
    return self.build()
  File "./build-buildroot", line 160, in build
    cwd=self.env['buildroot_source_dir'],
  File "/home/ciro/bak/git/linux-kernel-module-cheat-2/shell_helpers.py", line 432, in run_cmd
    raise e
Exception: Command exited with status: 2

Related:

A raw buildroot build with the kernel does work however:

make qemu_aarch64_virt_defconfig
make BR2_JLEVEL="$(nproc)"

Hell why.

One thing that's a bit funny is that the kernel headers used are linux-headers-5.3.14 (from linux/Config.in:125: default "5.3.14" if BR2_LINUX_KERNEL_LATEST_VERSION) so why is Buildroot trying to build an older kernel? I must have set that somewhere but cannot find where.

TODO really confused now: the new clean build has build/linux-headers-5.3.14 but its config has BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_19=y. The old unclean build has ``build/linux-headers-5.3.14too butBR2_KERNEL_HEADERS_5_3=y`.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant