Re: 7.0.0 update to 8.9.0 PIC register clobbered

Phil C <[email protected]> Tue, 16 Jan 2024 05:41:56 -0800 (PST)
Newsgroups gmane.comp.encryption.cryptopp
Message-ID <[email protected]>
------=_Part_134385_1346650026.1705412516969
Content-Type: multipart/alternative; 
	boundary="----=_Part_134386_132606194.1705412516969"

------=_Part_134386_132606194.1705412516969
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Thank you for looking at it. I believe this is a compiler issue that has=20
been corrected in gcc. I do not get the issue with gcc 12.2.0 on a test=20
debian system. Unfortunately I need to use the old c7 / gcc combination.

On Tuesday, January 16, 2024 at 8:13:29=E2=80=AFAM UTC-5 Jeffrey Walton wro=
te:

> On Tuesday, January 16, 2024 at 8:10:30=E2=80=AFAM UTC-5 [email protected]=
m wrote:
>
> CentOS 7..2009
> gcc 4.8.5-44
>
> I am updating from cryptopp 7.0.0 to 8..0 and receive the following error
>
> gcm.cpp: In member function 'virtual size_t=20
> CryptoPP::GCM_Base::AuthenticateBlocks(const byte*, size_t)':
> gcm.cpp:733:18: error: PIC register clobbered by '%ebx' in 'asm'
>
> Is the correct solution to remove -fPIC from the makefile?
> (other than updating to a newer compiler....)
>
>
> I believe this is a false positive. EBX is saved, and then restored aroun=
d=20
> <https://github.com/weidai11/cryptopp/blob/master/gcm.cpp#L717>.
>
> Jeff
>

--=20
You received this message because you are subscribed to the Google Groups "=
Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/=
cryptopp-users/5833335f-3384-4f71-8a6f-f07789fd4322n%40googlegroups.com.

------=_Part_134386_132606194.1705412516969
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Thank you for looking at it. I believe this is a compiler issue that has be=
en corrected in gcc. I do not get the issue with gcc 12.2.0 on a test debia=
n system. Unfortunately I need to use the old c7 / gcc combination.<br /><b=
r /><div class=3D"gmail_quote"><div dir=3D"auto" class=3D"gmail_attr">On Tu=
esday, January 16, 2024 at 8:13:29=E2=80=AFAM UTC-5 Jeffrey Walton wrote:<b=
r/></div><blockquote class=3D"gmail_quote" style=3D"margin: 0 0 0 0.8ex; bo=
rder-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div dir=
=3D"auto">On Tuesday, January 16, 2024 at 8:10:30=E2=80=AFAM UTC-5 <a href =
data-email-masked rel=3D"nofollow">[email protected]</a> wrote:<br></div><b=
lockquote style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,2=
04,204);padding-left:1ex">CentOS 7..2009<div>gcc 4.8.5-44</div><div><br></d=
iv><div>I am updating from cryptopp 7.0.0 to 8..0 and receive the following=
 error</div><div><div style=3D"color:rgb(34,34,34);font-family:Arial,Helvet=
ica,sans-serif;font-size:small"><span style=3D"font-family:Aptos,Aptos_Embe=
ddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;co=
lor:rgb(0,0,0)"><br></span></div><div style=3D"color:rgb(34,34,34);font-fam=
ily:Arial,Helvetica,sans-serif;font-size:small"><span style=3D"font-family:=
Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;f=
ont-size:12pt;color:rgb(0,0,0)">gcm.cpp: In member function &#39;virtual si=
ze_t CryptoPP::GCM_Base::AuthenticateBlocks(const byte*, size_t)&#39;:</spa=
n></div><div style=3D"color:rgb(34,34,34);font-family:Arial,Helvetica,sans-=
serif;font-size:small"><span style=3D"font-family:Aptos,Aptos_EmbeddedFont,=
Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0=
,0,0)">gcm.cpp:733:18: error: PIC register clobbered by &#39;%ebx&#39; in &=
#39;asm&#39;</span></div><div style=3D"color:rgb(34,34,34);font-family:Aria=
l,Helvetica,sans-serif;font-size:small"><span style=3D"font-family:Aptos,Ap=
tos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size=
:12pt;color:rgb(0,0,0)"><br></span></div><div style=3D"color:rgb(34,34,34);=
font-family:Arial,Helvetica,sans-serif;font-size:small"><span style=3D"font=
-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans=
-serif;font-size:12pt;color:rgb(0,0,0)">Is the correct solution to remove -=
fPIC from the makefile?</span></div><div style=3D"color:rgb(34,34,34);font-=
family:Arial,Helvetica,sans-serif;font-size:small"><span style=3D"font-fami=
ly:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-seri=
f;font-size:12pt;color:rgb(0,0,0)">(other than updating to a newer compiler=
....)</span></div></div></blockquote><div><br></div></div><div><div>I belie=
ve this is a false positive. EBX is saved, and then restored around &lt;<a =
href=3D"https://github.com/weidai11/cryptopp/blob/master/gcm.cpp#L717" targ=
et=3D"_blank" rel=3D"nofollow" data-saferedirecturl=3D"https://www.google.c=
om/url?hl=3Den&amp;q=3Dhttps://github.com/weidai11/cryptopp/blob/master/gcm=
.cpp%23L717&amp;source=3Dgmail&amp;ust=3D1705498700862000&amp;usg=3DAOvVaw0=
dz5ox8SOfFECs8YokgX5n">https://github.com/weidai11/cryptopp/blob/master/gcm=
.cpp#L717</a>&gt;.</div><div><br></div><div>Jeff<br> </div></div></blockquo=
te></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;Crypto++ Users&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:[email protected]">cryp=
[email protected]</a>.<br />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/d/msgid/cryptopp-users/5833335f-3384-4f71-8a6f-f07789fd4322n%40googlegro=
ups.com?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.com/d=
/msgid/cryptopp-users/5833335f-3384-4f71-8a6f-f07789fd4322n%40googlegroups.=
com</a>.<br />

------=_Part_134386_132606194.1705412516969--

------=_Part_134385_1346650026.1705412516969--