public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* How to defeat new check for presence of Ada compiler
@ 2001-11-22  1:04 Geert bosch
  2001-11-22  3:59 ` DJ Delorie
                   ` (2 more replies)
  0 siblings, 3 replies; 18+ messages in thread
From: Geert bosch @ 2001-11-22  1:04 UTC (permalink / raw)
  To: gcc

Hi,

Since I want to compile GNAT on a new platform, for which I need
to use the native assembler (no cross-binutils), I want to do that
by creating the .s files for the Ada sources using a cross-compiler
and then do the rest of the bootstrap on the target platform.

This used to be simple, just configure and wait for an error due
to the missing compiler. Then copy the .s files and that's it.

But with the recent change to configure, it is not so easy anymore
to have configure do its job for the ada directory as well.
Are there any workarounds for this?

   -Geert

^ permalink raw reply	[flat|nested] 18+ messages in thread
* Re: How to defeat new check for presence of Ada compiler
@ 2001-11-22  5:10 mike stump
  2001-11-22  5:23 ` Geert Bosch
  2001-11-29 17:04 ` mike stump
  0 siblings, 2 replies; 18+ messages in thread
From: mike stump @ 2001-11-22  5:10 UTC (permalink / raw)
  To: bosch, gcc

> Date: Thu, 29 Nov 2001 18:23:35 -0500
> From: Geert bosch <bosch@gnat.com>
> To: gcc@gcc.gnu.org

> Since I want to compile GNAT on a new platform, for which I need
> to use the native assembler (no cross-binutils), I want to do that
> by creating the .s files for the Ada sources using a cross-compiler
> and then do the rest of the bootstrap on the target platform.

> This used to be simple, just configure and wait for an error due
> to the missing compiler. Then copy the .s files and that's it.

> But with the recent change to configure, it is not so easy anymore
> to have configure do its job for the ada directory as well.
> Are there any workarounds for this?

Set up a target as (if you choose the right name, it will just work),
and have it be a shell script that rcps (remote copies) the file to
the other machine, and then calls /bin/as (or whatever), and then
copies the results back, and then stores them in the right place.

I did this eons ago.  Method should be sound and still work.

Otherwise -save-temps, and AS_FOR_TARGET=true!

If you get something that works for you, consider docing it in the
manual.

^ permalink raw reply	[flat|nested] 18+ messages in thread
* Re: How to defeat new check for presence of Ada compiler
@ 2001-11-22  8:37 Richard Kenner
  2001-11-29 17:42 ` Richard Kenner
  0 siblings, 1 reply; 18+ messages in thread
From: Richard Kenner @ 2001-11-22  8:37 UTC (permalink / raw)
  To: rth; +Cc: gcc

    Err, I'd expect it to be the same now, since the configure test
    is for the *host* ada compiler, not the target ada compiler.

No, it's the target.  The mechanism is this:

(1) Build a cross-compiler to the target.
(2) On the host, do "make stage1" and "make gnat-cross".
(3) On the target, bootstrap and install for just C.
(4) On the target, configure to build Ada and run "make" until it
    fails.
(5) Copy .s files make in step (2) to the target and redo "make".

However, my suggestion is just to symlink a gnatgcc to be, e.g., /bin/true.

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

end of thread, other threads:[~2001-11-30 16:40 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-22  1:04 How to defeat new check for presence of Ada compiler Geert bosch
2001-11-22  3:59 ` DJ Delorie
2001-11-29 16:46   ` DJ Delorie
2001-11-22  4:51 ` Richard Henderson
2001-11-22  5:01   ` Geert Bosch
2001-11-22 13:07     ` Richard Henderson
2001-11-23  2:33       ` Geert Bosch
2001-11-30  8:40         ` Geert Bosch
2001-11-29 18:37       ` Richard Henderson
2001-11-29 16:57     ` Geert Bosch
2001-11-29 16:52   ` Richard Henderson
2001-11-29 15:23 ` Geert bosch
2001-11-22  5:10 mike stump
2001-11-22  5:23 ` Geert Bosch
2001-11-29 17:10   ` Geert Bosch
2001-11-29 17:04 ` mike stump
2001-11-22  8:37 Richard Kenner
2001-11-29 17:42 ` Richard Kenner

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