Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Indigo2 (IP22) building glibc-2.9
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
gtbX
Tux's lil' helper
Tux's lil' helper


Joined: 11 Oct 2003
Posts: 126

PostPosted: Sat Oct 03, 2009 8:10 pm    Post subject: Indigo2 (IP22) building glibc-2.9 Reply with quote

After finally getting a drive sled and netbooting this machine, I've managed to boot a working kernel to a stage3 install. The initial problem is that udev won't start - can't connect to netlink socket. I got around that by passing the boot parameter gentoo=noudev, installed the latest portage and now I'm trying to install the latest udev. The newest udev requires glibc-2.9 to be installed.

Long story short, emerging glibc-2.9_p20081201-r3 fails with:

Code:

QA Notice: Static ELF: /var/tmp/portage/sys-libs/glibc-2.9_p20081201-r3/work/build-default-mips-unknown-linux-gnu-nptl/elf/ld.so.1: /var/tmp/portage/sys-libs/glibc-2.9_p20081201-r3/work/build-default-mips-unknown-linux-gnu-nptl/elf/ld.so.1 --library-path /var/tmp/portage/sys-libs/glibc-2.9_p20081201-r3/work/build-default-mips-unknown-linux-gnu-nptl:/var/tmp/portage/sys-libs/glibc-2.9_p20081201-r3/work/build-default-mips-unknown-linux-gnu-nptl/math:/var/tmp/portage/sys-libs/glibc-2.9_p20081201-r3/work/build-default-mips-unknown-linux-gnu-nptl/elf:/var/tmp/portage/sys-libs/glibc-2.9_p20081201-r3/work/build-default-mips-unknown-linux-gnu-nptl/dlfcn:/var/tmp/portage/sys-libs/glibc-2.9_p20081201-r3/work/build-default-mips-unknown-linux-gnu-nptl/nss:/var/tmp/portage/sys-libs/glibc-2.9_p20081201-r3/work/build-default-mips-unknown-linux-gnu-nptl/nis:/var/tmp/portage/sys-libs/glibc-2.9_p20081201-r3/work/build-default-mips-unknown-linux-gnu-nptl/rt:/var/tmp/portage/sys-libs/glibc-2.9_p20081201-r3/work/build-default-mips-unknown-linux-gnu-nptl/resolv:/var/tmp/portage/sys-libs/glibc-2.9_p20081201-r3/work/build-default-mips-unknown-linux-gnu-nptl/crypt:/var/tmp/portage/sys-libs/glibc-2.9_p20081201-r3/work/build-default-mips-unknown-linux-gnu-nptl/nptl /var/tmp/portage/sys-libs/glibc-2.9_p20081201-r3/work/build-default-mips-unknown-linux-gnu-nptl/sunrpc/rpcgen -Y ../scripts -c rpcsvc/bootparam_prot.x -o /var/tmp/portage/sys-libs/glibc-2.9_p20081201-r3/work/build-default-mips-unknown-linux-gnu-nptl/sunrpc/xbootparam_prot.T
mkdir /var/tmp/portage/sys-libs/glibc-2.9_p20081201-r3/work/build-default-mips-unknown-linux-gnu-nptl/sunrpc/rpcsvc
/var/tmp/portage/sys-libs/glibc-2.9_p20081201-r3/work/build-default-mips-unknown-linux-gnu-nptl/sunrpc/rpcgen: symbol lookup error: /var/tmp/portage/sys-libs/glibc-2.9_p20081201-r3/work/build-default-mips-unknown-linux-gnu-nptl/dlfcn/libdl.so.2: undefined symbol: GLIBC_PRIVATE, version GLIBC_PRIVATE
make[2]: *** [/var/tmp/portage/sys-libs/glibc-2.9_p20081201-r3/work/build-default-mips-unknown-linux-gnu-nptl/sunrpc/xbootparam_prot.stmp] Error 127
make[2]: *** Waiting for unfinished jobs....
CPP='mips-unknown-linux-gnu-gcc -mabi=32 -E -x c-header'  /var/tmp/portage/sys-libs/glibc-2.9_p20081201-r3/work/build-default-mips-unknown-linux-gnu-nptl/elf/ld.so.1 --library-path /var/tmp/portage/sys-libs/glibc-2.9_p20081201-r3/work/build-default-mips-unknown-linux-gnu-nptl:/var/tmp/portage/sys-libs/glibc-2.9_p20081201-r3/work/build-default-mips-unknown-linux-gnu-nptl/math:/var/tmp/portage/sys-libs/glibc-2.9_p20081201-r3/work/build-default-mips-unknown-linux-gnu-nptl/elf:/var/tmp/portage/sys-libs/glibc-2.9_p20081201-r3/work/build-default-mips-unknown-linux-gnu-nptl/dlfcn:/var/tmp/portage/sys-libs/glibc-2.9_p20081201-r3/work/build-default-mips-unknown-linux-gnu-nptl/nss:/var/tmp/portage/sys-libs/glibc-2.9_p20081201-r3/work/build-default-mips-unknown-linux-gnu-nptl/nis:/var/tmp/portage/sys-libs/glibc-2.9_p20081201-r3/work/build-default-mips-unknown-linux-gnu-nptl/rt:/var/tmp/portage/sys-libs/glibc-2.9_p20081201-r3/work/build-default-mips-unknown-linux-gnu-nptl/resolv:/var/tmp/portage/sys-libs/glibc-2.9_p20081201-r3/work/build-default-mips-unknown-linux-gnu-nptl/crypt:/var/tmp/portage/sys-libs/glibc-2.9_p20081201-r3/work/build-default-mips-unknown-linux-gnu-nptl/nptl /var/tmp/portage/sys-libs/glibc-2.9_p20081201-r3/work/build-default-mips-unknown-linux-gnu-nptl/sunrpc/rpcgen -Y ../scripts -h rpcsvc/bootparam_prot.x -o /var/tmp/portage/sys-libs/glibc-2.9_p20081201-r3/work/build-default-mips-unknown-linux-gnu-nptl/sunrpc/rpcsvc/bootparam_prot.T
QA Notice: Static ELF: /var/tmp/portage/sys-libs/glibc-2.9_p20081201-r3/work/build-default-mips-unknown-linux-gnu-nptl/elf/ld.so.1: /var/tmp/portage/sys-libs/glibc-2.9_p20081201-r3/work/build-default-mips-unknown-linux-gnu-nptl/elf/ld.so.1 --library-path /var/tmp/portage/sys-libs/glibc-2.9_p20081201-r3/work/build-default-mips-unknown-linux-gnu-nptl:/var/tmp/portage/sys-libs/glibc-2.9_p20081201-r3/work/build-default-mips-unknown-linux-gnu-nptl/math:/var/tmp/portage/sys-libs/glibc-2.9_p20081201-r3/work/build-default-mips-unknown-linux-gnu-nptl/elf:/var/tmp/portage/sys-libs/glibc-2.9_p20081201-r3/work/build-default-mips-unknown-linux-gnu-nptl/dlfcn:/var/tmp/portage/sys-libs/glibc-2.9_p20081201-r3/work/build-default-mips-unknown-linux-gnu-nptl/nss:/var/tmp/portage/sys-libs/glibc-2.9_p20081201-r3/work/build-default-mips-unknown-linux-gnu-nptl/nis:/var/tmp/portage/sys-libs/glibc-2.9_p20081201-r3/work/build-default-mips-unknown-linux-gnu-nptl/rt:/var/tmp/portage/sys-libs/glibc-2.9_p20081201-r3/work/build-default-mips-unknown-linux-gnu-nptl/resolv:/var/tmp/portage/sys-libs/glibc-2.9_p20081201-r3/work/build-default-mips-unknown-linux-gnu-nptl/crypt:/var/tmp/portage/sys-libs/glibc-2.9_p20081201-r3/work/build-default-mips-unknown-linux-gnu-nptl/nptl /var/tmp/portage/sys-libs/glibc-2.9_p20081201-r3/work/build-default-mips-unknown-linux-gnu-nptl/sunrpc/rpcgen -Y ../scripts -h rpcsvc/bootparam_prot.x -o /var/tmp/portage/sys-libs/glibc-2.9_p20081201-r3/work/build-default-mips-unknown-linux-gnu-nptl/sunrpc/rpcsvc/bootparam_prot.T
/var/tmp/portage/sys-libs/glibc-2.9_p20081201-r3/work/build-default-mips-unknown-linux-gnu-nptl/sunrpc/rpcgen: symbol lookup error: /var/tmp/portage/sys-libs/glibc-2.9_p20081201-r3/work/build-default-mips-unknown-linux-gnu-nptl/dlfcn/libdl.so.2: undefined symbol: GLIBC_PRIVATE, version GLIBC_PRIVATE
make[2]: *** [/var/tmp/portage/sys-libs/glibc-2.9_p20081201-r3/work/build-default-mips-unknown-linux-gnu-nptl/sunrpc/rpcsvc/bootparam_prot.stmp] Error 127
make[2]: Leaving directory `/var/tmp/portage/sys-libs/glibc-2.9_p20081201-r3/work/glibc-2.9-20081201/sunrpc'
make[1]: *** [sunrpc/others] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-libs/glibc-2.9_p20081201-r3/work/glibc-2.9-20081201'
make: *** [all] Error 2
 *
 * ERROR: sys-libs/glibc-2.9_p20081201-r3 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3630:  Called eblit-run 'src_compile'
 *             environment, line 1188:  Called eblit-glibc-src_compile
 *       src_compile.eblit, line  203:  Called toolchain-glibc_src_compile
 *       src_compile.eblit, line  123:  Called die
 * The specific snippet of code:
 *         make PARALLELMFLAGS="${MAKEOPTS}" || die "make for ${ABI} failed"
 *  The die message:
 *   make for default failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/sys-libs/glibc-2.9_p20081201-r3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-libs/glibc-2.9_p20081201-r3/temp/environment'.
 *

>>> Failed to emerge sys-libs/glibc-2.9_p20081201-r3, Log file:

>>>  '/var/tmp/portage/sys-libs/glibc-2.9_p20081201-r3/temp/build.log'


This fails quite far into the compilation, and even with an amd64 distcc helper, it still took a long time to get to this point.

[edit: this is an IP22 machine, not IP28]
Back to top
View user's profile Send private message
gtbX
Tux's lil' helper
Tux's lil' helper


Joined: 11 Oct 2003
Posts: 126

PostPosted: Wed Oct 07, 2009 3:20 am    Post subject: Reply with quote

So I've tried it again a few times, and tried with glibc-2.9_p20081201-r2 (just in case that one revision did anything) and it still fails somewhere in sunrpc. I even tried updating other packages first with emerge -uavND world, but all that did is break my system by installing baselayout-2. Is it possible to package the cross-glibc install from my amd64 box and install that directly on the mips? I have a feeling its failing because of the distcc, but it will take forever to compile directly on the box. :?
Back to top
View user's profile Send private message
ddc
Guru
Guru


Joined: 29 Aug 2006
Posts: 522

PostPosted: Wed Oct 07, 2009 3:32 pm    Post subject: Reply with quote

which kernel ? which gcc&binutils ?
Back to top
View user's profile Send private message
gtbX
Tux's lil' helper
Tux's lil' helper


Joined: 11 Oct 2003
Posts: 126

PostPosted: Thu Oct 08, 2009 2:17 am    Post subject: Reply with quote

Just tried it again overnight without distcc, same result.
I'm using a kernel compiled from mips-sources-2.6.29.1

binutils/gcc are:
binutils-2.19.1-r1 (originally binutils-2.18)
gcc-4.1.2

I can't upgrade gcc to 4.3.4, because that requires >=glibc-2.8 (glibc-2.6.1 came installed on this stage3)
Back to top
View user's profile Send private message
gtbX
Tux's lil' helper
Tux's lil' helper


Joined: 11 Oct 2003
Posts: 126

PostPosted: Sun Oct 11, 2009 1:00 am    Post subject: Reply with quote

Running out of ideas to get this to work.

I tried to bootstrap the install with bootstrap.sh, hoping a clean toolchain build would fix it (nope). I'm going to try re-installing the current glibc to see if that builds at all. Following that, I'm going to try a different profile and see if that has any effect. (using /usr/portage/profiles/default/linux/mips/2008.0 right now)

[edit]

So it looks like sandbox-2.1 was the problem. I downgraded back to sandbox-1.6, and glibc installed successfully.
Back to top
View user's profile Send private message
gtbX
Tux's lil' helper
Tux's lil' helper


Joined: 11 Oct 2003
Posts: 126

PostPosted: Fri Oct 23, 2009 4:25 pm    Post subject: Reply with quote

Ok, since upgrading glibc broke linkage on a ton of packages, I decided to restart from a stage 1. Now the stage1 and stage2 tarballs have broken emerge's, so I had to use a stage3 again. This is what I had to do to get bootstrap.sh to complete:

Upgrade portage (as of this writing 2.1.7.1 is ~mips, but won't install because it depends on python-2.6, which isn't marked for mips at all)
Install distcc, configure for cross compiling
re-install gcc-4.1.2. The version provided on the stage3 can't compile c++, and has problems compiling glibc-2.9
set FEATURES="-sandbox" in make.conf - it seems that the version of sandbox doesn't matter when compiling glibc

I had to mask these packages to get everything to compile, but that may not be necessary. Now that my system is up, I may try upgrading them:
>=sys-apps/baselayout-2
>=sys-apps/sandbox-2
>=sys-apps/portage-2.1.7
>=sys-apps/module-init-tools-3.6
>=sys-apps/kbd-1.14
Back to top
View user's profile Send private message
SamuliSuominen
Retired Dev
Retired Dev


Joined: 30 Sep 2005
Posts: 2133
Location: Finland

PostPosted: Fri Oct 23, 2009 5:46 pm    Post subject: Reply with quote

gtbX wrote:
Upgrade portage (as of this writing 2.1.7.1 is ~mips, but won't install because it depends on python-2.6, which isn't marked for mips at all)


https://bugs.gentoo.org/287383

If you can help us testing Python 2.6.3 for ~mips, please comment on that bug.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures 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