Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 58426 - gcc 3.4.1 fails to emerge on Cobalt RaQ (MIPS)
Summary: gcc 3.4.1 fails to emerge on Cobalt RaQ (MIPS)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: MIPS Linux
: High normal (vote)
Assignee: MIPS Porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-26 09:02 UTC by Ted Baker
Modified: 2004-09-12 08:13 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ted Baker 2004-07-26 09:02:14 UTC
Get pulled in with emerge -u world (which was a surprise in itself as I thought 3.4.1 was a masked build).

When trying to compile /var/tmp/portage/gcc-3.4.1/work/gcc-3.4.1/gcc/crtstuff.c -DCRT_BEGIN -o crtbegin.o I get

cc1: ./include: not a directory
cc1: ./include: not a directory
cc1: /usr/include: not a directory
cc1: .: not a directory
cc1: .: not a directory
cc1: /var/tmp/portage/gcc-3.4.1/work/gcc-3.4.1/gcc: not a directory
cc1: /var/tmp/portage/gcc-3.4.1/work/gcc-3.4.1/gcc/.: not a directory
cc1: /var/tmp/portage/gcc-3.4.1/work/gcc-3.4.1/gcc/../include: not a directory
make[2]: *** [crtbegin.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/gcc-3.4.1/work/build/gcc'
make[1]: *** [stageprofile_build] Error 2
make[1]: Leaving directory `/var/tmp/portage/gcc-3.4.1/work/build/gcc'
make: *** [profiledbootstrap] Error 2

!!! ERROR: sys-devel/gcc-3.4.1 failed.
!!! Function src-compile, Line 656, Exitcode 2
!!! (no error message)

Stupid question from a non-geek! Why does cc1 and make list different directories in their error messages?

Philip

Reproducible: Always
Steps to Reproduce:
1.
2.
3.




Portage 2.0.50-r9 (cobalt-mips-1.4, gcc-3.3.3, glibc-2.3.3_pre20040207-r0, 2.4.2
2-mipscvs-20031015)
=================================================================
System uname: 2.4.22-mipscvs-20031015 mips Nevada V1.0  FPU V1.0
Gentoo Base System version 1.4.9
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="mips ~mips"
AUTOCLEAN="yes"
CFLAGS="-Os -mips4 -mabi=32 -mtune=r5000 -fomit-frame-pointer -fforce-addr -pipe
"
CHOST="mipsel-unknown-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/
config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-Os -mips4 -mabi=32 -mtune=r5000 -fomit-frame-pointer -fforce-addr -pi
pe"
DISTDIR="/usr/portage/distfiles"
FEATURES=""
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/d
istributions/gentoo"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="gdbm gpm libwww mips mysql pam perl python readline sdl slang ssl tcpd"
Comment 1 Ted Baker 2004-07-26 09:10:13 UTC
Oops - now see why it got pulled in to emerge -u world!! Doh!
Comment 2 Stephen Becker (RETIRED) gentoo-dev 2004-07-26 10:42:12 UTC
Could you unmask 3.4.1-r1 and give it a try?  The 3.4.1 ebuild failed to build on some machines for unknown reasons.  Also, how much RAM does your raq have?
Comment 3 Ted Baker 2004-07-26 11:58:16 UTC
RaQ has 64Mb.

I'll run the lastest ebuild when the current -u world without the ~mips is finished (probably 24 hours) and report findings.
Comment 4 Stephen Becker (RETIRED) gentoo-dev 2004-07-26 12:06:23 UTC
Ok, 64mb is a pretty low amount of RAM for gentoo...at least on mips machines.  My Indy with only 64mb of ram has never been able to build glibc, and usually dies on gcc as well.  You might try giving the machine at least 128mb of swap (if not more) if it fails again the next time you try it.
Comment 5 Joshua Kinard gentoo-dev 2004-07-26 13:03:49 UTC
Your 3.4.1 merge is failing on the file "crtbegin.o".  Could you trace up the error list, and paste/attach a more complete copy of the error?  I'm bumping into an error on crtbegin.o where xgcc attempts to allocate something like 1GB of memory (in a system w/ 144MB), and thus fails.  Curious to see if your error is the same.

Btw, 3.4.x gets installed if you're running ~mips.
Comment 6 Ted Baker 2004-07-26 16:16:31 UTC
Stephen - it has 1Gb of swap and 64Mb physical memory.

Joshua - will do once the remaining 38 packages (including gcc 3.3.3-r6) finish! You want me to test 3.4.1 or 3.4.1-r1?
Comment 7 Joshua Kinard gentoo-dev 2004-07-27 22:29:14 UTC
Okay, I fixed by problem by re-merging glibc w/ 3.4.0-r6, and then merging 3.4.1.  You can try the same if you want, see how far it gets.  Otherwise, I can build a binpkg if needed (no f77)
Comment 8 Joshua Kinard gentoo-dev 2004-09-06 23:59:54 UTC
Philip, Any change on this yet?
Comment 9 Ted Baker 2004-09-07 16:55:04 UTC
Sorry guys - been working hard on a new client had had my annual vacation. Guess the cracks opened up.

Am emerging gcc-3.4.1-r2. Will probably take 24 hours. If this fails, I'll try Joshua's work-around.

Philip
Comment 10 Ted Baker 2004-09-11 17:54:36 UTC
This worked! Apologies for the delayed follow-up - both hardrives in my 2 RaQs died on Friday so it's been a mad panic getting the mail server back up again.

Philip
Comment 11 Joshua Kinard gentoo-dev 2004-09-12 01:30:37 UTC
Awesome, thanks for the info.  If you're feeling really brave, gcc-3.4.2 is now in portage :)
Comment 12 Ted Baker 2004-09-12 08:13:31 UTC
Not until I've got new hard drives and softraid organised!!!

If I may, I'd like to pick your brains about the 2.6 kernel offline later this week - I'm going on the road until Thursday.

Philip