Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,732,619 Members 51,886 Now Online
XDA Developers Android and Mobile Development Forum

[Q] GCC-4.7 error compiling pure AOSP for Hammerhead

Tip us?
 
Skywalker.00
Old
#1  
Skywalker.00's Avatar
Senior Member - OP
Thanks Meter 460
Posts: 984
Join Date: Sep 2013
Location: Monroe, NC

 
DONATE TO ME
Default [Q] GCC-4.7 error compiling pure AOSP for Hammerhead

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.
 
Skywalker.00
Old
#2  
Skywalker.00's Avatar
Senior Member - OP
Thanks Meter 460
Posts: 984
Join Date: Sep 2013
Location: Monroe, NC

 
DONATE TO ME
BTW, I'm compiling on Linux Mint 16 Cinnamon
"Do or do not. There is no try..."
--------------------------------------------------------------------------------------------------
My Projects:
SlimKat 4.4.2 BETA 1.x for the Samsung Galaxy S Blaze 4G
--------------------------------------------------------------------------------------------------
Please, feel free to hit the
DONATE BUTTON
 
rootSU
Old
#3  
rootSU's Avatar
Senior Member
Thanks Meter 9822
Posts: 20,975
Join Date: Aug 2010
Location: Oxenhope, West Yorkshire, UK
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
Want to root/unroot? All important guides and info threads are contained within the "Sticky Roll-up" thread in General. Click the link below to get there!



Philz Touch Recovery with passkey secure lock

I do NOT reply to support queries over PM.
 
Skywalker.00
Old
#4  
Skywalker.00's Avatar
Senior Member - OP
Thanks Meter 460
Posts: 984
Join Date: Sep 2013
Location: Monroe, NC

 
DONATE TO ME
Quote:
Originally Posted by rootSU View Post
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
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
"Do or do not. There is no try..."
--------------------------------------------------------------------------------------------------
My Projects:
SlimKat 4.4.2 BETA 1.x for the Samsung Galaxy S Blaze 4G
--------------------------------------------------------------------------------------------------
Please, feel free to hit the
DONATE BUTTON
 
rootSU
Old
#5  
rootSU's Avatar
Senior Member
Thanks Meter 9822
Posts: 20,975
Join Date: Aug 2010
Location: Oxenhope, West Yorkshire, UK
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/8...ry-when-compil


Sent from my Nexus 5 using Tapatalk
Want to root/unroot? All important guides and info threads are contained within the "Sticky Roll-up" thread in General. Click the link below to get there!



Philz Touch Recovery with passkey secure lock

I do NOT reply to support queries over PM.
 
Skywalker.00
Old
#6  
Skywalker.00's Avatar
Senior Member - OP
Thanks Meter 460
Posts: 984
Join Date: Sep 2013
Location: Monroe, NC

 
DONATE TO ME
Quote:
Originally Posted by rootSU View Post
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/8...ry-when-compil


Sent from my Nexus 5 using Tapatalk
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
"Do or do not. There is no try..."
--------------------------------------------------------------------------------------------------
My Projects:
SlimKat 4.4.2 BETA 1.x for the Samsung Galaxy S Blaze 4G
--------------------------------------------------------------------------------------------------
Please, feel free to hit the
DONATE BUTTON
 
rootSU
Old
#7  
rootSU's Avatar
Senior Member
Thanks Meter 9822
Posts: 20,975
Join Date: Aug 2010
Location: Oxenhope, West Yorkshire, UK
You could try removing and re-initialising the environment. Start from scratch

Sent from my Nexus 5 using Tapatalk
Want to root/unroot? All important guides and info threads are contained within the "Sticky Roll-up" thread in General. Click the link below to get there!



Philz Touch Recovery with passkey secure lock

I do NOT reply to support queries over PM.
 
Skywalker.00
Old
#8  
Skywalker.00's Avatar
Senior Member - OP
Thanks Meter 460
Posts: 984
Join Date: Sep 2013
Location: Monroe, NC

 
DONATE TO ME
Quote:
Originally Posted by rootSU View Post
You could try removing and re-initialising the environment. Start from scratch

Sent from my Nexus 5 using Tapatalk
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
"Do or do not. There is no try..."
--------------------------------------------------------------------------------------------------
My Projects:
SlimKat 4.4.2 BETA 1.x for the Samsung Galaxy S Blaze 4G
--------------------------------------------------------------------------------------------------
Please, feel free to hit the
DONATE BUTTON
 
Skywalker.00
Old
#9  
Skywalker.00's Avatar
Senior Member - OP
Thanks Meter 460
Posts: 984
Join Date: Sep 2013
Location: Monroe, NC

 
DONATE TO ME
Quote:
Originally Posted by rootSU View Post
You could try removing and re-initialising the environment. Start from scratch

Sent from my Nexus 5 using Tapatalk
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
"Do or do not. There is no try..."
--------------------------------------------------------------------------------------------------
My Projects:
SlimKat 4.4.2 BETA 1.x for the Samsung Galaxy S Blaze 4G
--------------------------------------------------------------------------------------------------
Please, feel free to hit the
DONATE BUTTON
 
rootSU
Old
#10  
rootSU's Avatar
Senior Member
Thanks Meter 9822
Posts: 20,975
Join Date: Aug 2010
Location: Oxenhope, West Yorkshire, UK
Quote:
Originally Posted by Skywalker.00 View Post
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
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
Want to root/unroot? All important guides and info threads are contained within the "Sticky Roll-up" thread in General. Click the link below to get there!



Philz Touch Recovery with passkey secure lock

I do NOT reply to support queries over PM.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


XDA PORTAL POSTS

Run, Jump, and Shoot in Tales of Ciaxia

There are certain types of games that have become paramount of the portable gaming world. As we have … more

Samsung Gear Live Stock Firmware Image Pulled, Temp Root

Just yesterday,XDA Recognized Developer and TV ProducerAdamOutlertore apart … more

Draw a Line and Let Your Device Do the Rest with LineitApp

Over the years, since evenbefore Android entered the scene, we have striven to … more