Software Archive
Read-only legacy content
17061 Discussions

cannot open source file when -mmic added

Cheng_C_
Beginner
503 Views

The c code complies well with $ icc test.c -o test -lcrypto to run in the host. However when I want to build for mic cores, it went wrong. Any idea? Thanks very much for the help.

$ icc -mmic test.c -o test -lcrypto

test.c(4): catastrophic error: cannot open source file "openssl/rsa.h"

  #include <openssl/rsa.h>

                          ^

 

compilation aborted for rsa_mic.c (code 4)

$

0 Kudos
2 Replies
Kevin_D_Intel
Employee
503 Views

It appears that is not an aspect of the OpenSSL that is available by default when compiling for native (-mmic).

I don't know details about OpenSSL but only the bn.h header is available by default (under: /opt/mpss/3.1/sysroots/x86_64-mpsssdk-linux/usr/lib/k1om-mpss-linux/gcc/k1om-mpss-linux/4.7.0/include-fixed/openssl for MPSS 3.1) with -mmic.

The guide I noted in your earlier post contains discussion about building OpenSSL for native use. See Configuring Intel® Xeon Phi™ coprocessors inside a cluster guide (http://software.intel.com/en-us/articles/configuring-intel-xeon-phi-coprocessors-inside-a-cluster).

0 Kudos
James_C_Intel2
Employee
503 Views

The compiler is telling you that there is no openssl header in the standard include paths for the MIC. That very likely means that there is also no openssl library that has been built for MIC.

Apparently http://software.intel.com/en-us/articles/configuring-intel-xeon-phi-coprocessors-inside-a-cluster discusses how to build OpenSSL.

0 Kudos
Reply