View previous topic :: View next topic |
Author |
Message |
Robert K. Tux's lil' helper
Joined: 24 Oct 2002 Posts: 95 Location: Berlin
|
Posted: Tue Oct 29, 2002 12:35 pm Post subject: bootsprap fails building glibc-2.2.5-r7 |
|
|
Hi,
I want to setup an new Gentoo 1.4RC1 System (Stage 1). The "Host" is an running Gentoo-Linux-System.
Bootstrap fails with following error-messages. Before I tried to bootstrap again, I executed always an emerge rsync.
Would be fine, If someone can help me.
Code: |
[...]
ude/libc-symbols.h -DPIC -DSHARED -o /var/tmp/portage/glibc-2.2.5-r7/work/glibc-2.2.5/buildhere/iconvdata/greek-ccitt.os
In file included from 8bit-gap.c:33,
from greek-ccitt.c:29:
/var/tmp/portage/glibc-2.2.5-r7/work/glibc-2.2.5/buildhere/iconvdata/greek-ccitt.h:1: parse error before '-' token
/var/tmp/portage/glibc-2.2.5-r7/work/glibc-2.2.5/buildhere/iconvdata/greek-ccitt.h:1: invalid suffix on integer constant
In file included from 8bit-gap.c:72,
from greek-ccitt.c:29:
../iconv/loop.c: In function `from_gap':
../iconv/loop.c:282: `to_ucs4' undeclared (first use in this function)
../iconv/loop.c:282: (Each undeclared identifier is reported only once
../iconv/loop.c:282: for each function it appears in.)
In file included from 8bit-gap.c:106,
from greek-ccitt.c:29:
../iconv/loop.c: In function ../iconv/loop.c:282: `from_idx' undeclared (first use in this function)
../iconv/loop.c:282: `from_ucs4' undeclared (first use in this function)
../iconv/loop.c:282: warning: left-hand operand of comma expression has no effect
../iconv/loop.c: In function `to_gap_single':
../iconv/loop.c:384: `from_idx' undeclared (first use in this function)
../iconv/loop.c:384: `from_ucs4' undeclared (first use in this function)
../iconv/loop.c:384: warning: left-hand operand of comma expression has no effect
make[2]: *** [/var/tmp/portage/glibc-2.2.5-r7/work/glibc-2.2.5/buildhere/iconvda
ta/greek-ccitt.os] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/glibc-2.2.5-r7/work/glibc-2.2.5/ico
nvdata'
make[1]: *** [iconvdata/others] Error 2
make[1]: Leaving directory `/var/tmp/portage/glibc-2.2.5-r7/work/glibc-2.2.5'
make: *** [all] Error 2
!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line 70, Exitcode 2
!!! (no error message)
|
Bye
Robert
P.S: Sorry for my english ... |
|
Back to top |
|
|
rac Bodhisattva
Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Tue Oct 29, 2002 1:32 pm Post subject: |
|
|
Your CFLAGS and USE flags will probably be of interest. _________________ For every higher wall, there is a taller ladder |
|
Back to top |
|
|
Robert K. Tux's lil' helper
Joined: 24 Oct 2002 Posts: 95 Location: Berlin
|
Posted: Tue Oct 29, 2002 7:23 pm Post subject: |
|
|
Hi,
I used following flags.
snipped from /etc/make.conf
USE="-gnome acl alsa crypt dga directfb dvd jpeg ldap mozilla mozirc perl samba slp tiff tcltk"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=athlon -O3 -pipe"
CXXFLAGS="${CFLAGS}"
Something I did'nt understand. The bootstrap-script replaces during the bootstrap-process my make.conf. So how can my Use-Flags prevent glibc from being compiled ?
Just as a try I commented my USE-Flags out. Glibc-Compile fails again ...
Bye
Robert
Last edited by Robert K. on Wed Oct 30, 2002 10:43 am; edited 1 time in total |
|
Back to top |
|
|
bertkenward n00b
Joined: 02 Aug 2002 Posts: 1 Location: Cambridge, UK
|
Posted: Wed Oct 30, 2002 8:55 am Post subject: Similar issue |
|
|
I've experienced a similar failure, using an rsync from yesterday ~19:00 GMT. Error message was:
Code: | gcc gost_19768-74.c -c -O2 -Wall -Winline -Wstrict-prototypes
-Wwrite-strings -march=i586 -pipe -fPIC -I../include -I.
-I/var/tmp/portage/glibc-2.2.5-r7/work/glibc-2.2.5/buildhere/iconvdata
-I.. -I../libio
-I/var/tmp/portage/glibc-2.2.5-r7/work/glibc-2.2.5/buildhere
-I../sysdeps/i386/elf -I../linuxthreads/sysdeps/unix/sysv/linux/i386
-I../linuxthreads/sysdeps/unix/sysv/linux
-I../linuxthreads/sysdeps/pthread -I../sysdeps/pthread
-I../linuxthreads/sysdeps/unix/sysv -I../linuxthreads/sysdeps/unix
-I../linuxthreads/sysdeps/i386/i586 -I../linuxthreads/sysdeps/i386
-I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux
-I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman
-I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 -I../sysdeps/unix/sysv
-I../sysdeps/unix/i386 -I../sysdeps/unix -I../sysdeps/posix
-I../sysdeps/i386/i586 -I../sysdeps/i386/i486 -I../sysdeps/i386/fpu
-I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32
-I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic
-D_LIBC_REENTRANT -include ../include/libc-symbols.h -DPIC -DSHARED -o
/var/tmp/portage/glibc-2.2.5-r7/work/glibc-2.2.5/buildhere/iconvdata/gost_19768-74.os
In file included from 8bit-gap.c:33,
from gost_19768-74.c:29:
/var/tmp/portage/glibc-2.2.5-r7/work/glibc-2.2.5/buildhere/iconvdata/gost_19768-74.h:1:
parse error before '-' token
/var/tmp/portage/glibc-2.2.5-r7/work/glibc-2.2.5/buildhere/iconvdata/gost_19768-74.h:1:
invalid suffix on floating constant
/var/tmp/portage/glibc-2.2.5-r7/work/glibc-2.2.5/buildhere/iconvdata/gost_19768-74.h:1:
invalid suffix on floating constant
/var/tmp/portage/glibc-2.2.5-r7/work/glibc-2.2.5/buildhere/iconvdata/gost_19768-74.h:1:
invalid suffix on floating constant
/var/tmp/portage/glibc-2.2.5-r7/work/glibc-2.2.5/buildhere/iconvdata/gost_19768-74.h:1:
invalid suffix on floating constant
/var/tmp/portage/glibc-2.2.5-r7/work/glibc-2.2.5/buildhere/iconvdata/gost_19768-74.h:1:
invalid suffix on floating constant
/var/tmp/portage/glibc-2.2.5-r7/work/glibc-2.2.5/buildhere/iconvdata/gost_19768-74.h:1:
invalid suffix on floating constant
/var/tmp/portage/glibc-2.2.5-r7/work/glibc-2.2.5/buildhere/iconvdata/gost_19768-74.h:1:
invalid suffix on floating constant
/var/tmp/portage/glibc-2.2.5-r7/work/glibc-2.2.5/buildhere/iconvdata/gost_19768-74.h:1:
invalid suffix on floating constant
/var/tmp/portage/glibc-2.2.5-r7/work/glibc-2.2.5/buildhere/iconvdata/gost_19768-74.h:1:
invalid suffix on integer constant
/var/tmp/portage/glibc-2.2.5-r7/work/glibc-2.2.5/buildhere/iconvdata/gost_19768-74.h:1:
invalid suffix on floating constant
In file included from 8bit-gap.c:72,
from gost_19768-74.c:29:
../iconv/loop.c: In function `from_gap':
../iconv/loop.c:282: `to_ucs4' undeclared (first use in this function)
../iconv/loop.c:282: (Each undeclared identifier is reported only once
../iconv/loop.c:282: for each function it appears in.)
In file included from 8bit-gap.c:106,
from gost_19768-74.c:29:
../iconv/loop.c: In function `to_gap':
../iconv/loop.c:282: `from_idx' undeclared (first use in this function)
../iconv/loop.c:282: `from_ucs4' undeclared (first use in this function)
../iconv/loop.c:282: warning: left-hand operand of comma expression has no
effect
../iconv/loop.c: In function `to_gap_single':
../iconv/loop.c:384: `from_idx' undeclared (first use in this function)
../iconv/loop.c:384: `from_ucs4' undeclared (first use in this function)
../iconv/loop.c:384: warning: left-hand operand of comma expression has no
effect
make[2]: ***
[/var/tmp/portage/glibc-2.2.5-r7/work/glibc-2.2.5/buildhere/iconvdata/gost_19768-74.os]
Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory
`/var/tmp/portage/glibc-2.2.5-r7/work/glibc-2.2.5/iconvdata'
make[1]: *** [iconvdata/others] Error 2
make[1]: Leaving directory
`/var/tmp/portage/glibc-2.2.5-r7/work/glibc-2.2.5'
make: *** [all] Error 2
!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line 70, Exitcode 2
!!! (no error message) |
I've got:
CHOST="i586-pc-linux-gnu"
CFLAGS="-march=i586 -m3dnow -O3 -pipe -fomit-frame-pointer"
in my make.conf, although does that make any difference during bootstrap.sh? I'm afraid I don't have my USE flags to hand.
Thanks in advance,
Bert.
Edit: I'm now at the right machine, so here are my USE flags:
USE="mozilla cups fbcon qtmt jpeg gd mpeg quicktime xmms encode ldap imap -alsa spell truetype pdflib xml xml2 java mysql"
Last edited by bertkenward on Fri Nov 01, 2002 6:59 am; edited 1 time in total |
|
Back to top |
|
|
Robert K. Tux's lil' helper
Joined: 24 Oct 2002 Posts: 95 Location: Berlin
|
Posted: Wed Oct 30, 2002 4:42 pm Post subject: |
|
|
Hi,
I tried yet an stage3 install followed by an emerge rsync and emerge -e system . The same problems, glibc-compile fails.
Since Sunday I began every day an complete new installation with downloading/updating my portage-tree. No Chance.
One Time I had exactly the same error-messages as bertkenward.
Has somebody an explanation ?
Bye
Robert |
|
Back to top |
|
|
thgreatoz n00b
Joined: 31 Oct 2002 Posts: 29
|
Posted: Thu Oct 31, 2002 5:21 pm Post subject: Same issue |
|
|
I've got the same problems, too...only when I extract the stage 1 tarball, I also get an odd error at the end, it says something like "Error, exit from before" or something along those lines, it makes no sense to me.... |
|
Back to top |
|
|
rac Bodhisattva
Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Fri Nov 01, 2002 1:14 am Post subject: |
|
|
Robert K. wrote: | Something I did'nt understand. The bootstrap-script replaces during the bootstrap-process my make.conf. So how can my Use-Flags prevent glibc from being compiled ? |
Even though it replaces it, and adds some things, it does use some of your USE flags. Since the build looks like it's breaking somewhere in the internationalization/locale part, I was particularly interested in whether you had USE="nls". _________________ For every higher wall, there is a taller ladder |
|
Back to top |
|
|
dufeu l33t
Joined: 30 Aug 2002 Posts: 924 Location: US-FL-EST
|
Posted: Fri Nov 01, 2002 8:47 pm Post subject: |
|
|
rac wrote: | Robert K. wrote: | Something I did'nt understand. The bootstrap-script replaces during the bootstrap-process my make.conf. So how can my Use-Flags prevent glibc from being compiled ? |
Even though it replaces it, and adds some things, it does use some of your USE flags. Since the build looks like it's breaking somewhere in the internationalization/locale part, I was particularly interested in whether you had USE="nls". |
This info might also be of interest to you.
I'm runing three machines with Gentoo.
A) Athlon XP 1800+, 512megs ram, 1gig swap. (don't ask)
B) Celeron 466, 256megs ram, 512megs swap.
C) K-6 300, 48megs ram, 384megs swap.
Machines A) & B) emerged the latest version of glibc with no problems. Machine C) stops with the same problem as originally presented in this thread. For all the machines, I used the appropriate stage3 tarball. The USE flags have all been left at their default values.
I am just guessing a 'i586' issue or possibly an 'AMD' issue.
I recently installed Gentoo on a machine at work, (Pentium II 400, 384megs ram, 256 megs swap) and had no problem with glibc there.
Hope this helps. _________________ People whom think M$ is mediocre, don't know the half of it. |
|
Back to top |
|
|
Robert K. Tux's lil' helper
Joined: 24 Oct 2002 Posts: 95 Location: Berlin
|
Posted: Sun Nov 03, 2002 10:34 pm Post subject: |
|
|
rac wrote: | . Since the build looks like it's breaking somewhere in the internationalization/locale part, I was particularly interested in whether you had USE="nls". |
The Localisation works/ed on my system. The NLS-Flag was set in make.defaults. I used nls_iso8859-15 and the Kernel-Module loaded at boot-time.
The Output from locale Code: |
LANG=de_DE@euro
LC_CTYPE="de_DE@euro"
LC_NUMERIC="de_DE@euro"
LC_TIME="de_DE@euro"
LC_COLLATE="de_DE@euro"
LC_MONETARY="de_DE@euro"
LC_MESSAGES="de_DE@euro"
LC_PAPER="de_DE@euro"
LC_NAME="de_DE@euro"
LC_ADDRESS="de_DE@euro"
LC_TELEPHONE="de_DE@euro"
LC_MEASUREMENT="de_DE@euro"
LC_IDENTIFICATION="de_DE@euro"
LC_ALL=de_DE@euro
|
I hope that you meant that.
dufeu wrote: | [...] I am just guessing a 'i586' issue or possibly an 'AMD' issue. Hope this helps. |
My last try was to compile it as i686 . Bootstrap failed again. So I booted with the Gentoo-1.4 RC1 CD and the complete Installation worked well. No more Problems ... Just two days without TV & Radio, Games, ...
Thanx all for your help.
Bye
Robert |
|
Back to top |
|
|
BoBB Tux's lil' helper
Joined: 15 Jun 2002 Posts: 143 Location: Mesa, AZ
|
Posted: Wed Nov 13, 2002 1:57 am Post subject: |
|
|
Has anyone found a solution to this? Unfortunately booting to the 1.4RC1 CD is not an option for me and i would like to get this installed. |
|
Back to top |
|
|
GroundControl n00b
Joined: 30 Jul 2002 Posts: 2 Location: New Zealand
|
Posted: Wed Nov 13, 2002 7:55 pm Post subject: |
|
|
I'm also having the same problem on an AMD K6-2 450.
CFLAGS="-march=k6-2 -O3 -pipe"
CXXFLAGS="${CFLAGS}"
I haven't changed any of the USE flags, so USE isn't defined as anything in make.conf.
The actual error line appears to be:
Code: | make[2]: *** [/var/tmp/portage/glibc-2.2.5-r7/work/glibc-2.2.5/buildhere/sunrpc/xbootparam_prot.stmp] Illegal Instruction |
|
|
Back to top |
|
|
sharpie n00b
Joined: 14 Nov 2002 Posts: 4
|
Posted: Thu Nov 14, 2002 9:20 am Post subject: Issues with K6-2 |
|
|
I to have an AMD K6-2, 512 MB Ram, 1 Gig swap, and 2 Harddrives 8 + 15 Gig.
I am seeing a smiliar probelm with the Glibc compile..
And I'm also using:
CFLAGS="-march=k6-2 -O3 -pipe"
CXXFLAGS="${CFLAGS}" |
|
Back to top |
|
|
texx n00b
Joined: 14 Nov 2002 Posts: 67 Location: Vienna
|
Posted: Thu Nov 14, 2002 10:08 am Post subject: I have the same problem! |
|
|
Hi.
I have the same problem posted above.
I have tried to install the 1.2 and the 1.4rc1 versions both fails.
Can it be a problem with my processor?? AMD k6 233 ???
I have read a article that the k6 has a bug, wich result in an error when copmile some program, like the kernel. |
|
Back to top |
|
|
filoseta n00b
Joined: 09 Jun 2002 Posts: 9
|
Posted: Sun Nov 24, 2002 9:51 pm Post subject: Resolution to bertkenward's problem |
|
|
Just a little background first:
My build system is a dual Athlon MP running off a 1.1a build from sometime this summer (constantly updated except gcc, so more like 1.2).
I have another HD installed and have been trying to load 1.4 (a few attemps over the past month and a half, it was not high priority) from withing my 1.1 build. This install method I have used well over 15 times on different systems, so I know it is not to fault.
The error messages that I have been getting over these past 6 weeks have matched Berkenward's problem to the letter. I had tried different stages, USE flags, gcc options and even gentoo 1.2, the builds stopped in the same place every single time.
Today I decieded to force using the new glibc (glibc-2.3.1-r2 currently masked), and hope for the best. To do this I changed the default-x86-1.4 profile and pointed it to the new glibc and binutils (I used the 2.13.90.10 rather than the .14 for no good reason) as well as unmasking those two ebuilds. NOTE: there are probably better ways to do this, but I was after a proof of compile.
It seems that my gamble has paid off so far. The bootstrap went without incodent and emerge system is about 2/3 of the way through. Of course I don't know of the system's stability at this point, but I figured that someone might be interusted in a possible resolution.
As a side note, after all of the different iterations I have attempted, it seems that glibc-2.2.5-r7 does not compile under a good portion of AMD processors. This is a rather broad generaliztion, but after attempting compiles on quite a few systems (amd and intel) under varying compile configurations, that is my current belief.
EDIT: not, a failure to compile in general, just on any systems based on the recent tarballs, as my 1.1 system has 2.2.5-r7 compiled and installed. |
|
Back to top |
|
|
BoBB Tux's lil' helper
Joined: 15 Jun 2002 Posts: 143 Location: Mesa, AZ
|
Posted: Mon Nov 25, 2002 12:49 am Post subject: |
|
|
What exactly did you change in which files to have it merge the new glibc on bootstrap? From looking at the files in /usr/portage/profile/default-x86-1.4/ I need to change something in either packages or packages.build but i wanted to make sure before i did something stoopid |
|
Back to top |
|
|
filoseta n00b
Joined: 09 Jun 2002 Posts: 9
|
Posted: Mon Nov 25, 2002 1:23 am Post subject: Exact changes |
|
|
First off, as a disclaimer, this is most definately not the best way to do this. I have not yet invested the time learning the portage system to know the "right" way to make these changes. If anyone has, and knows a better way to do this, please post it.
What I did:
1)
/usr/portage/profiles/default-x86-1.4/packages
modify the two lines to match below (i.e. bump the versions)
*>=sys-devel/binutils-2.13.90.0.10
*>=sys-libs/glibc-2.3.1
2)
/usr/portage/sys-libs/glibc/glibc-2.3.1-r2.ebuild
remove the ~ in front of the x86
3)
/usr/portage/sys-devel/binutils/binutils-2.13.90.0.10
remove the ~ in front of the x86
4) /* critical */
cross fingers
5)
scripts/bootstrap.sh
I do not yet know what consiquences these changes will have upon an rsync. After the system is built I will rsync and make sure the ~'s were not added again. If they were I will probably move a copy of the ebuild's (without the ~'s) into my portage overlay directory and run some -p emerges to make sure portage doesn't try to merge the old versions of glibc and binutils.
Good luck and let me know if it works for you. |
|
Back to top |
|
|
ekoontz n00b
Joined: 18 Apr 2002 Posts: 67 Location: San Francisco, California
|
Posted: Thu Nov 28, 2002 10:19 am Post subject: workaround for this bug |
|
|
I seem to have stumbled upon a workaround for this bug :
Put :
in /etc/make.conf
This should have the effect of overriding the :
in /etc/make.globals.
I also put this workaround in bugzilla :
https://bugs.gentoo.org/show_bug.cgi?id=11073 |
|
Back to top |
|
|
Lasker Guru
Joined: 17 Jul 2002 Posts: 445
|
Posted: Fri Nov 29, 2002 3:49 am Post subject: Re: workaround for this bug |
|
|
ekoontz wrote: | I seem to have stumbled upon a workaround for this bug :
Put :
in /etc/make.conf
This should have the effect of overriding the :
in /etc/make.globals.
I also put this workaround in bugzilla :
https://bugs.gentoo.org/show_bug.cgi?id=11073 |
I don't believe that's a solution (of course I tried this) since /etc/make.conf seems to be reseted during the bootstrap (at least until stage 2).
I was stumbling over the same problem: Starting with a stage3 CD I first thought something maybe wrong with my CFLAGS in /etc/make.conf so I left them in default state, with the same result. Then I thought, maybe something wrong with my stage3 CD and I decided to built from scratch.
Besides another problem first with grub and reiserfs on /boot (grub sucks, using ext3 now on /boot), I run into the same problem.
Fortunately I tried something completely insane: I simply restarted the bootstrap. After about 2 hours it seemed to run into the same error, but I compared it with the former message and saw slight differences.
Then the real nightmare began: I started over and over (everytime arround 2 hours) and now, after 5 days, I finally finished the bootstrap!
(The last one was much longer, all that java stuff...)
Meanwhile I installed X and gnome2 over the unfinished bootstrap (you don't must believe this, but it worked! A miracle...) but then X appeared to be very unstable, especially when working on gnome-terminal. So I decided to continue the bootstrap.sh (simply from the running system) several times, which screwed up all my configurations of course.
I'm finished just now, X and Gnome are still running. I only hope that stability problems are gone now.
Phew: This was a masterpiece in patience (where is the applaus?)
P.S.: Since so many people seem to fight with the same or similar problem, it looks for me that something could be wrong with the bootstrap script... |
|
Back to top |
|
|
|