delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2003/01/16/06:32:11

X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0
content-class: urn:content-classes:message
MIME-Version: 1.0
Subject: RE: GCC 3.2.1 build failure
Date: Thu, 16 Jan 2003 12:29:32 +0100
Message-ID: <250B3114DA16D511B82C00E0094005F809D31B49@MSGWAW11>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Thread-Topic: GCC 3.2.1 build failure
Thread-Index: AcK9ThH2+nZMJbfUTz2K5CdnlzORpAAACz5A
From: "Wojciech Galazka" <wojciech DOT galazka AT polkomtel DOT com DOT pl>
To: <djgpp-workers AT delorie DOT com>
Reply-To: djgpp-workers AT delorie DOT com

This is a multi-part message in MIME format.

------_=_NextPart_001_01C2BD52.8A0422D0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I had no problems building gcc321 from gcc321s.zip from simtel using =
binaries from clio I grabbed on Friday and gcc321b.zip from simtel on =
Win2000. Is ithis problem solely XP related ?

-----Original Message-----
From: Andrew Cottrell [mailto:acottrel AT ihug DOT com DOT au]
Sent: Thursday, January 16, 2003 11:37 AM
To: djgpp-workers AT delorie DOT com
Subject: GCC 3.2.1 build failure=20


Any help or ideas with this one would be greatfully appreciated.=20
=20
I have traced what is hopefully the first problem with my attempt to =
build GCC 3.2.1 with the latest 2.04 build I have completed (and also =
the one currently available at clio) as follows:-
=20
1) When GCC runs the gnu\gcc-3.21\gcc\fixinc\fixincl.sh once it has been =
processed in the build the Fixing directory find is executed.
=20
The correct output looks like this:-
    Fixing headers into /dev/d/dj204/gnu/build.gcc/gcc/include for =
i586-pc-msdosdj204 target
    Finding directories and links to directories
     Searching d:/dj204/include/.
    Fixing directory d:/dj204/include into =
/dev/d/dj204/gnu/build.gcc/gcc/include
    Applying ctrl_quotes_def          to libc/ttyprvt.h
    Applying dj204_wchar_h            to sys/djtypes.h
    Applying io_quotes_def            to sys/ioctl.h
    Applying limits_ifndefs           to limits.h
    Applying undefine_null            to locale.h
    Fixed:  locale.h
    Applying sun_malloc               to malloc.h
    Applying math_exception           to math.h
    Applying math_huge_val_ifndef     to math.h
    Fixed:  math.h
    Applying gnu_types                to stddef.h
    Applying undefine_null            to stddef.h
    Fixed:  stddef.h
    Applying stdio_stdarg_h           to stdio.h
    Fixed:  stdio.h
    Applying sysv68_string            to string.h
    d:/dj204/bin/find.exe: error waiting for rm: No child processes =
(ECHILD)
    Cleaning up unneeded directories:
    fixincludes is done
    if [ "d:/dj204/include" =3D "/dev/env/DJDIR/dj204/sys-include" ] \

The failure output is (modifed to give extra debug info):-
    Fixing headers into /dev/d/dj204/gnu/build.gcc/gcc/include for =
i586-pc-msdosdjgpp target
    Finding directories and links to directories
     Searching d:/dj204/include/.
    Fixing directory d:/dj204/include into =
/dev/d/dj204/gnu/build.gcc/gcc/include
    INPUT =3D d:/dj204/include
    required =3D
    LINKS =3D false
    FIND_BASE =3D .
    dir: /w: No such file or directory (ENOENT)
    d:/dj204/bin/find.exe: paths must precede expression
    Usage: d:/dj204/bin/find.exe [path...] [expression]
    ANDREW DONE
    Cleaning up unneeded directories:
    fixincludes is done
    if [ "d:/dj204/include" =3D "/dev/env/DJDIR/djgpp/sys-include" ] \
       && [ -d /dev/env/DJDIR/djgpp/sys-include ]; then \

The relevant part of the gnu\gcc-3.21\gcc\fixinc\fixincl.sh file is as =
follows, it has been modified to output the extra echo info at lines =
381:-
    379  touch ${DESTDIR}/DONE
    380  if test $VERBOSE -gt 1
    381  then echo Fixing directory ${SRCDIR} into ${DESTDIR} ; echo =
INPUT =3D ${INPUT} ;  echo required  =3D $required  ;  echo LINKS  =3D =
$LINKS  ;  echo FIND_BASE =3D ${FIND_BASE} ;  echo dir /w ;fi
    382 =20
    383  # Check files which are symlinks as well as those which are =
files.
    384  #
    385  cd ${INPUT}
    386  required=3D"$required `if $LINKS; then
    387    find ${FIND_BASE}/. -name '*.h' \( -type f -o -type l \) =
-print;
    388  else
    389    find ${FIND_BASE}/. -name '*.h' -type f -print;
    390  fi | \
    391    sed -e 's;/\./;/;g' -e 's;//*;/;g' | \
    392    ${FIXINCL}`"
    393
    394  if test $VERBOSE -gt 1
    394  then echo ANDREW DONE;  fi
=20
2) If I go into the  d:/dj204/include and run the following line then =
find displays what looks like a list of header files
    find ./. -name '*.h' -type f -print

3) If I go into the  d:/dj204/include and run the following line then I =
get the error below the line which is the same as in the output:-
    find ./. -name '*.h' \( -type f -o -type l \) -print
=20
    Error is:-
    d:/dj204/bin/find.exe: paths must precede expression
    Usage: d:/dj204/bin/find.exe [path...] [expression]
=20
  As I understand the shell file and the debug info this line should not =
have been called as the $LINKS is false so the line in 2) above should =
have been executed...
  If I remove the \ in the line then it works.
=20
Setup:
I am using exactly the same bash,make and sed executable files in both =
the workign GCC build and the failure build.
In the build that works I am using the 2.04 packages I built way back on =
22-Oct-2002 and the build that fails I built on 10-Jan-2003.
=20
Thanks,
Andrew
=20
=20


------_=_NextPart_001_01C2BD52.8A0422D0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">


<META content=3D"MSHTML 5.50.4807.2300" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
class=3D106485810-16012003>I had=20
no problems building gcc321 from gcc321s.zip from simtel using binaries =
from=20
clio I grabbed on Friday and gcc321b.zip from simtel on Win2000. Is =
ithis=20
problem solely XP related&nbsp;?</SPAN></FONT></DIV>
<BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
  <DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT =
face=3DTahoma=20
  size=3D2>-----Original Message-----<BR><B>From:</B> Andrew Cottrell=20
  [mailto:acottrel AT ihug DOT com DOT au]<BR><B>Sent:</B> Thursday, January 16, =
2003 11:37=20
  AM<BR><B>To:</B> djgpp-workers AT delorie DOT com<BR><B>Subject:</B> GCC =
3.2.1 build=20
  failure <BR><BR></FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>Any help or ideas with this one would =
be=20
  greatfully appreciated. </FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>I have traced what is hopefully the =
first problem=20
  with my attempt to build GCC 3.2.1 with the latest 2.04 build I have =
completed=20
  (and also the one currently available at clio) as =
follows:-</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>1) When GCC runs the=20
  gnu\gcc-3.21\gcc\fixinc\fixincl.sh once it has been processed in the =
build the=20
  Fixing directory find is executed.</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>The correct output looks like =
this:-</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; Fixing headers =
into=20
  /dev/d/dj204/gnu/build.gcc/gcc/include for i586-pc-msdosdj204=20
  target<BR>&nbsp;&nbsp;&nbsp; Finding directories and links to=20
  directories<BR>&nbsp;&nbsp;&nbsp; &nbsp;Searching=20
  d:/dj204/include/.<BR>&nbsp;&nbsp;&nbsp; Fixing directory =
d:/dj204/include=20
  into /dev/d/dj204/gnu/build.gcc/gcc/include<BR>&nbsp;&nbsp;&nbsp; =
Applying=20
  ctrl_quotes_def&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
to=20
  libc/ttyprvt.h<BR>&nbsp;&nbsp;&nbsp; Applying=20
  =
dj204_wchar_h&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;=20
  to sys/djtypes.h<BR>&nbsp;&nbsp;&nbsp; Applying=20
  =
io_quotes_def&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;=20
  to sys/ioctl.h<BR>&nbsp;&nbsp;&nbsp; Applying=20
  =
limits_ifndefs&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
; to=20
  limits.h<BR>&nbsp;&nbsp;&nbsp; Applying=20
  =
undefine_null&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;=20
  to locale.h<BR>&nbsp;&nbsp;&nbsp; Fixed:&nbsp; =
locale.h<BR>&nbsp;&nbsp;&nbsp;=20
  Applying=20
  =
sun_malloc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;=20
  to malloc.h<BR>&nbsp;&nbsp;&nbsp; Applying=20
  =
math_exception&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
; to=20
  math.h<BR>&nbsp;&nbsp;&nbsp; Applying=20
  math_huge_val_ifndef&nbsp;&nbsp;&nbsp;&nbsp; to =
math.h<BR>&nbsp;&nbsp;&nbsp;=20
  Fixed:&nbsp; math.h<BR>&nbsp;&nbsp;&nbsp; Applying=20
  =
gnu_types&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;=20
  to stddef.h<BR>&nbsp;&nbsp;&nbsp; Applying=20
  =
undefine_null&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;=20
  to stddef.h<BR>&nbsp;&nbsp;&nbsp; Fixed:&nbsp; =
stddef.h<BR>&nbsp;&nbsp;&nbsp;=20
  Applying=20
  =
stdio_stdarg_h&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
; to=20
  stdio.h<BR>&nbsp;&nbsp;&nbsp; Fixed:&nbsp; =
stdio.h<BR>&nbsp;&nbsp;&nbsp;=20
  Applying=20
  =
sysv68_string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;=20
  to string.h<BR>&nbsp;&nbsp;&nbsp; d:/dj204/bin/find.exe: error waiting =
for rm:=20
  No child processes (ECHILD)<BR>&nbsp;&nbsp;&nbsp; Cleaning up unneeded =

  directories:<BR>&nbsp;&nbsp;&nbsp; fixincludes is =
done<BR>&nbsp;&nbsp;&nbsp;=20
  if [ "d:/dj204/include" =3D "/dev/env/DJDIR/dj204/sys-include" ]=20
  \<BR></FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>The failure output is (modifed to =
give extra=20
  debug info):-</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; Fixing headers =
into=20
  /dev/d/dj204/gnu/build.gcc/gcc/include for i586-pc-msdosdjgpp=20
  target<BR>&nbsp;&nbsp;&nbsp; Finding directories and links to=20
  directories<BR>&nbsp;&nbsp;&nbsp; &nbsp;Searching=20
  d:/dj204/include/.<BR>&nbsp;&nbsp;&nbsp; Fixing directory =
d:/dj204/include=20
  into /dev/d/dj204/gnu/build.gcc/gcc/include<BR>&nbsp;&nbsp;&nbsp; =
INPUT =3D=20
  d:/dj204/include<BR>&nbsp;&nbsp;&nbsp; required =
=3D<BR>&nbsp;&nbsp;&nbsp; LINKS=20
  =3D false<BR>&nbsp;&nbsp;&nbsp; FIND_BASE =3D .<BR>&nbsp;&nbsp;&nbsp; =
dir: /w: No=20
  such file or directory (ENOENT)<BR>&nbsp;&nbsp;&nbsp; =
d:/dj204/bin/find.exe:=20
  paths must precede expression<BR>&nbsp;&nbsp;&nbsp; Usage:=20
  d:/dj204/bin/find.exe [path...] [expression]<BR>&nbsp;&nbsp;&nbsp; =
ANDREW=20
  DONE<BR>&nbsp;&nbsp;&nbsp; Cleaning up unneeded=20
  directories:<BR>&nbsp;&nbsp;&nbsp; fixincludes is =
done<BR>&nbsp;&nbsp;&nbsp;=20
  if [ "d:/dj204/include" =3D "/dev/env/DJDIR/djgpp/sys-include" ]=20
  \<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &amp;&amp; [ -d=20
  /dev/env/DJDIR/djgpp/sys-include ]; then \<BR></FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>The relevant part of the=20
  gnu\gcc-3.21\gcc\fixinc\fixincl.sh file is as follows, it has been =
modified to=20
  output the extra echo info at lines 381:-</DIV></FONT>
  <DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; 379&nbsp; touch=20
  ${DESTDIR}/DONE<BR>&nbsp;&nbsp;&nbsp; 380&nbsp; if test $VERBOSE -gt=20
  1<BR>&nbsp;&nbsp;&nbsp; 381&nbsp; then echo Fixing directory ${SRCDIR} =
into=20
  ${DESTDIR} ; echo INPUT =3D ${INPUT} ;&nbsp; echo required&nbsp; =3D=20
  $required&nbsp; ;&nbsp; echo LINKS&nbsp; =3D $LINKS&nbsp; ;&nbsp; echo =
FIND_BASE=20
  =3D ${FIND_BASE} ;&nbsp; echo dir /w ;fi<BR>&nbsp;&nbsp;&nbsp; =
382&nbsp;=20
  <BR>&nbsp;&nbsp;&nbsp; 383&nbsp; # Check files which are symlinks as =
well as=20
  those which are files.<BR>&nbsp;&nbsp;&nbsp; 384&nbsp; =
#<BR>&nbsp;&nbsp;&nbsp;=20
  385&nbsp; cd ${INPUT}<BR>&nbsp;&nbsp;&nbsp; 386&nbsp; =
required=3D"$required `if=20
  $LINKS; then<BR>&nbsp;&nbsp;&nbsp; 387&nbsp;&nbsp;&nbsp; find =
${FIND_BASE}/.=20
  -name '*.h' \( -type f -o -type l \) -print;<BR>&nbsp;&nbsp;&nbsp; =
388&nbsp;=20
  else<BR>&nbsp;&nbsp;&nbsp; 389&nbsp;&nbsp;&nbsp; find ${FIND_BASE}/. =
-name=20
  '*.h' -type f -print;<BR>&nbsp;&nbsp;&nbsp; 390&nbsp; fi |=20
  \<BR>&nbsp;&nbsp;&nbsp; 391&nbsp;&nbsp;&nbsp; sed -e 's;/\./;/;g' -e=20
  's;//*;/;g' | \<BR>&nbsp;&nbsp;&nbsp; 392&nbsp;&nbsp;&nbsp;=20
  ${FIXINCL}`"<BR>&nbsp;&nbsp;&nbsp; 393<BR>&nbsp;&nbsp;&nbsp; 394&nbsp; =
if test=20
  $VERBOSE -gt 1<BR>&nbsp;&nbsp;&nbsp; 394&nbsp; then echo ANDREW =
DONE;&nbsp;=20
  fi</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2><FONT face=3DArial size=3D2>2) If I =
go into the&nbsp;=20
  d:/dj204/include and run the following line then find displays what =
looks like=20
  a list of header files</FONT></DIV>
  <DIV>
  <DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; find ./. -name =
'*.h' -type f=20
  -print<BR></FONT>
  <DIV><FONT face=3DArial size=3D2>3) If I go into the&nbsp; =
d:/dj204/include and=20
  run the following line then I get the error below the line which is =
the same=20
  as in the output:-</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; find ./. -name =
'*.h' \( -type=20
  f -o -type l \) -print<BR></FONT>&nbsp;</DIV>
  <DIV></FONT><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; Error =
is:-</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; =
d:/dj204/bin/find.exe: paths=20
  must precede expression<BR>&nbsp;&nbsp;&nbsp; Usage: =
d:/dj204/bin/find.exe=20
  [path...] [expression]</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>&nbsp; As I understand the shell file =
and the=20
  debug info this line should not have been called as the $LINKS is =
false so the=20
  line in 2) above should have been executed...</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>&nbsp; If I remove the \ in the line =
then it=20
  works.</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>Setup:</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>I am using exactly the same bash,make =
and=20
  sed&nbsp;executable files in both the workign GCC build and the =
failure=20
  build.</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>In the build that works I am using =
the 2.04=20
  packages I built way back on 22-Oct-2002 and the build that fails I =
built on=20
  10-Jan-2003.</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>Thanks,</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>Andrew</FONT><FONT face=3DArial=20
  size=3D2></FONT></DIV></DIV></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial =
size=3D2></FONT>&nbsp;</DIV></BLOCKQUOTE></BODY></HTML>

------_=_NextPart_001_01C2BD52.8A0422D0--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019