[Bug ada/77986] Re-building from the toplevel doesn't work when Ada changes

2016-10-21 Thread ebotcazou at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77986

--- Comment #4 from Eric Botcazou  ---
> Now I have
> 
> make[3]: Entering directory
> `/home/abuild/rguenther/obj-early-lto-debug-g/gcc/ada/tools'
> ../../gnatbind -I- -I../rts -I.
> -I/space/rguenther/src/svn/early-lto-debug/gcc/ada -o b_gnatm.adb
> gnatmake.ali
> error: "s-stalib.adb" and "gnatmake.adb" compiled with different exception
> handling mechanisms
> error: "s-secsta.adb" and "gnatmake.adb" compiled with different exception
> handling mechanisms
> ...

Just remove the gnattools directory and do 'make all-gnattools'.

> Oh, and that I can't cut&paste from gnat.dg testsuite logs and add -v
> -save-temps to see and debug subcommands invoked is another thing.

Add "-cargs -save-temps -v" to the gnatmake command line.

[Bug ada/77986] Re-building from the toplevel doesn't work when Ada changes

2016-10-21 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77986

--- Comment #3 from Richard Biener  ---
Now I have

make[3]: Entering directory
`/home/abuild/rguenther/obj-early-lto-debug-g/gcc/ada/tools'
../../gnatbind -I- -I../rts -I.
-I/space/rguenther/src/svn/early-lto-debug/gcc/ada -o b_gnatm.adb gnatmake.ali
error: "s-stalib.adb" and "gnatmake.adb" compiled with different exception
handling mechanisms
error: "s-secsta.adb" and "gnatmake.adb" compiled with different exception
handling mechanisms
...

not sure what happened this time but it's really annoying to have to
rm -Rf my whole dev tree and re-build it all the time just to be able
to look at a single gnat testcase.

Oh, and that I can't cut&paste from gnat.dg testsuite logs and add -v
-save-temps to see and debug subcommands invoked is another thing.

Putting some "how to debug ada fails in acats, how to debug ada fails in
gnat.dg" hints on the wiki would be nice.

[Bug ada/77986] Re-building from the toplevel doesn't work when Ada changes

2016-10-14 Thread rguenther at suse dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77986

--- Comment #2 from rguenther at suse dot de  ---
On Fri, 14 Oct 2016, ebotcazou at gcc dot gnu.org wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77986
> 
> Eric Botcazou  changed:
> 
>What|Removed |Added
> 
>  Status|UNCONFIRMED |NEW
>Last reconfirmed||2016-10-14
>  CC||ebotcazou at gcc dot gnu.org
>  Ever confirmed|0   |1
> 
> --- Comment #1 from Eric Botcazou  ---
> Try removing the stamp file:
>  rm x86_64-suse-linux/libada/stamp-libada

I removed all stamp-libada* but that didn't end up working.

> or do just "make -C gcc"

I think that's done automatically via dependencies on all-gcc?

[Bug ada/77986] Re-building from the toplevel doesn't work when Ada changes

2016-10-14 Thread ebotcazou at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77986

Eric Botcazou  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2016-10-14
 CC||ebotcazou at gcc dot gnu.org
 Ever confirmed|0   |1

--- Comment #1 from Eric Botcazou  ---
Try removing the stamp file:
 rm x86_64-suse-linux/libada/stamp-libada
or do just "make -C gcc"