"No rule to make target" error when building gcc
Andi Hellmund
mail@andihellmund.com
Sat Jun 6 13:18:00 GMT 2009
Hey Kevin,
are you trying to build a compiler which compiles cross (which means it
generates code for a different platform than it runs on)?
Otherwise, I would try to omit the "--target=i686-linux". The configure
script will determine the --build, --host and --target itself (by
default all three are the same and set to the platform which you build on).
Andi
Kevin Wilson wrote:
> Hello,
> I am trying to build a 32 bit gcc compiler on a 64 bit machine (Linux).
>
> What I did is this:
>
> Untarred gcc to gcc-4.1.2-20070925 folder (I used the gcc sources of
> gcc-4.1.2-33.src.rpm)
>
> create an empty build folder. from there I ran:
>
> ../gcc-4.1.2-20070925/configure --prefix=/work/tools/fc8_i386/gcc
> --enable-threads=posix --enable-languages=c --target=i686-linux
>
> After some time it stops with this error:
> make[2]: *** No rule to make target
> `/work/tools/fc8_i386/gcc/bin/i686-linux-as', needed by `stamp-as'.
> Stop.
>
>
> Any ideas why ?
> full log of the error is below:
>
>
>
> for file in .. ../../gcc-4.1.2-20070925/gcc/ginclude/float.h
> ../../gcc-4.1.2-20070925/gcc/ginclude/iso646.h
> ../../gcc-4.1.2-20070925/gcc/ginclude/stdarg.h
> ../../gcc-4.1.2-20070925/gcc/ginclude/stdbool.h
> ../../gcc-4.1.2-20070925/gcc/ginclude/stddef.h
> ../../gcc-4.1.2-20070925/gcc/ginclude/varargs.h
> ../../gcc-4.1.2-20070925/gcc/config/i386/mmintrin.h
> ../../gcc-4.1.2-20070925/gcc/config/i386/mm3dnow.h
> ../../gcc-4.1.2-20070925/gcc/config/i386/xmmintrin.h
> ../../gcc-4.1.2-20070925/gcc/config/i386/emmintrin.h
> ../../gcc-4.1.2-20070925/gcc/config/i386/pmmintrin.h
> ../../gcc-4.1.2-20070925/gcc/config/i386/tmmintrin.h
> ../../gcc-4.1.2-20070925/gcc/config/i386/ammintrin.h mm_malloc.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
> cp ../../gcc-4.1.2-20070925/gcc/unwind-generic.h include/unwind.h
> chmod a+r include/limits.h
> rm -f include/README
> cp ../../gcc-4.1.2-20070925/gcc/../fixincludes/README-fixinc include/README
> chmod a+r include/README
> echo timestamp > stmp-int-hdrs
> make[2]: *** No rule to make target
> `/work/tools/fc8_i386/gcc/bin/i686-linux-as', needed by `stamp-as'.
> Stop.
> make[2]: Leaving directory `/usr/src/redhat/BUILD/gcc-4.1.2-20070925Build/gcc'
> make[1]: *** [all-gcc] Error 2
> make[1]: Leaving directory `/usr/src/redhat/BUILD/gcc-4.1.2-20070925Build'
> make: *** [all] Error 2
>
>
> Regards,
> Kevin
>
>
More information about the Gcc-help
mailing list