This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: powerpc-linux-ar problem gcc build.


"Williams, Rodger" wrote:

> Hello,
>
> We are trying to build a cross compiler for the powerpc-linux from a
> i686-pc-cygwin32 (Windows NT) with gcc-2.95.1
>
> I have already installed and compiled binutils-2.9.5.0.16
>
> >From my bash, I execute the configure script which completes fine with the
> following:
>
> host=i686-pc-cygwin32
> target=powerpc-linux
> prefix=/croscomp
> i=$prefix/bin
>
> ../gcc-2.95.1/configure --target=$target --prefix=$prefix
> --with-headers=/cygnus/cygwin-b20/H-i586-cygwin32/i586-cygwin32/include
>
> which goes through and creates the configure stuff
>
> However, when I run 'make all install' it goes through the compilation and
> errors out with :
>
> /usr/build-gcc/gcc/xgcc -B/usr/build-gcc/gcc/ -B/croscomp/powerpc-linux/bin/
> -I/
> croscomp/powerpc-linux/include -O2  -DCROSS_COMPILE -DIN_GCC -DHAIFA    -g
> -O2 -
> I./include  -fPIC -g1  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED
> -mstrict-align -
> g -O2 -I. -I../../gcc-2.95.1/gcc -I../../gcc-2.95.1/gcc/config
> -I../../gcc-2.95.
> 1/gcc/../include \
>   -c ../../gcc-2.95.1/gcc/cp/new2.cc -DL_op_vdel -o opvdel.o
> powerpc-linux-ar: not found
> /usr/build-gcc/gcc/xgcc -B/usr/build-gcc/gcc/ -B/croscomp/powerpc-linux/bin/
> -I/
> croscomp/powerpc-linux/include -O2  -DCROSS_COMPILE -DIN_GCC -DHAIFA    -g
> -O2 -
> I./include  -fPIC -g1  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED
> -mstrict-align -
> g -O2 -I. -I../../gcc-2.95.1/gcc -I../../gcc-2.95.1/gcc/config
> -I../../gcc-2.95.
> 1/gcc/../include \
>   -c ../../gcc-2.95.1/gcc/cp/new2.cc -DL_op_vdelnt -o opvdelnt.o
> powerpc-linux-ar: not found
> /usr/build-gcc/gcc/xgcc -B/usr/build-gcc/gcc/ -B/croscomp/powerpc-linux/bin/
> -I/
> croscomp/powerpc-linux/include -O2  -DCROSS_COMPILE -DIN_GCC -DHAIFA    -g
> -O2 -
> I./include  -fPIC -g1  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED
> -mstrict-align -
> g -O2 -I. -I../../gcc-2.95.1/gcc -I../../gcc-2.95.1/gcc/config
> -I../../gcc-2.95.
> 1/gcc/../include \
>   -c -fexceptions ../../gcc-2.95.1/gcc/cp/exception.cc
> powerpc-linux-ar: not found
> mv tmplibgcc2.a libgcc2.a
> mv: tmplibgcc2.a: No such file or directory
> make[3]: *** [libgcc2.a] Error 1
> make[2]: *** [stmp-multilib-sub] Error 2
> make[1]: *** [stmp-multilib] Error 1
> make: *** [all-gcc] Error 2
>
> It seems that it is bugging out on the 'powerpc-linux-ar' which is defined
> in the gcc/makefile ($AR_FOR_TARGET) in this snapshot of that build section:
> ......
> make GCC_FOR_TARGET="/usr/build-gcc/gcc/xgcc -B/usr/build-gcc/gcc/
> -B/croscomp/p
> owerpc-linux/bin/ -I/croscomp/powerpc-linux/include" \
>   AR_FOR_TARGET="powerpc-linux-ar" \
>   AR_FLAGS_FOR_TARGET="rc" \
>   CC="gcc" CFLAGS="-g -O2" \
>   HOST_PREFIX="" HOST_PREFIX_1="loser-" \
>   LANGUAGES="c proto gcov.exe CHILL c++ f77 java objc" \
>   LIBGCC2_CFLAGS="-O2  -DCROSS_COMPILE -DIN_GCC -DHAIFA    -g -O2
> -I./include  -
> fPIC -g1  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED    -mstrict-align" libgcc2.a
> if [ -f libgcc2.ready ] ; then \
>         true; \
> else \
>         touch libgcc2.ready; \
> fi
> rm -f tmplibgcc2.a
> for name in _muldi3 _divdi3 _moddi3 _udivdi3 _umoddi3 _negdi2 _lshrdi3
> _ashldi3
> _ashrdi3 _ffsdi2 _udiv_w_sdiv _udivmoddi4 _cmpdi2 _ucmpdi2 _floatdidf
> _floatdisf
>  _fixunsdfsi _fixunssfsi _fixunsdfdi _fixdfdi _fixunssfdi _fixsfdi _fixxfdi
> _fix
> unsxfdi _floatdixf _fixunsxfsi _fixtfdi _fixunstfdi _floatditf __gcc_bcmp
> _varar
> gs __dummy _eprintf _bb _shtab _clear_cache _trampoline __main _exit _ctors
> _pur
> e; \
> do \
>   echo ${name}; \
>   /usr/build-gcc/gcc/xgcc -B/usr/build-gcc/gcc/
> -B/croscomp/powerpc-linux/bin/ -
> I/croscomp/powerpc-linux/include -O2  -DCROSS_COMPILE -DIN_GCC -DHAIFA    -g
> -O2
>  -I./include  -fPIC -g1  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED
> -mstrict-align
>  -I. -I../../gcc-2.95.1/gcc -I../../gcc-2.95.1/gcc/config
> -I../../gcc-2.95.1/gcc
> /../include -c -DL${name} \
>        ../../gcc-2.95.1/gcc/libgcc2.c -o ${name}.o; \
>   if [ $? -eq 0 ] ; then true; else exit 1; fi; \
>   powerpc-linux-ar rc tmplibgcc2.a ${name}.o; \
>   rm -f ${name}.o; \
> done
> _muldi3
> powerpc-linux-ar: not found
> _divdi3
> powerpc-linux-ar: not found
> _moddi3
> powerpc-linux-ar: not found
> ....etc, etc,
>
> Any help on this would be greatly appreciated...
>
> rodger
>
> ================================
> Rodger Williams
> Dispenser Electronics Engineering
> Gilbarco Inc.
> Ph:    336.547.5480
> Fax:   336.547.5079
> ================================
>
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe@sourceware.cygnus.com

try follow this link
http://www.objsw.com/CrossGCC




--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]