[Q] Build Errors - Compiling - Android Q&A, Help & Troubleshooting

I am compiling Evervolv just to mess around with on the Eris, and I have been getting errors all day, and I have been able to get past most of them. (Sync errors, problems with some folder locations on my desktop) But I just got a long list of errors that are referencing res string values that I've never had before, I will just post a snippet here, but I will also provide a pastebin link to a larger portion of the errors. Any help will be GREATLY appreciated.
frameworks/base/core/res/res/values/public.xml:1532: warning: No comment for public symbol android:style/Widget.Spinner.DropDown
frameworks/base/core/res/res/values/public.xml:657: warning: No comment for public symbol android:style/Widget.TabWidget
frameworks/base/core/res/res/values/public.xml:639: warning: No comment for public symbol android:style/Widget.TextView
frameworks/base/core/res/res/values/public.xml:646: warning: No comment for public symbol android:style/Widget.TextView.PopupMenu
frameworks/base/core/res/res/values/public.xml:647: warning: No comment for public symbol android:style/Widget.TextView.SpinnerItem
frameworks/base/core/res/res/values/public.xml:656: warning: No comment for public symbol android:style/Widget.WebView
Pastebin

lemonoid said:
I am compiling Evervolv just to mess around with on the Eris, and I have been getting errors all day, and I have been able to get past most of them. (Sync errors, problems with some folder locations on my desktop) But I just got a long list of errors that are referencing res string values that I've never had before, I will just post a snippet here, but I will also provide a pastebin link to a larger portion of the errors. Any help will be GREATLY appreciated.
frameworks/base/core/res/res/values/public.xml:1532: warning: No comment for public symbol android:style/Widget.Spinner.DropDown
frameworks/base/core/res/res/values/public.xml:657: warning: No comment for public symbol android:style/Widget.TabWidget
frameworks/base/core/res/res/values/public.xml:639: warning: No comment for public symbol android:style/Widget.TextView
frameworks/base/core/res/res/values/public.xml:646: warning: No comment for public symbol android:style/Widget.TextView.PopupMenu
frameworks/base/core/res/res/values/public.xml:647: warning: No comment for public symbol android:style/Widget.TextView.SpinnerItem
frameworks/base/core/res/res/values/public.xml:656: warning: No comment for public symbol android:style/Widget.WebView
Pastebin
Click to expand...
Click to collapse
This are warnings, no indication in your logs about making your build fail. Something else is going on. Sorry.

well that's what I thought, but upon these warnings, the build aborted and returned to the command line input.

lemonoid said:
well that's what I thought, but upon these warnings, the build aborted and returned to the command line input.
Click to expand...
Click to collapse
Look higher in the logging then, there has to be an error somewhere, unless its gcc -Werror (treats warnings as errors) then it doesn't break the building of the rom. This isn't c/c++ so I don't think this is causing it.

Try rebuilding with make -j1 for a better glimpse of the error
Sent from my GT-P1000 using XDA

help
What is this error?
build/core/product_config.mk:205: *** No matches for product "cyanogen_liquid_mini". Останов.
Device liquid_mini not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).
Repository for liquid_mini not found in the CyanogenMod Github repository list. If this is in error, you may need to manually add it to your local_manifest.xml.
build/core/product_config.mk:205: *** No matches for product "cyanogen_liquid_mini". Останов.
** Don't have a product spec for: 'cyanogen_liquid_mini'
** Do you have the right repo manifest?

IVAN-ICE said:
What is this error?
build/core/product_config.mk:205: *** No matches for product "cyanogen_liquid_mini". Останов.
Device liquid_mini not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).
Repository for liquid_mini not found in the CyanogenMod Github repository list. If this is in error, you may need to manually add it to your local_manifest.xml.
build/core/product_config.mk:205: *** No matches for product "cyanogen_liquid_mini". Останов.
** Don't have a product spec for: 'cyanogen_liquid_mini'
** Do you have the right repo manifest?
Click to expand...
Click to collapse
Please don't hi-jack threads. That error tells you what is wrong.
Sent from my Nexus S 4G using xda premium

error
What shall be in the file local_manifest.xml? And where it shall is? thanks!

does anyone know what this can mean...it makes no sense http://pastebin.com/e3vmQd57

xmc wildchild22 said:
does anyone know what this can mean...it makes no sense http://pastebin.com/e3vmQd57
Click to expand...
Click to collapse
These errors are pretty self explanatory. It detected a cycle. There are links to each reported file making a "cycle" when the build detects that it will break.
Sent from my Nexus S 4G using xda premium

Related

[I9001][REQ][Kernel] 3.0.x I9001

Hi, I'm VisualTech48 and i own a Galaxy S Plus (I9001).
Our great Developers [Arco98, Ivendor, Doomsday98, Oisis, etc.] are developing ICS Roms and trying to make Jelly Bean too but we are missing a key element of this game.
It's the 3.0.x Kernel. We really need a good coder.
If anyone knows, or can help us code this kernel we are Ready to donate, and help by giving logs if even needed.
If we donate to someone, he/she must:
Help our devs with codeing
Give us a booting kernel
We have done allready a part of the project but we need help with codeing, that is why I even started this thread.
What has oisis done:
Added board-ariesve.c here:
arch/arm/mach-msm/board-ariesve.c
Included Ariesve board to Kconfig and Makefile.
Added missing files:
include/linux/fsa9480.h
arch/arm/mach-msm/include/mach/msm_reqs.h
Click to expand...
Click to collapse
Compilation error:
Code:
arch/arm/mach-msm/board-ariesve.c: In function 'pm8058_gpios_init':
arch/arm/mach-msm/board-ariesve.c:329: error: variable 'sdcc_det' has initializer but incomplete type
arch/arm/mach-msm/board-ariesve.c:330: error: unknown field 'direction' specified in initializer
arch/arm/mach-msm/board-ariesve.c:330: warning: excess elements in struct initializer
error, forbidden warning: board-ariesve.c:330
make[1]: *** [arch/arm/mach-msm/board-ariesve.o] Error 1
What needs to be done:
include and port file from 2.6.35.X - arch/arm/mach-msm/board-ariesve.c
include/find missing drivers for i9001
Click to expand...
Click to collapse
We whould really apriciate if someone can help us because this kernel can open a whole new page for our phone.
Why did i remade a new thread? Because i think we have more chances of reply then in the I9000 Forum.
Thank you for reading this, VisualTech48
Original Thread: http://forum.xda-developers.com/showthread.php?t=1742976

Stuck on building CM10 for jlo - need tip

hey, I followed the tutorial about "Compiling JB on Ubuntu" and I stuck on this error:
Code:
build/core/product_config.mk:253: *** No matches for product "cm_jlo". Stop.
Device jlo not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).
Traceback (most recent call last):
File "build/tools/roomservice.py", line 59, in <module>
result = json.loads(urllib2.urlopen(githubreq).read())
File "/usr/lib/python2.7/urllib2.py", line 126, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib/python2.7/urllib2.py", line 400, in open
response = meth(req, response)
File "/usr/lib/python2.7/urllib2.py", line 513, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.7/urllib2.py", line 438, in error
return self._call_chain(*args)
File "/usr/lib/python2.7/urllib2.py", line 372, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 521, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 403: Forbidden
build/core/product_config.mk:253: *** No matches for product "cm_jlo". Stop.
** Don't have a product spec for: 'cm_jlo'
** Do you have the right repo manifest?
I have device tree and proprietary files and admint that I have read whole tutorial 10x times but tip at the and didn't help.
I tried making many changes in files but no result.
I spend hours on doing all those things and like always nothing work, please show me the way I should follow.
lozohcum said:
I have device tree and proprietary files and admint that I have read whole tutorial 10x times but tip at the and didn't help.
I tried making many changes in files but no result.
I spend hours on doing all those things and like always nothing work, please show me the way I should follow.
Click to expand...
Click to collapse
From what I can tell it seems you have an error related to python make sure you have the correct version of python installed for building (Version 2.6.x-2.7.x). If that doesn't work I would suggest reinstalling python and see if they fixes the error. You can also ask about your build error here http://forum.xda-developers.com/showthread.php?t=2059939.
Sent from my SCH-I535 using xda premium
Odp: Stuck on building CM10 for jlo - need tip
Okay I'll reinstall python and write here if it works
now this error:
Code:
build/core/product_config.mk:253: *** No matches for product "cm_jlo". Stop.
Device jlo not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).
Found repository: android_device_sony_jlo
Default revision: cm-10.1
Checking branch info
Default revision cm-10.1 not found in android_device_sony_jlo. Bailing.
Branches found:
jellybean
Use the ROOMSERVICE_BRANCHES environment variable to specify a list of fallback branches.
build/core/product_config.mk:253: *** No matches for product "cm_jlo". Stop.
** Don't have a product spec for: 'cm_jlo'
** Do you have the right repo manifest?
Use jellybean as your branch.
Sent from my SCH-R950 using Tapatalk 2
How to do this? can you explain? I don't know what you mean exacly.
can you give me proper command?
lozohcum said:
How to do this? can you explain? I don't know what you mean exacly.
can you give me proper command?
Click to expand...
Click to collapse
for cm10 repo init -u git://github.com/CyanogenMod/android.git -b jellybean
you had cm10.1 in the error which is still a work in progress
ah I understand, I have downloaded CM10.1 against CM10, so if I download CM10 will it work?
lozohcum said:
ah I understand, I have downloaded CM10.1 against CM10, so if I download CM10 will it work?
Click to expand...
Click to collapse
Yes this should solve your compile error allowing the build to compile successfully unless it runs into another unexpected build error.

[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] Build Error need urgent help

alright im trying to port cm11 to my LG Optimus F6 and ive tackled a few errors but this I need help with
Code:
frameworks/native/libs/gui/Surface.cpp: In member function 'virtual android::status_t android::Surface::lock(ANativeWindow_Buffer*, ARect*)':
frameworks/native/libs/gui/Surface.cpp:818:29: error: 'GRALLOC_USAGE_PRIVATE_INTERNAL_ONLY' was not declared in this scope
make: *** [/home/ryan/android/system/out/target/product/f6mt/obj/SHARED_LIBRARIES/libgui_intermediates/Surface.o] Error 1
make: *** Waiting for unfinished jobs....
well I know it is that GRALLOC_USAGE_PRIVATE_INTERNAL_ONLY isnt declared but I dont know how to declare that please help
I solved this by finally finding a way to declare it in the surface. CPP file by adding a enum and declaring it in there
hello
codingninja62001 said:
I solved this by finally finding a way to declare it in the surface. CPP file by adding a enum and declaring it in there
Click to expand...
Click to collapse
Where do you add enum and declaring
sattarvoybek said:
Where do you add enum and declaring
Click to expand...
Click to collapse
If I remember correctly I added the enum after the variable declarations in the surface. cpp file and declared it in that enum
codingninja62001 said:
I solved this by finally finding a way to declare it in the surface. CPP file by adding a enum and declaring it in there
Click to expand...
Click to collapse
codingninja62001 said:
If I remember correctly I added the enum after the variable declarations in the surface. cpp file and declared it in that enum
Click to expand...
Click to collapse
and be able to do a screenshot I don't understand much how to do ?
sattarvoybek said:
and be able to do a screenshot I don't understand much how to do ?
Click to expand...
Click to collapse
This was from a while ago and I had deleted the source when I got a new phone and it was uploaded to github so just wait a bit
codingninja62001 said:
This was from a while ago and I had deleted the source when I got a new phone and it was uploaded to github so just wait a bit
Click to expand...
Click to collapse
you have also this error was?
Code:
frameworks/native/libs/gui/Surface.cpp: In member function 'virtual android::status_t android::Surface::lock(ANativeWindow_Buffer*, ARect*)':
frameworks/native/libs/gui/Surface.cpp:828:29: error: 'GRALLOC_USAGE_PRIVATE_INTERNAL_ONLY' was not declared in this scope
make: *** [/home/sattar/cm11/out/target/product/X9180/obj/SHARED_LIBRARIES/libgui_intermediates/Surface.o]
sattarvoybek said:
you have also this error was?
Code:
frameworks/native/libs/gui/Surface.cpp: In member function 'virtual android::status_t android::Surface::lock(ANativeWindow_Buffer*, ARect*)':
frameworks/native/libs/gui/Surface.cpp:828:29: error: 'GRALLOC_USAGE_PRIVATE_INTERNAL_ONLY' was not declared in this scope
make: *** [/home/sattar/cm11/out/target/product/X9180/obj/SHARED_LIBRARIES/libgui_intermediates/Surface.o]
Click to expand...
Click to collapse
Heres a random cpp file and read the comments
Code:
/*Look for all these defines at the beggining of the file then put the enum after them. Don't chamge the defines in that file these are just a example */
#define JUST A EXAMPLE
#define JUST A EXAMPLE
#define JUST A EXAMPLE
enum {
/*THe only part of this you need is this enum and you need to set GRALLOC_USAGE_PRIVATE_INTERNAL_ONLY to whatever your device needs*/
GRALLOC_USAGE_PRIVATE_INTERNAL_ONLY=
}
codingninja62001 said:
This was from a while ago and I had deleted the source when I got a new phone and it was uploaded to github so just wait a bit
Click to expand...
Click to collapse
codingninja62001 said:
Heres a random cpp file and read the comments
Code:
/*Look for all these defines at the beggining of the file then put the enum after them. Don't chamge the defines in that file these are just a example */
#define JUST A EXAMPLE
#define JUST A EXAMPLE
#define JUST A EXAMPLE
enum {
/*THe only part of this you need is this enum and you need to set GRALLOC_USAGE_PRIVATE_INTERNAL_ONLY to whatever your device needs*/
GRALLOC_USAGE_PRIVATE_INTERNAL_ONLY=
}
Click to expand...
Click to collapse
I still don't understand here ->
Code:
#ifdef QCOM_BSP
setUsage(mReqUsage & GRALLOC_USAGE_PRIVATE_EXTERNAL_ONLY |
mReqUsage & GRALLOC_USAGE_PRIVATE_INTERNAL_ONLY |
GRALLOC_USAGE_SW_READ_OFTEN |
GRALLOC_USAGE_SW_WRITE_OFTEN);
#else
sattarvoybek said:
I still don't understand here ->
Code:
#ifdef QCOM_BSP
setUsage(mReqUsage & GRALLOC_USAGE_PRIVATE_EXTERNAL_ONLY |
mReqUsage & GRALLOC_USAGE_PRIVATE_INTERNAL_ONLY |
GRALLOC_USAGE_SW_READ_OFTEN |
GRALLOC_USAGE_SW_WRITE_OFTEN);
#else
Click to expand...
Click to collapse
That code is just calling the missing variable it shoulden't be a problem when you declare the variable
codingninja62001 said:
That code is just calling the missing variable it shoulden't be a problem when you declare the variable
Click to expand...
Click to collapse
well thank you three sit cannot collect cm11 if you really want that someone knows or someone that was the same as I'm going there someday!
sattarvoybek said:
well thank you three sit cannot collect cm11 if you really want that someone knows or someone that was the same as I'm going there someday!
Click to expand...
Click to collapse
In clear english please

Error while trying to build a rom

Hi everyone.
(If I'm in the wrong area, please inform me...)
I'm trying to build a rom using the well known lineageos repo's.
But unfortunately I get this error:
Code:
hardware/ril-caf/rild/rild.c:60: error: undefined reference to 'joinRpcThreadpool'
It's called like this:
Code:
void rilc_thread_pool() {
joinRpcThreadpool();
}
(The call to joinRpcThreadpool is set by myself to prevent other error's. So you can't find it online in rild.c. It is a test...)
Ok. I know what this error means, but, I can't find how and where joinRpcThreadpool is defined.
I need help... :fingers-crossed:

Categories

Resources