<html><head></head><body><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><div>Hello,<br><div>just to close this topic. I was able to compile GDAL 3.2.0 using:<br><div><span><span>gcc (GCC) 7.3.1 20180303 (Red Hat 7.3.1-5)<br></span></span><span><span></span></span><div><br><div>with no problems. So not sure what was happening with the <span><span><span><span>gcc (GCC) 7.2.1 </span></span></span></span>errors.<br><div><br><div>Thanks for your help,<br>Conrad<br></div></div></div></div></div></div></div>
            <div><br></div><div><br></div>
            
            <div id="ydpbd3aa442yahoo_quoted_7331030078" class="ydpbd3aa442yahoo_quoted">
                <div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
                    
                    <div>
                        On Thursday, May 24, 2018, 9:20:25 PM GMT+1, Conrad Bielski <conrad_bielski@yahoo.com> wrote:
                    </div>
                    <div><br></div>
                    <div><br></div>
                    <div><div id="ydpbd3aa442yiv6438987722"><div><div style="font-family: 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 clear="none"><div><br clear="none"><div>I checked the GCC with <span>g++ --version and got the following:<br clear="none"><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 clear="none"><div>But still had the compilation errors.<br clear="none"><div><br clear="none"><div>So I decided to test using a newer version:<br clear="none"><span>gcc --version<br clear="none"></span><div><span>gcc (GCC) 7.3.1 20180303 (Red Hat 7.3.1-5)<br clear="none"></span><div><span><br clear="none"></span><div><span>and it doesn't produce those errors! I'll keep you posted when the full compilation finishes...</span></div><div><br clear="none"><div>Enjoy your evening,<br clear="none">Conrad<br clear="none"></div></div></div><div><br clear="none"><span></span><br clear="none"></div></div></div></div></div></div></div></div></div>
            <div><br clear="none"></div><div><br clear="none"></div>
            
            </div></div><div class="ydpbd3aa442yiv6438987722yqt8943750871" id="ydpbd3aa442yiv6438987722yqt22466"><div class="ydpbd3aa442yiv6438987722ydp8f4ea8b5yahoo_quoted" id="ydpbd3aa442yiv6438987722ydp8f4ea8b5yahoo_quoted_7519039632">
                <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 clear="none"></div>
                    <div><br clear="none"></div>
                    <div><div dir="ltr">On jeudi 24 mai 2018 16:59:14 CEST Conrad Bielski wrote:<div class="ydpbd3aa442yiv6438987722ydp8f4ea8b5yqt8986641661" id="ydpbd3aa442yiv6438987722ydp8f4ea8b5yqtfd42530"><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></div></div></div></div>
                </div>
            </div></div></body></html>