Hello Jeremiah,
Well the underlying issue for both cases is that some source files are generate
with Windows processes and then with CR LF terminators that are don't wanted by
Gnoga style option -gnatyd.
"Check no DOS line terminators present.
All lines must be terminated by a single ASCII.LF character (in particular the
DOS line terminator sequence CR/LF is not allowed)."
With gnatprep for zanyblue.adb and with zbmcompile for connectfour files.
gnatprep has -T option that is "Use LF as line terminators when writing files.
By default the line terminator of the host (LF under unix, CR/LF under Windows)
is used."-> good point.
Concerning zbmcompile, I will send the issue to its author.
In the meanwhile, you can safely remove this compilation flag:
settings.gpr patch:
- Common_Options := ("-gnaty3abcdefhiklmnOprsStu","-gnat2012", "-gnatW8");
+ Common_Options := ("-gnaty3abcefhiklmnOprsStu","-gnat2012", "-gnatW8");
and as you did :
deps/zanyblue/src/zbcom.gpr patch:
- "-gnatygO",
+ "-gnatyO",
HTH, Pascal.
http://blady.pagesperso-orange.fr
> Le 14 avr. 2016 à 03:14, Jeremiah Breeden <[email protected]> a
> écrit :
>
> Sure. Out of the box, if I "make all", everything goes well until it tries
> to compile zanyblue.adb:
> gcc -c -gnat12 -gnatW8 -g -gnatf -gnato -gnatwale -gnatygO -gnatyo
> -fstack-check -I- -gnatA
> D:\Program_Files\MinGW\msys\1.0\home\Jere\gnoga-code-2016_04_09\deps\zanyblue\src\root\zanyblue.adb
> zanyblue.adb:1:03: (style) incorrect line terminator
> zanyblue.adb:2:72: (style) incorrect line terminator
> zanyblue.adb:3:03: (style) incorrect line terminator
> zanyblue.adb:4:60: (style) incorrect line terminator
> zanyblue.adb:5:25: (style) incorrect line terminator
>
> and so on until:
>
> zanyblue.adb:99:01: (style) incorrect line terminator
> zanyblue.adb:100:14: (style) incorrect line terminator
> gnatmake:
> "D:\Program_Files\MinGW\msys\1.0\home\Jere\gnoga-code-2016_04_09\deps\zanyblue\src\root\zanyblue.adb"
> compilation error
> make[1]: *** [library] Error 4
> make[1]: Leaving directory
> `/home/Jere/gnoga-code-2016_04_09/deps/zanyblue/src'
> make: *** [zanyblue] Error 2
>
> All the other zanyblue files before it compile fine, but this part kills the
> make. I don't have a good "fix" per say, but if I go into
>
> \deps\zanyblue\src\zbcom.gpr
>
> and comment out the line:
>
> "-gnatygO",
>
> and take out all the style checks, it compiles fine. That's not a great
> solution, but it gets me going. Even though it compiles I still get some
> warnings
>
> gcc -c -gnaty3abcdefhiklmnOprsStu -gnat2012 -gnatW8 -g -gnata -gnatq -gnatQ
> connectfour_messages.adb
> connectfour_messages.adb:1:28: (style) incorrect line terminator
> connectfour_messages.adb:2:03: (style) incorrect line terminator
> connectfour_messages.adb:3:63: (style) incorrect line terminator
> connectfour_messages.adb:4:55: (style) incorrect line terminator
> connectfour_messages.adb:5:03: (style) incorrect line terminator
> ...
> connectfour_messages.ads:39:18: (style) incorrect line terminator
> connectfour_messages.ads:40:01: (style) incorrect line terminator
> connectfour_messages.ads:41:26: (style) incorrect line terminator
> gcc -c -gnaty3abcdefhiklmnOprsStu -gnat2012 -gnatW8 -g -gnata -gnatq -gnatQ
> connectfour_messages-connectfour_strings.adb
> connectfour_messages-connectfour_strings.adb:1:28: (style) incorrect line
> terminator
> connectfour_messages-connectfour_strings.adb:2:03: (style) incorrect line
> terminator
> connectfour_messages-connectfour_strings.adb:3:63: (style) incorrect line
> terminator
> ...
> connectfour_messages-connectfour_strings.ads:60:43: (style) incorrect line
> terminator
> connectfour_messages-connectfour_strings.ads:61:01: (style) incorrect line
> terminator
> connectfour_messages-connectfour_strings.ads:62:46: (style) incorrect line
> terminator
> gprbind connect_four.bexch
> gnatbind connect_four.ali
> gcc -c b__connect_four.adb
> gcc connect_four.o -o connect_four.exe
>
> Unlike the zanyblue issue, these come as warnings and don't stop compilation,
> so I haven't bothered trying to fix them.
>
> I hope this shows the issue better.
> As always, this is with GNAT GPL 2015, windows 7 and 10 (both 64 bit). I
> haven't gotten the full FSF on Windows compilation to work yet, so I cannot
> test that.
>
> On Wed, Apr 13, 2016 at 3:44 PM, Pascal <[email protected]> wrote:
> Concerning ticket 32, could you please be more specific about "errors related
> to end of line terminators" or send the fix you apply.
> The error issue with cloning PragmaArc has been solved in previous commit on
> 2016-04-06.
>
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Gnoga-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gnoga-list