This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
[cygwin, gnat] error: "system.ads" has restriction No_Implicit_Dynamic_Code
- From: "Christian Joensson" <christian dot joensson at gmail dot com>
- To: "GCC Development" <gcc at gcc dot gnu dot org>
- Date: Thu, 31 Jan 2008 11:41:32 +0100
- Subject: [cygwin, gnat] error: "system.ads" has restriction No_Implicit_Dynamic_Code
Hiya.
On cygwin with gcc trunk Fri Jan 25 12:38:35 UTC 2008 (revision
131824), I get quite a few FAIL in the gnat testsuite due to errors
like this:
Executing on host: /usr/local/src/trunk/objdir/gcc/gnatmake
-I/usr/local/src/trunk/objdir/gcc/ada/rts
--GCC=/usr/local/src/trunk/objdir/gcc/xgcc
--GNATBIND=/usr/local/src/trunk/objdir/gcc/gnatbind
--GNATLINK=/usr/local/src/trunk/objdir/gcc/gnatlink -cargs
-B/usr/local/src/trunk/objdir/gcc -largs
--GCC=/usr/local/src/trunk/objdir/gcc/xgcc
-B/usr/local/src/trunk/objdir/gcc -margs -q -f
/usr/local/src/trunk/gcc/gcc/testsuite/gnat.dg/abstract_with_anonymous_result.adb
-I/usr/local/src/trunk/objdir/gcc/ada/rts -o
./abstract_with_anonymous_result.exe (timeout = 300)
spawn /usr/local/src/trunk/objdir/gcc/gnatmake
-I/usr/local/src/trunk/objdir/gcc/ada/rts
--GCC=/usr/local/src/trunk/objdir/gcc/xgcc
--GNATBIND=/usr/local/src/trunk/objdir/gcc/gnatbind
--GNATLINK=/usr/local/src/trunk/objdir/gcc/gnatlink -cargs
-B/usr/local/src/trunk/objdir/gcc -largs
--GCC=/usr/local/src/trunk/objdir/gcc/xgcc
-B/usr/local/src/trunk/objdir/gcc -margs -q -f
/usr/local/src/trunk/gcc/gcc/testsuite/gnat.dg/abstract_with_anonymous_result.adb
-I/usr/local/src/trunk/objdir/gcc/ada/rts -o
./abstract_with_anonymous_result.exe
abstract_with_anonymous_result.adb:5:04: violation of restriction
"No_Implicit_Dynamic_Code" at system.ads:44
abstract_with_anonymous_result.adb:6:12: violation of restriction
"No_Implicit_Dynamic_Code" at system.ads:44
abstract_with_anonymous_result.adb:10:12: violation of restriction
"No_Implicit_Dynamic_Code" at system.ads:44
gnatmake: "/usr/local/src/trunk/gcc/gcc/testsuite/gnat.dg/abstract_with_anonymous_result.adb"
compilation error
compiler exited with status 1
output is:
abstract_with_anonymous_result.adb:5:04: violation of restriction
"No_Implicit_Dynamic_Code" at system.ads:44
abstract_with_anonymous_result.adb:6:12: violation of restriction
"No_Implicit_Dynamic_Code" at system.ads:44
abstract_with_anonymous_result.adb:10:12: violation of restriction
"No_Implicit_Dynamic_Code" at system.ads:44
gnatmake: "/usr/local/src/trunk/gcc/gcc/testsuite/gnat.dg/abstract_with_anonymous_result.adb"
compilation error
FAIL: gnat.dg/abstract_with_anonymous_result.adb (test for excess errors)
Excess errors:
abstract_with_anonymous_result.adb:5:04: violation of restriction
"No_Implicit_Dynamic_Code" at system.ads:44
abstract_with_anonymous_result.adb:6:12: violation of restriction
"No_Implicit_Dynamic_Code" at system.ads:44
abstract_with_anonymous_result.adb:10:12: violation of restriction
"No_Implicit_Dynamic_Code" at system.ads:44
WARNING: gnat.dg/abstract_with_anonymous_result.adb compilation failed
to produce executable
and
Executing on host: /usr/local/src/trunk/objdir/gcc/gnatmake
-I/usr/local/src/trunk/objdir/gcc/ada/rts
--GCC=/usr/local/src/trunk/objdir/gcc/xgcc
--GNATBIND=/usr/local/src/trunk/objdir/gcc/gnatbind
--GNATLINK=/usr/local/src/trunk/objdir/gcc/gnatlink -cargs
-B/usr/local/src/trunk/objdir/gcc -largs
--GCC=/usr/local/src/trunk/objdir/gcc/xgcc
-B/usr/local/src/trunk/objdir/gcc -margs -q -f
/usr/local/src/trunk/gcc/gcc/testsuite/gnat.dg/aggr2.adb -c
-I/usr/local/src/trunk/objdir/gcc/ada/rts -S -o aggr2.s (timeout =
300)
spawn /usr/local/src/trunk/objdir/gcc/gnatmake
-I/usr/local/src/trunk/objdir/gcc/ada/rts
--GCC=/usr/local/src/trunk/objdir/gcc/xgcc
--GNATBIND=/usr/local/src/trunk/objdir/gcc/gnatbind
--GNATLINK=/usr/local/src/trunk/objdir/gcc/gnatlink -cargs
-B/usr/local/src/trunk/objdir/gcc -largs
--GCC=/usr/local/src/trunk/objdir/gcc/xgcc
-B/usr/local/src/trunk/objdir/gcc -margs -q -f
/usr/local/src/trunk/gcc/gcc/testsuite/gnat.dg/aggr2.adb -c
-I/usr/local/src/trunk/objdir/gcc/ada/rts -S -o aggr2.s
aggr2.adb:4:04: violation of restriction "no_implicit_dynamic_code" at
system.ads:44
gnatmake: "/usr/local/src/trunk/gcc/gcc/testsuite/gnat.dg/aggr2.adb"
compilation error
compiler exited with status 1
output is:
aggr2.adb:4:04: violation of restriction "no_implicit_dynamic_code" at
system.ads:44
gnatmake: "/usr/local/src/trunk/gcc/gcc/testsuite/gnat.dg/aggr2.adb"
compilation error
FAIL: gnat.dg/aggr2.adb (test for excess errors)
Excess errors:
aggr2.adb:4:04: violation of restriction "no_implicit_dynamic_code" at
system.ads:44
and
Executing on host: /usr/local/src/trunk/objdir/gcc/gnatmake
-I/usr/local/src/trunk/objdir/gcc/ada/rts
--GCC=/usr/local/src/trunk/objdir/gcc/xgcc
--GNATBIND=/usr/local/src/trunk/objdir/gcc/gnatbind
--GNATLINK=/usr/local/src/trunk/objdir/gcc/gnatlink -cargs
-B/usr/local/src/trunk/objdir/gcc -largs
--GCC=/usr/local/src/trunk/objdir/gcc/xgcc
-B/usr/local/src/trunk/objdir/gcc -margs -q -f
/usr/local/src/trunk/gcc/gcc/testsuite/gnat.dg/array3.adb
-I/usr/local/src/trunk/objdir/gcc/ada/rts -o ./array3.exe
(timeout = 300)
spawn /usr/local/src/trunk/objdir/gcc/gnatmake
-I/usr/local/src/trunk/objdir/gcc/ada/rts
--GCC=/usr/local/src/trunk/objdir/gcc/xgcc
--GNATBIND=/usr/local/src/trunk/objdir/gcc/gnatbind
--GNATLINK=/usr/local/src/trunk/objdir/gcc/gnatlink -cargs
-B/usr/local/src/trunk/objdir/gcc -largs
--GCC=/usr/local/src/trunk/objdir/gcc/xgcc
-B/usr/local/src/trunk/objdir/gcc -margs -q -f
/usr/local/src/trunk/gcc/gcc/testsuite/gnat.dg/array3.adb
-I/usr/local/src/trunk/objdir/gcc/ada/rts -o ./array3.exe
error: "system.ads" has restriction No_Implicit_Dynamic_Code
error: but the following files violate this restriction:
error: "array3.adb"
gnatmake: *** bind failed.
compiler exited with status 1
output is:
error: "system.ads" has restriction No_Implicit_Dynamic_Code
error: but the following files violate this restriction:
error: "array3.adb"
gnatmake: *** bind failed.
FAIL: gnat.dg/array3.adb (test for excess errors)
Excess errors:
error: "system.ads" has restriction No_Implicit_Dynamic_Code
error: but the following files violate this restriction:
error: "array3.adb"
WARNING: gnat.dg/array3.adb compilation failed to produce executable
Now, might this be fixable on cygwin?
--
Cheers,
/ChJ