thoughtpolice / enable_arm_pmu

Enable user-mode access to ARMv7/Linux performance counters
MIT License
79 stars 49 forks source link

Compilation error : Syntax error #4

Open LucasMahieu opened 8 years ago

LucasMahieu commented 8 years ago

Hey,

I try to test this on ARM A9, I tried ' sudo make runtests' and i have this error :

scripts/basic/fixdep: 1: scripts/basic/fixdep: Syntax error: end of file unexpected (expected ")")

Do you know what can be the cause ?

LucasMahieu commented 8 years ago

this kind of problem can be solved by doing : cd /usr/linux sudo make modules_prepare make module_install

A had this error too and this solved it: scripts/mod/modpost: 1: scripts/mod/modpost: �: not found

LucasMahieu commented 8 years ago

I also had tis error : make: *\ /lib/modules/3.14.28/build: No such file or directory

In order to go trough, i did : ln -s /usr/src/linux /lib/modules/3.14.28/build where /usr/src/linux is a symbolic link to my linux kernel sources that I compiled myself

zhiyisun commented 8 years ago

If you are using a Linux distribution, like Ubuntu, CentOS, when you install Kernel header files, it will link /usr/src/linux to /lib/module/{uname -a}/build automatically. If you are using a customised Linux, you may need to do it by yourself. Because some userspace tools (and third party driver installers) can access the source for the running kernel.