<div dir="ltr">Hi Raja,<div>   I tried reproducing your error and could not.</div><div>What version of gcc are you using?</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Oct 23, 2023 at 5:20 AM Rajasekaran, Raja <<a href="mailto:Raja.Rajasekaran@honeywell.com">Raja.Rajasekaran@honeywell.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg-1231725824341054384">





<div lang="EN-US" style="overflow-wrap: break-word;">
<div class="m_-1231725824341054384WordSection1">
<p class="MsoNormal">Hi All<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I’m trying to compile and install deb package of squid 6.4, I am using the Ubuntu server 22.04.02 as my build machine.
<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">While running make command, I get the following error. Could you anyone help me, figure it out.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">lto-wrapper: warning: using serial compilation of 100 LTRANS jobs<u></u><u></u></p>
<p class="MsoNormal">acl/BoolOps.cc: In member function '__ct_base ':<u></u><u></u></p>
<p class="MsoNormal">acl/BoolOps.cc:20:5: error: '__builtin_strlen' reading 1 or more bytes from a region of size 0 [-Werror=stringop-overread]<u></u><u></u></p>
<p class="MsoNormal">   20 |     Must(strlen(acl->name) <= sizeof(name)-2);<u></u><u></u></p>
<p class="MsoNormal">      |     ^<u></u><u></u></p>
<p class="MsoNormal">lto1: all warnings being treated as errors<u></u><u></u></p>
<p class="MsoNormal">lto-wrapper: fatal error: g++ returned 1 exit status<u></u><u></u></p>
<p class="MsoNormal">compilation terminated.<u></u><u></u></p>
<p class="MsoNormal">/usr/bin/ld: error: lto-wrapper failed<u></u><u></u></p>
<p class="MsoNormal">collect2: error: ld returned 1 exit status<u></u><u></u></p>
<p class="MsoNormal">libtool: link: rm -f ".libs/squidS.o"<u></u><u></u></p>
<p class="MsoNormal">make[3]: *** [Makefile:5220: squid] Error 1<u></u><u></u></p>
<p class="MsoNormal">make[3]: Leaving directory '/home/coeadmin/squid-6.4-build1/squid-6.4/src'<u></u><u></u></p>
<p class="MsoNormal">make[2]: *** [Makefile:6004: all-recursive] Error 1<u></u><u></u></p>
<p class="MsoNormal">make[2]: Leaving directory '/home/coeadmin/squid-6.4-build1/squid-6.4/src'<u></u><u></u></p>
<p class="MsoNormal">make[1]: *** [Makefile:5004: all] Error 2<u></u><u></u></p>
<p class="MsoNormal">make[1]: Leaving directory '/home/coeadmin/squid-6.4-build1/squid-6.4/src'<u></u><u></u></p>
<p class="MsoNormal">make: *** [Makefile:599: all-recursive] Error 1<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Steps I followed.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<ol style="margin-top:0in" start="1" type="1">
<li class="m_-1231725824341054384MsoListParagraph" style="margin-left:0in">Ran build dep to install build dependencies.<u></u><u></u></li><li class="m_-1231725824341054384MsoListParagraph" style="margin-left:0in">Executed configure command with following options.<u></u><u></u></li></ol>
<p class="m_-1231725824341054384MsoListParagraph">--datadir=/usr/share/squid \<u></u><u></u></p>
<p class="m_-1231725824341054384MsoListParagraph">                                --sysconfdir=/etc/squid \<u></u><u></u></p>
<p class="m_-1231725824341054384MsoListParagraph">                                --libexecdir=/usr/lib/squid \<u></u><u></u></p>
<p class="m_-1231725824341054384MsoListParagraph">                                --mandir=/usr/share/man \<u></u><u></u></p>
<p class="m_-1231725824341054384MsoListParagraph">                                --enable-inline \<u></u><u></u></p>
<p class="m_-1231725824341054384MsoListParagraph">                                --disable-arch-native \<u></u><u></u></p>
<p class="m_-1231725824341054384MsoListParagraph">                                --enable-async-io=8 \<u></u><u></u></p>
<p class="m_-1231725824341054384MsoListParagraph">                                --enable-storeio="ufs,aufs,diskd,rock" \<u></u><u></u></p>
<p class="m_-1231725824341054384MsoListParagraph">                                --enable-removal-policies="lru,heap" \<u></u><u></u></p>
<p class="m_-1231725824341054384MsoListParagraph">                                --enable-delay-pools \<u></u><u></u></p>
<p class="m_-1231725824341054384MsoListParagraph">                                --enable-cache-digests \<u></u><u></u></p>
<p class="m_-1231725824341054384MsoListParagraph">                                --enable-icap-client \<u></u><u></u></p>
<p class="m_-1231725824341054384MsoListParagraph">                                --enable-follow-x-forwarded-for \<u></u><u></u></p>
<p class="m_-1231725824341054384MsoListParagraph">                                --enable-auth-basic="DB,fake,getpwnam,LDAP,NCSA,PAM,POP3,RADIUS,SASL,SMB" \<u></u><u></u></p>
<p class="m_-1231725824341054384MsoListParagraph">                                --enable-auth-digest="file,LDAP" \<u></u><u></u></p>
<p class="m_-1231725824341054384MsoListParagraph">                                --enable-auth-negotiate="kerberos,wrapper" \<u></u><u></u></p>
<p class="m_-1231725824341054384MsoListParagraph">                                --enable-auth-ntlm="fake,SMB_LM" \<u></u><u></u></p>
<p class="m_-1231725824341054384MsoListParagraph">                                --enable-external-acl-helpers="file_userip,kerberos_ldap_group,LDAP_group,session,SQL_session,time_quota,unix_group,wbinfo_group" \<u></u><u></u></p>
<p class="m_-1231725824341054384MsoListParagraph">                                --enable-security-cert-validators="fake" \<u></u><u></u></p>
<p class="m_-1231725824341054384MsoListParagraph">                                --enable-storeid-rewrite-helpers="file" \<u></u><u></u></p>
<p class="m_-1231725824341054384MsoListParagraph">                                --enable-url-rewrite-helpers="fake" \<u></u><u></u></p>
<p class="m_-1231725824341054384MsoListParagraph">                                --enable-eui \<u></u><u></u></p>
<p class="m_-1231725824341054384MsoListParagraph">                                --enable-esi \<u></u><u></u></p>
<p class="m_-1231725824341054384MsoListParagraph">                                --enable-icmp \<u></u><u></u></p>
<p class="m_-1231725824341054384MsoListParagraph">                                --enable-zph-qos \<u></u><u></u></p>
<p class="m_-1231725824341054384MsoListParagraph">                                --enable-ecap \<u></u><u></u></p>
<p class="m_-1231725824341054384MsoListParagraph">                                --disable-translation \<u></u><u></u></p>
<p class="m_-1231725824341054384MsoListParagraph">                                --with-swapdir=/var/spool/squid \<u></u><u></u></p>
<p class="m_-1231725824341054384MsoListParagraph">                                --with-logdir=/var/log/squid \<u></u><u></u></p>
<p class="m_-1231725824341054384MsoListParagraph">                                --with-pidfile=/run/squid.pid \<u></u><u></u></p>
<p class="m_-1231725824341054384MsoListParagraph">                                --with-filedescriptors=65536 \<u></u><u></u></p>
<p class="m_-1231725824341054384MsoListParagraph">                                --with-large-files \<u></u><u></u></p>
<p class="m_-1231725824341054384MsoListParagraph">                                --with-default-user=proxy \<u></u><u></u></p>
<p class="m_-1231725824341054384MsoListParagraph">                                --enable-linux-netfilter --with-systemd \<u></u><u></u></p>
<p class="m_-1231725824341054384MsoListParagraph">                                --with-openssl \<u></u><u></u></p>
<p class="m_-1231725824341054384MsoListParagraph">                                --enable-ssl-crtd<u></u><u></u></p>
<p class="m_-1231725824341054384MsoListParagraph"><u></u> <u></u></p>
<ol style="margin-top:0in" start="3" type="1">
<li class="m_-1231725824341054384MsoListParagraph" style="margin-left:0in">executed make, which resulted in above error.<u></u><u></u></li></ol>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Please let me know if more information is required<u></u><u></u></p>
</div>
</div>

_______________________________________________<br>
squid-users mailing list<br>
<a href="mailto:squid-users@lists.squid-cache.org" target="_blank">squid-users@lists.squid-cache.org</a><br>
<a href="https://lists.squid-cache.org/listinfo/squid-users" rel="noreferrer" target="_blank">https://lists.squid-cache.org/listinfo/squid-users</a><br>
</div></blockquote></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature">    Francesco</div>