View previous topic :: View next topic |
Author |
Message |
mahdi1234 Guru
Joined: 19 Feb 2005 Posts: 559 Location: Being There
|
Posted: Wed Feb 27, 2013 9:25 pm Post subject: broken gcc, did tinderbox want back my i686-pc-linu[SOLVED] |
|
|
hi there,
I got broke gcc so I took the one from tinderbox - http://tinderbox.dev.gentoo.org/default/linux/x86/sys-devel/gcc-4.6.3.tbz2 for which I had to change CHOST to i486 to be able install it. Now I can compile, but only with i486 however, I want i686 back.
How should I proceed? I guess the best would be grab i686 from tinderbox, but I cannot find it for 4.6.3? Or how do I swith back to my CHOST, when I change to i686 gcc breaks during compilation immediately (as well as other packages).
with chost i486
Code: |
gcc-config -l
[1] i486-pc-linux-gnu-4.6.3 * |
with chost i686
Code: |
gcc-config -l
* gcc-config: Active gcc profile is invalid!
[1] i486-pc-linux-gnu-4.6.3 * |
thanks & cheers _________________ http://gentoo.mahdi.cz <-- gentoo package search engine
Last edited by mahdi1234 on Fri Mar 01, 2013 5:01 pm; edited 1 time in total |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54028 Location: 56N 3W
|
Posted: Wed Feb 27, 2013 9:48 pm Post subject: |
|
|
mahdi1234,
It actually makes very little difference.
Your CHOST shows what system your tool chain will run on and be built for.
It will still produce i686 or whatever you have in your CFLAGS for -march optimised code.
A i686 CHOST tool chain may run a little faster but it will take a very long time before the time savings equal the time you spend fixing your CHOST.
It can be done. heres how. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
mahdi1234 Guru
Joined: 19 Feb 2005 Posts: 559 Location: Being There
|
Posted: Wed Feb 27, 2013 10:07 pm Post subject: |
|
|
NeddySeagoon wrote: |
A i686 CHOST tool chain may run a little faster but it will take a very long time before the time savings equal the time you spend fixing your CHOST.
It can be done. heres how. |
Thanks for info. Actually I have the whole system built with i686 CHOST and only got i486 gcc from tinderbox as mine got broken (stupidly following mpc revdep rebuild and not doing it once again before reboot :/ anyway), so what you're saying is that I can leave it as is?
Why should I need to rebuild everything as per guide, when my whole system is built with i686? _________________ http://gentoo.mahdi.cz <-- gentoo package search engine |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54028 Location: 56N 3W
|
Posted: Wed Feb 27, 2013 10:13 pm Post subject: |
|
|
mahdi1234,
The guide was written for users needing to move from an i386 CHOST to an i686 CHOST when glibc dropped support for i386.
It was such users only way forward. Along with the CHOST change was an update to glibc and a new threading model.
You only need to rebuild your toolchain - in the right order, as per the CHOST guide. You already have everything else that came with the i383 to i686 upgrade. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
mahdi1234 Guru
Joined: 19 Feb 2005 Posts: 559 Location: Being There
|
Posted: Wed Feb 27, 2013 10:25 pm Post subject: |
|
|
The problem is I can't even do that - when changing CHOST back to i686
Quote: | emerge -av1 binutils
...
checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
checking for C compiler default output file name...
configure: error: in `/var/tmp/portage/sys-devel/binutils-2.22-r1/work/build':
configure: error: C compiler cannot create executables
See `config.log' for more details.
|
It searches for i686-pc-linux-gnu-gcc, always. _________________ http://gentoo.mahdi.cz <-- gentoo package search engine |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54028 Location: 56N 3W
|
Posted: Thu Feb 28, 2013 4:38 pm Post subject: |
|
|
mahdi1234,
There is another way ...
In /usr/portage/scripts is a script called bootstrap.sh.
This runs the stage1 build, which is yourtoolchain
I'm not 100% sure this will work as the CHOST value is hard coded into the toolchain all over the place and your current toolchain is a mix of CHOST i486 and CHOST i686.
That may be permanently broken.
I may have gcc-4.6.3 built on a 32 bit Intel Atom, which I could turn into a binary package for you. That will be built with a i686 CHOST.
There is another way too. I'll describe that later if needed. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
mahdi1234 Guru
Joined: 19 Feb 2005 Posts: 559 Location: Being There
|
Posted: Thu Feb 28, 2013 5:03 pm Post subject: |
|
|
Thanks Neddy, if you could post the built gcc, it would be great.
I tried today in some spare time setup virtual from stage 3 and then build gcc + create binary package, but for some reason it did not work after restoring on my local. I may need to try rebuild tomorrow with the same make.conf as I have on home machine.
I've tried bootstrap, but it fails during emerge -e system
Code: | * gcc-config: Active gcc profile is invalid!
gcc-config: error: could not run/locate 'i686-pc-linux-gnu-cpp'
|
_________________ http://gentoo.mahdi.cz <-- gentoo package search engine |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54028 Location: 56N 3W
|
Posted: Fri Mar 01, 2013 12:31 am Post subject: |
|
|
mahdi1234,
As I said, the package is built to suit a Atom N270.
CFLAGS are Code: | CFLAGS="-O2 -msse3 -march=prescott -mfpmath=sse -pipe -fomit-frame-pointer" |
The file is called i686-gcc-4.6.3.tbz2, its in http://dev.gentoo.org/~neddyseagoon. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
mahdi1234 Guru
Joined: 19 Feb 2005 Posts: 559 Location: Being There
|
Posted: Fri Mar 01, 2013 5:00 pm Post subject: |
|
|
Thanks a lot Neddy, my gentoo became sane again :)
cheers _________________ http://gentoo.mahdi.cz <-- gentoo package search engine |
|
Back to top |
|
|
|