Binutils --with-lib-path

Pierre Labastie diy-linux-dev@diy-linux.org
Thu, 15 Nov 2007 17:40:14 +0100


Greg Schafer a =E9crit :
> [...]
> No. I'll just leave the current build as is and make changes in the new
> method. ie: Binutils will come before GCC in the Chroot phase. One of t=
he
> incentives for changing the order a few years ago is no longer valid du=
e to
> upstream fixes (wrong HOSTING_CRT0 in the ld testsuite).
>  =20
Actually, I have always been wondering why the building of binutils and=20
gcc is not done for both together (that is extracting both in the same=20
directory), as per the recommandations of the developpers (or at least=20
of their documentation). (Sorry if I am hitting an old debate I have not=20
been able to sort out in the mailing lists).

Regards
Pierre

I have tried the build with glibc-2.7, it builds fine. There is a new=20
error in g++ test and also two more in glibc test. See below the list of=20
errors (the new grep is not happy either, but I am not sure whether it=20
is not locale related).
The error on sha512 is somewhat scarry : does it mean that a crypted=20
connection may fail? I have not kept the directory so I cannot tell=20
exactly what it is... will try to find somme time to investigate it furth=
er.
------------------------------------
glibc :
/temptools/src/logs/chroot-1/glibc-2.7.log:make[2]: ***=20
[/home/pkgmgr/src/glibc-build/math/test-double.out] Error 1
/temptools/src/logs/chroot-1/glibc-2.7.log:make[1]: *** [math/tests] Erro=
r 2
/temptools/src/logs/chroot-1/glibc-2.7.log:make[2]: ***=20
[/home/pkgmgr/src/glibc-build/crypt/sha512c-test.out] Error 1
/temptools/src/logs/chroot-1/glibc-2.7.log:make[1]: *** [crypt/tests]=20
Error 2
/temptools/src/logs/chroot-1/glibc-2.7.log:make: *** [check] Error 2
--------------------------------------
g++ :
Running /home/pkgmgr/src/gcc-4.2.2/gcc/testsuite/g++.dg/dg.exp ...
FAIL: g++.dg/other/unused1.C scan-assembler=20
(string|ascii?)z?\t"class2("|\\\\000)
XPASS: g++.dg/tree-ssa/ivopts-1.C scan-tree-dump-not offset: -4B
XPASS: g++.dg/tree-ssa/ivopts-1.C scan-tree-dump-not &x\[5\]
------------------------------------------
grep :
Testing:  ../src/grep Word -o -i
  input:  "WordA/wordB/WORDC/"
  output: ""
  expect: "Word/word/WORD/"
FAIL
Testing:  ../src/grep WORD -o -i
  input:  "WordA/wordB/WORDC/"
  output: ""
  expect: "Word/word/WORD/"
FAIL
Testing:  ../src/grep Word --color=3Dalways -i
  input:  "WordA/wordb/WORDC/"
  output: "WordA/wordb/WORDC/"
  expect:=20
"=1B[01;31m=1B[KWord=1B[m=1B[KA/=1B[01;31m=1B[Kword=1B[m=1B[Kb/=1B[01;31m=
=1B[KWORD=1B[m=1B[KC/"
FAIL
Testing:  ../src/grep WORD --color=3Dalways -i
  input:  "WordA/wordb/WORDC/"
  output: "WordA/wordb/WORDC/"
  expect:=20
"=1B[01;31m=1B[KWord=1B[m=1B[KA/=1B[01;31m=1B[Kword=1B[m=1B[Kb/=1B[01;31m=
=1B[KWORD=1B[m=1B[KC/"
FAIL
FAIL: foad1.sh
SKIP: fmbtest.sh
 Test #11:  { ../src/grep -F -n -b -m 5 -C 1 yes; echo "?$?"; sed=20
's!^!X!'; }
  output:  "2-10-[B02 no ]/3:20:[C03 yes]/4:30:[D04 yes]/5:40:[E05=20
yes]/6-50-[F06 no ]/7-60-[G07 no ]/8:70:[H08 yes]/9:80:[I09=20
yes]/10-90-[J10 no ]/?0/X[J10 no ]/X[K11 no ]/X[L12 no ]/X[M13=20
yes]/X[N14 yes]/"
  expect:  "2-10-[B02 no ]/3:20:[C03 yes]/4:30:[D04 yes]/5:40:[E05=20
yes]/6-50-[F06 no ]/7-60-[G07 no ]/8:70:[H08 yes]/9:80:[I09=20
yes]/?0/X[J10 no ]/X[K11 no ]/X[L12 no ]/X[M13 yes]/X[N14 yes]/"
    FAIL
 Test #27:  { ../src/grep -F -n -b -m 2 -v -C 1 yes; echo "?$?"; sed=20
's!^!X!'; }
  output:  "1:0:[A01 no ]/2:10:[B02 no ]/3-20-[C03 yes]/?0/X[C03=20
yes]/X[D04 yes]/X[E05 yes]/X[F06 no ]/X[G07 no ]/X[H08 yes]/X[I09=20
yes]/X[J10 no ]/X[K11 no ]/X[L12 no ]/X[M13 yes]/X[N14 yes]/"
  expect:  "1:0:[A01 no ]/2:10:[B02 no ]/?0/X[C03 yes]/X[D04 yes]/X[E05=20
yes]/X[F06 no ]/X[G07 no ]/X[H08 yes]/X[I09 yes]/X[J10 no ]/X[K11 no=20
]/X[L12 no ]/X[M13 yes]/X[N14 yes]/"
    FAIL
 Test #28:  { ../src/grep -F -n -b -m 2 -v -C 1 -o yes; echo "?$?"; sed=20
's!^!X!'; }
  output:  "3-25-yes/?0/X[C03 yes]/X[D04 yes]/X[E05 yes]/X[F06 no=20
]/X[G07 no ]/X[H08 yes]/X[I09 yes]/X[J10 no ]/X[K11 no ]/X[L12 no=20
]/X[M13 yes]/X[N14 yes]/"
  expect:  "?0/X[C03 yes]/X[D04 yes]/X[E05 yes]/X[F06 no ]/X[G07 no=20
]/X[H08 yes]/X[I09 yes]/X[J10 no ]/X[K11 no ]/X[L12 no ]/X[M13=20
yes]/X[N14 yes]/"
    FAIL
FAIL: yesno.sh
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D
2 of 13 tests failed
(1 tests were not run)
Please report to bug-grep@gnu.org