/usr/include/openssl/e_os2.h:56:33:致命错误:openssl / opensslconf.h:没有这样的文件或目录

时间:2018-12-16 10:13:57

标签: raspberry-pi cross-compiling rust-cargo

我正在尝试从ubuntu到树莓派交叉编译锈迹。

我的货物配置。

[target.arm-unknown-linux-gnueabihf]
linker = "/home/ymoharaza/build-rpi/tools/arm-bcm2708/arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc"
rustflags = [
"-sysroot", "/home/ymoharaza/build-rpi/tools/arm-bcm2708/arm-linux-gnueabihf/arm-linux-gnueabihf/sysroot"]

我的构建命令

export PKG_CONFIG_ALLOW_CROSS=1 && export PKG_CONFIG_PATH=/home/ymoharaza/build-rpi/tools/arm-bcm2708/arm-linux-gnueabihf/arm-linux-gnueabihf/sysroot/usr/lib/arm-linux-gnueabihf/pkgconfig && RUSTFLAGS='-L /usr/lib/arm-linux-gnueabihf' cargo build --target=arm-unknown-linux-gnueabihf" 

错误消息

  

运行/home/ymoharaza/devo/marvin/workspace/marvin/rust/marwin_template_pi_zero/target/debug/build/openssl-da22848e9003b256/build-script-build   错误:无法为openssl-sys-extras v0.7.14进程运行自定义构建命令,未成功退出:   /home/ymoharaza/devo/marvin/workspace/marvin/rust/marwin_template_pi_zero/target/debug/build/openssl-sys-extras-61b4dab89f674b0d/build-script-build   (出口代码:101)   --- stdout TARGET = Some(“ arm-unknown-linux-gnueabihf”)OPT_LEVEL = Some(“ 0”)TARGET = Some(“ arm-unknown-linux-gnueabihf”)HOST =   Some(“ x86_64-unknown-linux-gnu”)TARGET =   Some(“ arm-unknown-linux-gnueabihf”)TARGET =   Some(“ arm-unknown-linux-gnueabihf”)主机=   Some(“ x86_64-unknown-linux-gnu”)CC_arm-unknown-linux-gnueabihf =无   CC_arm_unknown_linux_gnueabihf =无TARGET_CC =无CC =无HOST   = Some(“ x86_64-unknown-linux-gnu”)CROSS_COMPILE = None TARGET = Some(“ arm-unknown-linux-gnueabihf”)主机=   Some(“ x86_64-unknown-linux-gnu”)CFLAGS_arm-unknown-linux-gnueabihf =   无CFLAGS_arm_unknown_linux_gnueabihf =无TARGET_CFLAGS =无   CFLAGS = None调试= Some(“ true”)正在运行:“ arm-linux-gnueabihf-gcc”   “ -O0”“ -ffunction-sections”“ -fdata-sections”“ -fPIC”“ -g”   “ -march = armv6”“ -marm”“ -Wall”“ -Wextra”“ -o”   “ /home/ymoharaza/devo/marvin/workspace/marvin/rust/marwin_template_pi_zero/target/arm-unknown-linux-gnueabihf/debug/build/openssl-sys-extras-e7c64cef1c3d5134/out/src/openssl_shim.o“   “ -c”“ src / openssl_shim.c”货物:警告=包含在以下文件中   src / openssl_shim.c:1:0:   cargo:警告= / usr / include / openssl / hmac.h:61:34:致命错误:   openssl / opensslconf.h:没有这样的文件或目录   cargo:警告=编译终止。退出代码:1

     

--- stderr线程'main'惊慌于'

     

发生内部错误:命令“ arm-linux-gnueabihf-gcc”“-O0”   “ -ffunction-sections”“ -fdata-sections”“ -fPIC”“ -g”“ -march = armv6”   “ -marm”“ -Wall”“ -Wextra”“ -o”   “ /home/ymoharaza/devo/marvin/workspace/marvin/rust/marwin_template_pi_zero/target/arm-unknown-linux-gnueabihf/debug/build/openssl-sys-extras-e7c64cef1c3d5134/out/src/openssl_shim.o“   带有参数“ arm-linux-gnueabihf-gcc”的“ -c”“ src / openssl_shim.c”没有   成功执行(状态码退出码:1)。

     

',   /home/ymoharaza/.cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.3.55/src/lib.rs:1672:5   注意:使用RUST_BACKTRACE=1环境变量运行以显示一个   回溯。

     

警告:构建失败,正在等待其他作业完成...错误:   无法为openssl v0.7.14进程运行自定义构建命令   没有成功退出:   /home/ymoharaza/devo/marvin/workspace/marvin/rust/marwin_template_pi_zero/target/debug/build/openssl-da22848e9003b256/build-script-build   (出口代码:101)   --- stdout TARGET = Some(“ arm-unknown-linux-gnueabihf”)OPT_LEVEL = Some(“ 0”)TARGET = Some(“ arm-unknown-linux-gnueabihf”)HOST =   Some(“ x86_64-unknown-linux-gnu”)TARGET =   Some(“ arm-unknown-linux-gnueabihf”)TARGET =   Some(“ arm-unknown-linux-gnueabihf”)主机=   Some(“ x86_64-unknown-linux-gnu”)CC_arm-unknown-linux-gnueabihf =无   CC_arm_unknown_linux_gnueabihf =无TARGET_CC =无CC =无HOST   = Some(“ x86_64-unknown-linux-gnu”)CROSS_COMPILE = None TARGET = Some(“ arm-unknown-linux-gnueabihf”)主机=   Some(“ x86_64-unknown-linux-gnu”)CFLAGS_arm-unknown-linux-gnueabihf =   无CFLAGS_arm_unknown_linux_gnueabihf =无TARGET_CFLAGS =无   CFLAGS = None调试= Some(“ true”)正在运行:“ arm-linux-gnueabihf-gcc”   “ -O0”“ -ffunction-sections”“ -fdata-sections”“ -fPIC”“ -g”   “ -march = armv6”“ -marm”“ -Wall”“ -Wextra”“ -o”   “ /home/ymoharaza/devo/marvin/workspace/marvin/rust/marwin_template_pi_zero/target/arm-unknown-linux-gnueabihf/debug/build/openssl-f67d7c0311e903d2/out/src/c_helpers.o”   “ -c”“ src / c_helpers.c” cargo:warning =包含在以下文件中   /usr/include/openssl/ssl.h:146:0,cargo:warning=来自   src / c_helpers.c:1:cargo:warning = / usr / include / openssl / e_os2.h:56:33:   致命错误:openssl / opensslconf.h:没有此类文件或目录   cargo:警告=编译终止。退出代码:1

     

--- stderr线程'main'惊慌于'

     

发生内部错误:命令“ arm-linux-gnueabihf-gcc”“-O0”   “ -ffunction-sections”“ -fdata-sections”“ -fPIC”“ -g”“ -march = armv6”   “ -marm”“ -Wall”“ -Wextra”“ -o”   “ /home/ymoharaza/devo/marvin/workspace/marvin/rust/marwin_template_pi_zero/target/arm-unknown-linux-gnueabihf/debug/build/openssl-f67d7c0311e903d2/out/src/c_helpers.o”   带有参数“ arm-linux-gnueabihf-gcc”的“ -c”“ src / c_helpers.c”没有   成功执行(状态码退出码:1)。

     

',   /home/ymoharaza/.cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.3.55/src/lib.rs:1672:5   注意:使用RUST_BACKTRACE=1环境变量运行以显示一个   回溯。

问题:

  

编译器正在我的主机usr / include /中寻找包含文件,而不是   sysroots usr / include /

0 个答案:

没有答案