Android 9.0 compiling issue Qcom Display - Nexus 6 Developer Discussion [Developers Only]

Build error when compiling Pie!
Hardware/Qcom/display/msm8084/libqdutils/qdMetaDat.cpp:51.26: error: implicit conversion changes signedness: 'int' to 'unsigned long' [-Werror, -Wsign-conversion]. I can't seem to get past this error no matter how hard I try. Help!

Rondeau79 said:
Build error when compiling Pie!
Hardware/Qcom/display/msm8084/libqdutils/qdMetaDat.cpp:51.26: error: implicit conversion changes signedness: 'int' to 'unsigned long' [-Werror, -Wsign-conversion]. I can't seem to get past this error no matter how hard I try. Help!
Click to expand...
Click to collapse
What ROM are you trying to build? What device trees and HALs are you using?
Nitin

https://github.com/LineageOS/androi...643e101#diff-382f053c8c7f49bf3654e2514806ebca

Thanks!

Related

[Q] Compiling ICS

Hi i'm trying to build ICS Source but i'm getting this error:
HTML:
make: *** No rule to make target `out/target/product/ace/obj/STATIC_LIBRARIES/libaudiointerface_intermediates/libaudiointerface.a', needed by `out/target/product/ace/obj/SHARED_LIBRARIES/libaudio_intermediates/LINKED/libaudio.so'. Stop.
make: *** Waiting for unfinished jobs....
target thumb C++: libaudio <= hardware/msm7k/libaudio-qdsp5v2/AudioHardware.cpp
In file included from hardware/msm7k/libaudio-qdsp5v2/AudioHardware.cpp:34:
hardware/msm7k/libaudio-qdsp5v2/AudioHardware.h:51: error: expected class-name before '{' token
hardware/msm7k/libaudio-qdsp5v2/AudioHardware.h:70: error: ISO C++ forbids declaration of 'AudioStreamOut' with no type
hardware/msm7k/libaudio-qdsp5v2/AudioHardware.h:70: error: 'AudioStreamOut' declared as a 'virtual' field
hardware/msm7k/libaudio-qdsp5v2/AudioHardware.h:70: error: expected ';' before '*' token
hardware/msm7k/libaudio-qdsp5v2/AudioHardware.h:77: error: ISO C++ forbids declaration of 'AudioStreamIn' with no type
hardware/msm7k/libaudio-qdsp5v2/AudioHardware.h:77: error: 'AudioStreamIn' declared as a 'virtual' field
hardware/msm7k/libaudio-qdsp5v2/AudioHardware.h:77: error: expected ';' before '*' token
hardware/msm7k/libaudio-qdsp5v2/AudioHardware.h:85: error: 'AudioStreamOut' has not been declared
hardware/msm7k/libaudio-qdsp5v2/AudioHardware.h:86: error: 'AudioStreamIn' has not been declared
hardware/msm7k/libaudio-qdsp5v2/AudioHardware.h:97: error: expected class-name before '{' token
hardware/msm7k/libaudio-qdsp5v2/AudioHardware.h: In member function 'virtual int android::AudioHardware::AudioStreamOutQ5V2::format() const':
hardware/msm7k/libaudio-qdsp5v2/AudioHardware.h:110: error: 'AudioSystem' has not been declared
hardware/msm7k/libaudio-qdsp5v2/AudioHardware.h: In member function 'virtual uint32_t android::AudioHardware::AudioStreamOutQ5V2::latency() const':
hardware/msm7k/libaudio-qdsp5v2/AudioHardware.h:111: error: 'frameSize' was not declared in this scope
hardware/msm7k/libaudio-qdsp5v2/AudioHardware.cpp: In destructor 'virtual android::AudioHardware::~AudioHardware()':
hardware/msm7k/libaudio-qdsp5v2/AudioHardware.cpp:53: error: 'AudioStreamOut' was not declared in this scope
hardware/msm7k/libaudio-qdsp5v2/AudioHardware.cpp:53: error: expected primary-expression before ')' token
hardware/msm7k/libaudio-qdsp5v2/AudioHardware.cpp: At global scope:
hardware/msm7k/libaudio-qdsp5v2/AudioHardware.cpp:62: error: expected constructor, destructor, or type conversion before '*' token
hardware/msm7k/libaudio-qdsp5v2/AudioHardware.cpp:341: error: expected '}' at end of input
make: *** [out/target/product/ace/obj/SHARED_LIBRARIES/libaudio_intermediates/AudioHardware.o] Error 1
i have tryed many things to fix this erro but no success
i hope some one can help me
bump
Sent from my SGH-T959 using xda premium
Many devs face this error and they are fighting with this.
I just started compiling android but did finish a successful build at 05:00am this morning and didn't get (or see) this error but, no i'm expert by any means..
Considering the error:
No rule to make target `out/target/product/ace/obj/STATIC_LIBRARIES/libaudiointerface_intermediates/libaudiointerface.a', needed by....
Click to expand...
Click to collapse
It literally says its missing something, the rule, so would it be an idea to resync repo perhaps ?
I resynced last night and there were no changes. But, yes, resyncing is important... You never know when Google will drop more source, and they may or may not announce it via mailinglist.
Inspire 4G // BlackICE
Try compiling for tuna/maguro/panda first
Also, try removing libaudio folder from device folder, and if your device has aosp then try using libaudio from there(assuming you are using device from cm7)
I also face with this error ... Maybe something is wrong in include/media
I'm getting this error for my passion.
Ive gotten a little farther by changing the namespace from android to android_audio_legacy as they did it hardware/libhardware_legacy/include/hardware_legacy/
Has anyone managed to fix this problem yet?
But it will still conpiling. Not a big problem. We can fix this later.
Sent from Xperia X10 Self-modded
I can't even seen to compile for tuna keep getting errors on llvm. I compile cm7 so my builds setup is good. Confused
texasice said:
I'm getting this error for my passion.
Ive gotten a little farther by changing the namespace from android to android_audio_legacy as they did it hardware/libhardware_legacy/include/hardware_legacy/
Click to expand...
Click to collapse
Could you pastebin the modded file or generate an .patch file for your change ?
@up I also face with llvm error Do someone have fixed that issue ?
mikegapinski said:
Could you pastebin the modded file or generate an .patch file for your change ?
@up I also face with llvm error Do someone have fixed that issue ?
Click to expand...
Click to collapse
in AudioHardware.h line 28 change :
Code:
namespace android {
as mentioned to :
Code:
namespace android_audio_legacy {
I tried it myself just by curiosity and it leads to these errors :
Code:
target thumb C++: libaudio <= hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp
In file included from hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:37:
hardware/msm7k/libaudio-qsd8k/AudioHardware.h:318: error: 'Mutex' does not name a type
hardware/msm7k/libaudio-qsd8k/AudioHardware.h:328: error: ISO C++ forbids declaration of 'SortedVector' with no type
hardware/msm7k/libaudio-qsd8k/AudioHardware.h:328: error: expected ';' before '<' token
hardware/msm7k/libaudio-qsd8k/AudioHardware.h:337: error: 'Mutex' does not name a type
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:92: error: 'AudioHardware' has not been declared
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:102: error: 'AudioHardware' has not been declared
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:102: error: ISO C++ forbids declaration of 'AudioHardware' with no type
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp: In function 'int android::AudioHardware()':
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:103: error: only constructors take base initializers
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:109: error: 'TTY_MODE_OFF' was not declared in this scope
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:112: error: 'msm_bt_endpoint' was not declared in this scope
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:112: error: expected primary-expression before ')' token
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:116: error: invalid type in declaration before ';' token
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:118: error: 'doA1026_init' was not declared in this scope
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:124: error: 'mNumBTEndpoints' was not declared in this scope
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:125: error: 'mInit' was not declared in this scope
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:126: error: return-statement with no value, in function returning 'int'
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:131: error: return-statement with no value, in function returning 'int'
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:158: error: 'mNumBTEndpoints' was not declared in this scope
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:160: error: 'mBTEndpoints' was not declared in this scope
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:160: error: expected type-specifier before 'msm_bt_endpoint'
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:160: error: expected ';' before 'msm_bt_endpoint'
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:161: error: 'mInit' was not declared in this scope
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:164: error: expected primary-expression before 'int'
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:164: error: expected ')' before 'int'
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:167: error: return-statement with no value, in function returning 'int'
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:169: error: 'snd_get_bt_endpoint' cannot be used as a function
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:206: error: no return statement in function returning non-void
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp: At global scope:
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:208: error: expected constructor, destructor, or type conversion before '::' token
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:2025: error: expected '}' at end of input
make: *** [out/target/product/passion/obj/SHARED_LIBRARIES/libaudio_intermediates/AudioHardware.o] Error 1
Any update on this? I had to add LOCAL_MODULE_TAGS := optional to some of the Android.mk to even reach that far. Faulty code from Google or am I doing something wrong myself?
Ive gotten past this by just removing the libaudio* folders from the Android.mk
It at least results in a system.img for the passion
In hardwark/msm7k/Android.mk
for mine qsd8k
from
Code:
common_msm_dirs := libcopybit liblights libopencorehw librpc libstagefrighthw
msm7k_dirs := $(common_msm_dirs) boot libgralloc libaudio
qsd8k_dirs := $(common_msm_dirs) libgralloc-qsd8k libaudio-qsd8k dspcrashd
msm7x30_dirs := liblights libgralloc-qsd8k librpc libaudio-qdsp5v2
to
Code:
common_msm_dirs := libcopybit liblights libopencorehw librpc libstagefrighthw
msm7k_dirs := $(common_msm_dirs) boot libgralloc libaudio
qsd8k_dirs := $(common_msm_dirs) dspcrashd
msm7x30_dirs := liblights libgralloc-qsd8k librpc libaudio-qdsp5v2
i also removed libgralloc cause it causes the screen to not work.
mikegapinski said:
Could you pastebin the modded file or generate an .patch file for your change ?
@up I also face with llvm error Do someone have fixed that issue ?
Click to expand...
Click to collapse
for go past llvm errors i've excluded -Werror in frameworks/compile/slang/Android.mk (local_cflags_for_slang line)
Fix, er, well, lets it build...
On the libaudio issue in msm7k for ICS:
Okay, after mucking around with it for a bit, it looks like it was an issue with namespaces, and things having the same name. So what I did to get it to compile is I went through and specified everything to use the android_audio_legacy namespace except for the things that needed to be on the android namespace.
I also slapped on a definition for 2 methods that were undefined. I do not know if it will work, but it does build.
My diff is here: http://pastebin.com/iP7FSa0C
Disclaimers:
C++ is not my primary language, actually, its not a language I know much of at all
I have not been able to test it, I can only verify that it builds, which I assume is better than having to remove the makefile.
I pretty much did the same thing as jbcode42
It builds but doesnt work.
http://pastebin.com/JGYBKfSs
I sow that libaudio.so is no more used in ICS i think ... Now it is an module under system/hw ex. audio.primary.goldfish ... We will need to wait for new soruces from CM or CA to get rid of the errors ...
lupohirp said:
for go past llvm errors i've excluded -Werror in frameworks/compile/slang/Android.mk (local_cflags_for_slang line)
Click to expand...
Click to collapse
Thanks for this. Any ideas why that error is coming up? It seems like others have got it to compile without modifications. What is everyone compiling on? I am on Ubuntu 11.10 with GCC 4.6.1

Build Error

I just attempted my first rom building from source. I was using the repo off of Cyanogenmod's github. Long story short I was attempting to build a kitkat rom for the jflteatt ala Samsung Galaxy S4. I repo synced and attempted to build, I got back some errors and was hoping someone might could help. It might be a simple mistake since this is my first attempt at building a rom from source on my own.
http://pastebin.com/3D0r0QUk
Heres a snippet, of course go to paste bin for better view
Code:
hardware/qcom/audio-caf/legacy/alsa_sound/AudioHardwareALSA.h:863:5: error: expected unqualified-id at end of input
hardware/qcom/audio-caf/legacy/alsa_sound/AudioHardwareALSA.h:863:5: error: expected '}' at end of input
hardware/qcom/audio-caf/legacy/alsa_sound/ALSAStreamOps.cpp:40:1: error: expected unqualified-id before 'namespace'
hardware/qcom/audio-caf/legacy/alsa_sound/ALSAStreamOps.cpp:499:1: error: expected '}' at end of input
In file included from hardware/qcom/audio-caf/legacy/alsa_sound/ALSAStreamOps.cpp:38:0:
hardware/qcom/audio-caf/legacy/alsa_sound/AudioHardwareALSA.h:863:5: error: expected unqualified-id at end of input
hardware/qcom/audio-caf/legacy/alsa_sound/AudioHardwareALSA.h:863:5: error: expected '}' at end of input
make: *** [/home/leroy/cyanogen/out/target/product/jflteatt/obj/SHARED_LIBRARIES/audio.primary.msm8960_intermediates/AudioStreamInALSA.o] Error 1
make: *** [/home/leroy/cyanogen/out/target/product/jflteatt/obj/SHARED_LIBRARIES/audio.primary.msm8960_intermediates/ALSAStreamOps.o] Error 1
Thanks,
Leroy

[Q&A, Noobs & Pros] The Build, Compile, Port help and guidance thread

Thought I'd start up a general thread where we can come to ask and answer general android building questions. I've been guilty myself of high jacking threads for questions and answering questions regarding porting, compiling, building, etc. Figured I'd try to start up a general thread for just that topic.
I'll start. Having some issues with external/jpeg.
Code:
external/jpeg/jddctmgr.c:350: error: undefined reference to 'jpeg_idct_islow'
external/jpeg/jddctmgr.c:340: error: undefined reference to 'jpeg_idct_ifast'
Have never seen that error before, I'm comparing it to other ROMs that I've built and the file is exactly the same. Not sure what else is linked to it.
@danjull Did you ever find the solution to this? How do you go about troubleshooting build errors (in general)? Do you usually look at what other files that file calls for or so you just kind of stumble through the while source looking for clues?
Sent from my Droid DNA using Tapatalk Pro
jamiethemorris said:
@danjull Did you ever find the solution to this? How do you go about troubleshooting build errors (in general)? Do you usually look at what other files that file calls for or so you just kind of stumble through the while source looking for clues?
Sent from my Droid DNA using Tapatalk Pro
Click to expand...
Click to collapse
I haven't yet.
It's a mix. Sometimes it's luck, sometimes it's clear enough so you can just follow the paths. I usually compare the problem source file to CM or another source I know works. Look at commits that happen after a known good build.
danjull said:
I haven't yet.
It's a mix. Sometimes it's luck, sometimes it's clear enough so you can just follow the paths. I usually compare the problem source file to CM or another source I know works. Look at commits that happen after a known good build.
Click to expand...
Click to collapse
Okay, cool. That's pretty much what I've been doing. I've also been doing diff -r between the cm11 source and the rom I'm building for folders that I think may be problematic and printing it to a file. So if you have the cm11 source locally you could try using that for external/jpeg or just external. I tried meld for this sort of thing too, but it didn't seem to be to helpful when it comes to entire directories.
Sent from my Droid DNA using Tapatalk Pro
isnt that gcc related as in the variable isnt defined as used?
figured i should post somewhere where i can find other devs(rather than the omni thread lol)
i got these errors today while building slimkat and after searching every line of code in the whole source, it was only reference once and that was the line that through the error
it makes it more difficult because this is the out/ folder so i really cant compare to CM11:
Code:
/home/zach/android.SlimKat/system/out/target/product/dlx/obj/GYP/shared_intermediates/blink/bindings/V8SVGAElement.cpp:71: error: undefined reference to 'WebCore::SVGAElement::svgTarget()'
/home/zach/android.SlimKat/system/out/target/product/dlx/obj/GYP/shared_intermediates/blink/bindings/V8SVGAElement.cpp:99: error: undefined reference to 'WebCore::SVGAElement::href()'
/home/zach/android.SlimKat/system/out/target/product/dlx/obj/GYP/shared_intermediates/blink/bindings/V8SVGAElement.cpp:85: error: undefined reference to 'WebCore::SVGAElement::externalResourcesRequired()'
/home/zach/android.SlimKat/system/out/target/product/dlx/obj/STATIC_LIBRARIES/third_party_WebKit_Source_core_webcore_derived_gyp_intermediates/SVGElementFactory.cpp:134: error: undefined reference to 'WebCore::SVGAElement::create(WebCore::QualifiedName const&, WebCore::Document*)'
i havent had any success with this
EDIT: nuketown 2025 population slimkat (da fuq did i just say?)
anyways resyncing the repos tonight, maybe it will be better to just start over
EDIT: nuking solves all problems
I'm trying to build tripndroid, I ran into a few other errors that I fixed already, but I'm hitting this now
Code:
In file included from frameworks/av/services/audioflinger/Tracks.cpp:32:0:
frameworks/av/services/audioflinger/AudioFlinger.h:518:5: error: expected class-name before '{' token
In file included from frameworks/av/services/audioflinger/Effects.cpp:30:0:
frameworks/av/services/audioflinger/AudioFlinger.h:518:5: error: expected class-name before '{' token
frameworks/av/services/audioflinger/Effects.cpp: In member function 'android::sp<android::AudioFlinger::EffectModule> android::AudioFlinger::EffectChain::getEffectFromIndex_l(int)':
frameworks/av/services/audioflinger/Effects.cpp:1343:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
make: *** [/run/media/jamiethemorris/LinuxExternal/android/tripndroid_kk/out/target/product/dlx/obj/SHARED_LIBRARIES/libaudioflinger_intermediates/Tracks.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [/run/media/jamiethemorris/LinuxExternal/android/tripndroid_kk/out/target/product/dlx/obj/SHARED_LIBRARIES/libaudioflinger_intermediates/Effects.o] Error 1
In file included from frameworks/av/media/mediaserver/main_mediaserver.cpp:32:0:
frameworks/av/services/audioflinger/AudioFlinger.h:518:5: error: expected class-name before '{' token
make: *** [/run/media/jamiethemorris/LinuxExternal/android/tripndroid_kk/out/target/product/dlx/obj/EXECUTABLES/mediaserver_intermediates/main_mediaserver.o] Error 1
In file included from frameworks/av/services/audioflinger/AudioFlinger.cpp:46:0:
frameworks/av/services/audioflinger/AudioFlinger.h:518:5: error: expected class-name before '{' token
In file included from frameworks/av/services/audioflinger/AudioFlinger.cpp:46:0:
frameworks/av/services/audioflinger/AudioFlinger.h: In constructor 'android::AudioFlinger::AudioFlinger()':
frameworks/av/services/audioflinger/AudioFlinger.h:833:13: warning: 'android::AudioFlinger::mGlobalEffectEnableTime' will be initialized after [-Wreorder]
In file included from frameworks/av/services/audioflinger/AudioFlinger.cpp:46:0:
frameworks/av/services/audioflinger/AudioFlinger.h:779:31: warning: 'volatile bool android::AudioFlinger::mAllChainsLocked' [-Wreorder]
frameworks/av/services/audioflinger/AudioFlinger.cpp:146:1: warning: when initialized here [-Wreorder]
frameworks/av/services/audioflinger/AudioFlinger.cpp: In member function 'virtual android::sp<android::IDirectTrack> android::AudioFlinger::createDirectTrack(pid_t, uint32_t, audio_channel_mask_t, audio_io_handle_t, int*, android::IDirectTrackClient*, audio_stream_type_t, android::status_t*)':
frameworks/av/services/audioflinger/AudioFlinger.cpp:651:9: error: 'AudioEventObserver' was not declared in this scope
frameworks/av/services/audioflinger/AudioFlinger.cpp:651:29: error: 'obv' was not declared in this scope
frameworks/av/services/audioflinger/AudioFlinger.cpp:651:48: error: expected type-specifier before 'AudioEventObserver'
frameworks/av/services/audioflinger/AudioFlinger.cpp:651:48: error: expected '>' before 'AudioEventObserver'
frameworks/av/services/audioflinger/AudioFlinger.cpp:651:48: error: expected '(' before 'AudioEventObserver'
frameworks/av/services/audioflinger/AudioFlinger.cpp:651:68: error: expected primary-expression before '>' token
frameworks/av/services/audioflinger/AudioFlinger.cpp:651:82: error: expected ')' before ';' token
frameworks/av/services/audioflinger/AudioFlinger.cpp:653:23: error: 'audio_stream_out_t' has no member named 'set_observer'
make: *** [/run/media/jamiethemorris/LinuxExternal/android/tripndroid_kk/out/target/product/dlx/obj/SHARED_LIBRARIES/libaudioflinger_intermediates/AudioFlinger.o] Error 1
In file included from frameworks/av/services/audioflinger/Threads.cpp:52:0:
frameworks/av/services/audioflinger/AudioFlinger.h:518:5: error: expected class-name before '{' token
In file included from frameworks/av/services/audioflinger/AudioFlinger.h:440:0,
from frameworks/av/services/audioflinger/Threads.cpp:52:
frameworks/av/services/audioflinger/Threads.h: In constructor 'android::AudioFlinger::PlaybackThread::PlaybackThread(const android::sp<android::AudioFlinger>&, android::AudioFlinger::AudioStreamOut*, audio_io_handle_t, audio_devices_t, android::AudioFlinger::ThreadBase::type_t)':
frameworks/av/services/audioflinger/Threads.h:628:14: warning: 'android::AudioFlinger::PlaybackThread::mScreenState' will be initialized after [-Wreorder]
frameworks/av/services/audioflinger/Threads.h:564:26: warning: 'audio_output_flags_t android::AudioFlinger::PlaybackThread::mOutputFlags' [-Wreorder]
frameworks/av/services/audioflinger/Threads.cpp:1050:1: warning: when initialized here [-Wreorder]
In file included from frameworks/av/services/audioflinger/Threads.cpp:52:0:
frameworks/av/services/audioflinger/AudioFlinger.h: In constructor 'android::AudioFlinger::DirectAudioTrack::DirectAudioTrack(const android::sp<android::AudioFlinger>&, int, android::AudioFlinger::AudioSessionDescriptor*, android::IDirectTrackClient*, audio_output_flags_t)':
frameworks/av/services/audioflinger/AudioFlinger.h:594:26: warning: 'android::AudioFlinger::DirectAudioTrack::mAudioFlinger' will be initialized after [-Wreorder]
frameworks/av/services/audioflinger/AudioFlinger.h:541:13: warning: 'int android::AudioFlinger::DirectAudioTrack::mOutput' [-Wreorder]
frameworks/av/services/audioflinger/Threads.cpp:5494:1: warning: when initialized here [-Wreorder]
In file included from frameworks/av/services/audioflinger/Threads.cpp:52:0:
frameworks/av/services/audioflinger/AudioFlinger.h:541:13: warning: 'android::AudioFlinger::DirectAudioTrack::mOutput' will be initialized after [-Wreorder]
frameworks/av/services/audioflinger/AudioFlinger.h:540:33: warning: 'android::AudioFlinger::AudioSessionDescriptor* android::AudioFlinger::DirectAudioTrack::mOutputDesc' [-Wreorder]
frameworks/av/services/audioflinger/Threads.cpp:5494:1: warning: when initialized here [-Wreorder]
In file included from frameworks/av/services/audioflinger/Threads.cpp:52:0:
frameworks/av/services/audioflinger/AudioFlinger.h:540:33: warning: 'android::AudioFlinger::DirectAudioTrack::mOutputDesc' will be initialized after [-Wreorder]
frameworks/av/services/audioflinger/AudioFlinger.h:539:29: warning: 'android::IDirectTrackClient* android::AudioFlinger::DirectAudioTrack::mClient' [-Wreorder]
frameworks/av/services/audioflinger/Threads.cpp:5494:1: warning: when initialized here [-Wreorder]
In file included from frameworks/av/services/audioflinger/Threads.cpp:52:0:
frameworks/av/services/audioflinger/AudioFlinger.h:574:14: warning: 'android::AudioFlinger::DirectAudioTrack::mEffectConfigChanged' will be initialized after [-Wreorder]
frameworks/av/services/audioflinger/AudioFlinger.h:572:14: warning: 'bool android::AudioFlinger::DirectAudioTrack::mKillEffectsThread' [-Wreorder]
frameworks/av/services/audioflinger/Threads.cpp:5494:1: warning: when initialized here [-Wreorder]
In file included from frameworks/av/services/audioflinger/Threads.cpp:52:0:
frameworks/av/services/audioflinger/AudioFlinger.h:572:14: warning: 'android::AudioFlinger::DirectAudioTrack::mKillEffectsThread' will be initialized after [-Wreorder]
frameworks/av/services/audioflinger/AudioFlinger.h:543:30: warning: 'audio_output_flags_t android::AudioFlinger::DirectAudioTrack::mFlag' [-Wreorder]
frameworks/av/services/audioflinger/Threads.cpp:5494:1: warning: when initialized here [-Wreorder]
frameworks/av/services/audioflinger/Threads.cpp: In member function 'virtual android::status_t android::AudioFlinger::DirectAudioTrack::start()':
frameworks/av/services/audioflinger/Threads.cpp:5565:30: error: 'audio_stream_out_t' has no member named 'start'
frameworks/av/services/audioflinger/Threads.cpp: In member function 'virtual void android::AudioFlinger::DirectAudioTrack::stop()':
frameworks/av/services/audioflinger/Threads.cpp:5577:26: error: 'audio_stream_out_t' has no member named 'stop'
frameworks/av/services/audioflinger/Threads.cpp: In member function 'virtual ssize_t android::AudioFlinger::DirectAudioTrack::write(const void*, size_t)':
frameworks/av/services/audioflinger/Threads.cpp:5593:26: error: 'audio_stream_out_t' has no member named 'is_buffer_available'
frameworks/av/services/audioflinger/Threads.cpp: In member function 'void android::AudioFlinger::DirectAudioTrack::allocateBufPool()':
frameworks/av/services/audioflinger/Threads.cpp:5667:26: error: 'audio_stream_out_t' has no member named 'get_buffer_info'
frameworks/av/services/audioflinger/Threads.cpp:5673:20: error: invalid use of incomplete type 'struct android::AudioFlinger::DirectAudioTrack::allocateBufPool()::buf_info'
frameworks/av/services/audioflinger/Threads.cpp:5666:12: error: forward declaration of 'struct android::AudioFlinger::DirectAudioTrack::allocateBufPool()::buf_info'
frameworks/av/services/audioflinger/Threads.cpp:5674:26: error: invalid use of incomplete type 'struct android::AudioFlinger::DirectAudioTrack::allocateBufPool()::buf_info'
frameworks/av/services/audioflinger/Threads.cpp:5666:12: error: forward declaration of 'struct android::AudioFlinger::DirectAudioTrack::allocateBufPool()::buf_info'
frameworks/av/services/audioflinger/Threads.cpp:5678:30: error: invalid use of incomplete type 'struct android::AudioFlinger::DirectAudioTrack::allocateBufPool()::buf_info'
frameworks/av/services/audioflinger/Threads.cpp:5666:12: error: forward declaration of 'struct android::AudioFlinger::DirectAudioTrack::allocateBufPool()::buf_info'
I don't even know where to start with that... This is the part it's complaining about in Audioflinger.h:
Code:
#ifdef QCOM_HARDWARE
// server side of the client's IAudioTrack
class DirectAudioTrack : public android::BnDirectTrack,
public AudioEventObserver
{
I think maybe it's missing an #include or something? I just don't understand why I'm getting all of these errors. I would assume anyone building the ROM would get the same ones?
jamiethemorris said:
I'm trying to build tripndroid, I ran into a few other errors that I fixed already, but I'm hitting this now
Code:
In file included from frameworks/av/services/audioflinger/Tracks.cpp:32:0:
frameworks/av/services/audioflinger/AudioFlinger.h:518:5: error: expected class-name before '{' token
I think maybe it's missing an #include or something? I just don't understand why I'm getting all of these errors. I would assume anyone building the ROM would get the same ones?
Click to expand...
Click to collapse
What have java version are you using?
Sent from my HTC6435LVW using xda app-developers app
danjull said:
What have java version are you using?
Sent from my HTC6435LVW using xda app-developers app
Click to expand...
Click to collapse
I'll have to check when I get home. I'm pretty sure I'm using open jdk6 though.
Sent from my Droid DNA using Tapatalk Pro
---------- Post added at 07:23 PM ---------- Previous post was at 06:57 PM ----------
java version "1.6.0_51"
Java(TM) SE Runtime Environment (build 1.6.0_51-b09)
Java HotSpot(TM) 64-Bit Server VM (build 20.51-b01, mixed mode)
I'm giving up on tripndroid for now... I'm trying to build liquidsmooth now and I'm running into a kernel error. I couldn't see what it was because it happened too far back when it stopped. So I tried to build the kernel individually using linaro 4.8 and it stopped in the same place so I'm pretty sure it's the same error:
Code:
drivers/video/msm/mdp.c: In function 'mdp_hist_lut_write_off':
drivers/video/msm/mdp.c:400:1: warning: the frame size of 1032 bytes is larger than 1024 bytes [-Wframe-larger-than=]
error, forbidden warning: mdp.c:400
I think it has to do with linaro because I didn't have any problems building ProBam today with the same kernel... I also tried building the ProBam kernel by itself and it gave me the same error.
EDIT: Well, I used crpalmer's kernel instead and it built perfectly fine... Not the perfect solution though.
Liquid won't flash. No idea why. It just reboots instantly as soon as it starts flashing.
Sent from my iPad using Tapatalk
jamiethemorris said:
I'm giving up on tripndroid for now... I'm trying to build liquidsmooth now and I'm running into a kernel error. I couldn't see what it was because it happened too far back when it stopped. So I tried to build the kernel individually using linaro 4.8 and it stopped in the same place so I'm pretty sure it's the same error:
Code:
drivers/video/msm/mdp.c: In function 'mdp_hist_lut_write_off':
drivers/video/msm/mdp.c:400:1: warning: the frame size of 1032 bytes is larger than 1024 bytes [-Wframe-larger-than=]
error, forbidden warning: mdp.c:400
I think it has to do with linaro because I didn't have any problems building ProBam today with the same kernel... I also tried building the ProBam kernel by itself and it gave me the same error.
EDIT: Well, I used crpalmer's kernel instead and it built perfectly fine... Not the perfect solution though.
Click to expand...
Click to collapse
Search for 1024 in the kernel defconfig that is used. There is an config named something with FRAME that sets the size to warn on. You can change it to 2048 to fix the build.
---------- Post added at 06:13 AM ---------- Previous post was at 06:10 AM ----------
jamiethemorris said:
I'm giving up on tripndroid for now... I'm trying to build liquidsmooth now and I'm running into a kernel error. I couldn't see what it was because it happened too far back when it stopped. So I tried to build the kernel individually using linaro 4.8 and it stopped in the same place so I'm pretty sure it's the same error:
Code:
drivers/video/msm/mdp.c: In function 'mdp_hist_lut_write_off':
drivers/video/msm/mdp.c:400:1: warning: the frame size of 1032 bytes is larger than 1024 bytes [-Wframe-larger-than=]
error, forbidden warning: mdp.c:400
I think it has to do with linaro because I didn't have any problems building ProBam today with the same kernel... I also tried building the ProBam kernel by itself and it gave me the same error.
EDIT: Well, I used crpalmer's kernel instead and it built perfectly fine... Not the perfect solution though.
Click to expand...
Click to collapse
Also, run
brunch dlx 2>&1 | tee /tmp/build.txt
After the build, that tmp file should hold all the text from the build.
crpalmer said:
Search for 1024 in the kernel defconfig that is used. There is an config named something with FRAME that sets the size to warn on. You can change it to 2048 to fix the build.
---------- Post added at 06:13 AM ---------- Previous post was at 06:10 AM ----------
Also, run
brunch dlx 2>&1 | tee /tmp/build.txt
After the build, that tmp file should hold all the text from the build.
Click to expand...
Click to collapse
Thank you. Do you think that has anything to do with why it won't flash?
Sent from my Droid DNA using Tapatalk
jamiethemorris said:
Thank you. Do you think that has anything to do with why it won't flash?
Sent from my Droid DNA using Tapatalk
Click to expand...
Click to collapse
No, the frame size warning is just there to ensure people don't accidentally so something stupid and breaks the build to let them know. 1K is arbitrary so 2K is also fine.
Can someone give me a little explanation on how the manifest works? Like how it knows which branches to pull of each git project? I'm trying to build carbon and it's running into an issue about BluetoothLwPwrProximityMonitor being undefined. For whatever reason the BluetoothLwPwrProximityMonitor.java file was deleted in the cm11 BluetoothExt repo. This was several months ago though. Both CM11 and ProBam build fine, and they don't have any of the pxpmonitorservice stuff. So it looks like they're using the cm-10.2 or stable/cm-11.0 branch. But it the manifests I don't see anything that differentiates which branch they pull from. Basically, I think I need to have Carbon use stable/cm-11.0 instead of cm-11.0 and then I think it will build, but I just want to make sure I'm doing it right.
EDIT: I tried that, but it doesn't matter now because it gives me this all of a sudden:
Code:
make: *** No rule to make target `/run/media/jamiethemorris/LinuxExternal/android/carbon_kk/out/host/linux-x86/bin/mkbootimg', needed by `/run/media/jamiethemorris/LinuxExternal/android/carbon_kk/out/target/product/dlx/boot.img'. Stop.
Really weird. I'm guessing it's misleading. I tried putting BluetoothExt back to how it was but I get the same error. It got way further than this before.
Code:
find -name mkbootimg*
./system/core/mkbootimg
./system/core/mkbootimg/mkbootimg.c
./external/genext2fs/mkbootimg_ext2.sh
Also, liquid is now hitting this kernel error:
Code:
liquidsmooth_kk/kernel/htc/m7/drivers/video/msm/mipi_novatek.c:569:37: warning: argument to ‘sizeof’ in ‘snprintf’ call is the same expression as the destination; did you mean to provide an explicit length? [-Wsizeof-pointer-memaccess]
error, forbidden warning: mipi_novatek.c:569
I don't know why it's having so much trouble. I'm guessing I will find this in the defconfig as well?
Maybe building ROMs is just not for me...
Don't get discouraged. I'm fixing to start learning, and I need you to figure it all out so I can ask you all my noob questions.
Sent from my HTC6435LVW using Tapatalk
armydog13 said:
Don't get discouraged. I'm fixing to start learning, and I need you to figure it all out so I can ask you all my noob questions.
Sent from my HTC6435LVW using Tapatalk
Click to expand...
Click to collapse
Thanks. For starters, read this http://xda-university.com/as-a-developer/getting-started-building-android-from-source and this http://xda-university.com/as-a-developer/porting-aosp-roms-using-source-code also this link is helpful because you will need to sync CM's repos at the same time for the device tree and kernel, and sometimes other repos http://xda-university.com/as-a-developer/repo-tips-tricks
jamiethemorris said:
I'm giving up on tripndroid for now... I'm trying to build liquidsmooth now and I'm running into a kernel error. I couldn't see what it was because it happened too far back when it stopped. So I tried to build the kernel individually using linaro 4.8 and it stopped in the same place so I'm pretty sure it's the same error:
Code:
drivers/video/msm/mdp.c: In function 'mdp_hist_lut_write_off':
drivers/video/msm/mdp.c:400:1: warning: the frame size of 1032 bytes is larger than 1024 bytes [-Wframe-larger-than=]
error, forbidden warning: mdp.c:400
I think it has to do with linaro because I didn't have any problems building ProBam today with the same kernel... I also tried building the ProBam kernel by itself and it gave me the same error.
EDIT: Well, I used crpalmer's kernel instead and it built perfectly fine... Not the perfect solution though.
Click to expand...
Click to collapse
I came here to ask some questions about building liquid myself but since you got it booting guess i might as well give on up huh? I guess I should bring up what im doing anyways so I dont accidentally start on a port one of the pros is starting on lol
DREWHAMM974 said:
I came here to ask some questions about building liquid myself but since you got it booting guess i might as well give on up huh? I guess I should bring up what im doing anyways so I dont accidentally start on a port one of the pros is starting on lol
Click to expand...
Click to collapse
No, don't give up, nothing wrong with teamwork and some learning experience. I don't have it booting, it fails when I flash it and I can't get it to build with the stock kernel
Sent from my Droid DNA using Tapatalk

[Q&A] [SOURCES][DEVONLY] CyanogenMod 11.0

Q&A for [SOURCES][DEVONLY] CyanogenMod 11.0
Some developers prefer that questions remain separate from their main development thread to help keep things organized. Placing your question within this thread will increase its chances of being answered by a member of the community or by the developer.
Before posting, please use the forum search and read through the discussion thread for [SOURCES][DEVONLY] CyanogenMod 11.0. If you can't find an answer, post it here, being sure to give as much information as possible (firmware version, steps to reproduce, logcat if available) so that you can get help.
Thanks for understanding and for helping to keep XDA neat and tidy!
CM11
Thank you for your efforts and hardwork. I look forward to running cm 11 on the alpha.
Congo from India. Pl. Check it and tell if all features working or not..
what about CM12 any news on that?
HELLO?
Hi. Nice to catch this thread.
I just wanna know... Can korean alpha get this cm11? Or...can get g850f only?
And i wanna talk to you. Cheer up!
Thank you for developing this alpha, modfunk!
Finally, good luck for my ss g alpha....
(i just wanna 'plus alpha' yeah!)
We will only know if you try. I don't know your hardware I only own a G850F
Hi there,
I can hardly wait to get CM11 on my device. Otherwise using this phone is pointelss for me. I would throw the whole Samsung stock ROM to somewhere that it can burn slowly and flawlessly to the ground.
Thanks guys for your efforts!
Can anybody show video hows cyano 11 on alpha ?
thnx
Simona Simmy said:
Can anybody show video hows cyano 11 on alpha ?
thnx
Click to expand...
Click to collapse
CM11 isn't ready for consuming yet on the alpha.
Yet this is called "Devonly" (developers only) and "source".
This means: get github access, get the source, get the tools, compile it, debug compilation process, fix compilation process, get a image.
Pray, push it on your device, hopefully you won't have softbricked your device.
Debug the features that are missing, fix the bugs, find solutions, recompile.
At the moment, modpunkt still has the following (major) issues:
http://forum.xda-developers.com/showpost.php?p=57233732&postcount=46
https://www.youtube.com/watch?v=1_H4AlQaNa0 seems to be a video that explains how to compile from source, it is not mine, but looks good from a first glance at google.
Simona Simmy said:
Can anybody show video hows cyano 11 on alpha ?
thnx
Click to expand...
Click to collapse
It's not useable. No network connection is working yet ...
Thank youu
Thanks to dev(s) from me too. It's interesting to follow your progress, it reminds me of the good old zte blade 1 ages where few devs hacked the **** out of that device.
How can I help ?
Hello guys, I have a Galaxy Alpha for over a week now... And just can't stand that touchwiz stock rom anymore..
So what can I do to help you guys ? I have no experience in porting roms, but I have SM-G850F and just want to help you guys.. For example I can test everything you give me and other things Just let me know
will try to help
Hello, @modpunk
Although I have no CM porting experience I know C and Java. I have set up my CM environment, built and deployed my own unofficial ROM to one of my other devices.
My SM-G850F should arrive this coming week and I just may try help with the TODO. I'm a little confused trying to find out what are your repos to place in my local manifests, can you please list and describe them?
TIA,
Nuno
nuno.f.ferreira said:
Hello, @modpunk
Although I have no CM porting experience I know C and Java. I have set up my CM environment, built and deployed my own unofficial ROM to one of my other devices.
My SM-G850F should arrive this coming week and I just may try help with the TODO. I'm a little confused trying to find out what are your repos to place in my local manifests, can you please list and describe them?
TIA,
Nuno
Click to expand...
Click to collapse
Everything is in the readme of the cm-11.0 rep
http://git.cryptomilk.org/projects/android/android_device_samsung_slte.git/tree/README?h=cm-11.0
Building CM11 for Samsung Galaxy Alpha
Hello,
Was trying to post in http://forum.xda-developers.com/galaxy-alpha/orig-development/sources-cyanogenmod-11-0-t2933305 but apparently need to do it here.
Building with this instructions http://git.cryptomilk.org/projects/android/android_device_samsung_slte.git/tree/README?h=cm-11.0 have the following error. Thought I ask before starting to dig...
<CONSOLE>
target thumb C++: hwcomposer.exynos5 <= hardware/samsung_slsi/exynos5-insignal/libhwc/ExynosHWC.cpp
hardware/samsung_slsi/exynos5-insignal/libhwc/ExynosHWC.cpp: In function 'bool hdmi_is_preset_supported(exynos5_hwc_composer_device_1_t*, int)':
hardware/samsung_slsi/exynos5-insignal/libhwc/ExynosHWC.cpp:462:32: error: aggregate 'hdmi_is_preset_supported(exynos5_hwc_composer_device_1_t*, int)::v4l2_dv_enum_preset enum_preset' has incomplete type and cannot be defined
hardware/samsung_slsi/exynos5-insignal/libhwc/ExynosHWC.cpp:469:45: error: 'VIDIOC_ENUM_DV_PRESETS' was not declared in this scope
hardware/samsung_slsi/exynos5-insignal/libhwc/ExynosHWC.cpp: In function 'int hdmi_get_config(exynos5_hwc_composer_device_1_t*)':
hardware/samsung_slsi/exynos5-insignal/libhwc/ExynosHWC.cpp:577:27: error: aggregate 'hdmi_get_config(exynos5_hwc_composer_device_1_t*)::v4l2_dv_preset preset' has incomplete type and cannot be defined
hardware/samsung_slsi/exynos5-insignal/libhwc/ExynosHWC.cpp:578:32: error: aggregate 'hdmi_get_config(exynos5_hwc_composer_device_1_t*)::v4l2_dv_enum_preset enum_preset' has incomplete type and cannot be defined
hardware/samsung_slsi/exynos5-insignal/libhwc/ExynosHWC.cpp:586:39: error: 'VIDIOC_G_DV_PRESET' was not declared in this scope
hardware/samsung_slsi/exynos5-insignal/libhwc/ExynosHWC.cpp: In function 'int hdmi_output(exynos5_hwc_composer_device_1_t*, hdmi_layer_t&, hwc_layer_1_t&, private_handle_t*, int, int*)':
hardware/samsung_slsi/exynos5-insignal/libhwc/ExynosHWC.cpp:1159:52: error: invalid conversion from '__u32 {aka unsigned int}' to 'v4l2_buf_type' [-fpermissive]
In file included from hardware/samsung_slsi/exynos5-insignal/libhwc/ExynosHWC.h:52:0,
from hardware/samsung_slsi/exynos5-insignal/libhwc/ExynosHWC.cpp:27:
./hardware/samsung_slsi/exynos/include/exynos_v4l2.h:76:5: error: initializing argument 2 of 'int exynos_v4l2_streamon(int, v4l2_buf_type)' [-fpermissive]
hardware/samsung_slsi/exynos5-insignal/libhwc/ExynosHWC.cpp: At global scope:
hardware/samsung_slsi/exynos5-insignal/libhwc/ExynosHWC.cpp:4586:1: warning: missing initializer for member 'hw_module_t::dso' [-Wmissing-field-initializers]
hardware/samsung_slsi/exynos5-insignal/libhwc/ExynosHWC.cpp:4586:1: warning: missing initializer for member 'hw_module_t::reserved' [-Wmissing-field-initializers]
hardware/samsung_slsi/exynos5-insignal/libhwc/ExynosHWC.cpp: In function 'int hdmi_get_config(exynos5_hwc_composer_device_1_t*)':
hardware/samsung_slsi/exynos5-insignal/libhwc/ExynosHWC.cpp:592:1: error: control reaches end of non-void function [-Werror=return-type]
cc1plus: some warnings being treated as errors
make: *** [/opt/android/system/out/target/product/slte/obj/SHARED_LIBRARIES/hwcomposer.exynos5_intermediates/ExynosHWC.o] Error 1
</CONSOLE>
TIA,
Nuno
nuno.f.ferreira said:
Hello,
Was trying to post in http://forum.xda-developers.com/galaxy-alpha/orig-development/sources-cyanogenmod-11-0-t2933305 but apparently need to do it here.
Building with this instructions http://git.cryptomilk.org/projects/android/android_device_samsung_slte.git/tree/README?h=cm-11.0 have the following error. Thought I ask before starting to dig...
<CONSOLE>
target thumb C++: hwcomposer.exynos5 <= hardware/samsung_slsi/exynos5-insignal/libhwc/ExynosHWC.cpp
hardware/samsung_slsi/exynos5-insignal/libhwc/ExynosHWC.cpp: In function 'bool hdmi_is_preset_supported(exynos5_hwc_composer_device_1_t*, int)':
hardware/samsung_slsi/exynos5-insignal/libhwc/ExynosHWC.cpp:462:32: error: aggregate 'hdmi_is_preset_supported(exynos5_hwc_composer_device_1_t*, int)::v4l2_dv_enum_preset enum_preset' has incomplete type and cannot be defined
hardware/samsung_slsi/exynos5-insignal/libhwc/ExynosHWC.cpp:469:45: error: 'VIDIOC_ENUM_DV_PRESETS' was not declared in this scope
hardware/samsung_slsi/exynos5-insignal/libhwc/ExynosHWC.cpp: In function 'int hdmi_get_config(exynos5_hwc_composer_device_1_t*)':
hardware/samsung_slsi/exynos5-insignal/libhwc/ExynosHWC.cpp:577:27: error: aggregate 'hdmi_get_config(exynos5_hwc_composer_device_1_t*)::v4l2_dv_preset preset' has incomplete type and cannot be defined
hardware/samsung_slsi/exynos5-insignal/libhwc/ExynosHWC.cpp:578:32: error: aggregate 'hdmi_get_config(exynos5_hwc_composer_device_1_t*)::v4l2_dv_enum_preset enum_preset' has incomplete type and cannot be defined
hardware/samsung_slsi/exynos5-insignal/libhwc/ExynosHWC.cpp:586:39: error: 'VIDIOC_G_DV_PRESET' was not declared in this scope
hardware/samsung_slsi/exynos5-insignal/libhwc/ExynosHWC.cpp: In function 'int hdmi_output(exynos5_hwc_composer_device_1_t*, hdmi_layer_t&, hwc_layer_1_t&, private_handle_t*, int, int*)':
hardware/samsung_slsi/exynos5-insignal/libhwc/ExynosHWC.cpp:1159:52: error: invalid conversion from '__u32 {aka unsigned int}' to 'v4l2_buf_type' [-fpermissive]
In file included from hardware/samsung_slsi/exynos5-insignal/libhwc/ExynosHWC.h:52:0,
from hardware/samsung_slsi/exynos5-insignal/libhwc/ExynosHWC.cpp:27:
./hardware/samsung_slsi/exynos/include/exynos_v4l2.h:76:5: error: initializing argument 2 of 'int exynos_v4l2_streamon(int, v4l2_buf_type)' [-fpermissive]
hardware/samsung_slsi/exynos5-insignal/libhwc/ExynosHWC.cpp: At global scope:
hardware/samsung_slsi/exynos5-insignal/libhwc/ExynosHWC.cpp:4586:1: warning: missing initializer for member 'hw_module_t::dso' [-Wmissing-field-initializers]
hardware/samsung_slsi/exynos5-insignal/libhwc/ExynosHWC.cpp:4586:1: warning: missing initializer for member 'hw_module_t::reserved' [-Wmissing-field-initializers]
hardware/samsung_slsi/exynos5-insignal/libhwc/ExynosHWC.cpp: In function 'int hdmi_get_config(exynos5_hwc_composer_device_1_t*)':
hardware/samsung_slsi/exynos5-insignal/libhwc/ExynosHWC.cpp:592:1: error: control reaches end of non-void function [-Werror=return-type]
cc1plus: some warnings being treated as errors
make: *** [/opt/android/system/out/target/product/slte/obj/SHARED_LIBRARIES/hwcomposer.exynos5_intermediates/ExynosHWC.o] Error 1
</CONSOLE>
TIA,
Nuno
Click to expand...
Click to collapse
seems you haven't applied this patch: http://review.cyanogenmod.org/#/c/78565/
Thanks for the reply.
Hmm, I have CyanogenMod/android_hardware_samsung_slsi_exynos5-insignal in my local manifest and repos are synced. Do you mean there are patch sets that have to be applied manually? If so, do you know if anymore besides this one?
nuno.f.ferreira said:
Thanks for the reply.
Hmm, I have CyanogenMod/android_hardware_samsung_slsi_exynos5-insignal in my local manifest and repos are synced. Do you mean there are patch sets that have to be applied manually? If so, do you know if anymore besides this one?
Click to expand...
Click to collapse
yes, you have to apply that patch manually. No more patches are needed to build cm at this moment.
Thanks. Did that.
Now I have this. Is this known?
<CONSOLE>
Package OTA: /opt/android/system/out/target/product/slte/cm_slte-ota-67a8ffa7a4.zip
MKBOOTIMG= \
./build/tools/releasetools/ota_from_target_files -v \
-p /opt/android/system/out/host/linux-x86 \
-k build/target/product/security/testkey \
--backup=true \
--override_device=auto \
\
\
/opt/android/system/out/target/product/slte/obj/PACKAGING/target_files_intermediates/cm_slte-target_files-67a8ffa7a4.zip /opt/android/system/out/target/product/slte/cm_slte-ota-67a8ffa7a4.zip
unzipping target target-files...
running: unzip -o -q /opt/android/system/out/target/product/slte/obj/PACKAGING/target_files_intermediates/cm_slte-target_files-67a8ffa7a4.zip -d /tmp/targetfiles-6wcH3r
Traceback (most recent call last):
File "./build/tools/releasetools/ota_from_target_files", line 1132, in <module>
main(sys.argv[1:])
File "./build/tools/releasetools/ota_from_target_files", line 1075, in main
OPTIONS.info_dict = common.LoadInfoDict(input_zip)
File "/opt/android/system/build/tools/releasetools/common.py", line 155, in LoadInfoDict
d["fstab"] = LoadRecoveryFSTab(zip, d["fstab_version"])
File "/opt/android/system/build/tools/releasetools/common.py", line 227, in LoadRecoveryFSTab
raise ValueError("malformed recovery.fstab line: "%s"" % (line,))
ValueError: malformed recovery.fstab line: "/efs ext4 /dev/block/mmcblk0p3 flags=backup=1"
make: *** [/opt/android/system/out/target/product/slte/cm_slte-ota-67a8ffa7a4.zip] Error 1
</CONSOLE>

Error when compiling 5.0 for 64 bit device

Whenever I compile a non-AOSP ROM I always seem to get an error similar to this.
Code:
target C: libcutils <= system/core/libcutils/config_utils.c
In file included from bionic/libc/kernel/uapi/linux/signal.h:21:0,
from bionic/libc/include/signal.h:45,
from bionic/libc/include/sys/select.h:35,
from bionic/libc/include/unistd.h:34,
from bionic/libc/include/fcntl.h:37,
from system/core/libcutils/config_utils.c:20:
bionic/libc/include/signal.h:85:18: error: expected ':', ',', ';', '}' or '__attribute__' before '.' token
sighandler_t sa_handler;
^
make: *** [/home/joshua/android/PAC/out/target/product/flounder/obj/STATIC_LIBRARIES/libcutils_intermediates/config_utils.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from bionic/libc/kernel/uapi/linux/signal.h:21:0,
from bionic/libc/include/signal.h:45,
from bionic/libc/include/pthread.h:33,
from system/core/include/cutils/threads.h:34,
from system/core/libcutils/hashmap.c:20:
bionic/libc/include/signal.h:85:18: error: expected ':', ',', ';', '}' or '__attribute__' before '.' token
sighandler_t sa_handler;
^
make: *** [/home/joshua/android/PAC/out/target/product/flounder/obj/STATIC_LIBRARIES/libcutils_intermediates/hashmap.o] Error 1
In file included from bionic/libc/kernel/uapi/linux/signal.h:21:0,
from bionic/libc/include/signal.h:45,
from bionic/libc/include/sys/select.h:35,
from bionic/libc/include/unistd.h:34,
from system/core/libcutils/native_handle.c:23:
bionic/libc/include/signal.h:85:18: error: expected ':', ',', ';', '}' or '__attribute__' before '.' token
sighandler_t sa_handler;
^
Let me know if you need any other information.
Thanks.
The same problem
I have the same problem. Did you find the solution for this?
Anyone know about this, please help!
NguyenTuy said:
I have the same problem. Did you find the solution for this?
Anyone know about this, please help!
Click to expand...
Click to collapse
Yes some commits cm did fixed it.
Please help
joshuabg said:
Yes some commits cm did fixed it.
Click to expand...
Click to collapse
I researched some days but no result was found. I will greatly appreciate if you show me how to fix it.
NguyenTuy said:
I researched some days but no result was found. I will greatly appreciate if you show me how to fix it.
Click to expand...
Click to collapse
What ROM are you trying to compile?
joshuabg said:
What ROM are you trying to compile?
Click to expand...
Click to collapse
I have same problem. I'm trying to buid flounder for HTC Nexus 9. Could you please tell me how to fix it?
Thanks a lot!
up to 10 post hix,up for everyone:good::good::good::good::good::good::good::good:
In order to help you, I will need a link to your ROM source. In adition to your specific error.
joshuabg said:
In order to help you, I will need a link to your ROM source. In adition to your specific error.
Click to expand...
Click to collapse
At this moment, I'm using AOSP android-5.0.1_r1 from Android Source and then compile
lunch aosp_flounder-userdebug
make -j4
=> It done without error.
After add a new product.
In file included from bionic/libc/kernel/uapi/linux/signal.h:21:0,
from bionic/libc/include/signal.h:43,
from bionic/libc/include/sys/select.h:35,
from bionic/libc/include/unistd.h:34,
from vendor/newvendor/internal/libstcommon/src/NewMwMessage.c:24:
bionic/libc/include/signal.h:83:18: error: expected ':', ',', ';', '}' or '__attribute__' before '.' token
sighandler_t sa_handler;
^
It is hard to find out what happen to me. Please help me to save my day. I really appreciate your help.
Just a question, how did you resolve your issue?
taduongngoc said:
At this moment, I'm using AOSP android-5.0.1_r1 from Android Source and then compile
lunch aosp_flounder-userdebug
make -j4
=> It done without error.
After add a new product.
In file included from bionic/libc/kernel/uapi/linux/signal.h:21:0,
from bionic/libc/include/signal.h:43,
from bionic/libc/include/sys/select.h:35,
from bionic/libc/include/unistd.h:34,
from vendor/newvendor/internal/libstcommon/src/NewMwMessage.c:24:
bionic/libc/include/signal.h:83:18: error: expected ':', ',', ';', '}' or '__attribute__' before '.' token
sighandler_t sa_handler;
^
It is hard to find out what happen to me. Please help me to save my day. I really appreciate your help.
Just a question, how did you resolve your issue?
Click to expand...
Click to collapse
I need to see more of your error. I removed the kernel headers from the Android.mk causing the problem.
joshuabg said:
I need to see more of your error. I removed the kernel headers from the Android.mk causing the problem.
Click to expand...
Click to collapse
I found my issue 4 days ago by removing KERNEL_HEADERS from the INCLUDE_C_HEADERS parameter in the make file.
Anyway, thank you very much for your help.
Hashbang173 said:
I need to see more of your error. I removed the kernel headers from the Android.mk causing the problem.
Click to expand...
Click to collapse
Whoa, that fixed it for me! Thank you!
Hashbang173 said:
I need to see more of your error. I removed the kernel headers from the Android.mk causing the problem.
Click to expand...
Click to collapse
Thanks a lot!
Heres a link to what you need to cherry-pick
https://github.com/HalogenOS/androi...mmit/1cdeb7268b53ea0754dad87b75f2ed0d418e6896
(Just remove the headers)
I struggled with this for a week on a RIL module. Turns out the bionic/libc version in my version of Android 5.1.1 had an erroneous implementation of signal.h for 64bit programs. It used #define in the linux/signal.h to change code elsewhere in the library but hadn't made the 64bit/mips versions og signalaction in the signal.h compatible by undefining them before and redefining them after the declarations. Also you'd have to give the anon-union inside the struct the name _u.

Categories

Resources