Hi
while building aosp i get this error:
error: 'POWER_HINT_CPU_BOOST' undeclared (first use in this function)
source: https://github.com/gaotxg/android_device_samsung_golden/blob/aosp-4.4.4/opensource/power/power.c 182:10
Hope some one can help me...
no one idea?
Related
Hi, all.
On my device Huawei Vision U8850 install WM-BN-BM-01 chip based on Broadcom BCM4329.
When i build custom kernel from this source https://github.com/GriefNorth/huawei_u8850_kernel_exp (with different name) Wi-Fi stops work.
And i build dhd.ko from this source https://github.com/GriefNorth/usi_bcm4329
Code:
export LINUXDIR=~/path_to_kernel_source/
make -j8 ARCH=arm CROSS_COMPILE=~/build/android-ndk/toolchains/arm-eabi-4.4.0/prebuilt/linux-x86/bin/arm-eabi-
in out i have a kernel module named dhd.ko and put this in phone, but Wi-Fi still not work.
I know if i dont change the kernel name wi-fi will be work correctly. But I want dhd.ko works with custom name.
Please help me find curent source code for this Wi-Fi device. Or fix this source.
Thanks and sorry for my english.
P.S. I use drivers source code from kernel for the Dell Streak 7(used same Wi-Fi chipset) and when compilig kernel i have a some errors
Code:
drivers/net/wireless/bcm4329/dhd_sdio.c: In function 'dhdsdio_probe_malloc':
drivers/net/wireless/bcm4329/dhd_sdio.c:5142: error: 'addr_4329_bus_rxbuf' undeclared (first use in this function)
drivers/net/wireless/bcm4329/dhd_sdio.c:5142: error: (Each undeclared identifier is reported only once
drivers/net/wireless/bcm4329/dhd_sdio.c:5142: error: for each function it appears in.)
drivers/net/wireless/bcm4329/dhd_sdio.c:5142: error: 'BUS_RXBUF_LEN' undeclared (first use in this function)
drivers/net/wireless/bcm4329/dhd_sdio.c:5163: error: 'BUS_DATABUF_LEN' undeclared (first use in this function)
Anyone can help?
anyone?
anyone? help !
someone...?
Code:
CC arch/arm/mach-msm/board-msm7627a-camera.o
arch/arm/mach-msm/board-msm7627a-camera.c: In function 'evb_camera_gpio_cfg':
arch/arm/mach-msm/board-msm7627a-camera.c:545: error: 'msm_camera_sensor_ov5647_data' undeclared (first use in this function)
arch/arm/mach-msm/board-msm7627a-camera.c:545: error: (Each undeclared identifier is reported only once
arch/arm/mach-msm/board-msm7627a-camera.c:545: error: for each function it appears in.)
arch/arm/mach-msm/board-msm7627a-camera.c:586: error: 'msm_camera_sensor_ov7692_data' undeclared (first use in this function)
arch/arm/mach-msm/board-msm7627a-camera.c: At top level:
arch/arm/mach-msm/board-msm7627a-camera.c:1051: error: 'msm_camera_sensor_ov8825' undeclared here (not in a function)
arch/arm/mach-msm/board-msm7627a-camera.c: In function 'msm7627a_camera_init':
arch/arm/mach-msm/board-msm7627a-camera.c:1195: error: 'ov7692_cam_req_gpio' undeclared (first use in this function)
arch/arm/mach-msm/board-msm7627a-camera.c:1195: error: request for member 'gpio' in something not a structure or union
arch/arm/mach-msm/board-msm7627a-camera.c:1196: warning: statement with no effect
error, forbidden warning: board-msm7627a-camera.c:1196
make[1]: *** [arch/arm/mach-msm/board-msm7627a-camera.o] Error 1
make: *** [arch/arm/mach-msm] Error 2
make: *** Waiting for unfinished jobs....
Can anyone help ?
check the include files
forumber2 said:
check the include files
Click to expand...
Click to collapse
Can u plz explain it ? I am not able to get u .
Sent from my S100 using Tapatalk HD
Workaround found
I am getting exactly the same error. But I managed a workaround. Use camera.c from ICS kernel.
1. Goto CAF
2. Choose ICS branch
3. Select any kernel
4. Goto kernels arch/arm/mach-msm/camera.c
5. Download it as raw.(there will be raw link along with tree and other links right under project head line)
6. copy it to same location as in above and paste it there. Make sure you make backup of earlier one.
Done. Worked for me. But you know what? I am now stuck at display.c and io.c . Its really hard without documentation....
Hey guys, sorry if i wasn't supposed to create a thread for this but i am getting this error
Code:
system/core/libion/ion.c: In function 'ion_alloc':
system/core/libion/ion.c:65:3: error: unknown field 'heap_mask' specified in initializer
system/core/libion/ion.c:67:17: warning: initialized field overwritten [-Woverride-init]
system/core/libion/ion.c:67:17: warning: (near initialization for 'data.flags') [-Woverride-init]
system/core/libion/ion.c: In function 'ion_sync_fd':
system/core/libion/ion.c:160:26: error: 'ION_IOC_SYNC' undeclared (first use in this function)
system/core/libion/ion.c:160:26: note: each undeclared identifier is reported only once for each function it appears in
system/core/libion/ion.c:162:1: error: control reaches end of non-void function [-Werror=return-type]
cc1: some warnings being treated as errors
make: *** [out/target/product/glacier/obj/EXECUTABLES/iontest_intermediates/ion.o] Error 1
Thats while compiling CM10.1
I have no idea what is up, i am tearing my hair out over it lol. Thanks in advanced for the help!
THEindian said:
Hey guys, sorry if i wasn't supposed to create a thread for this but i am getting this error
Code:
system/core/libion/ion.c: In function 'ion_alloc':
system/core/libion/ion.c:65:3: error: unknown field 'heap_mask' specified in initializer
system/core/libion/ion.c:67:17: warning: initialized field overwritten [-Woverride-init]
system/core/libion/ion.c:67:17: warning: (near initialization for 'data.flags') [-Woverride-init]
system/core/libion/ion.c: In function 'ion_sync_fd':
system/core/libion/ion.c:160:26: error: 'ION_IOC_SYNC' undeclared (first use in this function)
system/core/libion/ion.c:160:26: note: each undeclared identifier is reported only once for each function it appears in
system/core/libion/ion.c:162:1: error: control reaches end of non-void function [-Werror=return-type]
cc1: some warnings being treated as errors
make: *** [out/target/product/glacier/obj/EXECUTABLES/iontest_intermediates/ion.o] Error 1
Thats while compiling CM10.1
I have no idea what is up, i am tearing my hair out over it lol. Thanks in advanced for the help!
Click to expand...
Click to collapse
bump
anybody?
Hi people
Trying to compile SlimLP for my galaxy tab pro but getting following error:
Code:
target thumb C++: libstagefright <= frameworks/av/media/libstagefright/HTTPBase.cpp
frameworks/av/media/libmediaplayerservice/StagefrightRecorder.cpp: In member function 'android::status_t android::StagefrightRecorder::prepareInternal()':
frameworks/av/media/libmediaplayerservice/StagefrightRecorder.cpp:839:9: error: duplicate case value
case OUTPUT_FORMAT_QCP:
^
frameworks/av/media/libmediaplayerservice/StagefrightRecorder.cpp:816:9: error: previously used here
case OUTPUT_FORMAT_WEBM:
^
frameworks/av/media/libmediaplayerservice/StagefrightRecorder.cpp: In member function 'virtual android::status_t android::StagefrightRecorder::start()':
frameworks/av/media/libmediaplayerservice/StagefrightRecorder.cpp:913:9: error: duplicate case value
case OUTPUT_FORMAT_QCP:
^
frameworks/av/media/libmediaplayerservice/StagefrightRecorder.cpp:892:9: error: previously used here
case OUTPUT_FORMAT_WEBM:
^
bump
Did anyone find this solution of this error? Faced same here when building for Sony Xperia L.
Recently, I have been trying to build Lineage OS 16.0 for my smartphone (Nokia 8). I have created a device tree, vendor tree and downloaded the kernel sources. However everytime I try to build, at around 63% it gives weird compilation errors. Here is the error message. I am building with WSL 2 environment;
Code:
[ 5% 2042/39631] //art/dex2oat:libart-dex2oat clang++ art/dex2oat/linker/image_writer.operator_out.cc [arm]
In file included from /mnt/d/dev/android/android/lineage/out/soong/.intermediates/art/dex2oat/art_dex2oat_operator_srcs/gen/art/dex2oat/linker/image_writer.operator_out.cc:3:
In file included from art/dex2oat/linker/image_writer.h:40:
art/compiler/driver/compiler_driver.h:99:18: error: use of undeclared identifier 'Compiler'
Compiler::Kind compiler_kind,
^
art/compiler/driver/compiler_driver.h:145:3: error: unknown type name 'Compiler'
Compiler* GetCompiler() const {
^
art/compiler/driver/compiler_driver.h:348:3: error: use of undeclared identifier 'Compiler'
Compiler::Kind GetCompilerKind() {
^
art/compiler/driver/compiler_driver.h:471:19: error: use of undeclared identifier 'Compiler'
std::unique_ptr<Compiler> compiler_;
^
art/compiler/driver/compiler_driver.h:472:3: error: use of undeclared identifier 'Compiler'
Compiler::Kind compiler_kind_;
^
5 errors generated.
...
ninja: build stopped: subcommand failed.
10:22:23 ninja failed with: exit status 1
#### failed to build some targets (01:49:21 (hh:mm:ss)) ####
Looking at it, the compiler complains that the class 'Compiler' is not defined in the 'compiler_driver.h' file. However looking at this file, it includes the 'compiler.h' which contains the Compiler class. Has anyone ever experienced this error, and is there any way to fix it?