hack0z / luject

🍹A static injector of dynamic library for application (android, iphoneos, macOS, windows, linux)
https://tboox.org
Apache License 2.0
324 stars 49 forks source link

xmake编译工程install lief报错 #8

Open a515642 opened 2 years ago

a515642 commented 2 years ago

描述问题

xmake编译工程报错

错误信息

=> install lief 0.11.5 .. failed

/root/.xmake/cache/packages/2206/l/lief/0.11.5/source/LIEF-0.11.5/build_5fd114f4/mbed_tls/src/lief_mbed_tls/library/aesni.c: In function ‘mbedtls_aesni_crypt_ecb’: /root/.xmake/cache/packages/2206/l/lief/0.11.5/source/LIEF-0.11.5/build_5fd114f4/mbed_tls/src/lief_mbed_tls/library/aesni.c:100:43: warning: C++ style comments are not allowed in ISO C90 [enabled by default] asm( "movdqu (%3), %xmm0 \n\t" // load input ^ /root/.xmake/cache/packages/2206/l/lief/0.11.5/source/LIEF-0.11.5/build_5fd114f4/mbed_tls/src/lief_mbed_tls/library/aesni.c:100:43: warning: (this will be reported only once per input file) [enabled by default] /root/.xmake/cache/packages/2206/l/lief/0.11.5/source/LIEF-0.11.5/build_5fd114f4/mbed_tls/src/lief_mbed_tls/library/aes.c: In function ‘mbedtls_aes_crypt_ecb’: /root/.xmake/cache/packages/2206/l/lief/0.11.5/source/LIEF-0.11.5/build_5fd114f4/mbed_tls/src/lief_mbed_tls/library/aes.c:1031:9: warning: C++ style comments are not allowed in ISO C90 [enabled by default] // If padlock data misaligned, we just fall back to ^ /root/.xmake/cache/packages/2206/l/lief/0.11.5/source/LIEF-0.11.5/build_5fd114f4/mbed_tls/src/lief_mbed_tls/library/aes.c:1031:9: warning: (this will be reported only once per input file) [enabled by default] /root/.xmake/cache/packages/2206/l/lief/0.11.5/source/LIEF-0.11.5/build_5fd114f4/mbed_tls/src/lief_mbed_tls/library/aesni.c: At top level: cc1: warning: unrecognized command line option "-Wno-expansion-to-defined" [enabled by default] /root/.xmake/cache/packages/2206/l/lief/0.11.5/source/LIEF-0.11.5/build_5fd114f4/mbed_tls/src/lief_mbed_tls/library/aria.c:205:37: warning: C++ style comments are not allowed in ISO C90 [enabled by default] ta = *b; // 4567 ^ /root/.xmake/cache/packages/2206/l/lief/0.11.5/source/LIEF-0.11.5/build_5fd114f4/mbed_tls/src/lief_mbed_tls/library/aria.c:205:37: warning: (this will be reported only once per input file) [enabled by default] cc1: warning: unrecognized command line option "-Wno-expansion-to-defined" [enabled by default] if you want to get more verbose errors, please see: -> /root/.xmake/cache/packages/2206/l/lief/0.11.5/installdir.failed/logs/install.txt error: install failed!

相关环境

ubuntu3.6.2 x86_64 xmake按照示例安装的2.5.9 xmake-v2.5.9.gz.run 安装完成后 cd ./luject-master 目录进行 xmake 工程编译

win系统也试过,也是执行到lief安装报错

请问是不是我操作有问题

请提供编译和运行环境

图片 信息。

其他信息

请提供其他附加信息帮助我们诊断问题。

waruqi commented 2 years ago

不要 root 下操作

waruqi commented 1 year ago

再试下

xrepo update-repo
xrepo remove --all -y libxmake
xmake f -c
xmake