0
OPUser

fatal error: linux/compiler-gcc5.h: No such file or directory

Recommended Posts

Hello

 

I have built Armbian new desktop image and SATA PMP patched kernel debs for OrangePi from the master branch on Ubuntu Xenial VBox host

./compile.sh PROGRESS_DISPLAY=plain FORCE_CHECKOUT="no" CREATE_PATCHES=yes\
 BRANCH=default BOARD=orangepi KERNEL_ONLY=no RELEASE=jessie\
 USE_GITHUB_UBOOT_MIRROR="yes" BUILD_DESKTOP=yes EXTERNAL_NEW=prebuilt

 

and got this messages during kernel compilation

HEAD detached at FETCH_HEAD

nothing to commit, working directory clean
[ warn ] Make your changes in this directory: [ /root/my_orangepi_kernel/sources/linux-sunxi/sunxi-3.4 ]
[ warn ] Press <Enter> after you are done [ waiting ]
[ warn ] No changes found, skipping patch creation
fatal: ambiguous argument 'HEAD~': unknown revision or path not in the working tree.

and

include/linux/compiler-gcc.h:103:30: fatal error: linux/compiler-gcc5.h: No such file or directory

 

I fixed the second one adding KERNEL_NEEDS_GCC='< 5.0' to /root/my_orangepi_kernel/lib/config/sources/sun7i.conf

And at the end I got linux-image-3.4.104-sun7i_5.27_armhf.deb

Few month ago I did same and I got 3.4.112 during the build. Is it the numbering issue or an effect of my kernel compilation error workaround?

What can be the best way to fix that error? I had same error in the log during usb-redirector compilation:

include/linux/compiler-gcc.h:103:30: fatal error: linux/compiler-gcc5.h: No such file or directory

 

Thank you.

 

Share this post


Link to post
Share on other sites

I compiled jessie desktop image without use of FORCE_CHECKOUT

but u-boot can't load kernel - it stops at "Starting Kernel..." message. :(

kernel only compilation gave the same result. 

 

I decided to check if Ubuntu image from site works - it works but average load is too high, over 1.2.

armbianmonitor -m shows 70% CPU load.

But htop shows /sbin/init at 6% as a heaviest task. How can I check the rootcause?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
0