Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] Raspberry Pi: unable to make kernel 5.x scripts
@ 2020-11-09 19:17 ILadis
  2020-11-09 19:36 ` Anachron
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: ILadis @ 2020-11-09 19:17 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 2361 bytes --]

New issue by ILadis on void-packages repository

https://github.com/void-linux/void-packages/issues/26257

Description:
<!-- Don't request update of package. We have a script for that. https://alpha.de.repo.voidlinux.org/void-updates/void-updates.txt . However, a quality pull request may help. -->
### System

* xuname:  
  `Void 4.19.127_3 armv7l Unknown notuptodate hold rFFF`
* package:  
  `rpi-kernel-headers-5.4.68_1`

### Expected behavior
Upon running `make scripts` from inside `/usr/src/rpi-kernel-headers-5.*` all kernel scripts should be compiled.

Output of `make scripts`:

```
  HOSTCC  scripts/dtc/flattree.o
  HOSTCC  scripts/dtc/fstree.o
  HOSTCC  scripts/dtc/data.o
  HOSTCC  scripts/dtc/livetree.o
  HOSTCC  scripts/dtc/treesource.o
  HOSTCC  scripts/dtc/srcpos.o
  HOSTCC  scripts/dtc/checks.o
  HOSTCC  scripts/dtc/util.o
  HOSTCC  scripts/dtc/dtc-lexer.lex.o
  HOSTCC  scripts/dtc/dtc-parser.tab.o
  HOSTLD  scripts/dtc/dtc
  HOSTCC  scripts/genksyms/genksyms.o
  HOSTCC  scripts/genksyms/parse.tab.o
  HOSTCC  scripts/genksyms/lex.lex.o
  HOSTLD  scripts/genksyms/genksyms
  HOSTCC  scripts/recordmcount
  HOSTCC  scripts/kallsyms
  HOSTCC  scripts/pnmtologo
  HOSTCC  scripts/conmakehash
  HOSTCC  scripts/sortextable
  HOSTCC  scripts/asn1_compiler
  HOSTCC  scripts/extract-cert
```

### Actual behavior
Some kernel scripts do not get compiled. No errors occur when running `make scripts` but when I try to compile a kernel module/driver from source it complains about a missing kernel script:

```
Building modules, stage 2.
  MODPOST 1 modules
/bin/sh: 1: scripts/mod/modpost: not found
make[2]: *** [scripts/Makefile.modpost:94: __modpost] Error 127
```

If I then try to explicitly run `make` in `/usr/src/rpi-kernel-headers-5.*/scripts/mod` I get the following error:

```
make: *** No rule to make target '/devicetable-offsets.s', needed by '/devicetable-offsets.h'.  Stop.
```

I do not know if that is the only script that can not be compiled. There may be more missing.

### Steps to reproduce the behavior
Run `cd /usr/src/rpi-kernel-headers-5.* && make scripts` and check if `scripts/mod/modpost` gets compiled.

In order to successfully compile the kernel scripts I had to also install the following development tools:  
`make`, `flex`, `gcc`, `libressl-devel`

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Raspberry Pi: unable to make kernel 5.x scripts
  2020-11-09 19:17 [ISSUE] Raspberry Pi: unable to make kernel 5.x scripts ILadis
@ 2020-11-09 19:36 ` Anachron
  2020-11-09 19:51 ` ILadis
                   ` (12 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: Anachron @ 2020-11-09 19:36 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 194 bytes --]

New comment by Anachron on void-packages repository

https://github.com/void-linux/void-packages/issues/26257#issuecomment-724232446

Comment:
Why don't you use xbps-src for compiling packages?

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Raspberry Pi: unable to make kernel 5.x scripts
  2020-11-09 19:17 [ISSUE] Raspberry Pi: unable to make kernel 5.x scripts ILadis
  2020-11-09 19:36 ` Anachron
@ 2020-11-09 19:51 ` ILadis
  2020-11-09 20:02 ` ILadis
                   ` (11 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: ILadis @ 2020-11-09 19:51 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 522 bytes --]

New comment by ILadis on void-packages repository

https://github.com/void-linux/void-packages/issues/26257#issuecomment-724240467

Comment:
I dont' want to compile a package but rather build another/external kernel module for the current available kernel. I'd compare that with having to install a `devel` package in order to include its header files an compile it against the available system library.

I'd also like to mention that I could compile the kernel scripts with the `rpi-kernel-headers-4.19.127` just fine.

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Raspberry Pi: unable to make kernel 5.x scripts
  2020-11-09 19:17 [ISSUE] Raspberry Pi: unable to make kernel 5.x scripts ILadis
  2020-11-09 19:36 ` Anachron
  2020-11-09 19:51 ` ILadis
@ 2020-11-09 20:02 ` ILadis
  2020-11-09 20:02 ` ILadis
                   ` (10 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: ILadis @ 2020-11-09 20:02 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1014 bytes --]

New comment by ILadis on void-packages repository

https://github.com/void-linux/void-packages/issues/26257#issuecomment-724240467

Comment:
I dont' want to compile a package but rather build another/external kernel module/driver for the current available kernel. I'd compare that with having to install a `devel` package in order to include its header files an compile it against the available system library.

I'd also like to mention that I could compile the kernel scripts with the `rpi-kernel-headers-4.19.127` just fine.

The kernel module/driver I'm talking about can be found here: [github.com/lwfinger/rtl8188eu](https://github.com/lwfinger/rtl8188eu/tree/v4.1.8_9499#compiling--building). I had no issue compiling its source against the previouse `rpi-kernel-4.19.127` and `rpi-kernel-headers-4.19.127`.

That is why I assume something is missing from the current `rpi-kernel-headers-5.*` that was present before.

I am by no means an expert on this field. So any help and hints are appreciated.

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Raspberry Pi: unable to make kernel 5.x scripts
  2020-11-09 19:17 [ISSUE] Raspberry Pi: unable to make kernel 5.x scripts ILadis
                   ` (2 preceding siblings ...)
  2020-11-09 20:02 ` ILadis
@ 2020-11-09 20:02 ` ILadis
  2020-11-09 20:19 ` ILadis
                   ` (9 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: ILadis @ 2020-11-09 20:02 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1014 bytes --]

New comment by ILadis on void-packages repository

https://github.com/void-linux/void-packages/issues/26257#issuecomment-724240467

Comment:
I don't want to compile a package but rather build another/external kernel module/driver for the current available kernel. I'd compare that with having to install a `devel` package in order to include its header files an compile it against the available system library.

I'd also like to mention that I could compile the kernel scripts with the `rpi-kernel-headers-4.19.127` just fine.

The kernel module/driver I'm talking about can be found here: [github.com/lwfinger/rtl8188eu](https://github.com/lwfinger/rtl8188eu/tree/v4.1.8_9499#compiling--building). I had no issue compiling its source against the previouse `rpi-kernel-4.19.127` and `rpi-kernel-headers-4.19.127`.

That is why I assume something is missing from the current `rpi-kernel-headers-5.*` that was present before.

I am by no means an expert on this field. So any help and hints are appreciated.

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Raspberry Pi: unable to make kernel 5.x scripts
  2020-11-09 19:17 [ISSUE] Raspberry Pi: unable to make kernel 5.x scripts ILadis
                   ` (3 preceding siblings ...)
  2020-11-09 20:02 ` ILadis
@ 2020-11-09 20:19 ` ILadis
  2020-11-09 23:41 ` fosslinux
                   ` (8 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: ILadis @ 2020-11-09 20:19 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1013 bytes --]

New comment by ILadis on void-packages repository

https://github.com/void-linux/void-packages/issues/26257#issuecomment-724240467

Comment:
I don't want to compile a package but rather build another/external kernel module/driver for the current available kernel. I'd compare that with having to install a `devel` package in order to include its header files an compile it against the available system library.

I'd also like to mention that I could compile the kernel scripts with the `rpi-kernel-headers-4.19.127` just fine.

The kernel module/driver I'm talking about can be found here: [github.com/lwfinger/rtl8188eu](https://github.com/lwfinger/rtl8188eu/tree/v4.1.8_9499#compiling--building). I had no issue compiling its source against the previous `rpi-kernel-4.19.127` and `rpi-kernel-headers-4.19.127`.

That is why I assume something is missing from the current `rpi-kernel-headers-5.*` that was present before.

I am by no means an expert on this field. So any help and hints are appreciated.

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Raspberry Pi: unable to make kernel 5.x scripts
  2020-11-09 19:17 [ISSUE] Raspberry Pi: unable to make kernel 5.x scripts ILadis
                   ` (4 preceding siblings ...)
  2020-11-09 20:19 ` ILadis
@ 2020-11-09 23:41 ` fosslinux
  2020-11-10  0:12 ` pbui
                   ` (7 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: fosslinux @ 2020-11-09 23:41 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 160 bytes --]

New comment by fosslinux on void-packages repository

https://github.com/void-linux/void-packages/issues/26257#issuecomment-724349763

Comment:
@Piraty @pbui ?

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Raspberry Pi: unable to make kernel 5.x scripts
  2020-11-09 19:17 [ISSUE] Raspberry Pi: unable to make kernel 5.x scripts ILadis
                   ` (5 preceding siblings ...)
  2020-11-09 23:41 ` fosslinux
@ 2020-11-10  0:12 ` pbui
  2020-11-10  0:14 ` pbui
                   ` (6 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: pbui @ 2020-11-10  0:12 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 227 bytes --]

New comment by pbui on void-packages repository

https://github.com/void-linux/void-packages/issues/26257#issuecomment-724362486

Comment:
Should have been addressed in: https://github.com/void-linux/void-packages/pull/24846


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Raspberry Pi: unable to make kernel 5.x scripts
  2020-11-09 19:17 [ISSUE] Raspberry Pi: unable to make kernel 5.x scripts ILadis
                   ` (6 preceding siblings ...)
  2020-11-10  0:12 ` pbui
@ 2020-11-10  0:14 ` pbui
  2020-11-11 10:43 ` Piraty
                   ` (5 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: pbui @ 2020-11-10  0:14 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 329 bytes --]

New comment by pbui on void-packages repository

https://github.com/void-linux/void-packages/issues/26257#issuecomment-724363223

Comment:
@ILadis Upstream kernel no longer builds `modpost` with the `make scripts` target... so we now have to do `make prepare0`.  The commit referenced above, should have updated `dkms` to do so.

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Raspberry Pi: unable to make kernel 5.x scripts
  2020-11-09 19:17 [ISSUE] Raspberry Pi: unable to make kernel 5.x scripts ILadis
                   ` (7 preceding siblings ...)
  2020-11-10  0:14 ` pbui
@ 2020-11-11 10:43 ` Piraty
  2020-11-11 10:43 ` [ISSUE] [CLOSED] " Piraty
                   ` (4 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: Piraty @ 2020-11-11 10:43 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 261 bytes --]

New comment by Piraty on void-packages repository

https://github.com/void-linux/void-packages/issues/26257#issuecomment-725349153

Comment:
#24846 is merged, please make sure you have `xbps-triggers-0.118_1` and `dkms-2.8.3_3`.

Reopen if the issue persists

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [ISSUE] [CLOSED] Raspberry Pi: unable to make kernel 5.x scripts
  2020-11-09 19:17 [ISSUE] Raspberry Pi: unable to make kernel 5.x scripts ILadis
                   ` (8 preceding siblings ...)
  2020-11-11 10:43 ` Piraty
@ 2020-11-11 10:43 ` Piraty
  2020-11-11 10:47 ` Piraty
                   ` (3 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: Piraty @ 2020-11-11 10:43 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 2364 bytes --]

Closed issue by ILadis on void-packages repository

https://github.com/void-linux/void-packages/issues/26257

Description:
<!-- Don't request update of package. We have a script for that. https://alpha.de.repo.voidlinux.org/void-updates/void-updates.txt . However, a quality pull request may help. -->
### System

* xuname:  
  `Void 4.19.127_3 armv7l Unknown notuptodate hold rFFF`
* package:  
  `rpi-kernel-headers-5.4.68_1`

### Expected behavior
Upon running `make scripts` from inside `/usr/src/rpi-kernel-headers-5.*` all kernel scripts should be compiled.

Output of `make scripts`:

```
  HOSTCC  scripts/dtc/flattree.o
  HOSTCC  scripts/dtc/fstree.o
  HOSTCC  scripts/dtc/data.o
  HOSTCC  scripts/dtc/livetree.o
  HOSTCC  scripts/dtc/treesource.o
  HOSTCC  scripts/dtc/srcpos.o
  HOSTCC  scripts/dtc/checks.o
  HOSTCC  scripts/dtc/util.o
  HOSTCC  scripts/dtc/dtc-lexer.lex.o
  HOSTCC  scripts/dtc/dtc-parser.tab.o
  HOSTLD  scripts/dtc/dtc
  HOSTCC  scripts/genksyms/genksyms.o
  HOSTCC  scripts/genksyms/parse.tab.o
  HOSTCC  scripts/genksyms/lex.lex.o
  HOSTLD  scripts/genksyms/genksyms
  HOSTCC  scripts/recordmcount
  HOSTCC  scripts/kallsyms
  HOSTCC  scripts/pnmtologo
  HOSTCC  scripts/conmakehash
  HOSTCC  scripts/sortextable
  HOSTCC  scripts/asn1_compiler
  HOSTCC  scripts/extract-cert
```

### Actual behavior
Some kernel scripts do not get compiled. No errors occur when running `make scripts` but when I try to compile a kernel module/driver from source it complains about a missing kernel script:

```
Building modules, stage 2.
  MODPOST 1 modules
/bin/sh: 1: scripts/mod/modpost: not found
make[2]: *** [scripts/Makefile.modpost:94: __modpost] Error 127
```

If I then try to explicitly run `make` in `/usr/src/rpi-kernel-headers-5.*/scripts/mod` I get the following error:

```
make: *** No rule to make target '/devicetable-offsets.s', needed by '/devicetable-offsets.h'.  Stop.
```

I do not know if that is the only script that can not be compiled. There may be more missing.

### Steps to reproduce the behavior
Run `cd /usr/src/rpi-kernel-headers-5.* && make scripts` and check if `scripts/mod/modpost` gets compiled.

In order to successfully compile the kernel scripts I had to also install the following development tools:  
`make`, `flex`, `gcc`, `libressl-devel`

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Raspberry Pi: unable to make kernel 5.x scripts
  2020-11-09 19:17 [ISSUE] Raspberry Pi: unable to make kernel 5.x scripts ILadis
                   ` (9 preceding siblings ...)
  2020-11-11 10:43 ` [ISSUE] [CLOSED] " Piraty
@ 2020-11-11 10:47 ` Piraty
  2020-11-15 21:17 ` ILadis
                   ` (2 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: Piraty @ 2020-11-11 10:47 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 422 bytes --]

New comment by Piraty on void-packages repository

https://github.com/void-linux/void-packages/issues/26257#issuecomment-725351143

Comment:
ah now i realize what your issue is: building your module manually
take a look here at why modpost is not build with `make scripts` target. (complain upstream :D): https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=60df1aee2aecb53efb4218b4dfdf7d6c80a5a3de

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Raspberry Pi: unable to make kernel 5.x scripts
  2020-11-09 19:17 [ISSUE] Raspberry Pi: unable to make kernel 5.x scripts ILadis
                   ` (10 preceding siblings ...)
  2020-11-11 10:47 ` Piraty
@ 2020-11-15 21:17 ` ILadis
  2020-11-15 21:17 ` ILadis
  2020-11-15 21:17 ` ILadis
  13 siblings, 0 replies; 15+ messages in thread
From: ILadis @ 2020-11-15 21:17 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 306 bytes --]

New comment by ILadis on void-packages repository

https://github.com/void-linux/void-packages/issues/26257#issuecomment-727638336

Comment:
Thanks you all for your support.

Building the target `make prepare0` instead of `make scripts` has solved my issue. Now all required kernel scripts get compiled.

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Raspberry Pi: unable to make kernel 5.x scripts
  2020-11-09 19:17 [ISSUE] Raspberry Pi: unable to make kernel 5.x scripts ILadis
                   ` (11 preceding siblings ...)
  2020-11-15 21:17 ` ILadis
@ 2020-11-15 21:17 ` ILadis
  2020-11-15 21:17 ` ILadis
  13 siblings, 0 replies; 15+ messages in thread
From: ILadis @ 2020-11-15 21:17 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 305 bytes --]

New comment by ILadis on void-packages repository

https://github.com/void-linux/void-packages/issues/26257#issuecomment-727638336

Comment:
Thank you all for your support.

Building the target `make prepare0` instead of `make scripts` has solved my issue. Now all required kernel scripts get compiled.

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Raspberry Pi: unable to make kernel 5.x scripts
  2020-11-09 19:17 [ISSUE] Raspberry Pi: unable to make kernel 5.x scripts ILadis
                   ` (12 preceding siblings ...)
  2020-11-15 21:17 ` ILadis
@ 2020-11-15 21:17 ` ILadis
  13 siblings, 0 replies; 15+ messages in thread
From: ILadis @ 2020-11-15 21:17 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 337 bytes --]

New comment by ILadis on void-packages repository

https://github.com/void-linux/void-packages/issues/26257#issuecomment-727638336

Comment:
Thank you all for your support.

Building the target `make prepare0` instead of `make scripts` has solved my issue. Now all required kernel scripts get compiled.

The issue can remain closed.

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2020-11-15 21:17 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-09 19:17 [ISSUE] Raspberry Pi: unable to make kernel 5.x scripts ILadis
2020-11-09 19:36 ` Anachron
2020-11-09 19:51 ` ILadis
2020-11-09 20:02 ` ILadis
2020-11-09 20:02 ` ILadis
2020-11-09 20:19 ` ILadis
2020-11-09 23:41 ` fosslinux
2020-11-10  0:12 ` pbui
2020-11-10  0:14 ` pbui
2020-11-11 10:43 ` Piraty
2020-11-11 10:43 ` [ISSUE] [CLOSED] " Piraty
2020-11-11 10:47 ` Piraty
2020-11-15 21:17 ` ILadis
2020-11-15 21:17 ` ILadis
2020-11-15 21:17 ` ILadis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).