Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

Erreur de compilation GCC bootstrap

5 réponses
Avatar
lfs
J'utilise une Mandrake 9.2 et j'essaye de compiler un système LFS.
J'en suis à la compilation de GCC 3.3.2. Le livre (5.0) explique qu'il
faut compiler GCC en faisant 'make bootstrap', pour que GCC se compile
plusieurs fois. J'obtiens une erreur ... Par contre, si je retire cette
option, alors la compilation arrive à son terme. Je pense que c'est mauvais.
Vous avez une idée ? Vous faut-il d'autre informations ?

Merci d'avance.

5 réponses

Avatar
Cem
Le 21-02-2004, lfs a écrit :
J'utilise une Mandrake 9.2 et j'essaye de compiler un système LFS.
J'en suis à la compilation de GCC 3.3.2. Le livre (5.0) explique qu'il
faut compiler GCC en faisant 'make bootstrap', pour que GCC se compile
plusieurs fois. J'obtiens une erreur ... Par contre, si je retire cette
option, alors la compilation arrive à son terme. Je pense que c'est mauvais.
Ce n'est pas bon c'est sûr. L'option "bootstrap" est essentielle pour

que gcc fasse une deuxième passe de compilation et se recompile
lui-même.
Vous avez une idée ? Vous faut-il d'autre informations ?
Tu es bien logué en tant qu'utilisateur LFS (toute opération depuis

la détar[bg]izication jusqu'à l'installation doit être faite sous cet
utilisateur en pass1; il suffit de faire "su - lfs" dans une console
-attention à ne pas oublier le tiret entre su et lfs).
Tout ce qui est sous le répertoire $LFS est bien propriété de cet
utilisateur? Et le ~/.bash_profile de l'utilisateur lfs contient bien
tout ce que préconise le livre ?
Vu que tu n'es pas encore très avancé, il vaudrait peut-être mieux
reprendre à zéro. A mon avis, tu as fait une fausse manip dans
l'installation de binutils.

Avatar
Fauberteau Frédéric

J'utilise une Mandrake 9.2 et j'essaye de compiler un système LFS.
J'en suis à la compilation de GCC 3.3.2. Le livre (5.0) explique qu'il
faut compiler GCC en faisant 'make bootstrap', pour que GCC se compile
plusieurs fois. J'obtiens une erreur ... Par contre, si je retire cette
option, alors la compilation arrive à son terme. Je pense que c'est mauvais.


Ce n'est pas bon c'est sûr. L'option "bootstrap" est essentielle pour
que gcc fasse une deuxième passe de compilation et se recompile
lui-même.

Vous avez une idée ? Vous faut-il d'autre informations ?


Tu es bien logué en tant qu'utilisateur LFS (toute opération depuis
la détar[bg]izication jusqu'à l'installation doit être faite sous cet
utilisateur en pass1; il suffit de faire "su - lfs" dans une console
-attention à ne pas oublier le tiret entre su et lfs).
Tout ce qui est sous le répertoire $LFS est bien propriété de cet
utilisateur? Et le ~/.bash_profile de l'utilisateur lfs contient bien
tout ce que préconise le livre ?
Vu que tu n'es pas encore très avancé, il vaudrait peut-être mieux
reprendre à zéro. A mon avis, tu as fait une fausse manip dans
l'installation de binutils.
La seule chose qui n'est pas bonne chez moi dans ce que tu as dit, c'est

que tout n'appartient pas à lfs dans $LFS, seuls les répertoires de
sources et des outils lui appartiennent. Le répertoire $LFS et
lost+found appartiennent à root ...
Mais je vais sûrement recommencé. Je sens que je vais le lire plus d'une
fois ce livre ;-)


Avatar
lfs
Je viens de recommencer la compilation avec GCC 3.3.1 (indiquée par le
livre). Et j'ai redirigé la sortie d'erreur dans un fichier :

warning: structure `reg_info_def' used but not defined
warning: structure `die_struct' used but not defined
warning: structure `basic_block_def' used but not defined
Check description...done
Reservation transformation...done
Create automaton `pentium'...done
Create automaton `pentium_fpu'...done
Generation of attributes...done
All other genattrtab stuff...done
Forming and outputing automata tables...done
Output functions to work with automata...done

Automaton `pentium'
48 NDFA states, 90 NDFA arcs
48 DFA states, 90 DFA arcs
20 minimal DFA states, 62 minimal DFA arcs
29 all insns 16 insn equivalence classes
62 transition comb vector els, 320 trans table els: use comb vect
62 state alts comb vector els, 320 state alts table els: use comb vect
768 min delay table els, compression factor 2

Automaton `pentium_fpu'
80 NDFA states, 172 NDFA arcs
80 DFA states, 172 DFA arcs
75 minimal DFA states, 162 minimal DFA arcs
29 all insns 8 insn equivalence classes
164 transition comb vector els, 600 trans table els: use comb vect
164 state alts comb vector els, 600 state alts table els: use comb vect
640 min delay table els, compression factor 1

237 all allocated states, 236 all allocated arcs
342 all allocated alternative states
226 all transition comb vector els, 920 all trans table els
226 all state alts comb vector els, 920 all state alts table els
1408 all min delay table els
12 locked states num

transformation: 0.010000, building DFA: 0.010000
DFA minimization: 0.000000, making insn equivalence: 0.000000
all automaton generation: 0.010000, output: 0.000000
No forbidden identifiers defined by this target
Applying io_quotes_def to asm/apicdef.h
Applying io_quotes_use to asm/mtrr.h
Applying io_quotes_use to linux/agpgart.h
Applying io_quotes_use to linux/atmbr2684.h
Applying io_quotes_use to linux/auto_fs.h
Applying io_quotes_use to linux/auto_fs4.h
Applying io_quotes_use to linux/blkpg.h
Applying io_quotes_use to linux/cciss_ioctl.h
Applying io_quotes_def to linux/completion.h
Applying io_quotes_use to linux/devfs_fs.h
Applying undefine_null to linux/dis-asm.h
Fixed: linux/dis-asm.h
Applying io_quotes_use to linux/dn.h
Applying io_quotes_use to linux/elevator.h
Applying io_quotes_use to linux/fd.h
Applying io_quotes_use to linux/fs.h
Applying io_quotes_use to linux/i2o-dev.h
Applying io_quotes_use to linux/if_pppox.h
Applying io_quotes_use to linux/input.h
Applying io_quotes_use to linux/ipmi.h
Applying io_quotes_def to linux/isapnp.h
Applying io_quotes_use to linux/ite_gpio.h
Applying io_quotes_use to linux/jffs.h
Applying io_quotes_use to linux/lvm.h
Applying io_quotes_def to linux/modsetver.h
Applying io_quotes_def to linux/mtd/compatmac.h
Applying io_quotes_use to linux/nbd.h
Applying io_quotes_def to
linux/netfilter_ipv4/ip_conntrack_tuple.h
Applying io_quotes_use to linux/raid/md_u.h
Applying io_quotes_use to linux/random.h
Applying io_quotes_use to linux/ppdev.h
Applying io_quotes_def to linux/ppp-comp.h
Applying io_quotes_use to linux/raw.h
Applying io_quotes_def to linux/reiserfs_fs.h
Applying io_quotes_use to linux/reiserfs_fs.h
Applying io_quotes_def to linux/sdladrv.h
Applying io_quotes_def to linux/soundcard.h
Applying io_quotes_use to linux/synclink.h
Applying io_quotes_use to linux/umsdos_fs.h
Applying io_quotes_def to linux/version.h
Applying io_quotes_def to linux/wanpipe.h
Applying io_quotes_def to linux/wanrouter.h
Applying io_quotes_use to linux/watchdog.h
Applying limits_ifndefs to limits.h
Applying sun_malloc to malloc.h
Applying hpux8_bogus_inlines to math.h
Applying io_quotes_use to sys/mount.h
Applying io_quotes_use to sys/raw.h
Applying io_quotes_use to sound/asequencer.h
Applying io_quotes_use to sound/asound.h
Applying sysv68_string to string.h
Applying strict_ansi_only to zutil.h
Fixed: zutil.h
Quoted includes in zutil.h
Applying io_quotes_def to ClanLib/core.h
Applying io_quotes_use to ClanLib/core.h
Applying io_quotes_def to X11/Xmu/Atoms.h
../../gcc-3.3.1/gcc/crtstuff.c: In function `__do_global_dtors_aux':
../../gcc-3.3.1/gcc/crtstuff.c:277: warning: passing arg 1 of
`__deregister_frame_info_bases' discards qualifiers from pointer target type
../../gcc-3.3.1/gcc/crtstuff.c: In function `frame_dummy':
../../gcc-3.3.1/gcc/crtstuff.c:313: warning: passing arg 1 of
`__register_frame_info_bases' discards qualifiers from pointer target type
mkdir libgcc
../../gcc-3.3.1/gcc/unwind-pe.h:61: warning: `size_of_encoded_value'
defined but not used
mv: cannot stat `s-crt0': No such file or directory
mv: cannot stat `crtbegin.o': No such file or directory
mv: cannot stat `crtbeginS.o': No such file or directory
mv: cannot stat `crtbeginT.o': No such file or directory
mv: cannot stat `crtend.o': No such file or directory
mv: cannot stat `crtendS.o': No such file or directory
mv: cannot stat `gcc-cross': No such file or directory
mv: cannot stat `cc1obj': No such file or directory
mv: cannot stat `protoize': No such file or directory
mv: cannot stat `unprotoize': No such file or directory
mv: cannot stat `collect2': No such file or directory
mv: cannot stat `gcov': No such file or directory
mv: cannot stat `*.[0-9][0-9].*': No such file or directory
mv: cannot stat `*.[si]': No such file or directory
make[2]: [stage1-start] Error 1 (ignored)
mv: cannot stat `intl/*.o': No such file or directory
make[2]: [stage1-start] Error 1 (ignored)
/outils/i686-pc-linux-gnu/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
make[2]: *** [gengenrtl] Error 1
make[1]: *** [stage2_build] Error 2
make: *** [bootstrap] Error 2

Je pense que seul la fin a son importance ...
Avatar
Cem
Le 23-02-2004, lfs a écrit :
/outils/i686-pc-linux-gnu/bin/ld: cannot find -lc
Il manque la librairie libc.a.

Installe glibc-static-devel sur ta mdk.

Avatar
Fauberteau Frédéric

/outils/i686-pc-linux-gnu/bin/ld: cannot find -lc


Il manque la librairie libc.a.
Installe glibc-static-devel sur ta mdk.
Merci merci merci