You are not logged in.

#1 2012-04-10 15:28:53

t0mm13b
Member
Registered: 2011-08-11
Posts: 10

[SOLVED] Gcc compiler toolchain 4.7

Hi,

Am on Arch 64bit, and recently updated gcc and their appropriate toolchain on my laptop

I have been building AOSP Android lately and am facing a load of compile errors (I suspect its the new C++ 0x11 modes switched on somewhere), however, I transferred the source to a 32bit desktop machine that has gcc 4.6.3, and it compiled fine albeit slowly.

At this point I am not looking for suggestions to say go use google-fu to find out if others have that issue with building AOSP or its irrelevant to this thread smile

Rather, I am looking for a way on how to downgrade the gcc toolchain and what repercussions would that have on the multilibs that also got upgraded as well? smile

Would it be a matter of going to /var/cache/pacman/pkg and issue pacman -U gcc-4.6.3...tar.gz to downgrade? smile

Cheers, smile

Last edited by t0mm13b (2012-04-11 00:51:16)

Offline

#2 2012-04-11 00:50:55

t0mm13b
Member
Registered: 2011-08-11
Posts: 10

Re: [SOLVED] Gcc compiler toolchain 4.7

Right, for reference, the last good known working toolchain prior to 4.7 was as follows in /var/cache/pacman/pkg:

  • gcc-libs-multilib-4.6.3-1-x86_64.pkg.tar.xz

  • gcc-multilib-4.6.3-1-x86_64.pkg.tar.xz

  • lib32-gcc-libs-4.6.3-1x86_64.pkg.tar.xz

  • libtool-multilib-2.4.2-4-x86_64.pkg.tar.xz

Okie, this is what I did

pacman -U libtool-multilib-2.4.2-4-x86_64.pkg.tar.xz lib32-gcc-libs-4.6.3-1-x86_64.pkg.tar.xz gcc-libs-multilib-4.6.3-1-x86_64.pkg.tar.xz gcc-multilib-4.6.3-1-x86_64.pkg.tar.xz

And to prevent any future breakage, I have added this to my /etc/pacman.conf

IgnorePkg = gcc gcc-libs gcc-libs-multilib gcc-multilib lib32-gcc-libs libtool libtool-multilib

AOSP compiles happily to say and am happy now \o/

Thanks again, will leave this here for reference for anyone else who encounters odd compile issues smile

Last edited by t0mm13b (2012-04-11 00:54:51)

Offline

#3 2012-04-11 01:34:25

Allan
is always right
From: Brisbane, AU
Registered: 2007-06-09
Posts: 10,463
Website

Re: [SOLVED] Gcc compiler toolchain 4.7

That will be fun...   

The correct way is to build a gcc-4.6 package and compile your program using that.

Offline

#4 2012-04-11 01:38:09

t0mm13b
Member
Registered: 2011-08-11
Posts: 10

Re: [SOLVED] Gcc compiler toolchain 4.7

Allan wrote:

That will be fun...   

The correct way is to build a gcc-4.6 package and compile your program using that.

Ha! big_smile big_smile big_smile

Well... It takes AOSP GB 2.3.7 android build 8 hours on 32bit crappy desktop machine, 40mins on 64bit laptop big_smile smile

PS: Loved your blog entry about "Windows Service Center", that made me LOL!!!! Nice one!

Last edited by t0mm13b (2012-04-11 01:46:26)

Offline

Board footer

Powered by FluxBB