* Problems building Linux hosted MPC860 GCC cross compiler
@ 2000-02-08 7:21 root
2000-04-01 0:00 ` root
0 siblings, 1 reply; 2+ messages in thread
From: root @ 2000-02-08 7:21 UTC (permalink / raw)
To: gcc-help
Hello,
I am trying to create a cross compiler from gcc 2.95.2 sources.
The cross compiler is to be hosted on a linux x86 (P3 450) PC but I want
it to
target an embedded system with a Motorola MPC850 (860 for all intents &
purposes).
I set up the following directories:
/usr/local/cross-gcc/src # all source code tar -zxvf unpacked here
/usr/local/cross-gcc/target # This is the target dir
# The following dirs are from where I call configure and make
/usr/local/cross-gcc/build/{binutils,gcc,gdb,newlib}
Then I built binutils-2.9.5.0.24:
cd /usr/local/cross-gcc/src
target=powerpc-eabi
prefix=/usr/local/cross-gcc/target
cd /usr/local/cross-gcc/build/binutils
../../src/binutils-2.9.5.0.24/configure --target=$target
--prefix=$prefix -v
make all install
binutils built just fine.
Then I try to build gcc-2.95.2:
cd /usr/local/cross-gcc/src/gcc-2.95.2
Following the advice of an article by Bill Gatliff on www.embedded.com I
did
this:
rm -rf libf2c
ln -s ../newlib-1.8.2/newlib newlib
Then off to my build dir:
cd /usr/local/cross-gcc/build/gcc
../../src/gcc-2.95.2/configure --target=$target --prefix=$prefix
--with-newlib \
--with-headers=/usr/local/cross-gcc/src/newlib-1.8.2/newlib/libc/include
\
--with-cpu=860 -v
make cross LANGUAGES="c c++" install
It then spits out build rules an bits of shell script for about 5 to 6
minutes before stopping with the following final few lines of output:-
----------------------output begins-----------------------------
masses of output deleted
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}; \
/usr/local/cross-gcc/build/gcc/gcc/xgcc
-B/usr/local/cross-gcc/build/gcc/gcc/ -B--with-newlib/powerpc-eabi/bin/
-I--with-newlib/powerpc-eabi/include -O2 -DCROSS_COMPILE -DIN_GCC
-DHAIFA -g -O2 -I./include -g1 -DIN_LIBGCC2
-D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -mstrict-align -I.
-I../../../src/gcc-2.95.2/gcc -I../../../src/gcc-2.95.2/gcc/config
-I../../../src/gcc-2.95.2/gcc/../include -c -DL${name} \
../../../src/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 `-ppc'
make[3]: *** [libgcc2.a] Error 1
make[3]: Leaving directory `/usr/local/cross-gcc/build/gcc/gcc'
make[2]: *** [stmp-multilib-sub] Error 2
make[2]: Leaving directory `/usr/local/cross-gcc/build/gcc/gcc'
make[1]: *** [stmp-multilib] Error 1
make[1]: Leaving directory `/usr/local/cross-gcc/build/gcc/gcc'
make: *** [cross] Error 2
----------------------output ends-----------------------------
It seems like gas is called with an invalid option but I've been
wondering whether it's barfing on one of the input files with
-ppc in its name. I don't know though, hence this email. :-)
The only thing extra that I can think to mention is that my operating
system is RedHat Linux version 6.1 and my native GCC is version 2.91.66.
I apologise for the length of this problem description but I thought
it necessary to give as complete a picture as possible in order to get
the best possible help.
I have also examined the crossGCC FAQ as well as the GCC manual &
installation instructions. I have also search through some mail
archives but haven't found anything that has been of any help (yet).
I would really appreciate some help to get my cross compiler built.
cheers & thanks in advance,
Jeff
^ permalink raw reply [flat|nested] 2+ messages in thread
* Problems building Linux hosted MPC860 GCC cross compiler
2000-02-08 7:21 Problems building Linux hosted MPC860 GCC cross compiler root
@ 2000-04-01 0:00 ` root
0 siblings, 0 replies; 2+ messages in thread
From: root @ 2000-04-01 0:00 UTC (permalink / raw)
To: gcc-help
Hello,
I am trying to create a cross compiler from gcc 2.95.2 sources.
The cross compiler is to be hosted on a linux x86 (P3 450) PC but I want
it to
target an embedded system with a Motorola MPC850 (860 for all intents &
purposes).
I set up the following directories:
/usr/local/cross-gcc/src # all source code tar -zxvf unpacked here
/usr/local/cross-gcc/target # This is the target dir
# The following dirs are from where I call configure and make
/usr/local/cross-gcc/build/{binutils,gcc,gdb,newlib}
Then I built binutils-2.9.5.0.24:
cd /usr/local/cross-gcc/src
target=powerpc-eabi
prefix=/usr/local/cross-gcc/target
cd /usr/local/cross-gcc/build/binutils
../../src/binutils-2.9.5.0.24/configure --target=$target
--prefix=$prefix -v
make all install
binutils built just fine.
Then I try to build gcc-2.95.2:
cd /usr/local/cross-gcc/src/gcc-2.95.2
Following the advice of an article by Bill Gatliff on www.embedded.com I
did
this:
rm -rf libf2c
ln -s ../newlib-1.8.2/newlib newlib
Then off to my build dir:
cd /usr/local/cross-gcc/build/gcc
../../src/gcc-2.95.2/configure --target=$target --prefix=$prefix
--with-newlib \
--with-headers=/usr/local/cross-gcc/src/newlib-1.8.2/newlib/libc/include
\
--with-cpu=860 -v
make cross LANGUAGES="c c++" install
It then spits out build rules an bits of shell script for about 5 to 6
minutes before stopping with the following final few lines of output:-
----------------------output begins-----------------------------
masses of output deleted
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}; \
/usr/local/cross-gcc/build/gcc/gcc/xgcc
-B/usr/local/cross-gcc/build/gcc/gcc/ -B--with-newlib/powerpc-eabi/bin/
-I--with-newlib/powerpc-eabi/include -O2 -DCROSS_COMPILE -DIN_GCC
-DHAIFA -g -O2 -I./include -g1 -DIN_LIBGCC2
-D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -mstrict-align -I.
-I../../../src/gcc-2.95.2/gcc -I../../../src/gcc-2.95.2/gcc/config
-I../../../src/gcc-2.95.2/gcc/../include -c -DL${name} \
../../../src/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 `-ppc'
make[3]: *** [libgcc2.a] Error 1
make[3]: Leaving directory `/usr/local/cross-gcc/build/gcc/gcc'
make[2]: *** [stmp-multilib-sub] Error 2
make[2]: Leaving directory `/usr/local/cross-gcc/build/gcc/gcc'
make[1]: *** [stmp-multilib] Error 1
make[1]: Leaving directory `/usr/local/cross-gcc/build/gcc/gcc'
make: *** [cross] Error 2
----------------------output ends-----------------------------
It seems like gas is called with an invalid option but I've been
wondering whether it's barfing on one of the input files with
-ppc in its name. I don't know though, hence this email. :-)
The only thing extra that I can think to mention is that my operating
system is RedHat Linux version 6.1 and my native GCC is version 2.91.66.
I apologise for the length of this problem description but I thought
it necessary to give as complete a picture as possible in order to get
the best possible help.
I have also examined the crossGCC FAQ as well as the GCC manual &
installation instructions. I have also search through some mail
archives but haven't found anything that has been of any help (yet).
I would really appreciate some help to get my cross compiler built.
cheers & thanks in advance,
Jeff
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-04-01 0:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-02-08 7:21 Problems building Linux hosted MPC860 GCC cross compiler root
2000-04-01 0:00 ` root
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).