[fix] Nexus 5x Kernel 3.10.x CONFIG_MODULES Makefile:822: recipe for target 'driver' - Nexus 5X Q&A, Help & Troubleshooting

Hello guys,
this my first post and I want to share how to fix the error when compiling a kernel 3.10.x with the CONFIG_MODULES enabled
the error that comes up is something like
...
LD drivers/staging/qcacld-2.0/wlan.o
LD drivers/staging/qcacld-2.0/built-in.o
LD drivers/staging/built-in.o
Makefile:822: recipe for target 'drivers' failed
make: *** [drivers] Error 2
compiling twice without cleaning you got the entire error
drivers/usb/phy/class-dual-role.c:91:1: error: expected ',' or ';' before 'int'
int dual_role_get_property(struct dual_role_phy_instance *dual_role,
^
scripts/Makefile.build:308: recipe for target 'drivers/usb/phy/class-dual-role.o' failed
make[3]: *** [drivers/usb/phy/class-dual-role.o] Error 1
make[3]: *** Waiting for unfinished jobs....
scripts/Makefile.build:455: recipe for target 'drivers/usb/phy' failed
make[2]: *** [drivers/usb/phy] Error 2
scripts/Makefile.build:455: recipe for target 'drivers/usb' failed
make[1]: *** [drivers/usb] Error 2
make[1]: *** Waiting for unfinished jobs....
Makefile:822: recipe for target 'drivers' failed
make: *** [drivers] Error 2
that is a syntax error, pretty easy to fix:
- open the file drivers/usb/phy/class-dual-role.c within a text editor
- go to line 90
this:
EXPORT_SYMBOL_GPL(dual_role_get_property)
should be
EXPORT_SYMBOL_GPL(dual_role_get_property);
the error was a missing ";" in the end of that line
I hope I have been helpful for the all the developers and compilers who want to enable "the loadable module support"
cheers

thank you
WOW!!! Thank you

Related

[Q] Compile error, TARGET_KEREL_BINARIES, Advice please?

Hello,
I have managed to compile cm10 fine and flash/boot it absolutely no problems.
Now I am trying to build it with a different kernel and recieve the following error:
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/paul/android/system/kernel/samsung/tuna'
make: *** [TARGET_KERNEL_BINARIES] Error 2
make: *** Waiting for unfinished jobs....
I think this is to do with the BoardConfig.mk but sorry I'm a noob.
Any help would be great, thanks.

[SOLVED] Build Error - QCamera2

Can anyone help me resolve this? Thanks in advance!
Code:
device/asus/flo/camera/QCamera2/stack/mm-camera-interface/src/mm_camera.c:1612:23: [COLOR=Red]error[/COLOR]: 'value' is used uninitialized in this function [-Werror=uninitialized]
control.value = *value;
^
device/asus/flo/camera/QCamera2/stack/mm-camera-interface/src/mm_camera.c:680:13: [COLOR=MediumTurquoise][COLOR=DeepSkyBlue]note:[/COLOR] [/COLOR]'value' was declared here
int32_t value;
^
arget thumb C: libFFTEm <= external/neven/Embedded/common/src/b_TensorEm/Int32Mat.c
target thumb C: libFFTEm <= external/neven/Embedded/common/src/b_TensorEm/MapSequence.c
target thumb C: libFFTEm <= external/neven/Embedded/common/src/b_TensorEm/Mat.c
cc1: all warnings being treated as errors
make: *** [out/target/product/flo/obj/SHARED_LIBRARIES/libmmcamera_interface_intermediates/src/mm_camera.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** wait: No child processes. Stop.
**Fixed it

compile error ?? help please

target thumb C++: libandroid_servers <= frameworks/base/services/jni/onload.cpp
target thumb C++: libdashplayer <= hardware/qcom/media-caf-new/dashplayer/DashPlayerDecoder.cpp
hardware/qcom/media-caf-new/dashplayer/DashPlayerDecoder.cpp:24:25: fatal error: QCMediaDefs.h: No such file or directory
compilation terminated.
make: *** [/home/subatomicone/android/out/target/product/hlte/obj/SHARED_LIBRARIES/libdashplayer_intermediates/DashPlayerDecoder.o] Error 1
make: *** Waiting for unfinished jobs....
Total time elapsed: 7 minutes (443.808555530 seconds)
this is where it ends building using legacy and for HLTE note 3

Compile stock Lolipop kernel

I've downloaded stock kernel source from this website, the problem is that I get this error when compiling:
Code:
[email protected]:~/kernel$ make
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: 'include/generated/mach-types.h' is up to date.
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
CHK kernel/config_data.h
CC drivers/leds/leds-qpnp.o
drivers/leds/leds-qpnp.c: In function ‘qpnp_led_set’:
drivers/leds/leds-qpnp.c:2213:14: error: ‘led_sequence_lock’ undeclared (first use in this function)
mutex_lock(&led_sequence_lock); /* RGB LED synchronize in kddi */
^
drivers/leds/leds-qpnp.c:2213:14: note: each undeclared identifier is reported only once for each function it appears in
scripts/Makefile.build:307: recipe for target 'drivers/leds/leds-qpnp.o' failed
make[2]: *** [drivers/leds/leds-qpnp.o] Error 1
scripts/Makefile.build:443: recipe for target 'drivers/leds' failed
make[1]: *** [drivers/leds] Error 2
Makefile:951: recipe for target 'drivers' failed
make: *** [drivers] Error 2
[email protected]:~/kernel$
I didn't modify anything, I am using arm-linux-gnueabi-linaro_4.8.4-2014.11 toolchain, thanks
I managed to get it to compile, there are some files that need to be fixed first in order to get it working :good:

[CM 13]Error when compile rom

Hello,
When compile the rom occurs such error(sorry for my bad launguage, i'm from Poland)
Code:
deprecated-register]
register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[
^~~~~~~~~
/root/CM13/out/host/linux-x86/obj/EXECUTABLES/rsg-generator_support_intermediates/spec.cpp:1462:3: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
register char *source =
^~~~~~~~~
19 warnings generated.
Import includes file: /root/CM13/out/target/product/w55n/obj/SHARED_LIBRARIES/libblasV8_intermediates/import_includes
target thumb C++: libF77blasV8 <= external/eigen/blas/single.cpp
target thumb C++: libF77blasV8 <= external/eigen/blas/double.cpp
make: *** [/root/CM13/out/target/product/w55n/obj/STATIC_LIBRARIES/libF77blasV8_intermediates/single.o] Killed
make: *** Waiting for unfinished jobs....
make: *** [/root/CM13/out/target/product/w55n/obj/STATIC_LIBRARIES/libF77blasV8_intermediates/double.o] Killed
make: Leaving directory `/root/CM13'
I make device tree for w55n from device tree w5

Categories

Resources