[Q] have a problem when building rom - Android Q&A, Help & Troubleshooting

Code:
target StaticExecutable: su (/host/cm/out/target/product/mione_plus/obj/EXECUTABLES/su_intermediates/LINKED/su)
target StaticExecutable: adbd (/host/cm/out/target/product/mione_plus/obj/EXECUTABLES/adbd_intermediates/LINKED/adbd)
target StaticExecutable: su.recovery (/host/cm/out/target/product/mione_plus/obj/RECOVERY_EXECUTABLES/su.recovery_intermediates/LINKED/su.recovery)
/host/cm/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: /host/cm/out/target/product/mione_plus/obj/RECOVERY_EXECUTABLES/su.recovery_intermediates/../../../external/koush/Superuser/Superuser/jni/su/su.o: in function main:bootable/recovery/su/../../../external/koush/Superuser/Superuser/jni/su/su.c:625: error: undefined reference to 'run_daemon'
/host/cm/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: /host/cm/out/target/product/mione_plus/obj/RECOVERY_EXECUTABLES/su.recovery_intermediates/../../../external/koush/Superuser/Superuser/jni/su/su.o: in function main:bootable/recovery/su/../../../external/koush/Superuser/Superuser/jni/su/su.c:633: error: undefined reference to 'connect_daemon'
/host/cm/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: /host/cm/out/target/product/mione_plus/obj/RECOVERY_EXECUTABLES/su.recovery_intermediates/../../../external/koush/Superuser/Superuser/jni/su/su.o: in function main:bootable/recovery/su/../../../external/koush/Superuser/Superuser/jni/su/su.c:341: error: undefined reference to 'is_daemon'
/host/cm/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: /host/cm/out/target/product/mione_plus/obj/RECOVERY_EXECUTABLES/su.recovery_intermediates/../../../external/koush/Superuser/Superuser/jni/su/su.o: in function main:bootable/recovery/su/../../../external/koush/Superuser/Superuser/jni/su/su.c:341: error: undefined reference to 'daemon_from_uid'
/host/cm/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: /host/cm/out/target/product/mione_plus/obj/RECOVERY_EXECUTABLES/su.recovery_intermediates/../../../external/koush/Superuser/Superuser/jni/su/su.o: in function main:bootable/recovery/su/../../../external/koush/Superuser/Superuser/jni/su/su.c:341: error: undefined reference to 'daemon_from_pid'
collect2: ld returned 1 exit status
make: *** [/host/cm/out/target/product/mione_plus/obj/RECOVERY_EXECUTABLES/su.recovery_intermediates/LINKED/su.recovery] Error 1
make: *** Waiting for unfinished jobs....
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
[email protected]:/host/cm$
who knows how to fix this error?

t238z said:
Code:
target StaticExecutable: su (/host/cm/out/target/product/mione_plus/obj/EXECUTABLES/su_intermediates/LINKED/su)
target StaticExecutable: adbd (/host/cm/out/target/product/mione_plus/obj/EXECUTABLES/adbd_intermediates/LINKED/adbd)
target StaticExecutable: su.recovery (/host/cm/out/target/product/mione_plus/obj/RECOVERY_EXECUTABLES/su.recovery_intermediates/LINKED/su.recovery)
/host/cm/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: /host/cm/out/target/product/mione_plus/obj/RECOVERY_EXECUTABLES/su.recovery_intermediates/../../../external/koush/Superuser/Superuser/jni/su/su.o: in function main:bootable/recovery/su/../../../external/koush/Superuser/Superuser/jni/su/su.c:625: error: undefined reference to 'run_daemon'
/host/cm/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: /host/cm/out/target/product/mione_plus/obj/RECOVERY_EXECUTABLES/su.recovery_intermediates/../../../external/koush/Superuser/Superuser/jni/su/su.o: in function main:bootable/recovery/su/../../../external/koush/Superuser/Superuser/jni/su/su.c:633: error: undefined reference to 'connect_daemon'
/host/cm/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: /host/cm/out/target/product/mione_plus/obj/RECOVERY_EXECUTABLES/su.recovery_intermediates/../../../external/koush/Superuser/Superuser/jni/su/su.o: in function main:bootable/recovery/su/../../../external/koush/Superuser/Superuser/jni/su/su.c:341: error: undefined reference to 'is_daemon'
/host/cm/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: /host/cm/out/target/product/mione_plus/obj/RECOVERY_EXECUTABLES/su.recovery_intermediates/../../../external/koush/Superuser/Superuser/jni/su/su.o: in function main:bootable/recovery/su/../../../external/koush/Superuser/Superuser/jni/su/su.c:341: error: undefined reference to 'daemon_from_uid'
/host/cm/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: /host/cm/out/target/product/mione_plus/obj/RECOVERY_EXECUTABLES/su.recovery_intermediates/../../../external/koush/Superuser/Superuser/jni/su/su.o: in function main:bootable/recovery/su/../../../external/koush/Superuser/Superuser/jni/su/su.c:341: error: undefined reference to 'daemon_from_pid'
collect2: ld returned 1 exit status
make: *** [/host/cm/out/target/product/mione_plus/obj/RECOVERY_EXECUTABLES/su.recovery_intermediates/LINKED/su.recovery] Error 1
make: *** Waiting for unfinished jobs....
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
[email protected]:/host/cm$
who can help me to solve this problem
Click to expand...
Click to collapse
Hi!
I am getting the exact same build error while building JellyBam. Have you found the solution?
Thanks.

Related

[HELP][DEV][JB] build error while compiling Jelly Bean

I have been having issues building Jelly Bean, and I can't find the answers anyway
I know people have had similar issues, but the topic has always just suddenly been dropped
Here are the errors, please help me fix them
http://pastebin.com/LXmRxUPm
Code:
target thumb C++: libSR_AudioIn <= external/srec/audio/AudioIn/UNIX/src/audioinwrapper.cpp
external/srec/audio/AudioIn/UNIX/src/audioinwrapper.cpp: In function 'int AudioSetVolume(int, int)':
external/srec/audio/AudioIn/UNIX/src/audioinwrapper.cpp:155:61: error: invalid conversion from 'int' to 'audio_stream_type_t' [-fpermissive]
frameworks/av/include/media/AudioSystem.h:58:21: error: initializing argument 1 of 'static android::status_t android::AudioSystem::setStreamVolume(audio_stream_type_t, float, audio_io_handle_t)' [-fpermissive]
external/srec/audio/AudioIn/UNIX/src/audioinwrapper.cpp: In function 'int AudioGetVolume(int)':
external/srec/audio/AudioIn/UNIX/src/audioinwrapper.cpp:165:50: error: invalid conversion from 'int' to 'audio_stream_type_t' [-fpermissive]
frameworks/av/include/media/AudioSystem.h:60:21: error: initializing argument 1 of 'static android::status_t android::AudioSystem::getStreamVolume(audio_stream_type_t, float*, audio_io_handle_t)' [-fpermissive]
make: *** [out/target/product/p350/obj/SHARED_LIBRARIES/libSR_AudioIn_intermediates/audioinwrapper.o] Error 1
make: *** Waiting for unfinished jobs....
true
and this one
http://pastebin.com/jf7G1iR2
Code:
target thumb C++: audio.primary.goldfish <= device/generic/goldfish/audio/AudioHardwareGeneric.cpp
device/generic/goldfish/audio/AudioHardwareGeneric.cpp: In function 'android_audio_legacy::AudioHardwareInterface* android_audio_legacy::createAudioHardware()':
device/generic/goldfish/audio/AudioHardwareGeneric.cpp:411:37: error: cannot allocate an object of abstract type 'android_audio_legacy::AudioHardwareGeneric'
device/generic/goldfish/audio/AudioHardwareGeneric.h:105:7: note: because the following virtual functions are pure within 'android_audio_legacy::AudioHardwareGeneric':
hardware/libhardware_legacy/include/hardware_legacy/AudioHardwareInterface.h:342:29: note: virtual android_audio_legacy::AudioStreamOut* android_audio_legacy::AudioHardwareInterface::openOutputStream(uint32_t, audio_output_flags_t, int*, uint32_t*, uint32_t*, android::status_t*)
make: *** [out/target/product/p350/obj/SHARED_LIBRARIES/audio.primary.goldfish_intermediates/AudioHardwareGeneric.o] Error 1
make: *** Waiting for unfinished jobs....
Is there anyone that can help, or does anyone know about anyone that can help?
edit:
forgot to give links to device folders
https://github.com/Team-Pecan/cm_device_lge_p350/tree/jellybean
https://github.com/lgics/cm_device_lge_msm7x27-common
I had this too,use srec from CM.
Bytecode said:
I had this too,use srec from CM.
Click to expand...
Click to collapse
Can you explain to me please? This is my first build that I have set up myself

[SOLVED][Help Request] AudioSystem.h compile errors

I've fixed about 5 errors so far but this following error seems to be confusing for me.
PHP:
target thumb C++: libandroid <= frameworks/base/native/android/looper.cpp
external/srec/audio/AudioIn/UNIX/src/audioinwrapper.cpp: In function 'int AudioSetVolume(int, int)':
external/srec/audio/AudioIn/UNIX/src/audioinwrapper.cpp:155:61: error: invalid conversion from 'int' to 'audio_stream_type_t' [-fpermissive]
frameworks/av/include/media/AudioSystem.h:58:21: error: initializing argument 1 of 'static android::status_t android::AudioSystem::setStreamVolume(audio_stream_type_t, float, audio_io_handle_t)' [-fpermissive]
external/srec/audio/AudioIn/UNIX/src/audioinwrapper.cpp: In function 'int AudioGetVolume(int)':
external/srec/audio/AudioIn/UNIX/src/audioinwrapper.cpp:165:50: error: invalid conversion from 'int' to 'audio_stream_type_t' [-fpermissive]
frameworks/av/include/media/AudioSystem.h:60:21: error: initializing argument 1 of 'static android::status_t android::AudioSystem::getStreamVolume(audio_stream_type_t, float*, audio_io_handle_t)' [-fpermissive]
make: *** [out/target/product/chacha/obj/SHARED_LIBRARIES/libSR_AudioIn_intermediates/audioinwrapper.o] Error 1
make: *** Waiting for unfinished jobs....
Fix:
Use audio srec from cyanogenmod git.
I'm just going to bump this for a final time. Much appreciated if anyone has any suggestions or comments.

{Help}Kernel Compilation Error

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 ?

{Help} Kernel Compilation Error

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 ?

Building Cyanogenmod Recovery error

Hi, im tryng to buld cyanogenmod recovery from source, but im getting this error when i try "make recoveryimage":
-------------------------------------------------------------------------------------------------------
host Executable: clang (/home/diogo/android/system/out/host/linux-x86/obj/EXECUTABLES/clang_intermediates/clang)
/home/diogo/android/system/out/host/linux-x86/obj/EXECUTABLES/clang_intermediates/cc1_main.o: In function `ForcePassLinking':
/home/diogo/android/system/external/llvm/include/llvm/LinkAllPasses.h:116: undefined reference to `llvm::createProfileMetadataLoaderPass()'
/home/diogo/android/system/external/llvm/include/llvm/LinkAllPasses.h:147: undefined reference to `llvm::createPostDomTree()'
/home/diogo/android/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libLLVMAnalysis_intermediates/libLLVMAnalysis.a(ProfileVerifierPass.o): In function `ReadOrAssert':
/home/diogo/android/system/external/llvm/lib/Analysis/ProfileVerifierPass.cpp:204: undefined reference to `llvm:perator<<(llvm::raw_ostream&, std:air<llvm::BasicBlock const*, llvm::BasicBlock const*>)'
/home/diogo/android/system/external/llvm/lib/Analysis/ProfileVerifierPass.cpp:210: undefined reference to `llvm:perator<<(llvm::raw_ostream&, std:air<llvm::BasicBlock const*, llvm::BasicBlock const*>)'
/home/diogo/android/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libLLVMAnalysis_intermediates/libLLVMAnalysis.a(RegionInfo.o): In function `addRequired<llvm:ostDominatorTree>':
/home/diogo/android/system/external/llvm/include/llvm/PassAnalysisSupport.h:56: undefined reference to `llvm:ostDominatorTree::ID'
/home/diogo/android/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libLLVMAnalysis_intermediates/libLLVMAnalysis.a(RegionInfo.o): In function `initializeRegionInfoPassOnce':
/home/diogo/android/system/external/llvm/lib/Analysis/RegionInfo.cpp:853: undefined reference to `llvm::initializePostDominatorTreePass(llvm:assRegistry&)'
/home/diogo/android/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libLLVMAnalysis_intermediates/libLLVMAnalysis.a(RegionInfo.o): In function `llvm::AnalysisResolver::findImplPass(void const*)':
/home/diogo/android/system/external/llvm/include/llvm/PassAnalysisSupport.h:134: undefined reference to `llvm:ostDominatorTree::ID'
/home/diogo/android/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libLLVMAnalysis_intermediates/libLLVMAnalysis.a(RegionInfo.o): In function `llvm:ostDominatorTree& llvm:ass::getAnalysis<llvm:ostDominatorTree>() const':
/home/diogo/android/system/external/llvm/include/llvm/PassAnalysisSupport.h:132: undefined reference to `llvm:ostDominatorTree::ID'
/home/diogo/android/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libLLVMAnalysis_intermediates/libLLVMAnalysis.a(DomPrinter.o): In function `addRequired<llvm:ostDominatorTree>':
/home/diogo/android/system/external/llvm/include/llvm/PassAnalysisSupport.h:56: undefined reference to `llvm:ostDominatorTree::ID'
/home/diogo/android/system/external/llvm/include/llvm/PassAnalysisSupport.h:56: undefined reference to `llvm:ostDominatorTree::ID'
/home/diogo/android/system/external/llvm/include/llvm/PassAnalysisSupport.h:56: undefined reference to `llvm:ostDominatorTree::ID'
/home/diogo/android/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libLLVMAnalysis_intermediates/libLLVMAnalysis.a(DomPrinter.o):/home/diogo/android/system/external/llvm/include/llvm/PassAnalysisSupport.h:56: more undefined references to `llvm:ostDominatorTree::ID' follow
collect2: ld returned 1 exit status
build/core/host_executable.mk:31: recipe for target '/home/diogo/android/system/out/host/linux-x86/obj/EXECUTABLES/clang_intermediates/clang' failed
make: *** [/home/diogo/android/system/out/host/linux-x86/obj/EXECUTABLES/clang_intermediates/clang] Error 1
-----------------------------------------------------------------------------------------------------------
What this means? How to solve it?
Never had this error before :S

Categories

Resources