Closed
Description
Tried using gcc 4.8 to configure linux 3.18.1 to compile a wifi module and it fails with an error running command make modules_prepare
Made sd card with 3.18.1, git cloned linux and firmware ready to enable compiling modules.
Ran sudo apt-get update/upgrade and installed gcc-4.8 and g++-4.8. Configured to use gcc-4.8 etc using
sudo rm /usr/bin/gcc
sudo ln -s /usr/bin/gcc-4.8 /usr/bin/gcc
sudo rm /usr/bin/g++
sudo ln -s /usr/bin/g++-4.8 /usr/bin/g++
sudo rm /usr/bin/cpp
sudo ln -s /usr/bin/cpp-4.8 /usr/bin/cpp
sudo rm /usr/bin/gcov
sudo ln -s /usr/bin/gcov-4.8 /usr/bin/gcov
Then tried
cd /hom/pi/src/linux
make mrproper && zcat /proc/config.gz > .config && make modules_prepare
make modules_prepare failed with the following error.
....
CC kernel/bounds.s
GEN include/generated/bounds.h
CC arch/arm/kernel/asm-offsets.s
arch/arm/kernel/asm-offsets.c:53:2: error: #error Your compiler is too buggy; it is known to miscompile kernels
#error Your compiler is too buggy; it is known to miscompile kernels
^
arch/arm/kernel/asm-offsets.c:54:2: error: #error and result in filesystem corruption and oopses.
#error and result in filesystem corruption and oopses.
^
Kbuild:81: recipe for target 'arch/arm/kernel/asm-offsets.s' failed
make[1]: *** [arch/arm/kernel/asm-offsets.s] Error 1
Makefile:980: recipe for target 'prepare0' failed
make: *** [prepare0] Error 2
Anyone explain why this is happening? gcc reports version gcc version 4.8.2 (Raspbian 4.8.2-21~rpi3rpi1). Kernel appears to be compiled with gcc version 4.8.3 I then installed gcc-4.7 etc and it compiles OK.
Metadata
Metadata
Assignees
Labels
No labels