0
votes

gcc-7 isn't working when I am trying to build a linux kernel.

The command which I am using:

make export CROSS_COMPILE=/usr/bin/arm-linux-gnueabi-gcc-7

Output:

make: /usr/bin/arm-linux-gnueabi-gcc-7gcc: Command not found

It has added gcc automatically after gnueabi- but not gcc-7 how do I stop it adding gcc automatically?

1

1 Answers

1
votes

The CROSS_COMPILE variable contains only the prefix needed for cross-compilation, apparently.

Most likely you can reset the CC variable to choose a different named compiler. It's been a very long time since I tried to build the Linux kernel so I'm not sure, but something like this may work:

make export CROSS_COMPILE=arm-linux-gnueabi- CC=gcc-7