Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#26 Le 11/04/2007, à 18:14

androme

Re : [Compilation] Binutils 2.15.94.0.2.2, error: array type has incomp ...

C'est pas une bonne idée de mélanger les deux livres je pense, tu devrais repartir sur une base saine.

Je m'y suis repris à 3 fois avant d'arriver à quelque chose de bon.


Intrepid Ibex 64

Asus P5B Deluxe, Q6600, 4Go, 8800GTS 512 Dual Screen (22w + 19w).
Portable Dell D830

Hors ligne

#27 Le 11/04/2007, à 22:53

fab56

Re : [Compilation] Binutils 2.15.94.0.2.2, error: array type has incomp ...

Je ne mélange pas les deux livres, j'ai repris tout depuis le début, seulement je n'avais pas lu juste cette partie du livre sur la 6.2

Bon laj'ai un problème par la deuxième partie de GCC
lors du make j'ai ceci :

../../gcc-4.0.3/fixincludes/fixincl.c:583: undefined reference to `__stack_chk_fail'
fixincl.o: In function `run_compiles':
../../gcc-4.0.3/fixincludes/fixincl.c:500: undefined reference to `__stack_chk_fail'
fixincl.o: In function `process':
../../gcc-4.0.3/fixincludes/fixincl.c:1423: undefined reference to `__stack_chk_fail'
fixincl.o: In function `initialize':
../../gcc-4.0.3/fixincludes/fixincl.c:295: undefined reference to `__stack_chk_fail'
fixfixes.o: In function `gnu_type_fix':
../../gcc-4.0.3/fixincludes/fixfixes.c:691: undefined reference to `__stack_chk_fail'
fixfixes.o:../../gcc-4.0.3/fixincludes/fixfixes.c:582: more undefined references to `__stack_chk_fail' follow
collect2: ld returned 1 exit status
make[1]: *** [full-stamp] Error 1
make[1]: Leaving directory `/mnt/lfs/sources/gcc-build/fixincludes'
make: *** [all-fixincludes] Error 2

Mais je ne comprends pas, à en croire le livre j'ai correctement désactiver fixinclude

The running of the fixincludes  script can be suppressed by issuing the following commands:

cp -v gcc/Makefile.in{,.orig} &&
sed 's@\./fixinc\.sh@-c true@' gcc/Makefile.in.orig > gcc/Makefile.in

Je l'ai fait mais pourtant ça coince quand même, n'y a-til pas moyen de le désactiver plus "manuellement" ?

Hors ligne

#28 Le 11/04/2007, à 22:58

fab56

Re : [Compilation] Binutils 2.15.94.0.2.2, error: array type has incomp ...

Bon si je regarde mon Makefile.in
j'ai une section qui semble parler de fixincl
Je mettrai bien en commentaire la ligne mais je sais pas si je peux le faire, je mis connais pas trop en Makefile.

# The line below is supposed to avoid accidentally matching the
# built-in suffix rule `.o:' to build fixincl out of fixincl.o.  You'd
# expect fixincl to be newer than fixincl.o, such that this situation
# would never come up.  As it turns out, if you use ccache with
# CCACHE_HARDLINK enabled, the compiler doesn't embed the current
# working directory in object files (-g absent, or -fno-working-dir
# present), and build and host are the same, fixincl for the host will
# build after fixincl for the build machine, getting a cache hit,
# thereby updating the timestamp of fixincl.o in the the host tree.
# Because of CCACHE_HARDLINK, this will also update the timestamp in
# the build tree, and so fixincl in the build tree will appear to be
# out of date.  Yuck.
../$(build_subdir)/fixincludes/fixincl: ; @ :

Hors ligne

#29 Le 12/04/2007, à 17:30

fab56

Re : [Compilation] Binutils 2.15.94.0.2.2, error: array type has incomp ...

nan g des problèmes à la compilation de gcc
tu peut me dire comment ta fais exactement ?

Hors ligne

#30 Le 13/04/2007, à 10:36

fab56

Re : [Compilation] Binutils 2.15.94.0.2.2, error: array type has incomp ...

bon j'ai recommencé et le make est un succès

maintenant je fais la suite de tests, pour l'instant ça marche mais quest-ce que c'est long !

$make -k check
make[1]: Entering directory `/mnt/lfs/sources/gcc-build/fixincludes'
autogen -T ../../gcc-4.0.3/fixincludes/check.tpl ../../gcc-4.0.3/fixincludes/inclhack.def
make[1]: autogen: Command not found
make[1]: *** [check] Error 127
make[1]: Leaving directory `/mnt/lfs/sources/gcc-build/fixincludes'
make: *** [check-fixincludes] Error 2
make[1]: Entering directory `/mnt/lfs/sources/gcc-build/gcc'
Making a new config file...
echo "set tmpdir /mnt/lfs/sources/gcc-build/gcc/testsuite" >> ./tmp0
test -d testsuite || mkdir testsuite
rm -f testsuite/site.exp
sed '/set tmpdir/ s|testsuite|testsuite|' < site.exp > testsuite/site.exp
(rootme=`${PWDCMD-pwd}`; export rootme; \
        srcdir=`cd ../../gcc-4.0.3/gcc; ${PWDCMD-pwd}` ; export srcdir ; \
        cd testsuite; \
        EXPECT=expect ; export EXPECT ; \
        if [ -f ${rootme}/../expect/expect ] ; then  \
           TCL_LIBRARY=`cd .. ; cd ../../gcc-4.0.3/gcc/../tcl/library ; ${PWDCMD-pwd}` ; \
            export TCL_LIBRARY ; fi ; \
        runtest --tool gcc )
WARNING: Couldn't find the global config file.
Test Run By lfs on Fri Apr 13 06:46:44 2007
Native configuration is i686-pc-linux-gnu

                === gcc tests ===

Schedule of variations:
    unix

Running target unix
Using /tools/share/dejagnu/baseboards/unix.exp as board description file for target.
Using /tools/share/dejagnu/config/unix.exp as generic interface file for target.
Using /mnt/lfs/sources/gcc-4.0.3/gcc/testsuite/config/default.exp as tool-and-target-specific interface file.
Running /mnt/lfs/sources/gcc-4.0.3/gcc/testsuite/gcc.c-torture/compile/compile.exp ...
WARNING: program timed out.
FAIL: gcc.c-torture/compile/20001226-1.c  -O3 -g  (test for excess errors)
Running /mnt/lfs/sources/gcc-4.0.3/gcc/testsuite/gcc.c-torture/execute/builtins/builtins.exp ...
Running /mnt/lfs/sources/gcc-4.0.3/gcc/testsuite/gcc.c-torture/execute/execute.exp ...
reus
Running /mnt/lfs/sources/gcc-4.0.3/gcc/testsuite/gcc.c-torture/execute/ieee/ieee.exp ...
Running /mnt/lfs/sources/gcc-4.0.3/gcc/testsuite/gcc.c-torture/unsorted/unsorted.exp ...
Running /mnt/lfs/sources/gcc-4.0.3/gcc/testsuite/gcc.dg/charset/charset.exp ...
Running /mnt/lfs/sources/gcc-4.0.3/gcc/testsuite/gcc.dg/compat/compat.exp ...
Running /mnt/lfs/sources/gcc-4.0.3/gcc/testsuite/gcc.dg/compat/struct-layout-1.exp ...
Running /mnt/lfs/sources/gcc-4.0.3/gcc/testsuite/gcc.dg/cpp/cpp.exp ...
Running /mnt/lfs/sources/gcc-4.0.3/gcc/testsuite/gcc.dg/cpp/trad/trad.exp ...
Running /mnt/lfs/sources/gcc-4.0.3/gcc/testsuite/gcc.dg/debug/debug.exp ...
Running /mnt/lfs/sources/gcc-4.0.3/gcc/testsuite/gcc.dg/debug/dwarf2/dwarf2.exp ...
Running /mnt/lfs/sources/gcc-4.0.3/gcc/testsuite/gcc.dg/dg.exp ...
Running /mnt/lfs/sources/gcc-4.0.3/gcc/testsuite/gcc.dg/format/format.exp ...
Running /mnt/lfs/sources/gcc-4.0.3/gcc/testsuite/gcc.dg/noncompile/noncompile.exp ...
Running /mnt/lfs/sources/gcc-4.0.3/gcc/testsuite/gcc.dg/pch/pch.exp ...
Running /mnt/lfs/sources/gcc-4.0.3/gcc/testsuite/gcc.dg/special/mips-abi.exp ...
Running /mnt/lfs/sources/gcc-4.0.3/gcc/testsuite/gcc.dg/special/special.exp ...
Running /mnt/lfs/sources/gcc-4.0.3/gcc/testsuite/gcc.dg/tls/tls.exp ...
Running /mnt/lfs/sources/gcc-4.0.3/gcc/testsuite/gcc.dg/torture/dg-torture.exp ...
Running /mnt/lfs/sources/gcc-4.0.3/gcc/testsuite/gcc.dg/tree-ssa/tree-ssa.exp ...
Running /mnt/lfs/sources/gcc-4.0.3/gcc/testsuite/gcc.dg/vect/vect.exp ...
XPASS: gcc.dg/vect/vect-22.c scan-tree-dump-times vectorized 3 loops 1
Running /mnt/lfs/sources/gcc-4.0.3/gcc/testsuite/gcc.dg/vmx/vmx.exp ...
Running /mnt/lfs/sources/gcc-4.0.3/gcc/testsuite/gcc.dg/weak/weak.exp ...
Running /mnt/lfs/sources/gcc-4.0.3/gcc/testsuite/gcc.misc-tests/acker1.exp ...
Running /mnt/lfs/sources/gcc-4.0.3/gcc/testsuite/gcc.misc-tests/arm-isr.exp ...
Running /mnt/lfs/sources/gcc-4.0.3/gcc/testsuite/gcc.misc-tests/bprob.exp ...
Running /mnt/lfs/sources/gcc-4.0.3/gcc/testsuite/gcc.misc-tests/dhry.exp ...
Running /mnt/lfs/sources/gcc-4.0.3/gcc/testsuite/gcc.misc-tests/gcov.exp ...
Running /mnt/lfs/sources/gcc-4.0.3/gcc/testsuite/gcc.misc-tests/i386-prefetch.exp ...
Running /mnt/lfs/sources/gcc-4.0.3/gcc/testsuite/gcc.misc-tests/linkage.exp ...
Running /mnt/lfs/sources/gcc-4.0.3/gcc/testsuite/gcc.misc-tests/matrix1.exp ...
Running /mnt/lfs/sources/gcc-4.0.3/gcc/testsuite/gcc.misc-tests/mg.exp ...
Running /mnt/lfs/sources/gcc-4.0.3/gcc/testsuite/gcc.misc-tests/sieve.exp ...
Running /mnt/lfs/sources/gcc-4.0.3/gcc/testsuite/gcc.misc-tests/sort2.exp ...
Running /mnt/lfs/sources/gcc-4.0.3/gcc/testsuite/gcc.target/alpha/alpha.exp ...
Running /mnt/lfs/sources/gcc-4.0.3/gcc/testsuite/gcc.target/frv/frv.exp ...
Running /mnt/lfs/sources/gcc-4.0.3/gcc/testsuite/gcc.target/i386/i386.exp ...
Running /mnt/lfs/sources/gcc-4.0.3/gcc/testsuite/gcc.target/ia64/ia64.exp ...
Running /mnt/lfs/sources/gcc-4.0.3/gcc/testsuite/gcc.target/mips/mips.exp ...
Running /mnt/lfs/sources/gcc-4.0.3/gcc/testsuite/gcc.target/sparc/sparc.exp ...
Running /mnt/lfs/sources/gcc-4.0.3/gcc/testsuite/gcc.target/xstormy16/xstormy16.exp ...
Running /mnt/lfs/sources/gcc-4.0.3/gcc/testsuite/gcc.test-framework/test-framework.exp ...
skipping test framework tests, CHECK_TEST_FRAMEWORK is not defined

                === gcc Summary ===

# of expected passes            35543
# of unexpected failures        1
# of unexpected successes       1
# of expected failures          94
# of untested testcases         28
# of unsupported tests          326
/mnt/lfs/sources/gcc-build/gcc/xgcc  version 4.0.3

make[1]: [check-gcc] Error 1 (ignored)
(rootme=`${PWDCMD-pwd}`; export rootme; \
        srcdir=`cd ../../gcc-4.0.3/gcc; ${PWDCMD-pwd}` ; export srcdir ; \
        cd testsuite; \
        EXPECT=expect ; export EXPECT ; \
        if [ -f ${rootme}/../expect/expect ] ; then  \
           TCL_LIBRARY=`cd .. ; cd ../../gcc-4.0.3/gcc/../tcl/library ; ${PWDCMD-pwd}` ; \
            export TCL_LIBRARY ; fi ; \
        runtest --tool g++ )
WARNING: Couldn't find the global config file.
Test Run By lfs on Fri Apr 13 07:53:24 2007
Native configuration is i686-pc-linux-gnu

                === g++ tests ===

Schedule of variations:
    unix

Running target unix
Using /tools/share/dejagnu/baseboards/unix.exp as board description file for target.
Using /tools/share/dejagnu/config/unix.exp as generic interface file for target.
Using /mnt/lfs/sources/gcc-4.0.3/gcc/testsuite/config/default.exp as tool-and-target-specific interface file.
Running /mnt/lfs/sources/gcc-4.0.3/gcc/testsuite/g++.dg/bprob/bprob.exp ...
Running /mnt/lfs/sources/gcc-4.0.3/gcc/testsuite/g++.dg/charset/charset.exp ...
Running /mnt/lfs/sources/gcc-4.0.3/gcc/testsuite/g++.dg/compat/compat.exp ...
Running /mnt/lfs/sources/gcc-4.0.3/gcc/testsuite/g++.dg/debug/debug.exp ...
Running /mnt/lfs/sources/gcc-4.0.3/gcc/testsuite/g++.dg/dg.exp ...
Running /mnt/lfs/sources/gcc-4.0.3/gcc/testsuite/g++.dg/gcov/gcov.exp ...
Running /mnt/lfs/sources/gcc-4.0.3/gcc/testsuite/g++.dg/pch/pch.exp ...
Running /mnt/lfs/sources/gcc-4.0.3/gcc/testsuite/g++.dg/special/ecos.exp ...
Running /mnt/lfs/sources/gcc-4.0.3/gcc/testsuite/g++.dg/tls/tls.exp ...
Running /mnt/lfs/sources/gcc-4.0.3/gcc/testsuite/g++.dg/vect/vect.exp ...
Running /mnt/lfs/sources/gcc-4.0.3/gcc/testsuite/g++.old-deja/old-deja.exp ...
XPASS: g++.old-deja/g++.other/init5.C execution test

                === g++ Summary ===

# of expected passes            11463
# of unexpected successes       1
# of expected failures          69
# of unsupported tests          56
/mnt/lfs/sources/gcc-build/gcc/testsuite/../g++  version 4.0.3

make[1]: [check-g++] Error 1 (ignored)
make[1]: Leaving directory `/mnt/lfs/sources/gcc-build/gcc'
make[1]: Entering directory `/mnt/lfs/sources/gcc-build/intl'
make[1]: Nothing to be done for `check'.
make[1]: Leaving directory `/mnt/lfs/sources/gcc-build/intl'
make[1]: Entering directory `/mnt/lfs/sources/gcc-build/libcpp'
make[1]: Nothing to be done for `check'.
make[1]: Leaving directory `/mnt/lfs/sources/gcc-build/libcpp'
make[1]: Entering directory `/mnt/lfs/sources/gcc-build/libiberty'
make[2]: Entering directory `/mnt/lfs/sources/gcc-build/libiberty/testsuite'
gcc -DHAVE_CONFIG_H -g -O2 -I.. -I../../../gcc-4.0.3/libiberty/testsuite/../../include  -o test-demangle \
                ../../../gcc-4.0.3/libiberty/testsuite/test-demangle.c ../libiberty.a
./test-demangle < ../../../gcc-4.0.3/libiberty/testsuite/demangle-expected
./test-demangle: 746 tests, 0 failures
make[2]: Leaving directory `/mnt/lfs/sources/gcc-build/libiberty/testsuite'
make[1]: Leaving directory `/mnt/lfs/sources/gcc-build/libiberty'
make[1]: Entering directory `/mnt/lfs/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3'
Making check in include
make[2]: Entering directory `/mnt/lfs/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/include'
make[2]: Nothing to be done for `check'.
make[2]: Leaving directory `/mnt/lfs/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/include'
Making check in libsupc++
make[2]: Entering directory `/mnt/lfs/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/libsupc++'
make[2]: Nothing to be done for `check'.
make[2]: Leaving directory `/mnt/lfs/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/libsupc++'
Making check in libmath
make[2]: Entering directory `/mnt/lfs/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/libmath'
make[2]: Nothing to be done for `check'.
make[2]: Leaving directory `/mnt/lfs/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/libmath'
Making check in src
make[2]: Entering directory `/mnt/lfs/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/src'
make[2]: Nothing to be done for `check'.
make[2]: Leaving directory `/mnt/lfs/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/src'
Making check in po
make[2]: Entering directory `/mnt/lfs/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/po'
/bin/sh /mnt/lfs/sources/gcc-4.0.3/libstdc++-v3/../mkinstalldirs /mnt/lfs/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/po/share/locale
mkdir -p -- /mnt/lfs/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/po/share/locale
catalogs='de.mo fr.mo'; \
        for cat in $catalogs; do \
          cat=`basename $cat`; \
          lang=`echo $cat | sed 's/\.mo$//'`; \
          install_dir=/mnt/lfs/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/po/share/locale/$lang/LC_MESSAGES; \
          /bin/sh /mnt/lfs/sources/gcc-4.0.3/libstdc++-v3/../mkinstalldirs $install_dir; \
          /usr/bin/install -c -m 644 $cat $install_dir/libstdc++.mo; \
        done
mkdir -p -- /mnt/lfs/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/po/share/locale/de/LC_MESSAGES
mkdir -p -- /mnt/lfs/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/po/share/locale/fr/LC_MESSAGES
make[2]: Leaving directory `/mnt/lfs/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/po'
Making check in testsuite
make[2]: Entering directory `/mnt/lfs/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/testsuite'
touch testsuite_wchar_t
touch testsuite_thread
make -j1 check-DEJAGNU
make[3]: Entering directory `/mnt/lfs/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/testsuite'
Making a new site.exp file...
srcdir=`CDPATH="${ZSH_VERSION+.}:" && cd ../../../../gcc-4.0.3/libstdc++-v3/testsuite && pwd`; export srcdir; \
        EXPECT=expect; export EXPECT; \
        runtest=runtest; \
        if /bin/sh -c "$runtest --version" > /dev/null 2>&1; then \
          l='libstdc++'; for tool in $l; do \
            $runtest  --tool $tool --srcdir $srcdir ; \
          done; \
        else echo "WARNING: could not find \`runtest'" 1>&2; :;\
        fi
WARNING: Couldn't find the global config file.
Test Run By lfs on Fri Apr 13 08:07:43 2007
Native configuration is i686-pc-linux-gnu

                === libstdc++ tests ===

Schedule of variations:
    unix

Running target unix
Using /tools/share/dejagnu/baseboards/unix.exp as board description file for target.
Using /tools/share/dejagnu/config/unix.exp as generic interface file for target.
Using /mnt/lfs/sources/gcc-4.0.3/libstdc++-v3/testsuite/config/default.exp as tool-and-target-specific interface file.
Running /mnt/lfs/sources/gcc-4.0.3/libstdc++-v3/testsuite/libstdc++-abi/abi.exp ...
Running /mnt/lfs/sources/gcc-4.0.3/libstdc++-v3/testsuite/libstdc++-dg/normal.exp ...
XPASS: 22_locale/locale/cons/12658_thread-1.cc execution test

bon là ça fait une heures qu'l ai dessus j'espère qu'il va pas bloqué

Hors ligne

#31 Le 13/04/2007, à 11:38

fab56

Re : [Compilation] Binutils 2.15.94.0.2.2, error: array type has incomp ...

bon j'ai réussi je suis rendu à 5.12 Binutils-2.16.1 - pass 2
lors du make j'ai

Configuring in libiberty
configure: loading cache ./config.cache
configure: error: `CFLAGS' has changed since the previous run:
configure:   former value:  -g -O2
configure:   current value: -g -O2 
configure: error: changes in the environment can compromise the build
configure: error: run `make distclean' and/or `rm ./config.cache' and start over
make: *** [configure-libiberty] Error 1

Hors ligne

#32 Le 13/04/2007, à 11:54

fab56

Re : [Compilation] Binutils 2.15.94.0.2.2, error: array type has incomp ...

j'ai trouvé une discussion qui parle de ça mais le patch qu'il propose ne s'applique pas.
N'y a-t-il pas moyen de le modifier manuellement

Edit : http://sourceware.org/ml/newlib/2006/msg00472.html

Dernière modification par fab56 (Le 13/04/2007, à 12:00)

Hors ligne