I'm running the latest Raspbian from the Raspberry Pi website.
I tried to compile this wireless driver from https://github.com/gnab/rtl8812au that supports Raspberry PI but I run into the following error.
$ make ARCH=arm CROSS_COMPILE= -C /lib/modules/3.18.8-v7+/build M=/home/pi/Desktop/rtl8812au modules make: Entering directory '/lib/modules/3.18.8-v7+/build' CC [M] /home/pi/Desktop/rtl8812au/core/rtw_cmd.o ./scripts/recordmcount: 1: ./scripts/recordmcount: Syntax error: word unexpected (expecting ")") scripts/Makefile.build:257: recipe for target '/home/pi/Desktop/rtl8812au/core/rtw_cmd.o' failed make: *** [/home/pi/Desktop/rtl8812au/core/rtw_cmd.o] Error 2 Makefile:1381: recipe for target '_module_/home/pi/Desktop/rtl8812au' failed make: *** [_module_/home/pi/Desktop/rtl8812au] Error 2 make: Leaving directory '/lib/modules/3.18.8-v7+/build' Makefile:1051: recipe for target 'modules' failed make: *** [modules] Error 2
# Built-in and composite module parts $(obj)/%.o: $(src)/%.c $(recordmcount_source) FORCE $(call cmd,force_checksrc) #<--------------LINE 257 $(call if_changed_rule,cc_o_c)
The code for line 257 looks about right... anyone know what the problem might be?
I have a Raspberry Pi 2.
I tried compiling the kernel on the RPi2 directly and now it seems to work. I didn't want to have to do it on the RPi2 since compiling the kernel takes ages.
I had cross-compiled from an Ubuntu 14.10 64-bit installation since it only took minutes. However, I don't think it liked the kernel being compiled from there. Time to investigate and update this question later with more details.