ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

sgx sdk

2022-05-07 11:00:46  阅读:218  来源: 互联网

标签:sgx enable -- am Makefile 64 config sdk


config.log
@llly According to your advice, I have made some changes. Now the installation process is as follows, but there are new problems. (log file is attached)

  1. scl enable devtoolset-9 bash
    Using built-in specs.
    COLLECT_GCC=gcc
    COLLECT_LTO_WRAPPER=/opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/lto-wrapper
    Target: x86_64-redhat-linux
    Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,fortran,lto --prefix=/opt/rh/devtoolset-9/root/usr --mandir=/opt/rh/devtoolset-9/root/usr/share/man --infodir=/opt/rh/devtoolset-9/root/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --with-linker-hash-style=gnu --with-default-libstdcxx-abi=gcc4-compatible --enable-plugin --enable-initfini-array --with-isl=/builddir/build/BUILD/gcc-9.1.1-20190605/obj-x86_64-redhat-linux/isl-install --disable-libmpx --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux
    Thread model: posix
    gcc version 9.1.1 20190605 (Red Hat 9.1.1-2) (GCC)

  2. sudo yum groupinstall 'Development Tools' --setopt=group_package_types=mandatory,default,optional

  3. sudo yum install ocaml ocaml-ocamlbuild wget python2 openssl-devel git cmake perl 

  4. yum install autoconf automake libtool

  5. sudo yum update binutils

  6. sudo ./download_prebuilt.sh

  7. sudo cp external/toolset/{as,ld,ld.gold,objdump} /opt/rh/devtoolset-9/root/usr/bin

  8. which as ld ld.gold objdump
    /opt/rh/devtoolset-9/root/usr/bin/as
    /opt/rh/devtoolset-9/root/usr/bin/ld
    /opt/rh/devtoolset-9/root/usr/bin/ld.gold
    /opt/rh/devtoolset-9/root/usr/bin/objdump

  9. sudo make sdk
    aclocal: warning: couldn't open directory 'm4': No such file or directory
    autoreconf: configure.ac: tracing
    autoreconf: configure.ac: creating directory config
    autoreconf: running: libtoolize --copy --force
    libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, config'. libtoolize: copying file config/ltmain.sh'
    libtoolize: Consider adding AC_CONFIG_MACRO_DIR([m4])' to configure.ac and libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree. libtoolize: Consider adding -I m4' to ACLOCAL_AMFLAGS in Makefile.am.
    aclocal: warning: couldn't open directory 'm4': No such file or directory
    autoreconf: running: /usr/bin/autoconf --force
    autoreconf: running: /usr/bin/autoheader --force
    autoreconf: running: automake --add-missing --copy --force-missing
    configure.ac:22: installing 'config/ar-lib'
    configure.ac:25: installing 'config/compile'
    configure.ac:10: installing 'config/config.guess'
    configure.ac:10: installing 'config/config.sub'
    configure.ac:11: installing 'config/install-sh'
    configure.ac:11: installing 'config/missing'
    Makefile.am: installing './INSTALL'
    src/Makefile.am:366: warning: whitespace following trailing backslash
    src/Makefile.am:367: warning: whitespace following trailing backslash
    src/Makefile.am: installing 'config/depcomp'
    src/Makefile.am:160: warning: variable 'libunwind_dwarf_generic_la_SOURCES' is defined but no program or
    src/Makefile.am:160: library has 'libunwind_dwarf_generic_la' as canonical name (possible typo)
    src/Makefile.am:614: warning: variable 'libunwind_x86_64_la_SOURCES' is defined but no program or
    src/Makefile.am:614: library has 'libunwind_x86_64_la' as canonical name (possible typo)
    src/Makefile.am:616: warning: variable 'libunwind_x86_64_la_LIBADD' is defined but no program or
    src/Makefile.am:616: library has 'libunwind_x86_64_la' as canonical name (possible typo)
    src/Makefile.am:163: warning: variable 'libunwind_dwarf_generic_la_LIBADD' is defined but no program or
    src/Makefile.am:163: library has 'libunwind_dwarf_generic_la' as canonical name (possible typo)
    src/Makefile.am:615: warning: variable 'libunwind_x86_64_la_LDFLAGS' is defined but no program or
    src/Makefile.am:615: library has 'libunwind_x86_64_la' as canonical name (possible typo)
    parallel-tests: installing 'config/test-driver'
    autoreconf: Leaving directory .' checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknown-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether to enable maintainer-specific portions of Makefiles... no checking for gcc... gcc checking whether the C compiler works... no configure: error: in /home/pengfei/sgx/linux-sgx/sdk/cpprt/linux/libunwind':
    configure: error: C compiler cannot create executables
    See config.log' for more details sed: can't read include/config.h: No such file or directory make[3]: *** [libunwind] Error 2 make[3]: Leaving directory /home/pengfei/sgx/linux-sgx/sdk/cpprt'
    make[2]: *** [cpprt] Error 2
    make[2]: Leaving directory /home/pengfei/sgx/linux-sgx/sdk' make[1]: *** [all] Error 2 make[1]: Leaving directory /home/pengfei/sgx/linux-sgx/sdk'
    make: *** [sdk] Error 2

标签:sgx,enable,--,am,Makefile,64,config,sdk
来源: https://www.cnblogs.com/Janly/p/16241568.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有