LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Gentoo (http://www.linuxquestions.org/questions/gentoo-87/)
-   -   MAJOR Problem - assistance appreciated (http://www.linuxquestions.org/questions/gentoo-87/major-problem-assistance-appreciated-919712/)

MarcusWebb1966 12-20-2011 04:58 PM

MAJOR Problem - assistance appreciated
 
HI

We had a server that failed to compile gcc-4.3.4 or glibc-2.11.x (can't remember version numbers at this point).

I googled around a bit and found a forum entry that suggested you could download these from tinderbox (http://tinderbox.dev.gentoo.org/) and extract them to their proper locations, then emerge to get the system up to date.

Well, long story short, I did this with both, but then started getting ELF32 errors (as it's a 64-bit box). The wisdom of directly trying ANYTHING from the internet notwithstanding, I'm now planning on booting from a minimal install CD to get to a place where I can chroot into the environment to get the files in place that I need to replace these "corrupted" ones.

My plan is to download a stage3 tarball. However, obviously I want to make sure I get the right one. If my previous working environment on this server was :

CHOST="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
or
CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="${CFLAGS}"

which stage3 tarball do I need? or is this the most sane method for recovery

All assistance greatly appreciated!

wile_coyote 12-20-2011 10:38 PM

MarcusWebb1966, I believe the AMD64 (from the CHOST line of the make.conf you posted) tarball is the one to go with. I may be wrong though. Hopefully, another member maybe able to confirm me or correct me.

Good luck

i92guboj 12-22-2011 08:21 AM

amd64, yes. However, at this point, I recommend you to save whatever you did by hand (mostly under /etc/, probably) and start from scratch. I can't know at all to what degree your system is corrupted.

If you want to use 32 bits, then pick an x86/i686 stage3, if you want 64, then you need to use amd64, regardless of the manufacturer of your processor.

MarcusWebb1966 12-22-2011 10:04 AM

thanks,both of you. I am about to attempt the same - I'll let you know how things go.

Your assistance is greatly appreciated

MarcusWebb1966 12-22-2011 12:30 PM

Thanks Wile_coyote

However when I finally got in there, downloaded and then went to emerge gentoo-sources I got the following major headache:
emerge gentoo-sources

wile_coyote 12-22-2011 12:45 PM

No problem. What processor is your box running? Your make has different settings, one for nocona and one for native? Is your processor one that nocona would be used for? On my Core i7 I use the native flag.

wile_coyote 12-22-2011 12:54 PM

Also, it would be worth checking to see what Python level/version you are at. Do a google search on the first place the error shows up (line 428 of your link I believe). Multiple post from the Gentoo forums will show up as search results.


All times are GMT -5. The time now is 04:04 AM.