<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Hi All,</p>
<p><br>
</p>
<p>I'm trying to cross compile for linux64 on Mips64 with FIPS and OpenSSL.   It hasn't been easy!  I know that MIPS isn't officially supportive, but we have been getting private validations in the past and plan to revisit that with this upgrade.</p>
<p><br>
</p>
<p>My current blocking point is that when building the openssl libraries, I'm getting hung up on the build reporting that fips_premain.c has multiple definitions of main. This happens regardless of which combos of MTYPE I declare for my make.  I've tried the
 linux-generic and various mips for linux and irix MTYPES.</p>
<p><br>
</p>
<p>My build machine info:</p>
<p><span>Linux  4.4.0-98-generic #121-Ubuntu SMP  x86_64 x86_64 x86_64 GNU/Linux</span><br>
</p>
<p><span><br>
</span></p>
<p><span>My Target machine and toolchain info:</span></p>
<p><span><span>gcc version 4.7.0 (Cavium Inc. Version: SDK_BUILD build 45)</span><br>
</span></p>
<p><span><span><span>Linux 3.10.20 #1 SMP mips64 GNU/Linux</span></span></span></p>
<p><span style="font-size: 12pt;"><br>
</span></p>
<p><span><span><span></span></span></span><span style="font-size: 12pt;">Openssl versions:</span></p>
<p>openssl-fips 2.0.16</p>
<p>openssl 1.0.1m</p>
<p><span><span><br>
</span></span></p>
<p><span>The specific error on building openssl:</span></p>
<p><span></p>
<div>/tmp/ccdtHgwu.o: In function `main':</div>
<div>fips_premain.c:(.text.startup+0x0): multiple definition of `main'</div>
<div>/tmp/cc2MrZWZ.o:fips_premain.c:(.text.startup+0x0): first defined here</div>
<div>collect2: error: ld returned 1 exit status</div>
<br>
</span>
<p></p>
<p><span><br>
</span></p>
<p><br>
</p>
</div>
</body>
</html>