This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
I have problem when building gcc for powerpc under windows NT.
I'm
following the instructions in the RedHat homepage. The problem arises after I have typed: make -w all-gcc install-gcc LANGUAGES="c c++" 2>&1 | tee make.out the output about error I get is:
/src/gcc/gcc-2.95.2/gcc/reload1.c:9556: syntax
error before `static'
/src/gcc/gcc-2.95.2/gcc/reload1.c: In function `reload_combine': /src/gcc/gcc-2.95.2/gcc/reload1.c:9604: stray '\' in program /src/gcc/gcc-2.95.2/gcc/reload1.c:9604: parse error before `)' /src/gcc/gcc-2.95.2/gcc/reload1.c:9795: stray '\' in program /src/gcc/gcc-2.95.2/gcc/reload1.c:9795: parse error before `;' make[1]: *** [reload1.o] Error 1 make[1]: Leaving directory `/tmp/build/gcc/gcc' make: *** [all-gcc] Error 2 make: Leaving directory `/tmp/build/gcc' then I executs following commands:
tr -d '\r' <
/src/gcc/gcc-2.95.2/gcc/reload1.c > foo
mv foo /src/gcc/gcc-2.95.2/gcc/reload1.c After that I retry
make -w all-gcc install-gcc LANGUAGES="c c++"
2>&1 | tee make.out
the output about error is:
make[2]: Entering directory
`/tmp/build/gcc/gcc'
rm -f libgcc2.a if [ -d . ]; then \ cd .; \ rm -f libgcc.a ecrti.o ecrtn.o scrt0.o scrti.o scrtn.o; \ else true; \ fi make GCC_FOR_TARGET="/tmp/build/gcc/gcc/xgcc -B/tmp/build/gcc/gcc/ -B/tools/H-i686-pc-cygwin/powerpc-eabi/bin/ -I/tools/H-i686-pc-cygwin/powerpc-eabi/include" \ AR_FOR_TARGET="powerpc-eabi-ar" \ AR_FLAGS_FOR_TARGET="rc" \ CC="gcc" CFLAGS="-g -O2" \ HOST_PREFIX="" HOST_PREFIX_1="loser-" \ LANGUAGES="c c++" \ LIBGCC2_CFLAGS="-O2 -DCROSS_COMPILE -DIN_GCC -DHAIFA -g -O2 -I./include -g1 -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -mrelocatable-lib -mno-eabi -mstrict-align" libgcc2.a make[3]: Entering directory `/tmp/build/gcc/gcc' 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 _fixunsxfdi _floatdixf _fixunsxfsi _fixtfdi _fixunstfdi _floatditf __gcc_bcmp _varargs __dummy _eprintf _bb _shtab _clear_cache _trampoline __main _exit _ctors _pure; \ do \ echo ${name}; \ /tmp/build/gcc/gcc/xgcc -B/tmp/build/gcc/gcc/ -B/tools/H-i686-pc-cygwin/powerpc-eabi/bin/ -I/tools/H-i686-pc-cygwin/powerpc-eabi/include -O2 -DCROSS_COMPILE -DIN_GCC -DHAIFA -g -O2 -I./include -g1 -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -mrelocatable-lib -mno-eabi -mstrict-align -I. -I/gcc-2.95.2/gcc -I/gcc-2.95.2/gcc/config -I/gcc-2.95.2/gcc/../include -c -DL${name} \ /gcc-2.95.2/gcc/libgcc2.c -o ${name}.o; \ if [ $? -eq 0 ] ; then true; else exit 1; fi; \ powerpc-eabi-ar rc tmplibgcc2.a ${name}.o; \ rm -f ${name}.o; \ done _muldi3 as: unrecognized option `-mppc' make[3]: *** [libgcc2.a] Error 1 make[3]: Leaving directory `/tmp/build/gcc/gcc' make[2]: *** [stmp-multilib-sub] Error 2 make[2]: Leaving directory `/tmp/build/gcc/gcc' make[1]: *** [stmp-multilib] Error 1 make[1]: Leaving directory `/tmp/build/gcc/gcc' make: *** [all-gcc] Error 2 make: Leaving directory `/tmp/build/gcc' |
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |