View previous topic :: View next topic |
Author |
Message |
T2 n00b
Joined: 01 Jun 2002 Posts: 67 Location: Slovenia
|
Posted: Tue Sep 24, 2002 11:43 pm Post subject: 1.4rc1 bootstrap problems: weird unexpected token errors |
|
|
Hi, I'm compiling 1.4rc1 stage1 from chrooted environment and I get "unexpected token" error(look below). I get similar unexpected token errors when compiling or upgrading apps on present gentoo 1.2. Is this a bash problem, my slightly overclocked tb900@1000 or something else? I have no idea...yet
....
/bin/sh ../libtool --mode=compile gcc -c -DLOCALEDIR=\"/usr/share/locale\" -DLOCALE_ALIAS_PATH=\"/usr/share/locale\" -DLIBDIR=\"/usr/lib\" -DIN_LIBINTL -DHAVE_CONFIG_H -I.. -I. -I../intl -O2 -mcpu=i686 -pipe dcgettext.c
../libtool: line 4787: syntax error near unexpected token `ld(1'
../libtool: line 4787: ` echo "more information, such as the ld(1) and ld.so( manual pages."'
make[2]: *** [bindtextdom.lo] Error 2
make[2]: *** Waiting for unfinished jobs....
../libtool: line 4787: syntax error near unexpected token `ld(1'
../libtool: line 4787: ` echo "more information, such as the ld(1) and ld.so( manual pages."'
make[2]: *** [dcgettext.lo] Error 2
make[2]: Leaving directory `/var/tmp/portage/gettext-0.11.1/work/gettext-0.11.1/intl'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gettext-0.11.1/work/gettext-0.11.1'
make: *** [all] Error 2
!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line -146, Exitcode 2
!!! (no error message) |
|
Back to top |
|
|
rac Bodhisattva
Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Tue Sep 24, 2002 11:56 pm Post subject: |
|
|
Can you try clocking your CPU down? _________________ For every higher wall, there is a taller ladder |
|
Back to top |
|
|
T2 n00b
Joined: 01 Jun 2002 Posts: 67 Location: Slovenia
|
Posted: Wed Sep 25, 2002 12:19 am Post subject: |
|
|
I tried, same problem at same location 8( |
|
Back to top |
|
|
rac Bodhisattva
Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Wed Sep 25, 2002 12:22 am Post subject: |
|
|
T2 wrote: | I tried, same problem at same location 8( |
What was the exact command you gave after you clocked down? Where are you in the install? _________________ For every higher wall, there is a taller ladder |
|
Back to top |
|
|
T2 n00b
Joined: 01 Jun 2002 Posts: 67 Location: Slovenia
|
Posted: Wed Sep 25, 2002 12:29 am Post subject: |
|
|
first I switch to chrooted environment:
mkdir /mnt/gentoo
mount /dev/hda4 /mnt/gentoo
mkdir /mnt/gentoo/boot
mount /dev/hda1 /mnt/gentoo/boot
cd /mnt/gentoo
tar -xvjpf /path/to/stage1-x86-1.4_rc1-20020908-1208.tar.bz2
mount -o bind /proc /mnt/gentoo/proc
cp /etc/resolv.conf /mnt/gentoo/etc/resolv.conf
chroot /mnt/gentoo /bin/bash (also tried bash 2.05b with no success)
env-update
source /etc/profile
emerge sync
//adjust make.conf
cd /usr/portage
scripts/bootstrap.sh
works ok till emerging gettext which is half a minute after... |
|
Back to top |
|
|
rac Bodhisattva
Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Wed Sep 25, 2002 12:32 am Post subject: |
|
|
Hmm. So you started completely over with the CPU clocked down, and it still failed in the same place? Did you wipe the /mnt/gentoo partition before you untarred the stage tarball the second time, after clocking down? That might be worth a try.
If you get the same result on a completely clean target partition, I would look at the possibility of a corrupted stage tarball. Can you check the md5sum? _________________ For every higher wall, there is a taller ladder |
|
Back to top |
|
|
T2 n00b
Joined: 01 Jun 2002 Posts: 67 Location: Slovenia
|
Posted: Wed Sep 25, 2002 12:37 am Post subject: |
|
|
I haven't completely wiped out /mnt/gentoo but I did fscheck it for bad sectors. MD5 sum is ok. I'll try creating whole new partition first thing in the morning and report back.
10x for being helpful |
|
Back to top |
|
|
T2 n00b
Joined: 01 Jun 2002 Posts: 67 Location: Slovenia
|
Posted: Wed Sep 25, 2002 10:39 am Post subject: |
|
|
Damn, I think I have file system corruption here. I formated my spare gentoo partition as ext3 and bootstrap went on without error. I had reiserfs before, and I did fsck.reiserfs on empty reiserfs partition, no problems found. I have pre6 kernel, maybe some ide bug crawled in. |
|
Back to top |
|
|
rac Bodhisattva
Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Wed Sep 25, 2002 10:57 pm Post subject: |
|
|
FWIW, I found: toni wrote: | I seem to be unable even to bootstrap even from stage 1 tarball. The compiler just exits when compiling gettext if I use -march=athlon-4 (my CPU). If I use -mcpu=athlon-4, everything seems to work ok. | ...in here. _________________ For every higher wall, there is a taller ladder |
|
Back to top |
|
|
|