Can't make kernel for ARM version of Debian.

Getting your soundcard to work, using Debian on non-i386 hardware, etc

Can't make kernel for ARM version of Debian.

Postby MarkSkits » 2018-06-02 16:38

Here's the situation: I'm trying to install Debian on my Chromebook with this guide: https://blog.pgeiser.com/posts/2018/02/installing-debian-stretch-on-an-arm-chromebook-xe303c12/

(Keep in mind I'm doing this on an Debian 9 installation inside of a VM)

Everything was going well, until I had to build the kernel. When I executed the command, this shows up:
Code: Select all
root@debian-vm:/home/mark# ./run2.sh
Cloning into 'exynos/kernel'...
remote: Counting objects: 45664, done
remote: Finding sources: 100% (45664/45664)
remote: Total 45664 (delta 2803), reused 19456 (delta 2803)
Receiving objects: 100% (45664/45664), 127.90 MiB | 5.50 MiB/s, done.
Resolving deltas: 100% (2803/2803), done.
Checking out files: 100% (43618/43618), done.
cp: cannot stat '../../R65-10323.B-chromeos-3.8': No such file or directory
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  SHIPPED scripts/kconfig/zconf.tab.c
  SHIPPED scripts/kconfig/zconf.lex.c
  SHIPPED scripts/kconfig/zconf.hash.c
  HOSTCC  scripts/kconfig/zconf.tab.o
In file included from scripts/kconfig/zconf.tab.c:2503:0:
scripts/kconfig/menu.c: In function ‘get_symbol_str’:
scripts/kconfig/menu.c:561:18: warning: ‘jump’ may be used uninitialized in this function [-Wmaybe-uninitialized]
     jump->offset = r->len - 1;
     ~~~~~~~~~~~~~^~~~~~~~~~~~
scripts/kconfig/menu.c:515:19: note: ‘jump’ was declared here
  struct jump_key *jump;
                   ^~~~
  HOSTLD  scripts/kconfig/conf
scripts/kconfig/conf --olddefconfig Kconfig
drivers/net/Kconfig:6:warning: environment variable WIFIVERSION undefined
#
# using defaults found in /boot/config-4.9.0-6-amd64
#
/boot/config-4.9.0-6-amd64:965:warning: symbol value 'm' invalid for BRIDGE_NETFILTER
/boot/config-4.9.0-6-amd64:3493:warning: symbol value 'm' invalid for TTY_PRINTK
/boot/config-4.9.0-6-amd64:5203:warning: symbol value 'm' invalid for SND_HDA_CODEC_REALTEK
/boot/config-4.9.0-6-amd64:5204:warning: symbol value 'm' invalid for SND_HDA_CODEC_ANALOG
/boot/config-4.9.0-6-amd64:5205:warning: symbol value 'm' invalid for SND_HDA_CODEC_SIGMATEL
/boot/config-4.9.0-6-amd64:5206:warning: symbol value 'm' invalid for SND_HDA_CODEC_VIA
/boot/config-4.9.0-6-amd64:5207:warning: symbol value 'm' invalid for SND_HDA_CODEC_HDMI
/boot/config-4.9.0-6-amd64:5208:warning: symbol value 'm' invalid for SND_HDA_CODEC_CIRRUS
/boot/config-4.9.0-6-amd64:5209:warning: symbol value 'm' invalid for SND_HDA_CODEC_CONEXANT
/boot/config-4.9.0-6-amd64:5210:warning: symbol value 'm' invalid for SND_HDA_CODEC_CA0110
/boot/config-4.9.0-6-amd64:5211:warning: symbol value 'm' invalid for SND_HDA_CODEC_CA0132
/boot/config-4.9.0-6-amd64:5213:warning: symbol value 'm' invalid for SND_HDA_CODEC_CMEDIA
/boot/config-4.9.0-6-amd64:5214:warning: symbol value 'm' invalid for SND_HDA_CODEC_SI3054
/boot/config-4.9.0-6-amd64:5215:warning: symbol value 'm' invalid for SND_HDA_GENERIC
/boot/config-4.9.0-6-amd64:5560:warning: symbol value 'm' invalid for USB_OHCI_HCD_PCI
/boot/config-4.9.0-6-amd64:6177:warning: symbol value 'm' invalid for XEN_TMEM
/boot/config-4.9.0-6-amd64:6202:warning: symbol value 'm' invalid for COMEDI_PCI_DRIVERS
/boot/config-4.9.0-6-amd64:6259:warning: symbol value 'm' invalid for COMEDI_PCMCIA_DRIVERS
/boot/config-4.9.0-6-amd64:6267:warning: symbol value 'm' invalid for COMEDI_USB_DRIVERS
warning: (BLK_DEV_RBD && CEPH_FS) selects CEPH_LIB which has unmet direct dependencies (NET && INET && EXPERIMENTAL)
warning: (DVB_USB_PCTV452E) selects TTPCI_EEPROM which has unmet direct dependencies (MEDIA_SUPPORT && MEDIA_PCI_SUPPORT && MEDIA_DIGITAL_TV_SUPPORT && I2C)
#
# configuration written to .config
#
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/net/Kconfig:6:warning: environment variable WIFIVERSION undefined
warning: (BLK_DEV_RBD && CEPH_FS) selects CEPH_LIB which has unmet direct dependencies (NET && INET && EXPERIMENTAL)
warning: (DVB_USB_PCTV452E) selects TTPCI_EEPROM which has unmet direct dependencies (MEDIA_SUPPORT && MEDIA_PCI_SUPPORT && MEDIA_DIGITAL_TV_SUPPORT && I2C)
warning: (BLK_DEV_RBD && CEPH_FS) selects CEPH_LIB which has unmet direct dependencies (NET && INET && EXPERIMENTAL)
warning: (DVB_USB_PCTV452E) selects TTPCI_EEPROM which has unmet direct dependencies (MEDIA_SUPPORT && MEDIA_PCI_SUPPORT && MEDIA_DIGITAL_TV_SUPPORT && I2C)
  WRAP    arch/arm/include/generated/asm/auxvec.h
  WRAP    arch/arm/include/generated/asm/bitsperlong.h
  WRAP    arch/arm/include/generated/asm/cputime.h
  WRAP    arch/arm/include/generated/asm/current.h
  WRAP    arch/arm/include/generated/asm/emergency-restart.h
  WRAP    arch/arm/include/generated/asm/errno.h
  WRAP    arch/arm/include/generated/asm/exec.h
  WRAP    arch/arm/include/generated/asm/ioctl.h
  WRAP    arch/arm/include/generated/asm/ipcbuf.h
  WRAP    arch/arm/include/generated/asm/irq_regs.h
  WRAP    arch/arm/include/generated/asm/kdebug.h
  WRAP    arch/arm/include/generated/asm/local.h
  WRAP    arch/arm/include/generated/asm/local64.h
  WRAP    arch/arm/include/generated/asm/msgbuf.h
  WRAP    arch/arm/include/generated/asm/param.h
  WRAP    arch/arm/include/generated/asm/parport.h
  WRAP    arch/arm/include/generated/asm/poll.h
  WRAP    arch/arm/include/generated/asm/resource.h
  WRAP    arch/arm/include/generated/asm/sections.h
  WRAP    arch/arm/include/generated/asm/segment.h
  WRAP    arch/arm/include/generated/asm/sembuf.h
  WRAP    arch/arm/include/generated/asm/serial.h
  WRAP    arch/arm/include/generated/asm/shmbuf.h
  WRAP    arch/arm/include/generated/asm/siginfo.h
  WRAP    arch/arm/include/generated/asm/sizes.h
  WRAP    arch/arm/include/generated/asm/socket.h
  WRAP    arch/arm/include/generated/asm/sockios.h
  WRAP    arch/arm/include/generated/asm/termbits.h
  WRAP    arch/arm/include/generated/asm/termios.h
  WRAP    arch/arm/include/generated/asm/timex.h
  WRAP    arch/arm/include/generated/asm/trace_clock.h
  WRAP    arch/arm/include/generated/asm/types.h
  WRAP    arch/arm/include/generated/asm/unaligned.h
  CHK     include/generated/uapi/linux/version.h
  UPD     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  UPD     include/generated/utsrelease.h
  Generating include/generated/mach-types.h
  CC      kernel/bounds.s
arm-linux-gnueabihf-gcc: error trying to exec 'cc1': execvp: No such file or directory
/home/mark/exynos/kernel/./Kbuild:35: recipe for target 'kernel/bounds.s' failed
make[1]: *** [kernel/bounds.s] Error 1
Makefile:841: recipe for target 'prepare0' failed
make: *** [prepare0] Error 2
  HOSTCC  scripts/dtc/checks.o
  HOSTCC  scripts/dtc/data.o
  SHIPPED scripts/dtc/dtc-lexer.lex.c
  SHIPPED scripts/dtc/dtc-parser.tab.h
  HOSTCC  scripts/dtc/dtc-lexer.lex.o
  SHIPPED scripts/dtc/dtc-parser.tab.c
  HOSTCC  scripts/dtc/dtc-parser.tab.o
  HOSTCC  scripts/dtc/dtc.o
  HOSTCC  scripts/dtc/flattree.o
  HOSTCC  scripts/dtc/fstree.o
  HOSTCC  scripts/dtc/livetree.o
  HOSTCC  scripts/dtc/srcpos.o
  HOSTCC  scripts/dtc/treesource.o
  HOSTCC  scripts/dtc/util.o
  HOSTLD  scripts/dtc/dtc
  HOSTCC  scripts/genksyms/genksyms.o
  SHIPPED scripts/genksyms/lex.lex.c
  SHIPPED scripts/genksyms/keywords.hash.c
  SHIPPED scripts/genksyms/parse.tab.h
  HOSTCC  scripts/genksyms/lex.lex.o
  SHIPPED scripts/genksyms/parse.tab.c
  HOSTCC  scripts/genksyms/parse.tab.o
  HOSTLD  scripts/genksyms/genksyms
  CC      scripts/mod/empty.o
arm-linux-gnueabihf-gcc: error trying to exec 'cc1': execvp: No such file or directory
scripts/Makefile.build:307: recipe for target 'scripts/mod/empty.o' failed
make[2]: *** [scripts/mod/empty.o] Error 1
scripts/Makefile.build:454: recipe for target 'scripts/mod' failed
make[1]: *** [scripts/mod] Error 2
Makefile:523: recipe for target 'scripts' failed
make: *** [scripts] Error 2
cp: cannot stat '/home/mark/exynos/kernel/modules.builtin': No such file or directory
Makefile:974: recipe for target '_modinst_' failed
make: *** [_modinst_] Error 1
root@debian-vm:/home/mark#


I tried to do many things to fix this, but it just wasn't happening.
MarkSkits
 
Posts: 3
Joined: 2018-06-02 16:32

Re: Can't make kernel for ARM version of Debian.

Postby debiman » 2018-06-03 07:30

the trick is to find the FIRST mention of an obvious error in the output; in your case it's:
Code: Select all
arm-linux-gnueabihf-gcc: error trying to exec 'cc1': execvp: No such file or directory
so you need 'cc1', an executable of sorts.
User avatar
debiman
 
Posts: 2499
Joined: 2013-03-12 07:18

Re: Can't make kernel for ARM version of Debian.

Postby MarkSkits » 2018-06-03 13:12

debiman wrote:the trick is to find the FIRST mention of an obvious error in the output; in your case it's:
Code: Select all
arm-linux-gnueabihf-gcc: error trying to exec 'cc1': execvp: No such file or directory
so you need 'cc1', an executable of sorts.


I had reinstalled build-essentials, and I still got the same exact errors.
MarkSkits
 
Posts: 3
Joined: 2018-06-02 16:32

Re: Can't make kernel for ARM version of Debian.

Postby stevepusser » 2018-06-03 20:11

I thought that execvp is the missing command or file, except that no Debian package provides that, either.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: GIMP 2.10.2, Pale Moon 27.9.3, wine-staging 3.11, QuiteRSS 0.18.11, Linux kernel 4.17, Krita 4.1.0
User avatar
stevepusser
 
Posts: 9710
Joined: 2009-10-06 05:53

Re: Can't make kernel for ARM version of Debian.

Postby debiman » 2018-06-04 04:34

MarkSkits wrote:I had reinstalled build-essentials, and I still got the same exact errors.

and how does this relate to the error message?
does build-esentials provide the 2 executables in question?
User avatar
debiman
 
Posts: 2499
Joined: 2013-03-12 07:18

Re: Can't make kernel for ARM version of Debian.

Postby MarkSkits » 2018-06-04 17:19

debiman wrote:
MarkSkits wrote:I had reinstalled build-essentials, and I still got the same exact errors.

and how does this relate to the error message?
does build-esentials provide the 2 executables in question?


Apparently build-essentials provides the command.
MarkSkits
 
Posts: 3
Joined: 2018-06-02 16:32

Re: Can't make kernel for ARM version of Debian.

Postby stevepusser » 2018-06-04 18:33

Yes, build-essentials is a metapackage that pulls in the gcc toolchain.

Does the chromebook require a custom kernel instead of a stock Debian armhf one? When I was backporting the 4.16.5 kernel on the OBS, I clicked off for arm71 (= armhf) builds just to see what would happen, and it eventually finished: https://build.opensuse.org/package/show ... linux-4.16

So if you can figure out what changes might be taking place with your custom kernel and have them also in the Debian kernel, you could have the OBS build it for you instead.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: GIMP 2.10.2, Pale Moon 27.9.3, wine-staging 3.11, QuiteRSS 0.18.11, Linux kernel 4.17, Krita 4.1.0
User avatar
stevepusser
 
Posts: 9710
Joined: 2009-10-06 05:53


Return to Hardware

Who is online

Users browsing this forum: No registered users and 7 guests

fashionable