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  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-29 15:23 ` Geert bosch
  2 siblings, 1 reply; 18+ messages in thread
From: DJ Delorie @ 2001-11-22  3:59 UTC (permalink / raw)
  To: gcc


Geert bosch <bosch@gnat.com> writes:
> 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.

Which recent change, and what do you expect the configure to do?

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

* Re: How to defeat new check for presence of Ada compiler
  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-22  4:51 ` Richard Henderson
  2001-11-22  5:01   ` Geert Bosch
  2001-11-29 16:52   ` Richard Henderson
  2001-11-29 15:23 ` Geert bosch
  2 siblings, 2 replies; 18+ messages in thread
From: Richard Henderson @ 2001-11-22  4:51 UTC (permalink / raw)
  To: Geert bosch; +Cc: gcc

On Thu, Nov 29, 2001 at 06:23:35PM -0500, Geert bosch wrote:
> 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.

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.


r~

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

* Re: How to defeat new check for presence of Ada compiler
  2001-11-22  4:51 ` Richard Henderson
@ 2001-11-22  5:01   ` Geert Bosch
  2001-11-22 13:07     ` Richard Henderson
  2001-11-29 16:57     ` Geert Bosch
  2001-11-29 16:52   ` Richard Henderson
  1 sibling, 2 replies; 18+ messages in thread
From: Geert Bosch @ 2001-11-22  5:01 UTC (permalink / raw)
  To: Richard Henderson; +Cc: gcc


On Thursday, November 29, 2001, at 07:51 , Richard Henderson wrote:

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

Yes, that is the issue. My host does not have an Ada compiler yet.
In order to get one, I want to configure GCC, including the ada
subdirectory, and then drop in the assembly files so no ada compiler
needs to be called. I can create the .s files, that's not the problem.

   -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:01   ` Geert Bosch
@ 2001-11-22 13:07     ` Richard Henderson
  2001-11-23  2:33       ` Geert Bosch
  2001-11-29 18:37       ` Richard Henderson
  2001-11-29 16:57     ` Geert Bosch
  1 sibling, 2 replies; 18+ messages in thread
From: Richard Henderson @ 2001-11-22 13:07 UTC (permalink / raw)
  To: Geert Bosch; +Cc: gcc

On Thu, Nov 29, 2001 at 07:57:09PM -0500, Geert Bosch wrote:
> Yes, that is the issue. My host does not have an Ada compiler yet.
> In order to get one, I want to configure GCC, including the ada
> subdirectory, and then drop in the assembly files so no ada compiler
> needs to be called. I can create the .s files, that's not the problem.

Oh.  I wouldn't have done it that way, but I guess that works.

How about 

   ADAC=/bin/true GNATBIND=/bin/true ../src/configure --target=...


r~

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

* Re: How to defeat new check for presence of Ada compiler
  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
  1 sibling, 1 reply; 18+ messages in thread
From: Geert Bosch @ 2001-11-23  2:33 UTC (permalink / raw)
  To: Richard Henderson; +Cc: gcc


On Thursday, November 29, 2001, at 09:36 , Richard Henderson wrote:
>    ADAC=/bin/true GNATBIND=/bin/true ../src/configure --target=...

Of course, thanks. I must not have had enough coffee yesterday...

   -Geert

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

* How to defeat new check for presence of Ada compiler
  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-22  4:51 ` Richard Henderson
@ 2001-11-29 15:23 ` Geert bosch
  2 siblings, 0 replies; 18+ messages in thread
From: Geert bosch @ 2001-11-29 15:23 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  3:59 ` DJ Delorie
@ 2001-11-29 16:46   ` DJ Delorie
  0 siblings, 0 replies; 18+ messages in thread
From: DJ Delorie @ 2001-11-29 16:46 UTC (permalink / raw)
  To: gcc


Geert bosch <bosch@gnat.com> writes:
> 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.

Which recent change, and what do you expect the configure to do?

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

* Re: How to defeat new check for presence of Ada compiler
  2001-11-22  4:51 ` Richard Henderson
  2001-11-22  5:01   ` Geert Bosch
@ 2001-11-29 16:52   ` Richard Henderson
  1 sibling, 0 replies; 18+ messages in thread
From: Richard Henderson @ 2001-11-29 16:52 UTC (permalink / raw)
  To: Geert bosch; +Cc: gcc

On Thu, Nov 29, 2001 at 06:23:35PM -0500, Geert bosch wrote:
> 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.

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.


r~

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

* Re: How to defeat new check for presence of Ada compiler
  2001-11-22  5:01   ` Geert Bosch
  2001-11-22 13:07     ` Richard Henderson
@ 2001-11-29 16:57     ` Geert Bosch
  1 sibling, 0 replies; 18+ messages in thread
From: Geert Bosch @ 2001-11-29 16:57 UTC (permalink / raw)
  To: Richard Henderson; +Cc: gcc

On Thursday, November 29, 2001, at 07:51 , Richard Henderson wrote:

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

Yes, that is the issue. My host does not have an Ada compiler yet.
In order to get one, I want to configure GCC, including the ada
subdirectory, and then drop in the assembly files so no ada compiler
needs to be called. I can create the .s files, that's not the problem.

   -Geert

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

* Re: How to defeat new check for presence of Ada compiler
  2001-11-22 13:07     ` Richard Henderson
  2001-11-23  2:33       ` Geert Bosch
@ 2001-11-29 18:37       ` Richard Henderson
  1 sibling, 0 replies; 18+ messages in thread
From: Richard Henderson @ 2001-11-29 18:37 UTC (permalink / raw)
  To: Geert Bosch; +Cc: gcc

On Thu, Nov 29, 2001 at 07:57:09PM -0500, Geert Bosch wrote:
> Yes, that is the issue. My host does not have an Ada compiler yet.
> In order to get one, I want to configure GCC, including the ada
> subdirectory, and then drop in the assembly files so no ada compiler
> needs to be called. I can create the .s files, that's not the problem.

Oh.  I wouldn't have done it that way, but I guess that works.

How about 

   ADAC=/bin/true GNATBIND=/bin/true ../src/configure --target=...


r~

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

* Re: How to defeat new check for presence of Ada compiler
  2001-11-23  2:33       ` Geert Bosch
@ 2001-11-30  8:40         ` Geert Bosch
  0 siblings, 0 replies; 18+ messages in thread
From: Geert Bosch @ 2001-11-30  8:40 UTC (permalink / raw)
  To: Richard Henderson; +Cc: gcc

On Thursday, November 29, 2001, at 09:36 , Richard Henderson wrote:
>    ADAC=/bin/true GNATBIND=/bin/true ../src/configure --target=...

Of course, thanks. I must not have had enough coffee yesterday...

   -Geert

^ 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, 0 replies; 18+ messages in thread
From: Richard Kenner @ 2001-11-29 17:42 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

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

On Thursday, November 29, 2001, at 08:03 , mike stump wrote:

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

Then I'd also need to do a similar thing for ld,ar and ranlib probably.
If I can get this working, I'll add some docs...

^ 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
  1 sibling, 0 replies; 18+ messages in thread
From: mike stump @ 2001-11-29 17:04 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

* 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:10   ` Geert Bosch
  2001-11-29 17:04 ` mike stump
  1 sibling, 1 reply; 18+ messages in thread
From: Geert Bosch @ 2001-11-22  5:23 UTC (permalink / raw)
  To: mike stump; +Cc: gcc


On Thursday, November 29, 2001, at 08:03 , mike stump wrote:

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

Then I'd also need to do a similar thing for ld,ar and ranlib probably.
If I can get this working, I'll add some docs...

^ 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

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