Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
GCC Failed builds over NBD [CLOSED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
casso
Tux's lil' helper
Tux's lil' helper


Joined: 12 Mar 2006
Posts: 107
Location: Newcastle, NSW, Australia

PostPosted: Sat Jun 02, 2007 2:44 pm    Post subject: GCC Failed builds over NBD [CLOSED] Reply with quote

Hi,
I have just finished reading this thread: https://forums.gentoo.org/viewtopic-t-560087.html It gives some insight into a possible issue I may be having with my system, but then again it may not relate.

I am booting a Debian system over NBD, chrooting into /mnt/gentoo from the same block device, and running a 1GB swap via loopback. All of this uses only one NBD, mounted ext2. My kernel limits me to only ext2, and (as far as I can tell) only one NBD.

GCC over NFS fails. This is noted in bug report, sys-devel/gcc-4.1.1-r1 fails the bootstrap comparision on Efika. Even though this is for Efika, I used NFS for my filesystems and reproduced the same results. Unfortunately, I don't have as much RAM available as the Efika units. After reading this bug report, I made the switch to NBD.

To make matters worse, I only have a 10Mbit connection, which I think may only be half duplex. My switch has a collision light on it, and it keeps flashing when the network connection to this device is under load.

I have tried both gcc-4.1.1 under NFS, and gcc-4.1.2 under NBD. gcc-4.1.2 fails at this line:
Code:
gcc -c   -O -DENABLE_CHECKING -DENABLE_ASSERT_CHECKING -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wmissing-format-attribute    -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I/var/tmp/portage/sys-devel/gcc-4.1.2/work/gcc-4.1.2/gcc -I/var/tmp/portage/sys-devel/gcc-4.1.2/work/gcc-4.1.2/gcc/build -I/var/tmp/portage/sys-devel/gcc-4.1.2/work/gcc-4.1.2/gcc/../include -I/var/tmp/portage/sys-devel/gcc-4.1.2/work/gcc-4.1.2/gcc/../libcpp/include     -o build/varray.o /var/tmp/portage/sys-devel/gcc-4.1.2/work/gcc-4.1.2/gcc/varray.c
gcc   -O -DENABLE_CHECKING -DENABLE_ASSERT_CHECKING -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wmissing-format-attribute    -DHAVE_CONFIG_H -DGENERATOR_FILE  -o build/genattrtab \
 build/genattrtab.o build/genautomata.o \
 build/rtl.o build/read-rtl.o build/ggc-none.o build/min-insn-modes.o build/gensupport.o build/insn-conditions.o build/print-rtl.o build/errors.o \
 build/varray.o ../build-powerpc-unknown-linux-gnu/libiberty/libiberty.a -lm
build/genattrtab /var/tmp/portage/sys-devel/gcc-4.1.2/work/gcc-4.1.2/gcc/config/rs6000/rs6000.md > tmp-attrtab.c
Killed

A read of the system logs shows that the system ran out of memory, including swap space. The file in question (genattrtab) looks like it contains machine specific assembly code. I am not running an RS/6000 unit, so maybe I could get the build process to bypass anything not relating to my hardware.

My emerge --info output is show below:
Code:

System uname: 2.6.11-isobel-nbdc14 ppc 750CXe
Gentoo Base System release 1.12.9
Timestamp of tree: Wed, 23 May 2007 03:00:09 +0000
distcc 2.18.3 powerpc-unknown-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="ppc"
AUTOCLEAN="yes"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-Os"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo"
CXXFLAGS="-Os"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.pacific.net.au/linux/Gentoo http://distfiles.gentoo.org"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl apache2 bash-completion berkdb bitmap-fonts bzip2 clamav cli cracklib crypt cups dri fortran gdbm hardened iconv isdnlog kerberos ldap libg++ mailwrapper memlimit midi minimal mudflap ncurses nptl nptlonly openmp oss pam pcre perl pic ppc pppd python readline reflection samba sasl session socks5 spell spl ssl sysvipc tcpd threads truetype truetype-fonts type1-fonts unicode xorg zlib" ALSA_CARDS="aoa aoa-fabric-layout aoa-onyx aoa-soundbus aoa-soundbus-i2s aoa-tas aoa-toonie powermac usb-audio via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="chips dummy fbdev glint imstt mach64 mga nv r128 radeon s3 s3virge savage sisusb tdfx trident v4l voodoo"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

This is the extra strange part. The execution of make, gcc and cc1 are still taking place right now. I don't understand how the build process can continue if ebuild failed at this point. Then again, it may relate to using ebuild directly.

I chose to execute ebuild commands one at a time because I found it a rather large waste to continually extract the gcc tarball and other source files over and over, which sometimes failed on its own. Please note that I always ran make clean in the build directory before re-attempting a build. This error is reproduceable.

I just don't know how to get around this issue. I could always refuse to build gcc and glibc (the next step) from source, but I really want to make use of hardened. Some of you might have picked up on what system I am developing on. Please don't file this under alternate architectures as I don't truly see this as being that alternative. Please also note, I do not have any way of connecting a local disk drive to this unit. The closest option is read only media, or something much, much slower than the 1MB/s I am getting.
_________________
Need assistance with any of the following? Just PM me and I will see what I can do

LDAP, Kerberos , SSH, Samba, PPP, DHCP, NTP, autofs, CUPS


Last edited by casso on Wed Aug 27, 2008 12:38 am; edited 1 time in total
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Sat Jun 02, 2007 4:07 pm    Post subject: Reply with quote

The efika has 128MB ram. You have less? Well, given enough swap space and time it should be possible to build glibc and gcc even with 64MB, but I might be wrong.
Swapping over the net is darn tricky and very slow. Do yourself a favour and get a harddisk :)
Oh, and glibc-2.5 and gcc-4.1x as in portage don't support hardened. You'll need to use kevquinns overlay if you want hardened or use older stage files that still contain glibc-2.3 and gcc-3.4x.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
casso
Tux's lil' helper
Tux's lil' helper


Joined: 12 Mar 2006
Posts: 107
Location: Newcastle, NSW, Australia

PostPosted: Sun Jun 03, 2007 1:55 am    Post subject: Reply with quote

As I already stated, I cannot connect a hard drive to this computer. It is not possible in any way. I hope to eventually use a read only filesystem image on DVD, coupled with a read write copy stored either across NBD or on an SD card. The SD card is the only possible local storage option I have.

If I can't natively use hardened, well then that is a bt unfortunate, but I do still wish to press on with the build. I know I will be doing a large amount of swapping over the network, but if I can manage to get this to work, then that is one hell of an achievement for me.

I don't know what is causing the error I am seeing. That is what troubles me. I don't think any gcc build can manage to flood over 1GB of swap with the options I am using. If there are any other suggestions for network configurations that I could use, I would love to hear it.

Since I don't have another PPC, I was thinking of using qemu-ppc to boot Gentoo, then perform the builds on there. I currently have distcc turned off to compile gcc, but I make heavy use of it when compiling normally. Unfortunately, I cannot get a minimal PPC CD to boot under qemu-ppc. Again I need to go to Debian, and unfortunately use a 2.4 kernel. I also had trouble with Yaboot under qemu-ppc. Since I wish to use NPTL, I need to go to a 2.6 kernel, ruling out PearPC as useful, since it does not support 2.6 kernels.
_________________
Need assistance with any of the following? Just PM me and I will see what I can do

LDAP, Kerberos , SSH, Samba, PPP, DHCP, NTP, autofs, CUPS
Back to top
View user's profile Send private message
casso
Tux's lil' helper
Tux's lil' helper


Joined: 12 Mar 2006
Posts: 107
Location: Newcastle, NSW, Australia

PostPosted: Wed Aug 27, 2008 12:37 am    Post subject: Update Reply with quote

I eventually purchased an iMac G3 to perform the builds for this machine. The problem is that there simply is not enough memory to build GCC within this environment, and I don't see any possible way to work around this.

Thread can now be closed.
_________________
Need assistance with any of the following? Just PM me and I will see what I can do

LDAP, Kerberos , SSH, Samba, PPP, DHCP, NTP, autofs, CUPS
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum