/bin/sh ../../gcc/../move-if-change tmp-macro_list macro_list
echo timestamp > s-macro_list
rm -rf include; mkdir include
chmod a+rx include
if [ -d ../prev-gcc ]; then \
          cd ../prev-gcc && \
          make real-install-headers-tar DESTDIR=`pwd`/../gcc/ \
            libsubdir=. ; \
        else \
          (TARGET_MACHINE='armv5tejl-unknown-linux-gnu'; srcdir=`cd ../../gcc;
${PWDCMD-pwd}`; \
            SHELL='/bin/sh'; MACRO_LIST=`${PWDCMD-pwd}`/macro_list ; \
            export TARGET_MACHINE srcdir SHELL MACRO_LIST && \
            cd ../build-armv5tejl-unknown-linux-gnu/fixincludes && \
            /bin/sh ./fixinc.sh ../../gcc/include \
              `echo /usr/include | sed -e :a -e 's,[^/]*/\.\.\/,,' -e ta`  ); \
          rm -f include/syslimits.h; \
          if [ -f include/limits.h ]; then \
            mv include/limits.h include/syslimits.h; \
          else \
            cp ../../gcc/gsyslimits.h include/syslimits.h; \
          fi; \
        fi
Fixing headers into /scratch/gcc-4.2.2/objdir/gcc/include for
armv5tejl-unknown-linux-gnu target
Forbidden identifiers: linux unix 
Finding directories and links to directories
 Searching /usr/include/.
Making symbolic directory links
Fixing directory /usr/include into /scratch/gcc-4.2.2/objdir/gcc/include
BusyBox v1.2.2 (2007.03.26-11:07+0000) multi-call binary

Usage: find [PATH...] [EXPRESSION]

Search for files in a directory hierarchy.  The default PATH is
the current directory; default EXPRESSION is '-print'

EXPRESSION may consist of:
        -follow         Dereference symbolic links
        -name PATTERN   File name (leading directories removed) matches PATTERN
        -print          Print (default and assumed)
        -print0         Delimit output with null characters rather than
                        newlines
        -type X         Filetype matches X (where X is one of: f,d,l,b,c,...)
        -perm PERMS     Permissions match any of (+NNN); all of (-NNN);
                        or exactly (NNN)
        -mtime DAYS     Modified time is greater than (+N); less than (-N);
                        or exactly (N) days
        -mmin MINS      Modified time is greater than (+N); less than (-N);
                        or exactly (N) minutes
        -exec CMD       Execute CMD with all instances of {} replaced by the
                        files matching EXPRESSION

Cleaning up unneeded directories:
BusyBox v1.2.2 (2007.03.26-11:07+0000) multi-call binary

Usage: find [PATH...] [EXPRESSION]

Search for files in a directory hierarchy.  The default PATH is
the current directory; default EXPRESSION is '-print'

EXPRESSION may consist of:
        -follow         Dereference symbolic links
        -name PATTERN   File name (leading directories removed) matches PATTERN
        -print          Print (default and assumed)
        -print0         Delimit output with null characters rather than
                        newlines
        -type X         Filetype matches X (where X is one of: f,d,l,b,c,...)
        -perm PERMS     Permissions match any of (+NNN); all of (-NNN);
                        or exactly (NNN)
        -mtime DAYS     Modified time is greater than (+N); less than (-N);
                        or exactly (N) days
        -mmin MINS      Modified time is greater than (+N); less than (-N);
                        or exactly (N) minutes
        -exec CMD       Execute CMD with all instances of {} replaced by the
                        files matching EXPRESSION

fixincludes is done
chmod a+r include/syslimits.h
echo timestamp > stmp-fixinc
if [ -d include ] ; then true; else mkdir include; chmod a+rx include; fi
for file in .. ../../gcc/ginclude/decfloat.h ../../gcc/ginclude/float.h
../../gcc/ginclude/iso646.h ../../gcc/ginclude/stdarg.h
../../gcc/ginclude/stdbool.h ../../gcc/ginclude/stddef.h
../../gcc/ginclude/varargs.h ../../gcc/config/arm/mmintrin.h; do \
          if [ X$file != X.. ]; then \
            realfile=`echo $file | sed -e 's|.*/\([^/]*\)$|\1|'`; \
            echo timestamp > include/$realfile; \
            rm -f include/$realfile; \
            cp $file include; \
            chmod a+r include/$realfile; \
          fi; \
        done
rm -f include/limits.h
cp xlimits.h include/limits.h
rm -f include/unwind.h
cp ../../gcc/unwind-generic.h include/unwind.h
chmod a+r include/limits.h
rm -f include/README
cp ../../gcc/../fixincludes/README-fixinc include/README
chmod a+r include/README
echo timestamp > stmp-int-hdrs
creating as
echo timestamp > stamp-as
creating collect-ld
echo timestamp > stamp-collect-ld
creating nm
echo timestamp > stamp-nm


After some debugging I found the problem is the -o argument doing logical OR.
Luckily, we can live with two separate executions of find as well. The attached
patch works for me.


-- 
           Summary: find from BusyBox v1.2.2 does not support logical OR (-o
                    argument)
           Product: gcc
           Version: 4.2.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mmokrejs at ribosome dot natur dot cuni dot cz


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34474

Reply via email to