<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Qt 6.10.0 building from sources. GNU C++ compiler error: unrecognized command-line option ‘-R’ while using GCC 14.3.0]]></title><description><![CDATA[<p dir="auto">Hi. I configured QT 6.10.0 from sources using following command:<br />
<code>$ ./configure -shared -no-opengl -- -B build/ --fresh</code><br />
After that, It gave me usual and error-free output:</p>
<pre><code>-- The CXX compiler identification is GNU 14.3.0
-- The C compiler identification is GNU 14.3.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/local/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/local/bin/gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- The ASM compiler identification is GNU
-- Found assembler: /usr/local/bin/gcc
-- Setting build type to 'Release' as none was specified.

-- Configuration summary has been written &lt;/my/path/to/summary&gt;

-- 

Qt is now configured for building. Just run 'cmake --build . --parallel'

Once everything is built, you must run 'cmake --install .'
Qt will be installed into '/usr/local/Qt-6.10.0'

To configure and build other Qt modules, you can use the following convenience script:
        /usr/local/Qt-6.10.0/bin/qt-configure-module

If reconfiguration fails for some reason, try removing 'CMakeCache.txt' from the build directory
Alternatively, you can add the --fresh flag to your CMake flags.

-- Configuring done (32.5s)
-- Generating done (1.0s)
-- Build files have been written to: &lt;/my/path/to/builddir&gt;
</code></pre>
<p dir="auto">So, process of compilation (2-nd step of Qt compilation procedure) have interrupted at the middle of it by the following error:<br />
<code>c++: error: unrecognized command-line option ‘-R’</code><br />
<code>[727/1726] Building CXX object src/gui/CMakeFiles/Gui.dir/painting/qdrawhelper.cpp.o </code><br />
My toolchain:</p>
<ul>
<li>GCC 14.3.0 (self-compiled, not distribution package)</li>
<li>Ninja (1.13.2)</li>
<li>cmake 4.4.0rc3.<br />
So, what is the solution of aforementioned error and have you ever seen that types of errors in your practice?<br />
Thanks</li>
</ul>
]]></description><link>https://forum.qt.io/topic/164838/qt-6.10.0-building-from-sources.-gnu-c-compiler-error-unrecognized-command-line-option-r-while-using-gcc-14.3.0</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Jul 2026 14:17:22 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/164838.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 01 Jul 2026 11:09:14 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Qt 6.10.0 building from sources. GNU C++ compiler error: unrecognized command-line option ‘-R’ while using GCC 14.3.0 on Sun, 05 Jul 2026 16:26:21 GMT]]></title><description><![CDATA[<p dir="auto">Then I would check the cmake bug tracker to see if there's something related there.</p>
]]></description><link>https://forum.qt.io/post/839016</link><guid isPermaLink="true">https://forum.qt.io/post/839016</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Sun, 05 Jul 2026 16:26:21 GMT</pubDate></item><item><title><![CDATA[Reply to Qt 6.10.0 building from sources. GNU C++ compiler error: unrecognized command-line option ‘-R’ while using GCC 14.3.0 on Sun, 05 Jul 2026 08:25:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a> Yes, I tried 4.3.3 (not rc) - same behavior.</p>
]]></description><link>https://forum.qt.io/post/839013</link><guid isPermaLink="true">https://forum.qt.io/post/839013</guid><dc:creator><![CDATA[Mansur Galimov]]></dc:creator><pubDate>Sun, 05 Jul 2026 08:25:14 GMT</pubDate></item><item><title><![CDATA[Reply to Qt 6.10.0 building from sources. GNU C++ compiler error: unrecognized command-line option ‘-R’ while using GCC 14.3.0 on Sat, 04 Jul 2026 17:40:53 GMT]]></title><description><![CDATA[<p dir="auto">I just saw that you were using a release candidate from cmake.<br />
Can you try with an official release ?</p>
]]></description><link>https://forum.qt.io/post/839009</link><guid isPermaLink="true">https://forum.qt.io/post/839009</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Sat, 04 Jul 2026 17:40:53 GMT</pubDate></item><item><title><![CDATA[Reply to Qt 6.10.0 building from sources. GNU C++ compiler error: unrecognized command-line option ‘-R’ while using GCC 14.3.0 on Sat, 04 Jul 2026 16:29:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jonb">@<bdi>JonB</bdi></a> Thanks a lot.<br />
<a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a> Thanks a lot. You are completely right. That is CMake issue of generating Ninja build code.<br />
I edited <code>build.ninja</code> file with the following terminal command <code>$ sed -Ei 's/-R/-Wl,-R/g' build/build.ninja</code> and compilation succeed.<br />
P.S. CMake 4.3.3 executable had been tried but hasn't succeed too.<br />
It seems that is CMake's fault, but not <code>configure</code> or anything else.<br />
<a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/jonb">@<bdi>JonB</bdi></a>  Where can I report about that error?</p>
]]></description><link>https://forum.qt.io/post/839008</link><guid isPermaLink="true">https://forum.qt.io/post/839008</guid><dc:creator><![CDATA[Mansur Galimov]]></dc:creator><pubDate>Sat, 04 Jul 2026 16:29:48 GMT</pubDate></item><item><title><![CDATA[Reply to Qt 6.10.0 building from sources. GNU C++ compiler error: unrecognized command-line option ‘-R’ while using GCC 14.3.0 on Thu, 02 Jul 2026 18:38:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jonb">@<bdi>JonB</bdi></a> AFAIK, it's a linker operation so somewhere there's a <code>-Wl,</code> that went missing from what it seems.</p>
]]></description><link>https://forum.qt.io/post/838971</link><guid isPermaLink="true">https://forum.qt.io/post/838971</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Thu, 02 Jul 2026 18:38:22 GMT</pubDate></item><item><title><![CDATA[Reply to Qt 6.10.0 building from sources. GNU C++ compiler error: unrecognized command-line option ‘-R’ while using GCC 14.3.0 on Thu, 02 Jul 2026 13:34:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mansur-galimov">@<bdi>Mansur-Galimov</bdi></a> said in <a href="/post/838964">Qt 6.10.0 building from sources. GNU C++ compiler error: unrecognized command-line option ‘-R’ while using GCC 14.3.0</a>:</p>
<blockquote>
<p dir="auto"><code>-R/usr/lib64</code></p>
</blockquote>
<p dir="auto"><code>-R</code> is not an option recognised by <strong>gcc</strong> or <strong>g++</strong> (though there is a <code>-rpath</code> if that was intended, may have been <code>-R</code> in the past?), and I don't think by <strong>clang</strong> either.    Your <code>/usr/local/bin/c++</code> should be a soft/symbolic link pointing to the actual compiler/linker you are using?  Ah, from output you are indeed using <strong>gcc</strong>?</p>
]]></description><link>https://forum.qt.io/post/838967</link><guid isPermaLink="true">https://forum.qt.io/post/838967</guid><dc:creator><![CDATA[JonB]]></dc:creator><pubDate>Thu, 02 Jul 2026 13:34:28 GMT</pubDate></item><item><title><![CDATA[Reply to Qt 6.10.0 building from sources. GNU C++ compiler error: unrecognized command-line option ‘-R’ while using GCC 14.3.0 on Thu, 02 Jul 2026 10:03:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a> Yes, here it is:<br />
<code>&amp;&amp; /usr/local/bin/c++ -fPIC -DNDEBUG -O2  -shared -Wl,-Bsymbolic-functions -Wl,--no-undefined -Wl,--version-script,/&lt;dir&gt;/qtbase/build/src/network/Network.version -Wl,-z,relro,-z,now -Wl,--enable-new-dtags -R/usr/lib64 -Wl,-soname,libQt6Network.so.6 -o lib/libQt6Network.so.6.10.0 src/network/CMakeFiles/Network.dir/Network_autogen/mocs_compilation.cpp.o src/network/CMakeFiles/Network.dir/access/qabstractnetworkcache.cpp.o src/network/CMakeFiles/Network.dir/access/qhsts.cpp.o src/network/CMakeFiles/Network.dir/access/qhstspolicy.cpp.o src/network/CMakeFiles/Network.dir/access/qnetworkaccessauthenticationmanager.cpp.o src/network/CMakeFiles/Network.dir/access/qnetworkaccessbackend.cpp.o src/network/CMakeFiles/Network.dir/access/qnetworkaccesscache.cpp.o src/network/CMakeFiles/Network.dir/access/qnetworkaccesscachebackend.cpp.o src/network/CMakeFiles/Network.dir/access/qnetworkaccessfilebackend.cpp.o src/network/CMakeFiles/Network.dir/access/qnetworkaccessmanager.cpp.o src/network/CMakeFiles/Network.dir/access/qnetworkcookie.cpp.o src/network/CMakeFiles/Network.dir/access/qnetworkcookiejar.cpp.o src/network/CMakeFiles/Network.dir/access/qnetworkfile.cpp.o src/network/CMakeFiles/Network.dir/access/qhttpheaders.cpp.o src/network/CMakeFiles/Network.dir/access/qhttpheaderparser.cpp.o src/network/CMakeFiles/Network.dir/access/qhttpheadershelper.cpp.o src/network/CMakeFiles/Network.dir/access/qnetworkreply.cpp.o src/network/CMakeFiles/Network.dir/access/qnetworkreplydataimpl.cpp.o src/network/CMakeFiles/Network.dir/access/qnetworkreplyfileimpl.cpp.o src/network/CMakeFiles/Network.dir/access/qnetworkreplyimpl.cpp.o src/network/CMakeFiles/Network.dir/access/qnetworkrequest.cpp.o src/network/CMakeFiles/Network.dir/compat/removed_api.cpp.o src/network/CMakeFiles/Network.dir/kernel/qauthenticator.cpp.o src/network/CMakeFiles/Network.dir/kernel/qhostaddress.cpp.o src/network/CMakeFiles/Network.dir/kernel/qhostinfo.cpp.o src/network/CMakeFiles/Network.dir/kernel/qnetworkdatagram.cpp.o src/network/CMakeFiles/Network.dir/kernel/qnetworkinformation.cpp.o src/network/CMakeFiles/Network.dir/kernel/qnetworkinterface.cpp.o src/network/CMakeFiles/Network.dir/kernel/qnetworkproxy.cpp.o src/network/CMakeFiles/Network.dir/socket/qabstractsocket.cpp.o src/network/CMakeFiles/Network.dir/socket/qabstractsocketengine.cpp.o src/network/CMakeFiles/Network.dir/socket/qnativesocketengine.cpp.o src/network/CMakeFiles/Network.dir/socket/qtcpserver.cpp.o src/network/CMakeFiles/Network.dir/socket/qtcpsocket.cpp.o src/network/CMakeFiles/Network.dir/socket/qudpsocket.cpp.o src/network/CMakeFiles/Network.dir/ssl/qpassworddigestor.cpp.o src/network/CMakeFiles/Network.dir/ssl/qssl.cpp.o src/network/CMakeFiles/Network.dir/ssl/qsslcertificate.cpp.o src/network/CMakeFiles/Network.dir/ssl/qsslcertificateextension.cpp.o src/network/CMakeFiles/Network.dir/ssl/qtlsbackend.cpp.o src/network/CMakeFiles/Network.dir/access/qnetworkdiskcache.cpp.o src/network/CMakeFiles/Network.dir/access/qhstsstore.cpp.o src/network/CMakeFiles/Network.dir/access/http2/bitstreams.cpp.o src/network/CMakeFiles/Network.dir/access/http2/hpack.cpp.o src/network/CMakeFiles/Network.dir/access/http2/hpacktable.cpp.o src/network/CMakeFiles/Network.dir/access/http2/http2frames.cpp.o src/network/CMakeFiles/Network.dir/access/http2/http2protocol.cpp.o src/network/CMakeFiles/Network.dir/access/http2/http2streams.cpp.o src/network/CMakeFiles/Network.dir/access/http2/huffman.cpp.o src/network/CMakeFiles/Network.dir/access/qabstractprotocolhandler.cpp.o src/network/CMakeFiles/Network.dir/access/qdecompresshelper.cpp.o src/network/CMakeFiles/Network.dir/access/qformdatabuilder.cpp.o src/network/CMakeFiles/Network.dir/access/qhttp1configuration.cpp.o src/network/CMakeFiles/Network.dir/access/qhttp2configuration.cpp.o src/network/CMakeFiles/Network.dir/access/qhttp2connection.cpp.o src/network/CMakeFiles/Network.dir/access/qhttp2protocolhandler.cpp.o src/network/CMakeFiles/Network.dir/access/qhttpmultipart.cpp.o src/network/CMakeFiles/Network.dir/access/qhttpnetworkconnection.cpp.o src/network/CMakeFiles/Network.dir/access/qhttpnetworkconnectionchannel.cpp.o src/network/CMakeFiles/Network.dir/access/qhttpnetworkheader.cpp.o src/network/CMakeFiles/Network.dir/access/qhttpnetworkreply.cpp.o src/network/CMakeFiles/Network.dir/access/qhttpnetworkrequest.cpp.o src/network/CMakeFiles/Network.dir/access/qhttpprotocolhandler.cpp.o src/network/CMakeFiles/Network.dir/access/qhttpthreaddelegate.cpp.o src/network/CMakeFiles/Network.dir/access/qnetworkreplyhttpimpl.cpp.o src/network/CMakeFiles/Network.dir/access/qnetworkrequestfactory.cpp.o src/network/CMakeFiles/Network.dir/access/qrestaccessmanager.cpp.o src/network/CMakeFiles/Network.dir/access/qrestreply.cpp.o src/network/CMakeFiles/Network.dir/socket/qhttpsocketengine.cpp.o src/network/CMakeFiles/Network.dir/kernel/qtldurl.cpp.o src/network/CMakeFiles/Network.dir/__/3rdparty/libpsl/src/lookup_string_in_fixed_set.c.o src/network/CMakeFiles/Network.dir/kernel/qdnslookup.cpp.o src/network/CMakeFiles/Network.dir/kernel/qhostinfo_unix.cpp.o src/network/CMakeFiles/Network.dir/socket/qnativesocketengine_unix.cpp.o src/network/CMakeFiles/Network.dir/kernel/qnetworkinterface_linux.cpp.o src/network/CMakeFiles/Network.dir/kernel/qdnslookup_unix.cpp.o src/network/CMakeFiles/Network.dir/kernel/qnetconmonitor_stub.cpp.o src/network/CMakeFiles/Network.dir/kernel/qnetworkproxy_generic.cpp.o src/network/CMakeFiles/Network.dir/socket/qsocks5socketengine.cpp.o src/network/CMakeFiles/Network.dir/socket/qlocalserver.cpp.o src/network/CMakeFiles/Network.dir/socket/qlocalsocket.cpp.o src/network/CMakeFiles/Network.dir/socket/qlocalserver_unix.cpp.o src/network/CMakeFiles/Network.dir/socket/qlocalsocket_unix.cpp.o src/network/CMakeFiles/Network.dir/ssl/qocspresponse.cpp.o src/network/CMakeFiles/Network.dir/ssl/qsslcipher.cpp.o src/network/CMakeFiles/Network.dir/ssl/qsslconfiguration.cpp.o src/network/CMakeFiles/Network.dir/ssl/qssldiffiehellmanparameters.cpp.o src/network/CMakeFiles/Network.dir/ssl/qsslellipticcurve.cpp.o src/network/CMakeFiles/Network.dir/ssl/qsslerror.cpp.o src/network/CMakeFiles/Network.dir/ssl/qsslkey_p.cpp.o src/network/CMakeFiles/Network.dir/ssl/qsslpresharedkeyauthenticator.cpp.o src/network/CMakeFiles/Network.dir/ssl/qsslsocket.cpp.o src/network/CMakeFiles/Network.dir/ssl/qsslserver.cpp.o src/network/CMakeFiles/Network.dir/ssl/qdtls.cpp.o  -Wl,-rpath,/&lt;dir&gt;/qtbase/build/lib:  /usr/lib64/libgssapi_krb5.so  lib/libQt6Core.so.6.10.0  -lpthread  /usr/lib64/libbrotlidec.so  /usr/lib64/libzstd.so.1.5.2  -pthread  /usr/lib64/libz.so  /usr/lib64/libresolv.so</code></p>
]]></description><link>https://forum.qt.io/post/838964</link><guid isPermaLink="true">https://forum.qt.io/post/838964</guid><dc:creator><![CDATA[Mansur Galimov]]></dc:creator><pubDate>Thu, 02 Jul 2026 10:03:27 GMT</pubDate></item><item><title><![CDATA[Reply to Qt 6.10.0 building from sources. GNU C++ compiler error: unrecognized command-line option ‘-R’ while using GCC 14.3.0 on Wed, 01 Jul 2026 19:04:34 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Never saw that error on builds.<br />
Can you try to grab the exact build command that triggers that issue ?</p>
]]></description><link>https://forum.qt.io/post/838952</link><guid isPermaLink="true">https://forum.qt.io/post/838952</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Wed, 01 Jul 2026 19:04:34 GMT</pubDate></item></channel></rss>