Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

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

Featured Replies

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.

 

  • Author

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?

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.