Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

update to driver 2.6 and sdk 2.9.1 fails #1

Open
brenzi opened this issue Aug 23, 2020 · 2 comments
Open

update to driver 2.6 and sdk 2.9.1 fails #1

brenzi opened this issue Aug 23, 2020 · 2 comments
Assignees

Comments

@brenzi
Copy link
Contributor

brenzi commented Aug 23, 2020

we should always update the ansible scripts to match our devsgx* setup and our substratee-dev docker.
Simply changing the version tags doesn't work because ansible will not install the new versions if to old is present (needed to move away /opt/intel)

minor comments:

  • it is silly to ask for a ssh password if this prompt needs to be left empty in case of pubkey login
  • timeouts can happen for reboot. retrying works but it's annoying
@brenzi
Copy link
Contributor Author

brenzi commented Aug 23, 2020

update fails with:

TASK [role-intel-sgx : Install SGX SDK and PSW, in case it doesn't exist at all, usually takes around 5 mins on the SGX server] ***********************************************************************************************************************************************
fatal: [chainbrick]: FAILED! => {"changed": true, "msg": "non-zero return code", "rc": 2, "stderr": "Shared connection to chainbrick closed.\r\n", "stdout": "\r\n--2020-08-23 17:39:24--  https://download.01.org/intel-sgx/sgx-linux/2.9.1//optimized_libs_2.9.1.tar.gz\r\nResolving download.01.org (download.01.org)... 23.201.253.209, 2a02:26f0:f3:588::4b21, 2a02:26f0:f3:584::4b21\r\nConnecting to download.01.org (download.01.org)|23.201.253.209|:443... connected.\r\nHTTP request sent, awaiting response... 200 OK\r\nLength: 12553466 (12M) [application/octet-stream]\r\nSaving to: ‘./optimized_libs_2.9.1.tar.gz’\r\n\r\n\r          optimized   0%[                    ]       0  --.-KB/s               \r         optimized_  17%[==>                 ]   2.09M  10.2MB/s               \r        optimized_l  19%[==>                 ]   2.37M  5.64MB/s               \r       optimized_li  21%[===>                ]   2.63M  4.22MB/s               \r      optimized_lib  24%[===>                ]   2.89M  3.51MB/s               \r     optimized_libs  26%[====>               ]   3.17M  3.08MB/s               \r    optimized_libs_  28%[====>               ]   3.42M  2.77MB/s               \r   optimized_libs_2  30%[=====>              ]   3.69M  2.57MB/s               \r  optimized_libs_2.  32%[=====>              ]   3.93M  2.40MB/s               \r optimized_libs_2.9  35%[======>             ]   4.22M  2.29MB/s               \roptimized_libs_2.9.  37%[======>             ]   4.48M  2.19MB/s               \rptimized_libs_2.9.1  39%[======>             ]   4.74M  2.10MB/s               \rtimized_libs_2.9.1.  41%[=======>            ]   5.01M  2.04MB/s               \rimized_libs_2.9.1.t  43%[=======>            ]   5.26M  1.98MB/s               \rmized_libs_2.9.1.ta  46%[========>           ]   5.51M  1.92MB/s               \rized_libs_2.9.1.tar  48%[========>           ]   5.78M  1.88MB/s    eta 3s     \rzed_libs_2.9.1.tar.  50%[=========>          ]   6.05M  1.39MB/s    eta 3s     \red_libs_2.9.1.tar.g  52%[=========>          ]   6.32M  1.29MB/s    eta 3s     \rd_libs_2.9.1.tar.gz  55%[==========>         ]   6.59M  1.29MB/s    eta 3s     \r_libs_2.9.1.tar.gz   57%[==========>         ]   6.86M  1.29MB/s    eta 3s     \rlibs_2.9.1.tar.gz    59%[==========>         ]   7.12M  1.30MB/s    eta 3s     \ribs_2.9.1.tar.gz     61%[===========>        ]   7.38M  1.29MB/s    eta 3s     \rbs_2.9.1.tar.gz      63%[===========>        ]   7.64M  1.29MB/s    eta 3s     \rs_2.9.1.tar.gz       66%[============>       ]   7.91M  1.29MB/s    eta 3s     \r_2.9.1.tar.gz        68%[============>       ]   8.18M  1.30MB/s    eta 3s     \r2.9.1.tar.gz         70%[=============>      ]   8.46M  1.29MB/s    eta 2s     \r.9.1.tar.gz          72%[=============>      ]   8.72M  1.29MB/s    eta 2s     \r9.1.tar.gz           75%[==============>     ]   8.99M  1.30MB/s    eta 2s     \r.1.tar.gz            77%[==============>     ]   9.25M  1.30MB/s    eta 2s     \r1.tar.gz             79%[==============>     ]   9.51M  1.30MB/s    eta 2s     \r.tar.gz              81%[===============>    ]   9.78M  1.30MB/s    eta 1s     \rtar.gz               83%[===============>    ]  10.02M  1.29MB/s    eta 1s     \rar.gz                85%[================>   ]  10.27M  1.29MB/s    eta 1s     \rr.gz                 88%[================>   ]  10.57M  1.29MB/s    eta 1s     \r.gz                  90%[=================>  ]  10.83M  1.29MB/s    eta 1s     \rgz                   92%[=================>  ]  11.10M  1.30MB/s    eta 1s     \rz                    94%[=================>  ]  11.35M  1.29MB/s    eta 1s     \r                     97%[==================> ]  11.62M  1.29MB/s    eta 1s     \r                  o  99%[==================> ]  11.89M  1.29MB/s    eta 1s     \roptimized_libs_2.9. 100%[===================>]  11.97M  1.29MB/s    in 7.8s    \r\n\r\n2020-08-23 17:39:31 (1.53 MB/s) - ‘./optimized_libs_2.9.1.tar.gz’ saved [12553466/12553466]\r\n\r\n--2020-08-23 17:39:31--  https://download.01.org/intel-sgx/sgx-linux/2.9.1//prebuilt_ae_2.9.1.tar.gz\r\nResolving download.01.org (download.01.org)... 23.201.253.209, 2a02:26f0:f3:584::4b21, 2a02:26f0:f3:588::4b21\r\nConnecting to download.01.org (download.01.org)|23.201.253.209|:443... connected.\r\nHTTP request sent, awaiting response... 200 OK\r\nLength: 1831497 (1.7M) [application/octet-stream]\r\nSaving to: ‘./prebuilt_ae_2.9.1.tar.gz’\r\n\r\n\rprebuilt_ae_2.9.1.t   0%[                    ]       0  --.-KB/s               \rprebuilt_ae_2.9.1.t  16%[==>                 ] 299.41K  1.42MB/s               \rprebuilt_ae_2.9.1.t  32%[=====>              ] 577.77K  1.36MB/s               \rprebuilt_ae_2.9.1.t  47%[========>           ] 848.27K  1.32MB/s               \rprebuilt_ae_2.9.1.t  62%[===========>        ]   1.09M  1.31MB/s               \rprebuilt_ae_2.9.1.t  78%[==============>     ]   1.36M  1.31MB/s               \rprebuilt_ae_2.9.1.t  92%[=================>  ]   1.62M  1.30MB/s               \rprebuilt_ae_2.9.1.t 100%[===================>]   1.75M  1.31MB/s    in 1.3s    \r\n\r\n2020-08-23 17:39:33 (1.31 MB/s) - ‘./prebuilt_ae_2.9.1.tar.gz’ saved [1831497/1831497]\r\n\r\n--2020-08-23 17:39:33--  https://download.01.org/intel-sgx/sgx-linux/2.9.1//as.ld.objdump.gold.r1.tar.gz\r\nResolving download.01.org (download.01.org)... 23.201.253.209, 2a02:26f0:f3:584::4b21, 2a02:26f0:f3:588::4b21\r\nConnecting to download.01.org (download.01.org)|23.201.253.209|:443... connected.\r\nHTTP request sent, awaiting response... 200 OK\r\nLength: 3932297 (3.8M) [application/octet-stream]\r\nSaving to: ‘./as.ld.objdump.gold.r1.tar.gz’\r\n\r\n\r          as.ld.obj   0%[                    ]       0  --.-KB/s               \r         as.ld.objd   7%[>                   ] 301.04K  1.42MB/s               \r        as.ld.objdu  14%[=>                  ] 571.40K  1.36MB/s               \r       as.ld.objdum  21%[===>                ] 833.90K  1.31MB/s               \r      as.ld.objdump  28%[====>               ]   1.08M  1.29MB/s               \r     as.ld.objdump.  35%[======>             ]   1.34M  1.29MB/s               \r    as.ld.objdump.g  42%[=======>            ]   1.60M  1.29MB/s               \r   as.ld.objdump.go  49%[========>           ]   1.87M  1.29MB/s               \r  as.ld.objdump.gol  56%[==========>         ]   2.13M  1.29MB/s               \r as.ld.objdump.gold  64%[===========>        ]   2.41M  1.29MB/s               \ras.ld.objdump.gold.  71%[=============>      ]   2.67M  1.29MB/s               \rs.ld.objdump.gold.r  78%[==============>     ]   2.93M  1.29MB/s               \r.ld.objdump.gold.r1  85%[================>   ]   3.19M  1.29MB/s               \rld.objdump.gold.r1.  92%[=================>  ]   3.46M  1.29MB/s               \rd.objdump.gold.r1.t  99%[==================> ]   3.73M  1.29MB/s               \ras.ld.objdump.gold. 100%[===================>]   3.75M  1.29MB/s    in 2.9s    \r\n\r\n2020-08-23 17:39:36 (1.29 MB/s) - ‘./as.ld.objdump.gold.r1.tar.gz’ saved [3932297/3932297]\r\n\r\n--2020-08-23 17:39:36--  https://download.01.org/intel-sgx/sgx-linux/2.9.1//SHA256SUM_prebuilt_2.9.1.txt\r\nResolving download.01.org (download.01.org)... 23.201.253.209, 2a02:26f0:f3:584::4b21, 2a02:26f0:f3:588::4b21\r\nConnecting to download.01.org (download.01.org)|23.201.253.209|:443... connected.\r\nHTTP request sent, awaiting response... 200 OK\r\nLength: 280 [text/plain]\r\nSaving to: ‘./SHA256SUM_prebuilt_2.9.1.txt’\r\n\r\n\r          SHA256SUM   0%[                    ]       0  --.-KB/s               \rSHA256SUM_prebuilt_ 100%[===================>]     280  --.-KB/s    in 0s      \r\n\r\n2020-08-23 17:39:36 (2.27 MB/s) - ‘./SHA256SUM_prebuilt_2.9.1.txt’ saved [280/280]\r\n\r\n/opt/intel/linux-sgx_2.9.1 /opt/intel/linux-sgx_2.9.1\r\noptimized_libs_2.9.1.tar.gz: OK\r\nprebuilt_ae_2.9.1.tar.gz: OK\r\nas.ld.objdump.gold.r1.tar.gz: OK\r\n/opt/intel/linux-sgx_2.9.1\r\nTips:\r\n     This \"make\" command will show tips only and make nothing.\r\n     1. If you want to build Intel(R) SGX SDK with default configuration, please take the following steps:\r\n        1) ensure that you have installed required tools described in README.md in same directory\r\n        2) enter the command: \"make sdk\"\r\n     2. If you want to build Intel(R) SGX PSW with default configuration, please take the following steps:\r\n        1) ensure that you have installed additional required tools decribed in README.md in same directory\r\n        2) ensure that you have installed latest Intel(R) SGX SDK Installer which could be downloaded from: https://software.intel.com/en-us/sgx-sdk/download and followed Installation Guide in the same page to finish installation.\r\n        3) enter the commmand: \"make psw\"\r\n     3. If you want to build other targets, please also follow README.md in same directory\r\nmake -C sdk/ clean\r\nmake[1]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk'\r\nmake -C tlibc/                              clean\r\nmake[2]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/tlibc'\r\nmake[2]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/tlibc'\r\nmake -C tlibthread/                         clean\r\nmake[2]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/tlibthread'\r\nmake[2]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/tlibthread'\r\nmake -C compiler-rt/                        clean\r\nmake[2]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/compiler-rt'\r\nmake[2]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/compiler-rt'\r\nmake -C cpprt                               clean\r\nmake[2]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/cpprt'\r\nmake[2]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/cpprt'\r\nmake -C tlibcxx/                            clean\r\nmake[2]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/tlibcxx'\r\nmake[2]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/tlibcxx'\r\nmake -C tseal/linux/                        clean\r\nmake[2]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/tseal/linux'\r\nmake[2]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/tseal/linux'\r\nmake -C selib/linux/                        clean\r\nmake[2]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/selib/linux'\r\nmake[2]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/selib/linux'\r\nmake -C trts/                               clean\r\nmake[2]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/trts'\r\nmake -C linux clean\r\nmake[3]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/trts/linux'\r\nmake[3]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/trts/linux'\r\nmake[2]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/trts'\r\nmake -C tsetjmp/                            clean\r\nmake[2]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/tsetjmp'\r\nmake[2]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/tsetjmp'\r\nmake -C tsafecrt/                           clean\r\nmake[2]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/tsafecrt'\r\nmake[2]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/tsafecrt'\r\nmake -C gperftools/                         clean\r\nmake[2]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/gperftools'\r\nmake[2]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/gperftools'\r\nmake -C tlibcrypto/                         clean\r\nmake[2]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/tlibcrypto'\r\nmake[2]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/tlibcrypto'\r\nmake -C tkey_exchange/                      clean\r\nmake[2]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/tkey_exchange'\r\nmake -C /opt/intel/linux-sgx_2.9.1/sdk/edger8r/linux clean\r\nmake[3]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/edger8r/linux'\r\n\rFinished, 0 targets (0 cached) in 00:00:00.\u001b[K\r\n\r00:00:00 0    (0   ) STARTING                                        -------- |\u001b[Kmake[3]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/edger8r/linux'\r\nmake[2]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/tkey_exchange'\r\nmake -C ukey_exchange/                      clean\r\nmake[2]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/ukey_exchange'\r\nmake[2]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/ukey_exchange'\r\nmake -C protected_fs/sgx_tprotected_fs/     clean\r\nmake[2]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/protected_fs/sgx_tprotected_fs'\r\nmake -C /opt/intel/linux-sgx_2.9.1/sdk/edger8r/linux clean\r\nmake[3]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/edger8r/linux'\r\n\rFinished, 0 targets (0 cached) in 00:00:00.\u001b[K\r\n\r00:00:00 0    (0   ) STARTING                                        -------- |\u001b[Kmake[3]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/edger8r/linux'\r\nmake[2]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/protected_fs/sgx_tprotected_fs'\r\nmake -C protected_fs/sgx_uprotected_fs/     clean\r\nmake[2]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/protected_fs/sgx_uprotected_fs'\r\nmake -C /opt/intel/linux-sgx_2.9.1/sdk/edger8r/linux clean\r\nmake[3]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/edger8r/linux'\r\n\rFinished, 0 targets (0 cached) in 00:00:00.\u001b[K\r\n\r00:00:00 0    (0   ) STARTING                                        -------- |\u001b[Kmake[3]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/edger8r/linux'\r\nmake[2]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/protected_fs/sgx_uprotected_fs'\r\nmake -C debugger_interface/linux/           clean\r\nmake[2]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/debugger_interface/linux'\r\nmake[2]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/debugger_interface/linux'\r\nmake -C sample_libcrypto/                   clean\r\nmake[2]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/sample_libcrypto'\r\nmake[2]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/sample_libcrypto'\r\nmake -C libcapable/linux/                   clean\r\nmake[2]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/libcapable/linux'\r\nmake[2]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/libcapable/linux'\r\nmake -C simulation/                         clean\r\nmake[2]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation'\r\nmake -C assembly clean\r\nmake[3]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/assembly'\r\nmake -C linux clean\r\nmake[4]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/assembly/linux'\r\nmake[4]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/assembly/linux'\r\nmake[3]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/assembly'\r\nmake -C uinst clean\r\nmake[3]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/uinst'\r\nmake -C linux clean\r\nmake[4]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/uinst/linux'\r\nmake[4]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/uinst/linux'\r\nmake[3]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/uinst'\r\nmake -C tinst clean\r\nmake[3]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/tinst'\r\nmake[3]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/tinst'\r\nmake -C driver_api clean\r\nmake[3]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/driver_api'\r\nmake[3]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/driver_api'\r\nmake -C uae_service_sim/linux clean\r\nmake[3]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/uae_service_sim/linux'\r\nmake[3]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/uae_service_sim/linux'\r\nmake -C urtssim clean\r\nmake[3]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/urtssim'\r\nmake -C linux clean\r\nmake[4]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/urtssim/linux'\r\nmake -C /opt/intel/linux-sgx_2.9.1/common/se_wrapper                                    clean\r\nmake[5]: Entering directory '/opt/intel/linux-sgx_2.9.1/common/se_wrapper'\r\nmake[5]: Leaving directory '/opt/intel/linux-sgx_2.9.1/common/se_wrapper'\r\nmake -C /opt/intel/linux-sgx_2.9.1/sdk/simulation/driver_api/                                      clean\r\nmake[5]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/driver_api'\r\nmake[5]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/driver_api'\r\nmake -C /opt/intel/linux-sgx_2.9.1/sdk/simulation/assembly/                                        clean\r\nmake[5]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/assembly'\r\nmake -C linux clean\r\nmake[6]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/assembly/linux'\r\nmake[6]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/assembly/linux'\r\nmake[5]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/assembly'\r\nmake -C /opt/intel/linux-sgx_2.9.1/sdk/simulation/uinst/                                           clean\r\nmake[5]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/uinst'\r\nmake -C linux clean\r\nmake[6]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/uinst/linux'\r\nmake[6]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/uinst/linux'\r\nmake[5]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/uinst'\r\nmake -C /opt/intel/linux-sgx_2.9.1/sdk/simulation/uae_service_sim/linux                            clean\r\nmake[5]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/uae_service_sim/linux'\r\nmake[5]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/uae_service_sim/linux'\r\nmake -C /opt/intel/linux-sgx_2.9.1/external/vtune/linux/sdk/src/ittnotify/                             clean\r\nmake[5]: Entering directory '/opt/intel/linux-sgx_2.9.1/external/vtune/linux/sdk/src/ittnotify'\r\nmake[5]: Leaving directory '/opt/intel/linux-sgx_2.9.1/external/vtune/linux/sdk/src/ittnotify'\r\nmake[4]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/urtssim/linux'\r\nmake[3]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/urtssim'\r\nmake -C trtssim clean\r\nmake[3]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/trtssim'\r\nmake -C linux clean\r\nmake[4]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/trtssim/linux'\r\nmake[4]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/trtssim/linux'\r\nmake[3]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/trtssim'\r\nmake -C SEConfigureCPUSVN/linux clean\r\nmake[3]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/SEConfigureCPUSVN/linux'\r\nmake -C /opt/intel/linux-sgx_2.9.1/common/se_wrapper clean\r\nmake[4]: Entering directory '/opt/intel/linux-sgx_2.9.1/common/se_wrapper'\r\nmake[4]: Leaving directory '/opt/intel/linux-sgx_2.9.1/common/se_wrapper'\r\nmake[3]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/SEConfigureCPUSVN/linux'\r\nmake -C tservice_sim clean\r\nmake[3]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/tservice_sim'\r\nmake -C /opt/intel/linux-sgx_2.9.1/sdk/ec_dh_lib clean\r\nmake[4]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/ec_dh_lib'\r\nmake[4]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/ec_dh_lib'\r\nmake -C /opt/intel/linux-sgx_2.9.1/sdk/tseal/linux clean\r\nmake[4]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/tseal/linux'\r\nmake[4]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/tseal/linux'\r\nmake -C /opt/intel/linux-sgx_2.9.1/sdk/selib/linux    clean\r\nmake[4]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/selib/linux'\r\nmake[4]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/selib/linux'\r\nmake[3]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/tservice_sim'\r\nmake[2]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation'\r\nmake -C sign_tool/SignTool                  clean\r\nmake[2]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/sign_tool/SignTool'\r\nrm -f *~ *.o sgx_sign /opt/intel/linux-sgx_2.9.1/build/linux/sgx_sign\r\nmake -C /opt/intel/linux-sgx_2.9.1/psw/urts/parser/ clean\r\nmake[3]: Entering directory '/opt/intel/linux-sgx_2.9.1/psw/urts/parser'\r\nrm -f *~ elf32parser.o elf64parser.o parserfactory.o section.o libenclaveparser.a\r\nmake[3]: Leaving directory '/opt/intel/linux-sgx_2.9.1/psw/urts/parser'\r\nmake[2]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/sign_tool/SignTool'\r\nmake -C edger8r/linux                       clean\r\nmake[2]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/edger8r/linux'\r\n\rFinished, 0 targets (0 cached) in 00:00:00.\u001b[K\r\n\r00:00:00 0    (0   ) STARTING                                        -------- |\u001b[Kmake[2]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/edger8r/linux'\r\nmake -C protected_code_loader               clean\r\nmake[2]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/protected_code_loader'\r\nmake[2]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/protected_code_loader'\r\nmake -C encrypt_enclave                     clean\r\nmake[2]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/encrypt_enclave'\r\nmake[2]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/encrypt_enclave'\r\nmake -C switchless/sgx_tswitchless          clean\r\nmake[2]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/switchless/sgx_tswitchless'\r\nmake[2]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/switchless/sgx_tswitchless'\r\nmake -C switchless/sgx_uswitchless          clean\r\nmake[2]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/switchless/sgx_uswitchless'\r\nmake[2]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/switchless/sgx_uswitchless'\r\nmake -C tmm_rsrv/                           clean\r\nmake[2]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/tmm_rsrv'\r\nmake[2]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/tmm_rsrv'\r\nmake -C pthread                             clean\r\nmake[2]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/pthread'\r\nmake -C /opt/intel/linux-sgx_2.9.1/sdk/edger8r/linux clean\r\nmake[3]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/edger8r/linux'\r\n\rFinished, 0 targets (0 cached) in 00:00:00.\u001b[K\r\n\r00:00:00 0    (0   ) STARTING                                        -------- |\u001b[Kmake[3]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/edger8r/linux'\r\nmake[2]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/pthread'\r\nmake -C /opt/intel/linux-sgx_2.9.1/external/openmp        clean\r\nmake[2]: Entering directory '/opt/intel/linux-sgx_2.9.1/external/openmp'\r\nrm -f -rf openmp_code/final/build /opt/intel/linux-sgx_2.9.1/build/linux/libsgx_omp.a\r\nmake[2]: Leaving directory '/opt/intel/linux-sgx_2.9.1/external/openmp'\r\nmake[1]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk'\r\nmake -C sdk/ MODE= MITIGATION-CVE-2020-0551=LOAD\r\nmake[1]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk'\r\nmake components\r\nmake[2]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk'\r\nmake -C tlibthread/\r\nmake[3]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/tlibthread'\r\ng++ -c -Wnon-virtual-dtor -std=c++11 -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -UDEBUG -DNDEBUG -ffunction-sections -fdata-sections -Wall -Wextra -Winit-self -Wpointer-arith -Wreturn-type -Waddress -Wsequence-point -Wformat-security -Wmissing-include-dirs -Wfloat-equal -Wundef -Wshadow -Wcast-align -Wconversion -Wredundant-decls -DITT_ARCH_IA64 -ffreestanding -nostdinc -fvisibility=hidden -fpie -fno-strict-overflow -fno-delete-null-pointer-checks -mindirect-branch-register -mfunction-return=thunk-extern -fno-plt -Wa,-mlfence-after-load=yes -Wa,-mlfence-before-ret=not -nostdinc++ -Werror -fno-exceptions -fno-rtti -I/opt/intel/linux-sgx_2.9.1/common/inc/internal -I/opt/intel/linux-sgx_2.9.1/common/inc -I/opt/intel/linux-sgx_2.9.1/common/inc/tlibc -I/opt/intel/linux-sgx_2.9.1/common/../sdk/trts -I/opt/intel/linux-sgx_2.9.1/psw sethread_mutex.cpp -o sethread_mutex.o\r\nas: unrecognized option '-mlfence-after-load=yes'\r\nMakefile:55: recipe for target 'sethread_mutex.o' failed\r\nmake[3]: *** [sethread_mutex.o] Error 1\r\nmake[3]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/tlibthread'\r\nMakefile.source:94: recipe for target 'tlibthread' failed\r\nmake[2]: *** [tlibthread] Error 2\r\nmake[2]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk'\r\nMakefile:50: recipe for target 'all' failed\r\nmake[1]: *** [all] Error 2\r\nmake[1]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk'\r\nMakefile:76: recipe for target 'sdk' failed\r\nmake: *** [sdk] Error 2\r\nmake: *** No rule to make target 'deb_pkg'.  Stop.\r\nHELLO WORLD\r\nsend: spawn id exp4 not open\r\n    while executing\r\n\"send \"yes\\r\"\"\r\r\n\u001b[1mdpkg:\u001b[0m \u001b[1;31merror:\u001b[0m cannot access archive './libsgx-urts_*_amd64.deb': No such file or directory\r\n\u001b[1mdpkg:\u001b[0m \u001b[1;31merror:\u001b[0m cannot access archive './libsgx-enclave-common-dbgsym_*_amd64.ddeb': No such file or directory\r\n", "stdout_lines": ["", "--2020-08-23 17:39:24--  https://download.01.org/intel-sgx/sgx-linux/2.9.1//optimized_libs_2.9.1.tar.gz", "Resolving download.01.org (download.01.org)... 23.201.253.209, 2a02:26f0:f3:588::4b21, 2a02:26f0:f3:584::4b21", "Connecting to download.01.org (download.01.org)|23.201.253.209|:443... connected.", "HTTP request sent, awaiting response... 200 OK", "Length: 12553466 (12M) [application/octet-stream]", "Saving to: ‘./optimized_libs_2.9.1.tar.gz’", "", "", "          optimized   0%[                    ]       0  --.-KB/s               ", "         optimized_  17%[==>                 ]   2.09M  10.2MB/s               ", "        optimized_l  19%[==>                 ]   2.37M  5.64MB/s               ", "       optimized_li  21%[===>                ]   2.63M  4.22MB/s               ", "      optimized_lib  24%[===>                ]   2.89M  3.51MB/s               ", "     optimized_libs  26%[====>               ]   3.17M  3.08MB/s               ", "    optimized_libs_  28%[====>               ]   3.42M  2.77MB/s               ", "   optimized_libs_2  30%[=====>              ]   3.69M  2.57MB/s               ", "  optimized_libs_2.  32%[=====>              ]   3.93M  2.40MB/s               ", " optimized_libs_2.9  35%[======>             ]   4.22M  2.29MB/s               ", "optimized_libs_2.9.  37%[======>             ]   4.48M  2.19MB/s               ", "ptimized_libs_2.9.1  39%[======>             ]   4.74M  2.10MB/s               ", "timized_libs_2.9.1.  41%[=======>            ]   5.01M  2.04MB/s               ", "imized_libs_2.9.1.t  43%[=======>            ]   5.26M  1.98MB/s               ", "mized_libs_2.9.1.ta  46%[========>           ]   5.51M  1.92MB/s               ", "ized_libs_2.9.1.tar  48%[========>           ]   5.78M  1.88MB/s    eta 3s     ", "zed_libs_2.9.1.tar.  50%[=========>          ]   6.05M  1.39MB/s    eta 3s     ", "ed_libs_2.9.1.tar.g  52%[=========>          ]   6.32M  1.29MB/s    eta 3s     ", "d_libs_2.9.1.tar.gz  55%[==========>         ]   6.59M  1.29MB/s    eta 3s     ", "_libs_2.9.1.tar.gz   57%[==========>         ]   6.86M  1.29MB/s    eta 3s     ", "libs_2.9.1.tar.gz    59%[==========>         ]   7.12M  1.30MB/s    eta 3s     ", "ibs_2.9.1.tar.gz     61%[===========>        ]   7.38M  1.29MB/s    eta 3s     ", "bs_2.9.1.tar.gz      63%[===========>        ]   7.64M  1.29MB/s    eta 3s     ", "s_2.9.1.tar.gz       66%[============>       ]   7.91M  1.29MB/s    eta 3s     ", "_2.9.1.tar.gz        68%[============>       ]   8.18M  1.30MB/s    eta 3s     ", "2.9.1.tar.gz         70%[=============>      ]   8.46M  1.29MB/s    eta 2s     ", ".9.1.tar.gz          72%[=============>      ]   8.72M  1.29MB/s    eta 2s     ", "9.1.tar.gz           75%[==============>     ]   8.99M  1.30MB/s    eta 2s     ", ".1.tar.gz            77%[==============>     ]   9.25M  1.30MB/s    eta 2s     ", "1.tar.gz             79%[==============>     ]   9.51M  1.30MB/s    eta 2s     ", ".tar.gz              81%[===============>    ]   9.78M  1.30MB/s    eta 1s     ", "tar.gz               83%[===============>    ]  10.02M  1.29MB/s    eta 1s     ", "ar.gz                85%[================>   ]  10.27M  1.29MB/s    eta 1s     ", "r.gz                 88%[================>   ]  10.57M  1.29MB/s    eta 1s     ", ".gz                  90%[=================>  ]  10.83M  1.29MB/s    eta 1s     ", "gz                   92%[=================>  ]  11.10M  1.30MB/s    eta 1s     ", "z                    94%[=================>  ]  11.35M  1.29MB/s    eta 1s     ", "                     97%[==================> ]  11.62M  1.29MB/s    eta 1s     ", "                  o  99%[==================> ]  11.89M  1.29MB/s    eta 1s     ", "optimized_libs_2.9. 100%[===================>]  11.97M  1.29MB/s    in 7.8s    ", "", "2020-08-23 17:39:31 (1.53 MB/s) - ‘./optimized_libs_2.9.1.tar.gz’ saved [12553466/12553466]", "", "--2020-08-23 17:39:31--  https://download.01.org/intel-sgx/sgx-linux/2.9.1//prebuilt_ae_2.9.1.tar.gz", "Resolving download.01.org (download.01.org)... 23.201.253.209, 2a02:26f0:f3:584::4b21, 2a02:26f0:f3:588::4b21", "Connecting to download.01.org (download.01.org)|23.201.253.209|:443... connected.", "HTTP request sent, awaiting response... 200 OK", "Length: 1831497 (1.7M) [application/octet-stream]", "Saving to: ‘./prebuilt_ae_2.9.1.tar.gz’", "", "", "prebuilt_ae_2.9.1.t   0%[                    ]       0  --.-KB/s               ", "prebuilt_ae_2.9.1.t  16%[==>                 ] 299.41K  1.42MB/s               ", "prebuilt_ae_2.9.1.t  32%[=====>              ] 577.77K  1.36MB/s               ", "prebuilt_ae_2.9.1.t  47%[========>           ] 848.27K  1.32MB/s               ", "prebuilt_ae_2.9.1.t  62%[===========>        ]   1.09M  1.31MB/s               ", "prebuilt_ae_2.9.1.t  78%[==============>     ]   1.36M  1.31MB/s               ", "prebuilt_ae_2.9.1.t  92%[=================>  ]   1.62M  1.30MB/s               ", "prebuilt_ae_2.9.1.t 100%[===================>]   1.75M  1.31MB/s    in 1.3s    ", "", "2020-08-23 17:39:33 (1.31 MB/s) - ‘./prebuilt_ae_2.9.1.tar.gz’ saved [1831497/1831497]", "", "--2020-08-23 17:39:33--  https://download.01.org/intel-sgx/sgx-linux/2.9.1//as.ld.objdump.gold.r1.tar.gz", "Resolving download.01.org (download.01.org)... 23.201.253.209, 2a02:26f0:f3:584::4b21, 2a02:26f0:f3:588::4b21", "Connecting to download.01.org (download.01.org)|23.201.253.209|:443... connected.", "HTTP request sent, awaiting response... 200 OK", "Length: 3932297 (3.8M) [application/octet-stream]", "Saving to: ‘./as.ld.objdump.gold.r1.tar.gz’", "", "", "          as.ld.obj   0%[                    ]       0  --.-KB/s               ", "         as.ld.objd   7%[>                   ] 301.04K  1.42MB/s               ", "        as.ld.objdu  14%[=>                  ] 571.40K  1.36MB/s               ", "       as.ld.objdum  21%[===>                ] 833.90K  1.31MB/s               ", "      as.ld.objdump  28%[====>               ]   1.08M  1.29MB/s               ", "     as.ld.objdump.  35%[======>             ]   1.34M  1.29MB/s               ", "    as.ld.objdump.g  42%[=======>            ]   1.60M  1.29MB/s               ", "   as.ld.objdump.go  49%[========>           ]   1.87M  1.29MB/s               ", "  as.ld.objdump.gol  56%[==========>         ]   2.13M  1.29MB/s               ", " as.ld.objdump.gold  64%[===========>        ]   2.41M  1.29MB/s               ", "as.ld.objdump.gold.  71%[=============>      ]   2.67M  1.29MB/s               ", "s.ld.objdump.gold.r  78%[==============>     ]   2.93M  1.29MB/s               ", ".ld.objdump.gold.r1  85%[================>   ]   3.19M  1.29MB/s               ", "ld.objdump.gold.r1.  92%[=================>  ]   3.46M  1.29MB/s               ", "d.objdump.gold.r1.t  99%[==================> ]   3.73M  1.29MB/s               ", "as.ld.objdump.gold. 100%[===================>]   3.75M  1.29MB/s    in 2.9s    ", "", "2020-08-23 17:39:36 (1.29 MB/s) - ‘./as.ld.objdump.gold.r1.tar.gz’ saved [3932297/3932297]", "", "--2020-08-23 17:39:36--  https://download.01.org/intel-sgx/sgx-linux/2.9.1//SHA256SUM_prebuilt_2.9.1.txt", "Resolving download.01.org (download.01.org)... 23.201.253.209, 2a02:26f0:f3:584::4b21, 2a02:26f0:f3:588::4b21", "Connecting to download.01.org (download.01.org)|23.201.253.209|:443... connected.", "HTTP request sent, awaiting response... 200 OK", "Length: 280 [text/plain]", "Saving to: ‘./SHA256SUM_prebuilt_2.9.1.txt’", "", "", "          SHA256SUM   0%[                    ]       0  --.-KB/s               ", "SHA256SUM_prebuilt_ 100%[===================>]     280  --.-KB/s    in 0s      ", "", "2020-08-23 17:39:36 (2.27 MB/s) - ‘./SHA256SUM_prebuilt_2.9.1.txt’ saved [280/280]", "", "/opt/intel/linux-sgx_2.9.1 /opt/intel/linux-sgx_2.9.1", "optimized_libs_2.9.1.tar.gz: OK", "prebuilt_ae_2.9.1.tar.gz: OK", "as.ld.objdump.gold.r1.tar.gz: OK", "/opt/intel/linux-sgx_2.9.1", "Tips:", "     This \"make\" command will show tips only and make nothing.", "     1. If you want to build Intel(R) SGX SDK with default configuration, please take the following steps:", "        1) ensure that you have installed required tools described in README.md in same directory", "        2) enter the command: \"make sdk\"", "     2. If you want to build Intel(R) SGX PSW with default configuration, please take the following steps:", "        1) ensure that you have installed additional required tools decribed in README.md in same directory", "        2) ensure that you have installed latest Intel(R) SGX SDK Installer which could be downloaded from: https://software.intel.com/en-us/sgx-sdk/download and followed Installation Guide in the same page to finish installation.", "        3) enter the commmand: \"make psw\"", "     3. If you want to build other targets, please also follow README.md in same directory", "make -C sdk/ clean", "make[1]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk'", "make -C tlibc/                              clean", "make[2]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/tlibc'", "make[2]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/tlibc'", "make -C tlibthread/                         clean", "make[2]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/tlibthread'", "make[2]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/tlibthread'", "make -C compiler-rt/                        clean", "make[2]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/compiler-rt'", "make[2]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/compiler-rt'", "make -C cpprt                               clean", "make[2]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/cpprt'", "make[2]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/cpprt'", "make -C tlibcxx/                            clean", "make[2]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/tlibcxx'", "make[2]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/tlibcxx'", "make -C tseal/linux/                        clean", "make[2]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/tseal/linux'", "make[2]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/tseal/linux'", "make -C selib/linux/                        clean", "make[2]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/selib/linux'", "make[2]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/selib/linux'", "make -C trts/                               clean", "make[2]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/trts'", "make -C linux clean", "make[3]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/trts/linux'", "make[3]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/trts/linux'", "make[2]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/trts'", "make -C tsetjmp/                            clean", "make[2]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/tsetjmp'", "make[2]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/tsetjmp'", "make -C tsafecrt/                           clean", "make[2]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/tsafecrt'", "make[2]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/tsafecrt'", "make -C gperftools/                         clean", "make[2]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/gperftools'", "make[2]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/gperftools'", "make -C tlibcrypto/                         clean", "make[2]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/tlibcrypto'", "make[2]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/tlibcrypto'", "make -C tkey_exchange/                      clean", "make[2]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/tkey_exchange'", "make -C /opt/intel/linux-sgx_2.9.1/sdk/edger8r/linux clean", "make[3]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/edger8r/linux'", "", "Finished, 0 targets (0 cached) in 00:00:00.\u001b[K", "", "00:00:00 0    (0   ) STARTING                                        -------- |\u001b[Kmake[3]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/edger8r/linux'", "make[2]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/tkey_exchange'", "make -C ukey_exchange/                      clean", "make[2]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/ukey_exchange'", "make[2]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/ukey_exchange'", "make -C protected_fs/sgx_tprotected_fs/     clean", "make[2]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/protected_fs/sgx_tprotected_fs'", "make -C /opt/intel/linux-sgx_2.9.1/sdk/edger8r/linux clean", "make[3]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/edger8r/linux'", "", "Finished, 0 targets (0 cached) in 00:00:00.\u001b[K", "", "00:00:00 0    (0   ) STARTING                                        -------- |\u001b[Kmake[3]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/edger8r/linux'", "make[2]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/protected_fs/sgx_tprotected_fs'", "make -C protected_fs/sgx_uprotected_fs/     clean", "make[2]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/protected_fs/sgx_uprotected_fs'", "make -C /opt/intel/linux-sgx_2.9.1/sdk/edger8r/linux clean", "make[3]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/edger8r/linux'", "", "Finished, 0 targets (0 cached) in 00:00:00.\u001b[K", "", "00:00:00 0    (0   ) STARTING                                        -------- |\u001b[Kmake[3]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/edger8r/linux'", "make[2]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/protected_fs/sgx_uprotected_fs'", "make -C debugger_interface/linux/           clean", "make[2]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/debugger_interface/linux'", "make[2]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/debugger_interface/linux'", "make -C sample_libcrypto/                   clean", "make[2]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/sample_libcrypto'", "make[2]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/sample_libcrypto'", "make -C libcapable/linux/                   clean", "make[2]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/libcapable/linux'", "make[2]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/libcapable/linux'", "make -C simulation/                         clean", "make[2]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation'", "make -C assembly clean", "make[3]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/assembly'", "make -C linux clean", "make[4]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/assembly/linux'", "make[4]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/assembly/linux'", "make[3]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/assembly'", "make -C uinst clean", "make[3]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/uinst'", "make -C linux clean", "make[4]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/uinst/linux'", "make[4]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/uinst/linux'", "make[3]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/uinst'", "make -C tinst clean", "make[3]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/tinst'", "make[3]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/tinst'", "make -C driver_api clean", "make[3]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/driver_api'", "make[3]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/driver_api'", "make -C uae_service_sim/linux clean", "make[3]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/uae_service_sim/linux'", "make[3]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/uae_service_sim/linux'", "make -C urtssim clean", "make[3]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/urtssim'", "make -C linux clean", "make[4]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/urtssim/linux'", "make -C /opt/intel/linux-sgx_2.9.1/common/se_wrapper                                    clean", "make[5]: Entering directory '/opt/intel/linux-sgx_2.9.1/common/se_wrapper'", "make[5]: Leaving directory '/opt/intel/linux-sgx_2.9.1/common/se_wrapper'", "make -C /opt/intel/linux-sgx_2.9.1/sdk/simulation/driver_api/                                      clean", "make[5]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/driver_api'", "make[5]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/driver_api'", "make -C /opt/intel/linux-sgx_2.9.1/sdk/simulation/assembly/                                        clean", "make[5]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/assembly'", "make -C linux clean", "make[6]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/assembly/linux'", "make[6]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/assembly/linux'", "make[5]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/assembly'", "make -C /opt/intel/linux-sgx_2.9.1/sdk/simulation/uinst/                                           clean", "make[5]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/uinst'", "make -C linux clean", "make[6]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/uinst/linux'", "make[6]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/uinst/linux'", "make[5]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/uinst'", "make -C /opt/intel/linux-sgx_2.9.1/sdk/simulation/uae_service_sim/linux                            clean", "make[5]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/uae_service_sim/linux'", "make[5]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/uae_service_sim/linux'", "make -C /opt/intel/linux-sgx_2.9.1/external/vtune/linux/sdk/src/ittnotify/                             clean", "make[5]: Entering directory '/opt/intel/linux-sgx_2.9.1/external/vtune/linux/sdk/src/ittnotify'", "make[5]: Leaving directory '/opt/intel/linux-sgx_2.9.1/external/vtune/linux/sdk/src/ittnotify'", "make[4]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/urtssim/linux'", "make[3]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/urtssim'", "make -C trtssim clean", "make[3]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/trtssim'", "make -C linux clean", "make[4]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/trtssim/linux'", "make[4]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/trtssim/linux'", "make[3]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/trtssim'", "make -C SEConfigureCPUSVN/linux clean", "make[3]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/SEConfigureCPUSVN/linux'", "make -C /opt/intel/linux-sgx_2.9.1/common/se_wrapper clean", "make[4]: Entering directory '/opt/intel/linux-sgx_2.9.1/common/se_wrapper'", "make[4]: Leaving directory '/opt/intel/linux-sgx_2.9.1/common/se_wrapper'", "make[3]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/SEConfigureCPUSVN/linux'", "make -C tservice_sim clean", "make[3]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/tservice_sim'", "make -C /opt/intel/linux-sgx_2.9.1/sdk/ec_dh_lib clean", "make[4]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/ec_dh_lib'", "make[4]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/ec_dh_lib'", "make -C /opt/intel/linux-sgx_2.9.1/sdk/tseal/linux clean", "make[4]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/tseal/linux'", "make[4]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/tseal/linux'", "make -C /opt/intel/linux-sgx_2.9.1/sdk/selib/linux    clean", "make[4]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/selib/linux'", "make[4]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/selib/linux'", "make[3]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation/tservice_sim'", "make[2]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/simulation'", "make -C sign_tool/SignTool                  clean", "make[2]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/sign_tool/SignTool'", "rm -f *~ *.o sgx_sign /opt/intel/linux-sgx_2.9.1/build/linux/sgx_sign", "make -C /opt/intel/linux-sgx_2.9.1/psw/urts/parser/ clean", "make[3]: Entering directory '/opt/intel/linux-sgx_2.9.1/psw/urts/parser'", "rm -f *~ elf32parser.o elf64parser.o parserfactory.o section.o libenclaveparser.a", "make[3]: Leaving directory '/opt/intel/linux-sgx_2.9.1/psw/urts/parser'", "make[2]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/sign_tool/SignTool'", "make -C edger8r/linux                       clean", "make[2]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/edger8r/linux'", "", "Finished, 0 targets (0 cached) in 00:00:00.\u001b[K", "", "00:00:00 0    (0   ) STARTING                                        -------- |\u001b[Kmake[2]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/edger8r/linux'", "make -C protected_code_loader               clean", "make[2]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/protected_code_loader'", "make[2]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/protected_code_loader'", "make -C encrypt_enclave                     clean", "make[2]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/encrypt_enclave'", "make[2]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/encrypt_enclave'", "make -C switchless/sgx_tswitchless          clean", "make[2]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/switchless/sgx_tswitchless'", "make[2]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/switchless/sgx_tswitchless'", "make -C switchless/sgx_uswitchless          clean", "make[2]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/switchless/sgx_uswitchless'", "make[2]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/switchless/sgx_uswitchless'", "make -C tmm_rsrv/                           clean", "make[2]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/tmm_rsrv'", "make[2]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/tmm_rsrv'", "make -C pthread                             clean", "make[2]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/pthread'", "make -C /opt/intel/linux-sgx_2.9.1/sdk/edger8r/linux clean", "make[3]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/edger8r/linux'", "", "Finished, 0 targets (0 cached) in 00:00:00.\u001b[K", "", "00:00:00 0    (0   ) STARTING                                        -------- |\u001b[Kmake[3]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/edger8r/linux'", "make[2]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/pthread'", "make -C /opt/intel/linux-sgx_2.9.1/external/openmp        clean", "make[2]: Entering directory '/opt/intel/linux-sgx_2.9.1/external/openmp'", "rm -f -rf openmp_code/final/build /opt/intel/linux-sgx_2.9.1/build/linux/libsgx_omp.a", "make[2]: Leaving directory '/opt/intel/linux-sgx_2.9.1/external/openmp'", "make[1]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk'", "make -C sdk/ MODE= MITIGATION-CVE-2020-0551=LOAD", "make[1]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk'", "make components", "make[2]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk'", "make -C tlibthread/", "make[3]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/tlibthread'", "g++ -c -Wnon-virtual-dtor -std=c++11 -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -UDEBUG -DNDEBUG -ffunction-sections -fdata-sections -Wall -Wextra -Winit-self -Wpointer-arith -Wreturn-type -Waddress -Wsequence-point -Wformat-security -Wmissing-include-dirs -Wfloat-equal -Wundef -Wshadow -Wcast-align -Wconversion -Wredundant-decls -DITT_ARCH_IA64 -ffreestanding -nostdinc -fvisibility=hidden -fpie -fno-strict-overflow -fno-delete-null-pointer-checks -mindirect-branch-register -mfunction-return=thunk-extern -fno-plt -Wa,-mlfence-after-load=yes -Wa,-mlfence-before-ret=not -nostdinc++ -Werror -fno-exceptions -fno-rtti -I/opt/intel/linux-sgx_2.9.1/common/inc/internal -I/opt/intel/linux-sgx_2.9.1/common/inc -I/opt/intel/linux-sgx_2.9.1/common/inc/tlibc -I/opt/intel/linux-sgx_2.9.1/common/../sdk/trts -I/opt/intel/linux-sgx_2.9.1/psw sethread_mutex.cpp -o sethread_mutex.o", "as: unrecognized option '-mlfence-after-load=yes'", "Makefile:55: recipe for target 'sethread_mutex.o' failed", "make[3]: *** [sethread_mutex.o] Error 1", "make[3]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk/tlibthread'", "Makefile.source:94: recipe for target 'tlibthread' failed", "make[2]: *** [tlibthread] Error 2", "make[2]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk'", "Makefile:50: recipe for target 'all' failed", "make[1]: *** [all] Error 2", "make[1]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk'", "Makefile:76: recipe for target 'sdk' failed", "make: *** [sdk] Error 2", "make: *** No rule to make target 'deb_pkg'.  Stop.", "HELLO WORLD", "send: spawn id exp4 not open", "    while executing", "\"send \"yes\\r\"\"", "", "\u001b[1mdpkg:\u001b[0m \u001b[1;31merror:\u001b[0m cannot access archive './libsgx-urts_*_amd64.deb': No such file or directory", "\u001b[1mdpkg:\u001b[0m \u001b[1;31merror:\u001b[0m cannot access archive './libsgx-enclave-common-dbgsym_*_amd64.ddeb': No such file or directory"]}
	to retry, use: --limit @/home/brenzi/encointer/intel_sgx_setup/site.retry

PLAY RECAP ********************************************************************************************************************************************************************************************************************************************************************
chainbrick                 : ok=35   changed=0    unreachable=0    failed=1   


"Makefile.source:94: recipe for target 'tlibthread' failed", 
"make[2]: *** [tlibthread] Error 2", "make[2]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk'", "Makefile:50: recipe for target 'all' failed", 
"make[1]: *** [all] Error 2", "make[1]: Leaving directory '/opt/intel/linux-sgx_2.9.1/sdk'", 
"Makefile:76: recipe for target 'sdk' failed", 
"make: *** [sdk] Error 2", 
"make: *** No rule to make target 'deb_pkg'.  Stop.", 
"HELLO WORLD", "send: spawn id exp4 not open", 
"    while executing", "\"send \"yes\\r\"\"", "", "\u001b[1mdpkg:\u001b[0m \u001b[1;31merror:\u001b[0m 
cannot access archive './libsgx-urts_*_amd64.deb': No such file or directory", "\u001b[1mdpkg:\u001b[0m \u001b[1;31merror:\u001b[0m 
cannot access archive './libsgx-enclave-common-dbgsym_*_amd64.deb': No such file or directory"]}

manually trying these steps fails too:

make[3]: Entering directory '/opt/intel/linux-sgx_2.9.1/sdk/tlibthread'
g++ -c -Wnon-virtual-dtor -std=c++11 -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -UDEBUG -DNDEBUG -ffunction-sections -fdata-sections -Wall -Wextra -Winit-self -Wpointer-arith -Wreturn-type -Waddress -Wsequence-point -Wformat-security -Wmissing-include-dirs -Wfloat-equal -Wundef -Wshadow -Wcast-align -Wconversion -Wredundant-decls -DITT_ARCH_IA64 -ffreestanding -nostdinc -fvisibility=hidden -fpie -fno-strict-overflow -fno-delete-null-pointer-checks -mindirect-branch-register -mfunction-return=thunk-extern -fno-plt -Wa,-mlfence-after-load=yes -Wa,-mlfence-before-ret=not -nostdinc++ -Werror -fno-exceptions -fno-rtti -I/opt/intel/linux-sgx_2.9.1/common/inc/internal -I/opt/intel/linux-sgx_2.9.1/common/inc -I/opt/intel/linux-sgx_2.9.1/common/inc/tlibc -I/opt/intel/linux-sgx_2.9.1/common/../sdk/trts -I/opt/intel/linux-sgx_2.9.1/psw sethread_mutex.cpp -o sethread_mutex.o
as: unrecognized option '-mlfence-after-load=yes'

it seems we need to add the following line:

sudo cp external/toolset/{current_distr}/{as,ld,ld.gold,objdump} /usr/local/bin

as described in the README last step of prerequisites

@brenzi
Copy link
Contributor Author

brenzi commented Aug 23, 2020

many things have changed...
here's my last state:

#!/bin/bash
sudo ./download_prebuilt.sh
sudo cp external/toolset/* /usr/local/bin
sudo make
sudo make sdk_install_pkg
sudo make deb_libsgx_urts
sudo make deb_libsgx_enclave_common
cd linux/installer/bin
exec_file=$(find . -type f -name sgx_linux_x64_sdk_*.bin -printf "%f\n" )
echo HELLO WORLD $exec_file

debug_out=$(expect -c "
spawn sudo ./$exec_file
expect \" :\"
send \"yes\r\";
interact;
")

cd ../deb

sudo dpkg -i  libsgx-enclave-common/libsgx-enclave-common_*_amd64.deb
sudo dpkg -i  libsgx-urts/libsgx-urts_*_amd64.deb 
sudo dpkg -i  libsgx-enclave-common/libsgx-enclave-common-dbgsym_*_amd64.ddeb

but that doesn't build all dependencies.... uae_service and its dependencies is missing

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants