public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Linux->sparc-sun-solaris cross compiler
@ 2000-02-28  2:28 Darren Cubbage
  2000-02-28 15:09 ` Martin v. Loewis
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Darren Cubbage @ 2000-02-28  2:28 UTC (permalink / raw)
  To: 'gcc-help@gcc.gnu.org'

I am trying tto build a cross-compiler on my linux box for the
sparc-sun-solaris2.7

Steps taken:
i) built the binutils package.
ii) copied the sparc runtime headers and libraries from /usr/include and
/usr/ccs/lib respectively.
iii) ~/gcc-2.95.2/configure --prefix=/home/rddcubba/local/cross-tools
--target=sparc-sun-solaris2.7
iv) make LANGUAGES="c c++" cross

I then get the following error:
/home/rddcubba/build/gcc-2.95/solaris/gcc/xgcc
-B/home/rddcubba/build/gcc-2.95/solaris/gcc/
-B/home/rddcubba/local/cross-tools/sparc-sun-solaris2.7/bin/ -c -g -O2
-fno-implicit-templates -I. -I/home/rddcubba/gcc-2.95.2/libio -nostdinc++
/home/rddcubba/gcc-2.95.2/libio/iostream.cc
/home/rddcubba/gcc-2.95.2/libio/iostream.cc:40: printf.h: No such file or
directory
make[2]: *** [iostream.o] Error 1
make[2]: Leaving directory
`/home/rddcubba/build/gcc-2.95/solaris/sparc-sun-solaris2.7/libio'
make[1]: *** [all-target-libio] Error 2
make[1]: Leaving directory `/home/rddcubba/build/gcc-2.95/solaris'

On searching on the sun box, I cannot find a printf.h file. I have searched
through the help archives but cannott find any help in relation to this
specific problem.

Any help greatly appreciated.

Darren Cubbage

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Linux->sparc-sun-solaris cross compiler
  2000-02-28  2:28 Linux->sparc-sun-solaris cross compiler Darren Cubbage
@ 2000-02-28 15:09 ` Martin v. Loewis
  2000-04-01  0:00   ` Martin v. Loewis
  2000-02-28 23:54 ` Alexandre Oliva
  2000-04-01  0:00 ` Darren Cubbage
  2 siblings, 1 reply; 6+ messages in thread
From: Martin v. Loewis @ 2000-02-28 15:09 UTC (permalink / raw)
  To: darren_cubbage; +Cc: gcc-help

> On searching on the sun box, I cannot find a printf.h file. I have searched
> through the help archives but cannott find any help in relation to this
> specific problem.

Please have a look at the place where printf.h is included - it is
used if _G_HAVE_PRINTF_FP is defined. This, in turn, is defined in
_G_config.h. It may be that your cross-compiler is picking up the
wrong _G_config.h, or that the _G_config you've generated is
incorrect.

Regards,
Martin

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Linux->sparc-sun-solaris cross compiler
  2000-02-28  2:28 Linux->sparc-sun-solaris cross compiler Darren Cubbage
  2000-02-28 15:09 ` Martin v. Loewis
@ 2000-02-28 23:54 ` Alexandre Oliva
  2000-04-01  0:00   ` Alexandre Oliva
  2000-04-01  0:00 ` Darren Cubbage
  2 siblings, 1 reply; 6+ messages in thread
From: Alexandre Oliva @ 2000-02-28 23:54 UTC (permalink / raw)
  To: Darren Cubbage; +Cc: 'gcc-help@gcc.gnu.org'

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 634 bytes --]

On Feb 28, 2000, Darren Cubbage <darren_cubbage@systemsunion.com> wrote:

> ii) copied the sparc runtime headers and libraries from /usr/include and
> /usr/ccs/lib respectively.
> iii) ~/gcc-2.95.2/configure --prefix=/home/rddcubba/local/cross-tools
> --target=sparc-sun-solaris2.7

Shouldn't you have specified --with-headers, in this case?

-- 
Alexandre Oliva     http://www.ic.unicamp.br/~oliva/     Enjoy Guaraná
Cygnus Solutions, a Red Hat company        aoliva@{redhat, cygnus}.com
Free Software Developer and Evangelist    CS PhD student at IC-Unicamp
oliva@{lsd.ic.unicamp.br, gnu.org}   Write to mailing lists, not to me

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Linux->sparc-sun-solaris cross compiler
  2000-02-28 15:09 ` Martin v. Loewis
@ 2000-04-01  0:00   ` Martin v. Loewis
  0 siblings, 0 replies; 6+ messages in thread
From: Martin v. Loewis @ 2000-04-01  0:00 UTC (permalink / raw)
  To: darren_cubbage; +Cc: gcc-help

> On searching on the sun box, I cannot find a printf.h file. I have searched
> through the help archives but cannott find any help in relation to this
> specific problem.

Please have a look at the place where printf.h is included - it is
used if _G_HAVE_PRINTF_FP is defined. This, in turn, is defined in
_G_config.h. It may be that your cross-compiler is picking up the
wrong _G_config.h, or that the _G_config you've generated is
incorrect.

Regards,
Martin

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Linux->sparc-sun-solaris cross compiler
  2000-02-28 23:54 ` Alexandre Oliva
@ 2000-04-01  0:00   ` Alexandre Oliva
  0 siblings, 0 replies; 6+ messages in thread
From: Alexandre Oliva @ 2000-04-01  0:00 UTC (permalink / raw)
  To: Darren Cubbage; +Cc: 'gcc-help@gcc.gnu.org'

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 634 bytes --]

On Feb 28, 2000, Darren Cubbage <darren_cubbage@systemsunion.com> wrote:

> ii) copied the sparc runtime headers and libraries from /usr/include and
> /usr/ccs/lib respectively.
> iii) ~/gcc-2.95.2/configure --prefix=/home/rddcubba/local/cross-tools
> --target=sparc-sun-solaris2.7

Shouldn't you have specified --with-headers, in this case?

-- 
Alexandre Oliva     http://www.ic.unicamp.br/~oliva/     Enjoy Guaraná
Cygnus Solutions, a Red Hat company        aoliva@{redhat, cygnus}.com
Free Software Developer and Evangelist    CS PhD student at IC-Unicamp
oliva@{lsd.ic.unicamp.br, gnu.org}   Write to mailing lists, not to me

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Linux->sparc-sun-solaris cross compiler
  2000-02-28  2:28 Linux->sparc-sun-solaris cross compiler Darren Cubbage
  2000-02-28 15:09 ` Martin v. Loewis
  2000-02-28 23:54 ` Alexandre Oliva
@ 2000-04-01  0:00 ` Darren Cubbage
  2 siblings, 0 replies; 6+ messages in thread
From: Darren Cubbage @ 2000-04-01  0:00 UTC (permalink / raw)
  To: 'gcc-help@gcc.gnu.org'

I am trying tto build a cross-compiler on my linux box for the
sparc-sun-solaris2.7

Steps taken:
i) built the binutils package.
ii) copied the sparc runtime headers and libraries from /usr/include and
/usr/ccs/lib respectively.
iii) ~/gcc-2.95.2/configure --prefix=/home/rddcubba/local/cross-tools
--target=sparc-sun-solaris2.7
iv) make LANGUAGES="c c++" cross

I then get the following error:
/home/rddcubba/build/gcc-2.95/solaris/gcc/xgcc
-B/home/rddcubba/build/gcc-2.95/solaris/gcc/
-B/home/rddcubba/local/cross-tools/sparc-sun-solaris2.7/bin/ -c -g -O2
-fno-implicit-templates -I. -I/home/rddcubba/gcc-2.95.2/libio -nostdinc++
/home/rddcubba/gcc-2.95.2/libio/iostream.cc
/home/rddcubba/gcc-2.95.2/libio/iostream.cc:40: printf.h: No such file or
directory
make[2]: *** [iostream.o] Error 1
make[2]: Leaving directory
`/home/rddcubba/build/gcc-2.95/solaris/sparc-sun-solaris2.7/libio'
make[1]: *** [all-target-libio] Error 2
make[1]: Leaving directory `/home/rddcubba/build/gcc-2.95/solaris'

On searching on the sun box, I cannot find a printf.h file. I have searched
through the help archives but cannott find any help in relation to this
specific problem.

Any help greatly appreciated.

Darren Cubbage

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2000-04-01  0:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-02-28  2:28 Linux->sparc-sun-solaris cross compiler Darren Cubbage
2000-02-28 15:09 ` Martin v. Loewis
2000-04-01  0:00   ` Martin v. Loewis
2000-02-28 23:54 ` Alexandre Oliva
2000-04-01  0:00   ` Alexandre Oliva
2000-04-01  0:00 ` Darren Cubbage

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).