Jump to content

mlg

Members
  • Posts

    3
  • Joined

  • Last visited

  1. Hi, just another clarification. I tried to compile the 3.4 kernel. The newer mainline kernel may already have the the changes necessary for gcc5 included. Regards Martin
  2. Hi, I'm using an x86 PC with Ubuntu 15.10 and try to cross-compile for an Olimex board. The problem with Ubuntu 15.10 is, that it uses gcc5 as default for the compiler suite as oposed to the 4.8/4.9 series which was used in Ubuntu 14.04. Therfore the armbian scripts will not compile the kernel successfully on systems which use gcc5 as their compiler. The patch for the kernel or the change in the kernel make should solve the problem.
  3. Hi all, I tried to build the kernel on my Ubuntu 15.10 machines which uses gcc 5.2 as default compiler. As mentioned in other threads this did not work. I found out two possible solutions. Apply the following kernel patch Compile the kernel with option -std=gnu98. I therefore changed the kernel makefile. --- a/arch/arm/kernel/return_address.c +++ b/arch/arm/kernel/return_address.c @@ -63,11 +63,6 @@ void *return_address(unsigned int level) #warning "TODO: return_address should use unwind tables" #endif -void *return_address(unsigned int level) -{ - return NULL; -} - #endif /* if defined(CONFIG_FRAME_POINTER) && !defined(CONFIG_ARM_UNWIND) / else */ EXPORT_SYMBOL_GPL(return_address); --- a/arch/arm/include/asm/ftrace.h +++ b/arch/arm/include/asm/ftrace.h @@ -45,7 +45,7 @@ void *return_address(unsigned int); #else -extern inline void *return_address(unsigned int level) +static inline void *return_address(unsigned int level) { return NULL; } It would be nice if one of these solutions would be integrated in a future release. Martin
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines