Le 01/02/2012 11:58, Ludovic Brenta a écrit : > On Wed, 01 Feb 2012 11:50:08 +0100, Xavier Grave wrote: >> Before filling a bug report I'd like some advices. >> I'm working on the polyorb package (using python-gnatpython instead of >> gnatpython) at the moment and I get this error during build : >> gnatmake: external source (g-expect.adb) is not part of any project; >> cannot be compiled without gnatmake switch -x > > Is this the only error message you get? I'm trying to understand. Yes. Here is the command that leads to this problem : ADA_PROJECT_PATH="/home/xavier/tools/org.xavier-grave.tools.packages/org.debian.polyorb/projects" gnatmake -P polyorb_src_dsa.gpr --create-missing-dirs -L/home/xavier/tools/org.xavier-grave.tools.packages/org.debian.polyorb/lib -XLibversion=3 -XLibtype=STATIC -j4 -a -cargs -bargs -E => gcc-4.6 -c -gnat05 -gnati1 -gnatf -gnatyg -gnatwale -gnatp -gnatn -I- -gnatA /home/xavier/tools/org.xavier-grave.tools.packages/org.debian.polyorb/src/dsa/polyorb-dsa_p-exceptions.adb gnatmake: external source (g-expect.adb) is not part of any project; cannot be compiled without gnatmake switch -x make[1]: *** [polyorb_src_dsa.gpr] Error 4 I have reduced the problem out of polyorb :(see attached files) gnatmake -P test.gpr => runs fine gnatmake -a -P test.gpr => gcc-4.6 -c -I- -gnatA /home/xavier/labo/test_gnat_expect/test_gnat_expect.adb gnatmake: external source (g-expect.adb) is not part of any project; cannot be compiled without gnatmake switch -x So I see two quick fix : remove -a or add -x options, but this seems "dirty" to me because I'm not fully understand why this problem arise and what others problem will be induced by these changes.
project test is for Source_Dirs use ("."); for Main use ("test_gnat_expect.adb"); end test;
with GNAT.Expect; procedure Test_Gnat_Expect is begin null; end Test_Gnat_Expect;
Attachment:
signature.asc
Description: OpenPGP digital signature