<div dir="ltr">There was a typo in the question, flags I used were:<br><br><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0);font-family:Menlo;font-size:14px">./config --prefix=<path> --openssldir=<path> darwin64-arm64-cc no-asm no-shared enable-fips</span> .<br><br><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Thanks,<div>Tathagata Chakraborty</div><div>Mo: 9884869684</div></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jun 22, 2023 at 4:39 PM Tathagata Chakraborty <<a href="mailto:contact.tatha@gmail.com">contact.tatha@gmail.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 dir="ltr">Hi,<div><br></div><div>I am using an intel 64 bit mac machine and trying to build open SSL with fips enabled for two different targets : darwin64-x86_64-cc and darwin64-arm64-cc. My x86-64 build works fine, all the make tests succeed but darwin64-arm64-cc target build fails. make was a success, but it fails in make test. make install also fails. This is because the test tries to run fips-install which fails with "bad CPU in executable". I think this is because fips install attempts to load the arm binaries (openssl and fips.dylib) on an intel platform. <br><br>I ran make clean, make distclean after doing Intel build and afterwards configured the ARM target with the correct flags : <br><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0);font-family:Menlo;font-size:14px">./config --prefix=<path> --openssldir=<path> darwin64-x86_64-cc no-asm no-shared enable-fips</span> . <br><br>Now I have two questions: <br>(1) Is there any recommended way of achieving what I am trying to achieve? i.e. build open SSL for arm using an Intel machine? <br>(2) The binaries that I have built, is it safe to use them ?</div><div><br></div><div><div><div dir="ltr" class="gmail_signature"><div dir="ltr">Thanks,<div>Tathagata Chakraborty</div><div>Mo: 9884869684</div></div></div></div></div></div>
</blockquote></div>