Compiling GCC

"Victor V. Vengerov" (vvv@tepkom.ru)
Mon, 05 Apr 1999 00:37:52 +0400



--------------A894D9258493C1A1132042E8
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

     Hello!

Denis V. Manilo wrote:

> I'm the beginner.
> I was trying to compile gcc configured gcc as follows:
> ./configure --target=sparc-sun-sunos42 --with-gnu-as -with-gnu-ld
> My host machine is i586-*-linux.
> After
>   make LANGUAGE=c
> I've met such message
>

....

Most probably your native (linux) assembler was used. The best way to build
cross-compiler is to perform so-called 'one-tree build'. You can read details

in crossgcc FAQ. In short, you can create directory and create symbolic
links to subdirectories from binutils package and gcc (egcs) package.
configure and makefile in 'root directory' of this packages generally are the
same,
and written in generic way to build any combination of GNU development tools.

I've preffered to build this common tree manually, but it is possible to use
some
scripts (read about it in crossgcc FAQ).

Another way is to build and install binutils for host linux, target
sparc-sun-sunos42
first, include <prefix>/bin in your PATH, and configure, build and install
gcc with the
same prefix directory.

Please, note, most probably you will need solaris headers to build gcc. Pass
--with-headers=<path to solaris's /usr/include> to configure for pointing on
appropriate directories.

Also, it is possible that you will need to pass --with-libs=<dir> to point on
solaris
run-time libraries (I'm not sure now about it).

>
>                  With Regard, Denis Manilo
>

Good luck!

  Victor Vengerov

--
Victor V. Vengerov
TEPKOM State Enterprise
Bibliotechnaya sq., 2, office 3384, St.-Petersburg 198904, Russia
7-812-4284659



--------------A894D9258493C1A1132042E8
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
&nbsp;&nbsp;&nbsp;&nbsp; Hello!
<P>Denis V. Manilo wrote:
<BLOCKQUOTE TYPE=CITE>I'm the beginner.
<BR>I was trying to compile gcc configured gcc as follows:
<BR>./configure --target=sparc-sun-sunos42 --with-gnu-as -with-gnu-ld
<BR>My host machine is i586-*-linux.
<BR>After
<BR>&nbsp; make LANGUAGE=c
<BR>I've met such message
<BR>&nbsp;</BLOCKQUOTE>
....
<P>Most probably your native (linux)&nbsp;assembler was used. The best
way to build
<BR>cross-compiler is to perform so-called 'one-tree build'. You can read
details
<BR>in crossgcc FAQ. In short, you can create directory and create symbolic
<BR>links to subdirectories from binutils package and gcc (egcs) package.
<BR>configure and makefile in 'root directory' of this packages generally
are the same,
<BR>and written in generic way to build any combination of GNU&nbsp;development
tools.
<BR>I've preffered to build this common tree manually, but it is possible
to use some
<BR>scripts (read about it in crossgcc FAQ).
<P>Another way is to build and install binutils for host linux, target
sparc-sun-sunos42
<BR>first, include &lt;prefix>/bin in your PATH, and configure, build and
install gcc with the
<BR>same prefix directory.
<P>Please, note, most probably you will need solaris headers to build gcc.
Pass
<BR>--with-headers=&lt;path to solaris's /usr/include> to configure for
pointing on
<BR>appropriate directories.
<P>Also, it is possible that you will need to pass --with-libs=&lt;dir>&nbsp;to
point on solaris
<BR>run-time libraries (I'm not sure now about it).
<BLOCKQUOTE TYPE=CITE>&nbsp;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
With Regard, Denis Manilo
<BR>&nbsp;</BLOCKQUOTE>

<P><BR>Good luck!
<P>&nbsp; Victor Vengerov
<PRE>--&nbsp;
Victor V. Vengerov
TEPKOM State Enterprise
Bibliotechnaya sq., 2, office 3384, St.-Petersburg 198904, Russia
7-812-4284659</PRE>
&nbsp;</HTML>

--------------A894D9258493C1A1132042E8--

_______________________________________________
New CrossGCC FAQ: http://www.objsw.com/CrossGCC
_______________________________________________
To remove yourself from the crossgcc list, send
mail to crossgcc-request@cygnus.com with the
text 'unsubscribe' (without the quotes) in the
body of the message.