[Bug ada/66162] New: Bug box compiling Ada.Finalization with -gnatc
simon at pushface dot org
gcc-bugzilla@gcc.gnu.org
Fri May 15 15:52:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66162
Bug ID: 66162
Summary: Bug box compiling Ada.Finalization with -gnatc
Product: gcc
Version: 5.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: ada
Assignee: unassigned at gcc dot gnu.org
Reporter: simon at pushface dot org
Target Milestone: ---
Created attachment 35549
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35549&action=edit
Reproducer (to be gnatchopped)
I’ve built GCC 5.1.0 for arm-eabi (over x86_64-apple-darwin13), and while
adding finalization to my RTS I got the following bug box while compiling
a-finali.ads. This doesn’t happen when compiling fully (fails, of course):
$ gprbuild -c -u -f -P build_runtime.gpr a-finali.adb
build_runtime.gpr:1:09: warning: there are no Asm_Cpp sources in this project
arm-eabi-gcc -c -gnatpgn -gnatqQ -nostdinc -ffunction-sections -fdata-sections
-g -Og a-finali.ads
cannot generate code for file a-finali.ads (package spec)
gprbuild: *** compilation phase failed
FAILURE:
gprbuild -c -u -f -gnatc -p
-P/Users/simon/stm32f4-gnat-rts/stm32f429i-disco-rtos/build_runtime.gpr
/Users/simon/stm32f4-gnat-rts/stm32f429i-disco-rtos/adainclude/a-finali.ads
build_runtime.gpr:1:09: warning: there are no Asm_Cpp sources in this project
arm-eabi-gcc -c -gnatpgn -gnatqQ -nostdinc -ffunction-sections -fdata-sections
-g -Og -gnatc a-finali.ads
+===========================GNAT BUG DETECTED==============================+
| 5.1.0 (arm-eabi) Constraint_Error erroneous memory access |
| Error detected at a-finali.ads:70:4 |
| Please submit a bug report; see http://gcc.gnu.org/bugs.html. |
| Use a subject line meaningful to you and us to track the bug. |
| Include the entire contents of this bug box in the report. |
| Include the exact command that you entered. |
| Also include sources listed below. |
+==========================================================================+
Please include these source files with error report
Note that list may not be accurate in some cases,
so please double check that the problem can still
be reproduced with the set of files listed.
Consider also -gnatd.n switch (see debug.adb).
/Users/simon/stm32f4-gnat-rts/stm32f429i-disco-rtos/adainclude/system.ads
/Users/simon/stm32f4-gnat-rts/stm32f429i-disco-rtos/adainclude/a-finali.ads
/Users/simon/stm32f4-gnat-rts/stm32f429i-disco-rtos/adainclude/ada.ads
/Users/simon/stm32f4-gnat-rts/stm32f429i-disco-rtos/adainclude/s-finroo.ads
/Users/simon/stm32f4-gnat-rts/stm32f429i-disco-rtos/adainclude/a-tags.ads
/Users/simon/stm32f4-gnat-rts/stm32f429i-disco-rtos/adainclude/s-stoele.ads
/Users/simon/stm32f4-gnat-rts/stm32f429i-disco-rtos/adainclude/interfac.ads
/Users/simon/stm32f4-gnat-rts/stm32f429i-disco-rtos/adainclude/a-stream.ads
compilation abandoned
gprbuild: *** compilation phase failed
More information about the Gcc-bugs
mailing list