public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: root <jgl@one.net.au>
To: gcc-help@gcc.gnu.org
Subject: Problems building Linux hosted MPC860 GCC cross compiler
Date: Tue, 08 Feb 2000 07:21:00 -0000	[thread overview]
Message-ID: <38A0367A.A3D692D3@one.net.au> (raw)

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







WARNING: multiple messages have this Message-ID
From: root <jgl@one.net.au>
To: gcc-help@gcc.gnu.org
Subject: Problems building Linux hosted MPC860 GCC cross compiler
Date: Sat, 01 Apr 2000 00:00:00 -0000	[thread overview]
Message-ID: <38A0367A.A3D692D3@one.net.au> (raw)
Message-ID: <20000401000000.Jf0WmnysCWYZ5u-dVhfzDOUwD7TfcUcNyB-TKGlVhxU@z> (raw)

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







             reply	other threads:[~2000-02-08  7:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-02-08  7:21 root [this message]
2000-04-01  0:00 ` root

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=38A0367A.A3D692D3@one.net.au \
    --to=jgl@one.net.au \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).