-
Notifications
You must be signed in to change notification settings - Fork 5k
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
3.18.1 compile error using gcc 4.8 #758
Comments
Kernel is cross-compiled with:
Looks like >= 4.8.0 and < 4.8.3 is considered buggy by kernel. This is really a raspbian issue. Did you install gcc-4.8 from raspian/jessie? It should be 4.8.3-13 which is okay (https://packages.debian.org/jessie/gcc-4.8) |
It's not an upstream Raspbian issue - it's an issue with the version we On 6 January 2015 at 16:10, popcornmix notifications@github.com wrote:
|
Can we bump gcc-4.8 to the jessie version (4.8.3-13) |
I installed gcc 4.8 using apt-get install which I assume is using standard sources.list included in 3.18.1 which is
Attempting to install 4.8.3-13 by manually downloading packages is a real pain as it requires a whole load of dependencies downloading as well. Cross compiling is not possible for me but I am not interested in fully compiling the kernel but just setting it up for compiling particular wifi modules as per my original post. I've managed to break the original 3.18.1 image, or at least apt-get by adding the following to the /etc/apt/sources.list
so I'm in the process of regenerating my SD card and starting again. |
I'm finding it impossible to install gcc 4.8.3-13. Installing the jessie 4.8.3-13 package requires a load of dependent packages and trying to install them is bringing up a variety of other issues such as, additional dependencies, installed packages it say cannot be removed or replaced. Then it suggested running something like apt-get autoremove and that started removing hundreds of packages, > 700, and that has killed my pi again. Any suggestions for installing gcc 4.8.3-13 and related packages on my Pi? Off to re-install the 3.18.1+ image on my SD card again. |
It seemed to work okay for me following this: |
And it worked for me as well. Thanks for the pointer. Much simpler than trying to install manually and it works as well!! |
I am trying to recompile the 4.4 kernel with my elementary os (based on ubuntu 14.04) with gcc 4.8.4 but I get the same error. However on my raspberry jessie installation the compilation seems to work fluently (so far, its so slow). I've read that you need 4.8.3 or higher, but isnt 4.8.4 good enough? It might be related to the 4.4 kernel. Raspbian has gcc 4.9.2 installed (wow!) I also tried to install gcc 5.3.0 (on ubuntu) now, but that did not help:
Edit |
@MrEngman I assume this is no longer an issue with jessie and can be close? |
I have no idea as I now cross-compile the drivers I compile on a PC as I found other issues as well, such as some drivers causing the kernel to crash when compiled on a Pi even when compiled with no warnings. I cross-compile my drivers, including for 4.4.0-rc7/8, using the compilers from the raspberry pi tools repo and no long see any of the problems I did compiling on a Pi. Fell free to close if you want to. |
Sync with v5.18-rc5
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
Then tried
make modules_prepare failed with the following error.
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.
The text was updated successfully, but these errors were encountered: