<html><head></head><body><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><div style="font-family: Helvetica, Arial, sans-serif; font-size: 16px;"><div style="font-family: Helvetica, Arial, sans-serif; font-size: 16px;"><div>Thanks for the suggestion Even.<br><div><br><div>I checked the GCC with <span>g++ --version and got the following:<br><span><span>gcc --version<br clear="none"></span><span>gcc (GCC) 7.2.1 20170915 (Red Hat 7.2.1-2)<br clear="none"></span><span></span><br clear="none"><span>which gcc<br clear="none">/usr/bin/gcc<br clear="none">[ec2-user@ip-172-31-22-101 gdal-2.3.0]$ /usr/bin/gcc --version<br clear="none"></span></span></span><div><span><span><span>gcc (GCC) 7.2.1 20170915 (Red Hat 7.2.1-2)</span></span></span></div><div><br><div>But still had the compilation errors.<br><div><br><div>So I decided to test using a newer version:<br><span>gcc --version<br></span><div><span>gcc (GCC) 7.3.1 20180303 (Red Hat 7.3.1-5)<br></span><div><span><br></span><div><span>and it doesn't produce those errors! I'll keep you posted when the full compilation finishes...</span></div><div><br><div>Enjoy your evening,<br>Conrad<br></div></div></div><div><br><span></span><br></div></div></div></div></div></div></div></div></div>
            <div><br></div><div><br></div>
            
            </div></div><div id="ydp8f4ea8b5yahoo_quoted_7519039632" class="ydp8f4ea8b5yahoo_quoted">
                <div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
                    
                    <div>
                        On Thursday, May 24, 2018, 6:24:13 PM GMT+1, Even Rouault <even.rouault@spatialys.com> wrote:
                    </div>
                    <div><br></div>
                    <div><br></div>
                    <div><div dir="ltr">On jeudi 24 mai 2018 16:59:14 CEST Conrad Bielski wrote:<div class="ydp8f4ea8b5yqt8986641661" id="ydp8f4ea8b5yqtfd42530"><br clear="none">> Hi,<br clear="none">> <br clear="none">> I couldn't find anything on this topic, so I hope that somebody has an<br clear="none">> answer to this issue. It might be Python related but I don't see the link.<br clear="none">> <br clear="none">> So I get the following errors when running make:<br clear="none">> g++: error: unrecognized command line option ‘-Wdate-time’<br clear="none">> g++: error: unrecognized command line option ‘-Wnull-dereference’<br clear="none">> g++: error: unrecognized command line option ‘-Wduplicated-cond’<br clear="none">> g++: error: unrecognized command line option ‘-Wfloat-conversion’<br clear="none">> make[1]: *** [cpl_conv.lo] Error 1<br clear="none">> make[1]: Leaving directory `/home/ec2-user/tools/gdal-2.3.0/port'<br clear="none">> make: *** [port-target] Error 2<br clear="none">> <br clear="none">> The funny thing is that when running configure, I have the following<br clear="none">> results: checking whether C compiler accepts -Wdate-time... yes<br clear="none">> checking whether C compiler accepts -Wnull-dereference... yes<br clear="none">> checking whether C compiler accepts -Wduplicated-cond... yes<br clear="none">> checking whether C compiler accepts -Wfloat-conversion... yes<br clear="none">> <br clear="none">> And I'm not sure where to look to fix this issue. I'm compiling on a Amazon<br clear="none">> Linux with gcc (GCC) 7.2.1 20170915 (Red Hat 7.2.1-2). The version of<br clear="none">> Python installed is Python 2.7.14.</div><br clear="none"><br clear="none">Are you sure the g++ uses for make is the one used during ./configure ?<br clear="none">-Wdate-time should be accepted by gcc 7.2<br clear="none"><br clear="none">I don't see the link with Python as the failure occurs when building <br clear="none">cpl_conv.cpp, which is not in the Python bindings.<br clear="none"><br clear="none">Even<br clear="none"><br clear="none">-- <br clear="none">Spatialys - Geospatial professional services<br clear="none"><a shape="rect" href="http://www.spatialys.com" rel="nofollow" target="_blank">http://www.spatialys.com</a></div></div>
                </div>
            </div></div></body></html>