[Q] GCC-4.7 error compiling pure AOSP for Hammerhead - Nexus 5 Q&A, Help & Troubleshooting

So, I've ran into a little trouble compiling a pure AOSP for Hammerhead. I wanted to start off with a stock AOSP, then move my way onto cherry picking commits that I find most useful.
But before I got into picking commits, I wanted to make sure I could succesfully compile a pure AOSP.
The build went fine for about an hour until I ran in to this:
gcc-4.7: error trying to exec 'cc1plus': execvp: No such file or directory
Failed to read names from file: /home/skywalker/hammerhead/external/chromium_org/third_party/WebKit/Source/core/svg/svgtags.in at /home/skywalker/hammerhead/external/chromium_org/third_party/WebKit/Source/core/scripts/make_names.pl line 282.
Traceback (most recent call last):
File "scripts/action_makenames.py", line 182, in <module>
sys.exit(main(sys.argv))
File "scripts/action_makenames.py", line 164, in main
assert returnCode == 0
AssertionError
gcc-4.7: error trying to exec 'cc1plus': execvp: No such file or directory
Failed to read names from file: /home/skywalker/hammerhead/external/chromium_org/third_party/WebKit/Source/core/html/HTMLTagNames.in at /home/skywalker/hammerhead/external/chromium_org/third_party/WebKit/Source/core/scripts/make_names.pl line 282.
make: *** [out/target/product/hammerhead/obj/GYP/shared_intermediates/blink/SVGNames.cpp] Error 1
make: *** Waiting for unfinished jobs....Traceback (most recent call last):
File "scripts/action_makenames.py", line 182, in <module>
sys.exit(main(sys.argv))
File "scripts/action_makenames.py", line 164, in main
assert returnCode == 0
AssertionError
make: *** [out/target/product/hammerhead/obj/GYP/shared_intermediates/blink/HTMLNames.cpp] Error 1
gcc-4.7: error trying to exec 'cc1plus': execvp: No such file or directory
Failed to read names from file: /home/skywalker/hammerhead/external/chromium_org/third_party/WebKit/Source/core/mathml/mathtags.in at /home/skywalker/hammerhead/external/chromium_org/third_party/WebKit/Source/core/scripts/make_names.pl line 282.
Traceback (most recent call last):
File "scripts/action_makenames.py", line 182, in <module>
sys.exit(main(sys.argv))
File "scripts/action_makenames.py", line 164, in main
assert returnCode == 0
AssertionError
make: *** [out/target/product/hammerhead/obj/GYP/shared_intermediates/blink/MathMLNames.cpp] Error 1​
This isn't my first time building from source, but this happens owith any ROM I attempt to compile. So I've ultimately narrowed it down to my build environment. Using synaptic I installed some gcc-4.7-arm-linux-gnueabi packages that were reccomended elsewhere to no avail. I've scoured google, xda and the like but have come up empty handed.
Any experienced developers out there care to lend a helping hand?
Thank you for your time.

BTW, I'm compiling on Linux Mint 16 Cinnamon

Looks like a problem with your gcc. Did you Google the first line of your error? I believe that contains everything you need to resolve.
Sent from my Nexus 5 using Tapatalk

rootSU said:
Looks like a problem with your gcc. Did you Google the first line of your error? I believe that contains everything you need to resolve.
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
I did. My gcc and g++ are already newest/same versions. And from what I can tell, paths for each are correct.
I've exhausted many solutions, my friend. Otherwise I wouldn't here
Sent from my Nexus 5 using XDA Premium 4 mobile app

Well, it's not an android source issue, its a build environment issue. Not sure you'll get any better here than using Google.
See this one?
http://stackoverflow.com/questions/...-execvp-no-such-file-or-directory-when-compil
Sent from my Nexus 5 using Tapatalk

rootSU said:
Well, it's not an android source issue, its a build environment issue. Not sure you'll get any better here than using Google.
See this one?
http://stackoverflow.com/questions/...-execvp-no-such-file-or-directory-when-compil
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
It's undoubtedly an environment issue. It happens for me with cm, slim and bs.
I tried everything on that page with no success. I also found elsewhere that a symlink may fix it. But that seems to me like using duct tape to fix a leak rather than fixing the source of the leak itself. Still, though, if it works it I'm not gonna knock it.
Sent from my Nexus 5 using XDA Premium 4 mobile app

You could try removing and re-initialising the environment. Start from scratch
Sent from my Nexus 5 using Tapatalk

rootSU said:
You could try removing and re-initialising the environment. Start from scratch
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
That's what I was wanting to do. Well, try a couple more things, and if it all doesn't work then I'll have no choice.
Sent from my Nexus 5 using XDA Premium 4 mobile app

rootSU said:
You could try removing and re-initialising the environment. Start from scratch
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Is there any way to go about this without having to format or reinstall the os? I'm on a dual boot that was a serious pain to set up.
Sent from my Nexus 5 using XDA Premium 4 mobile app

Skywalker.00 said:
Is there any way to go about this without having to format or reinstall the os? I'm on a dual boot that was a serious pain to set up.
Sent from my Nexus 5 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Use remove instead of install commands for everything listed in the Google android initializing guide. Then install again
Sent from my Nexus 5 using Tapatalk

Related

build.prop edits

I have been trying for the last couple of weeks to port sense ROMs. I did manage to get NRGZ's Energy ROM http://forum.xda-developers.com/showthread.php?t=1290300 to boot with problems using MikRunny as a base but everything else sense then has failed. I've been using this http://forum.xda-developers.com/showthread.php?t=1222746 as my main guide but have also been looking at other sites as well. The problem I'm running into at the moment is error 6 when trying to install via cwr so I've been trying to edit the build.prop with Notepad++ but I guess I just can't get the right edits. if any one can advise me I'd appreciate it.
Is it the build.prop or the updater-script?
Sent from my miTouch-4G-Slide using Tapatalk 2
Chad The Pathfinder said:
I have been trying for the last couple of weeks to port sense ROMs. I did manage to get NRGZ's Energy ROM http://forum.xda-developers.com/showthread.php?t=1290300 to boot with problems using MikRunny as a base but everything else sense then has failed. I've been using this http://forum.xda-developers.com/showthread.php?t=1222746 as my main guide but have also been looking at other sites as well. The problem I'm running into at the moment is error 6 when trying to install via cwr so I've been trying to edit the build.prop with Notepad++ but I guess I just can't get the right edits. if any one can advise me I'd appreciate it.
Click to expand...
Click to collapse
Error 6 in recovery due to script updater. extract the log and check where is the mistake. First could me /system or /data where refferal mount code (dev/block/.....), the other may you don't add free lines @ end of code
Sent from my HTC Desire HD using xda premium
I was thinking build.prop but it's updater script. It lookslike I have 8 errors. Oy!
I'm a padowan with no master.
Chad The Pathfinder said:
I was thinking build.prop but it's updater script. It lookslike I have 8 errors. Oy!
I'm a padowan with no master.
Click to expand...
Click to collapse
If you want or need a bit of help I can offer what I know.
Sent from my myTouch_4G_Slide using Tapatalk 2
Well now I have a status 7 error when attempting to install. I guess my mount points are wrong...
I'm a padowan with no master.
Chad The Pathfinder said:
Well now I have a status 7 error when attempting to install. I guess my mount points are wrong...
I'm a padowan with no master.
Click to expand...
Click to collapse
Send me the updated one, I'm guessing you just removed lines 2,3,4 ect? Or I can send the mounts sorry bout last night I went to bed at like 9
Sent from my myTouch_4G_Slide using Tapatalk 2
Its all good. I was in bed early too but then thought I'd change the boot.img to your supreme sense boot img not really thinking it would make a difference. When I went to install, it started then got stuck at error 7. I was at work when I did this so no logcat. Not sure when I'll be able to get back to it.
I'm a padowan with no master.
Edit: I had tried just deleting the problem lines in the script earlier but that didn't help. I got the same error 6.
I have a line in an updater script "/system/xbin/dropbear" but there is no "dropbear" file in either the port ROM or the base ROM. is it ok to just delete the line of do I need to go in search of?
Chad The Pathfinder said:
I have a line in an updater script "/system/xbin/dropbear" but there is no "dropbear" file in either the port ROM or the base ROM. is it ok to just delete the line of do I need to go in search of?
Click to expand...
Click to collapse
Sure, you should to delete any command for absent files
Sent from my HTC Desire HD using xda premium
Ok thanks. I looked up some information on dropbear but wasn't sure how important it might be to the ROM.

[Q] AOKP Build Errors

Hey All,
I'm trying to build AOKP. After running the command "mka bacon -j5" I am getting the following error.
Code:
build/core/base_rules.mk:133: *** hardware/ril/libril: MODULE.TARGET.SHARED_LIBRARIES.libril already defined by device/htc/msm8960-common/libril. Stop.
I've tried navigating to the base_rules.mk file to see if there was anything in there to edit but could not find anything related to hardware/ril/libril. Did a quick search on google and on XDA for the error but not getting any results back. Thanks for the help.
sryan1983 said:
Hey All,
I'm trying to build AOKP. After running the command "mka bacon -j5" I am getting the following error.
Code:
build/core/base_rules.mk:133: *** hardware/ril/libril: MODULE.TARGET.SHARED_LIBRARIES.libril already defined by device/htc/msm8960-common/libril. Stop.
I've tried navigating to the base_rules.mk file to see if there was anything in there to edit but could not find anything related to hardware/ril/libril. Did a quick search on google and on XDA for the error but not getting any results back. Thanks for the help.
Click to expand...
Click to collapse
Navigate to hardware/ril. And delete the entire libril file... What are you trying to make 4.1 or 4.2?
Base_rules.mk is not the error its a code.. where it failed is after that.. In your case it says you've go two seperate files trying to make one thing.. You need to get rid of one.. Since msm8960 is for the device your building for you need to off the other one.. That won't be your only error building for an in supported device takes a lot of patience.. Good luck..
Sent from my HTC One S using xda app-developers app
$droyd$ said:
Navigate to hardware/ril. And delete the entire libril file... What are you trying to make 4.1 or 4.2?
Base_rules.mk is not the error its a code.. where it failed is after that.. In your case it says you've go two seperate files trying to make one thing.. You need to get rid of one.. Since msm8960 is for the device your building for you need to off the other one.. That won't be your only error building for an in supported device takes a lot of patience.. Good luck..
Sent from my HTC One S using xda app-developers app
Click to expand...
Click to collapse
Thanks for the response droyd.
I am trying to build 4.2. I basically used the method that klin posted to build Baked, however, tweaked everything for AOKP instead. (used intervigilium's repository instead of klin's, etc.) Should I have gone about it another way. Do you still recommend deleting the hardware/ril folder?
sryan1983 said:
Thanks for the response droyd.
I am trying to build 4.2. I basically used the method that klin posted to build Baked, however, tweaked everything for AOKP instead. (used intervigilium's repository instead of klin's, etc.) Should I have gone about it another way. Do you still recommend deleting the hardware/ril folder?
Click to expand...
Click to collapse
Yes I had to delete that file...and sounds like your on the rite path. I'll be around if you need Any other help..
Sent from my HTC One S using xda premium

[Q] cant get double tap 2 wake to work - franco kernel

I follow all the directions to get double tap to wake to work on franco kernel and it never works. When i execute the code in terminal emulator it says: tmp-mksh: can't create /sys/android_touch/doubletap2wake: no such file or directory. I have tried to read everything i can and i cant figure out what i have done wrong.
Hi,
The original Francisco's kernel doesn't support it, it needs to be built in the kernel...
Take a look here: http://forum.xda-developers.com/showthread.php?p=47459608 or there: http://forum.xda-developers.com/showthread.php?p=47734977.
Two kernels based on Francisco's kernel but with the stuff you want.
Sent from my LG-D802 using xda premium
nihn75 said:
I follow all the directions to get double tap to wake to work on franco kernel and it never works. When i execute the code in terminal emulator it says: tmp-mksh: can't create /sys/android_touch/doubletap2wake: no such file or directory. I have tried to read everything i can and i cant figure out what i have done wrong.
Click to expand...
Click to collapse
This app works great. And it has swipe-to-wake, which, in my opinion, is better than double-tap-to-wake because it doesn't cause unwanted waking of the device when you just want to move it or put it in your pocket.
Sent from my Nexus 5
viking37 said:
Hi,
The original Francisco's kernel doesn't support it, it needs to be built in the kernel...
Take a look here: http://forum.xda-developers.com/showthread.php?p=47459608 or there: http://forum.xda-developers.com/showthread.php?p=47734977.
Two kernels based on Francisco's kernel but with the stuff you want.
Sent from my LG-D802 using xda premium
Click to expand...
Click to collapse
So Im using the second link you gave me for Franco kernel r28 and I follow all the directions exactly and it will not work
Sent from my Nexus 5 using XDA Premium 4 mobile app
PhilipTD said:
This app works great. And it has swipe-to-wake, which, in my opinion, is better than double-tap-to-wake because it doesn't cause unwanted waking of the device when you just want to move it or put it in your pocket.
Sent from my Nexus 5
Click to expand...
Click to collapse
Try this one http://forum.xda-developers.com/showthread.php?p=47459608 and flash the zip in recovery. When you do the commands in terminal, do not put the > symbol in the command or it will give you "no such file or directory". Followed the instruction and it works great.

[KERNEL][WIP][SM-T210R][4.2.2]kernel.ajws7036 (blackhawk port)

Trying to continue kernel development for the SM-T210R based on the marvell PXA988.
This kernel is based on the Android 4.2.2 Rom Ported from the SM-T110 Galaxy Tab Lite.
My goals:
Find bugs in the OP and resolve them
Bluetooth HID Support
Right Speaker Fix
Original Kernel:http://forum.xda-developers.com/showthread.php?t=2439564
Github Sources:http://github.com/ajws7036
I'll be putting the Tests up here.. Just install like you would through TWRP or CWM.
Guys, I switched back to 4.1.2 For the duration of school most likely.. I'll do what I can on weekends and whenever I can use my laptop. But I know for a fact that my SM-T210R likes 4.2.2 a heck of a lot better than 4.1.2.. There's a HUGE speed difference. I switched back to 4.2.2, speed was my dealbreaker.
Status as of 4/21: No boot. I tried a test, a flop really, and nothing booted. Ill keep trucking.
Sent from my SM-T210R using Tapatalk
ajws7036 said:
Trying to continue kernel development for the sm-t210r based on the marvell PXA98.
Sent from my SM-T210R using Tapatalk
Click to expand...
Click to collapse
And why that?
Sent from my SM-T210R using Tapatalk
Because this tab is fantastic, and i want to see development continue.
Sent from my SM-T210R using Tapatalk
Bro plz try for sm t 211 kernel port for 4.2.2
Sent from my SM-T211 using xda app-developers app
Had to rebuild kernel, i think I'm going on a bike ride while it builds.
Sent from my SM-T210R using Tapatalk
Don't you think you should actually FIX the right speaker before you list that as a feature?
You are going to confuse people.
Good luck. Nice to see someone else step up and try to help.
ajws7036 said:
Because this tab is fantastic, and i want to see development continue.
Sent from my SM-T210R using Tapatalk
Click to expand...
Click to collapse
No, i meant why it is based on marvel
Sent from my SM-T210R using Tapatalk
Ripshock said:
No, i meant why it is based on marvel
Sent from my SM-T210R using Tapatalk
Click to expand...
Click to collapse
The tablet's board is a marvell pxa988 board
Sent from my SM-T210R using Tapatalk
ajws7036 said:
The tablet's board is a marvell pxa988 board
Sent from my SM-T210R using Tapatalk
Click to expand...
Click to collapse
Oh ok, good luck, all my faith in you
Sent from my SM-T210R using Tapatalk
is the deep sleep problem fixed ?
With the old kernel the tablet dont went in deep sleep mode
Development is going slow as I keep running into errors, however I will continue and aim at having something working by the end of the week.
Errors continue as the kernel appears to just make an "image" file as output. Work will continue, but i'll be switching computers. Also, there's school.. So I'll work hard as i can on the weekends
Sent from my SM-T210R using Tapatalk
ajws7036 said:
Errors continue as the kernel appears to just make an "image" file as output. Work will continue, but i'll be switching computers. Also, there's school.. So I'll work hard as i can on the weekends
Sent from my SM-T210R using Tapatalk
Click to expand...
Click to collapse
Go sir! I have a T210 and I visit this thread at least once a day, patiently waiting for your kernel and also forma better experience for our tablet, keep it up! Many are expectijg for tyis kermel
ajws7036 said:
Errors continue as the kernel appears to just make an "image" file as output. Work will continue, but i'll be switching computers. Also, there's school.. So I'll work hard as i can on the weekends
Sent from my SM-T210R using Tapatalk
Click to expand...
Click to collapse
What kind of output are you expecting? It is supposed to output a zImage. That is the actual kernel portion of the boot.img. You have to combine it with the ramdisk to make the full boot.img.
ps. Don't forget the modules.
gr8nole said:
What kind of output are you expecting? It is supposed to output a zImage. That is the actual kernel portion of the boot.img. You have to combine it with the ramdisk to make the full boot.img.
ps. Don't forget the modules.
Click to expand...
Click to collapse
Im expecting zImage but all i get is a file literally named "image"
Sent from my SM-T210R using Tapatalk
ajws7036 said:
Im expecting zImage buy all i get is a file literally named "image"
Sent from my SM-T210R using Tapatalk
Click to expand...
Click to collapse
What errors are you getting? Any?
gr8nole said:
What errors are you getting? Any?
Click to expand...
Click to collapse
Yes i'll post them after school
Some i know of are along the lines of "architecture not found".
Sent from my SM-T210R using Tapatalk
ajws7036 said:
Yes i'll post them after school
Some i know of are along the lines of "architecture not found".
Sent from my SM-T210R using Tapatalk
Click to expand...
Click to collapse
Did you create your environment with these commands?
Code:
export CROSS_COMPILE='/opt/toolchains/arm-eabi-4.6/bin/arm-eabi-'
export LDFLAGS=''
export CFLAGS=''
export SUBARCH=arm
export ARCH=arm
gr8nole said:
Did you create your environment with these commands?
Code:
export CROSS_COMPILE='/opt/toolchains/arm-eabi-4.6/bin/arm-eabi-'
export LDFLAGS=''
export CFLAGS=''
export SUBARCH=arm
export ARCH=arm
Click to expand...
Click to collapse
Yes but my toolchains are inbthe ndk folder
Sent from my SM-T210R using Tapatalk
How the development of kenel going
Sent from my Galaxy Nexus using Tapatalk

Install make command on my Android??

Is it possible to manually install/build the make command on an android device. Before you suggest it, botbrew doesn't want to work for my Nexus 5 or TMO SGS4. Thanks in advanced!
Sent from my Nexus 5 using XDA Premium 4 mobile app
Don't see why you need make. There's an apk here ( http://botbrew.com/). Don't know if this is possible, if you want to compile stuff why not cross-compile?
beekay201 said:
Don't see why you need make. There's an apk here ( http://botbrew.com/). Don't know if this is possible, if you want to compile stuff why not cross-compile?
Click to expand...
Click to collapse
Not brew spews all kinds of errors and won't work. How would I cross compile the make command for my phone or utils and or packages in general??
Sent from my Nexus 5 using XDA Premium 4 mobile app
codecaine21 said:
Not brew spews all kinds of errors and won't work. How would I cross compile the make command for my phone or utils and or packages in general??
Sent from my Nexus 5 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
What do you want to do? Build stuff? Do you have a bunch of makefiles you need running? I think that you'd still need a toolchain to build stuff, not just make.
My suggestion was to cross compile stuff on your PC that runs on your PHONE.
beekay201 said:
What do you want to do? Build stuff? Do you have a bunch of makefiles you need running? I think that you'd still need a toolchain to build stuff, not just make.
My suggestion was to cross compile stuff on your PC that runs on your PHONE.
Click to expand...
Click to collapse
Exactly what I want to do. Build a program from source. A C program tarball. But yes I have make files and all that good stuff. I can easily build on my Linux box but not my phone.
How do I go about building a toolchain and cross compiling? Do you have any links handy?
Sent from my Nexus 5 using XDA Premium 4 mobile app
I think the NDK is what I'm looking for. I hope it can cross compile lakes with make files, multiple c programs and shared object files.
Sent from my Nexus 5 using XDA Premium 4 mobile app

Categories

Resources