View previous topic :: View next topic |
Author |
Message |
nomind Apprentice
Joined: 03 Feb 2005 Posts: 270
|
Posted: Fri Mar 11, 2005 10:12 pm Post subject: Can't compile anything! (Not even the kernel!!!) |
|
|
Help!...(drowning)...Help!...(gulp)
Recently I behaved like a complete moron and changed my CFLAGS from -march=prescott to -march=pentium4 (even though I actually have a Prescott 530 CPU; Xorg wouldn't compile, so I tried to go for a more conservative arch). Now emerge doesn't work at all (for anything). Moreover, even my kernel won't compile! Here is the ouput from "make":
Code: | CHK include/linux/version.h
SPLIT include/linux/autoconf.h -> include/config/*
make[1]: `arch/i386/kernel/asm-offsets.s' is up to date.
CHK include/linux/compile.h
dnsdomainname: Host name lookup failure
GZIP kernel/config_data.gz
make[1]: *** [kernel/config_data.gz] Error 132
make: *** [kernel] Error 2
|
When I go to compile anything - doesn't matter if it's lynx or xorg - I get the following errors:
Code: | Calculating world dependencies >>> Unpacking source...
>>> Unpacking texinfo-4.7.tar.bz2 to /var/tmp/portage/texinfo-4.7-r1/work
bzip2: I/O or other error, bailing out. Possible reason follows.
bzip2: Broken pipe
Input file = /usr/portage/distfiles/texinfo-4.7.tar.bz2, output file = (stdout)
/usr/lib/portage/bin/ebuild.sh: line 1732: 6203 Exit 1 bzip2 -dc "${DISTDIR}/${x}"
6204 Illegal instruction | tar xf - ${tarvars}
!!! ERROR: sys-apps/texinfo-4.7-r1 failed.
!!! Function unpack, Line 380, Exitcode 132
!!! failure unpacking texinfo-4.7.tar.bz2
!!! If you need support, post the topmost build error, NOT this status message.
...done!
>>> emerge (1 of 55) sys-apps/texinfo-4.7-r1 to /
>>> md5 src_uri ;-) texinfo-4.7.tar.bz2
|
This is with my original CFLAGS, before I decided to change the -march setting to pentium4. I reset it to the originals.
What's wrong and how can I fix it? Is there hope of salvation or must I nuke everything and recreate my entire Gentoo system?
Thanks a lot. |
|
Back to top |
|
|
qmp n00b
Joined: 13 Feb 2005 Posts: 30 Location: Munich, Germany
|
Posted: Fri Mar 11, 2005 10:35 pm Post subject: |
|
|
i guess you recompiled ur gcc with the new flags -> broken.
Use live CD to recreate/overwrite GCC.
Q |
|
Back to top |
|
|
Morimando Guru
Joined: 14 Feb 2005 Posts: 339 Location: Germany
|
Posted: Sat Mar 12, 2005 1:06 am Post subject: |
|
|
uhm normally kernel should compile no matter what the CFLAGS are, if i remember that right the kernel has its own CFLAGS.
do gcc-config -l to look up which gcc you're using. If it points to something unnormal do gcc-config <number> to switch to the appropriate gcc. If you want you can try emerging gcc-3.4.3-20050110 which works nice over here.
Mightbe gcc is kind of broken. _________________ That young girl is one of the least benightedly unintelligent organic life forms it has been my profound lack of pleasure not to be able to avoid meeting.
-- Marvin |
|
Back to top |
|
|
Arainach l33t
Joined: 08 Jul 2004 Posts: 609
|
Posted: Sat Mar 12, 2005 7:10 am Post subject: |
|
|
Yeah, the Kernel ignores your CFLAGS in favor of a rock-solid set, so your toolkit is screwy. Under NO CIRCUMSTANCES should you upgrade to gcc 3.4.3-20050110 - it's been known to cause strange compile errors like what you're getting. I highly reccomend gcc 3.4.3-r1, the stable release. _________________ Gentoo: Stage3 w/ NPTL & udev, gcc 3.4.4 full rebuild
Kernel: 2.6.15-gentoo-r1 w/ 1G-Lowmem Patch
System: Athlon XP 2.2Ghz/1GB Corsair Value/160GB, 250GB WD IDE/128MB GeForce 6800/Sony 17" Trinitron G200 @ 1280x1024x75Hz |
|
Back to top |
|
|
qmp n00b
Joined: 13 Feb 2005 Posts: 30 Location: Munich, Germany
|
Posted: Sat Mar 12, 2005 8:38 am Post subject: |
|
|
i was thinking about a gcc compiled with faulty flags. _________________ Regards,
Q
PS: Thanks for your time and patience |
|
Back to top |
|
|
nomind Apprentice
Joined: 03 Feb 2005 Posts: 270
|
Posted: Sat Mar 12, 2005 5:39 pm Post subject: |
|
|
Thank you so much for the replies!!!
I'm currently using gcc-3.3.4, the one that shipped with Gentoo Live 2004.3. After much thinking, I finally managed to get the gcc-3.4.3 files onto my ext3 partition, straight from the Windows NTFS. I haven't installed it though. I'm quite sure that I have 3.4.3-r1, bcoz I never download experimental stuff for important things like gcc (I can't tell you for sure as I'm currently writing this message from Windows, but I'd bet money on r1).
The next time I boot into Gentoo, I'll install 3.4.3 right away.
Thanks once again for the help! |
|
Back to top |
|
|
|