Odroid C1: Issue compiling application: mach/memory.h

This forum is for topics dealing with problems with software specifically in the ARMv7h repo.

Odroid C1: Issue compiling application: mach/memory.h

Postby Gobam » Fri Jan 09, 2015 3:43 pm

Hi,

I installed Arch linux for Odroid C1, but I have a problem when trying to compile a program (dahdi). I am getting the following error:

$this->bbcode_second_pass_code('', ' CC [M] /usr/src/dahdi-linux-complete-2.10.0.1+2.10.0.1/linux/drivers/dahdi/dahdi-base.o
In file included from /usr/src/linux-3.10.43-2-ARCH/arch/arm/include/asm/page.h:163:0,
from include/linux/mmzone.h:20,
from include/linux/gfp.h:4,
from include/linux/kmod.h:22,
from include/linux/module.h:13,
from /usr/src/dahdi-linux-complete-2.10.0.1+2.10.0.1/linux/drivers/dahdi/dahdi-base.c:40:
/usr/src/linux-3.10.43-2-ARCH/arch/arm/include/asm/memory.h:22:25: fatal error: mach/memory.h: No such file or directory
#include <mach/memory.h>
^
compilation terminated.
')

I installed the kernel headers package linux-odroid-c1-headers. It seems that some header files are missing under directory arch/arm/include/asm/mach. I already tried adding a fake memory.h and got another error related timex.h is also missing..
I already run "pacman -Syu", but issue remains.

Is it possible to obtain these missing files and add them to the source tree? Thanks!
Gobam
 
Posts: 2
Joined: Fri Jan 09, 2015 3:07 pm

Re: Odroid C1: Issue compiling application: mach/memory.h

Postby dsc3507 » Tue Jan 20, 2015 4:43 pm

I am having the same problem with dahdi using ubuntu on the odroid-c1 so this is not an OS specific problem. I think we might have to wait for the code to mature a bit unless you have found an answer????
dsc3507
 
Posts: 13
Joined: Sat Apr 12, 2014 5:07 pm

Re: Odroid C1: Issue compiling application: mach/memory.h

Postby Gobam » Mon Feb 23, 2015 2:05 pm

Hi,

I found the way to resolve this problem. As the Odroid C1 is using the Amlogic S805 (meson8b), it's just required to link the correct folders in the kernel headers:

Add the following symlinks within the folder <kernel_header>/arch/arm/include :

mach -> ../mach-meson8b/include/mach
plat -> ../plat-meson/include/plat
Gobam
 
Posts: 2
Joined: Fri Jan 09, 2015 3:07 pm


Return to ARMv7h

Who is online

Users browsing this forum: No registered users and 16 guests