Hi, Eugene,

Sorry, I have no RVCT environment for more investigations. 
Could you help to double-check if this is caused by any CryptoPkg updates? Or 
It is one OpenSSL-native issue?

Could we silence this simply with any build flag, such as " --diag_suppress"? 
Moreover, some old RVCT release may produce the spurious occurrences of 
compiler warning #128-D, which may need the patch to remove it 
(http://www.arm.com/products/tools/software-tools/rvds/updates-patches/rvct-40-patch-for-windows.php)

If it's one OpenSSL-native build issue, we can apply some kind of patch (e.g. 
applying OPENSSL_SYS_UEFI) to silence it in our package, and then submit the 
ticket in OpenSSL RT for the native fix. 


Best Regards & Thanks,
LONG, Qin

> -----Original Message-----
> From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of Cohen, 
> Eugene
> Sent: Monday, November 23, 2015 11:01 PM
> To: edk2-devel@lists.01.org
> Subject: [edk2] CryptoPkg: OpenSSL build issue with RVCT
> 
> Using RVCT 4, I get the following error building openssl-1.0.2d:
> 
> 1>  Building ... c:\bios_24s\edk2\CryptoPkg\Library\OpensslLib\OpensslLib.inf 
> [ARM]
> [snip]
> c:\bios_24s\edk2\CryptoPkg\Library\OpensslLib\openssl-1.0.2d\crypto\cryptlib.c
> 1>c:\bios_24s\edk2\CryptoPkg\Library\OpensslLib\openssl-1.0.2d\crypto\cryptlib.c(462,5):
>  error #128-D: loop is not reachable from
> preceding code
> 1>  armcc : 
> c:\bios_24s\edk2\CryptoPkg\Library\OpensslLib\openssl-1.0.2d\crypto\cryptlib.c:
>  0 warnings, 1 error
> 
> I presume this is due to the compiler pre-processing this statement so that 
> it's unconditional:
> 
>   if (sizeof(id->val) >= sizeof(id->ptr)) {
>         /*
>          * 'ptr' can be embedded in 'val' without loss of uniqueness
>          */
>         id->val = (unsigned long)id->ptr;
>         return;
>     }
> 
> Suggestions for a maintainable fix?
> 
> Thanks,
> 
> Eugene
> 
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.01.org
> https://lists.01.org/mailman/listinfo/edk2-devel
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to