DiamondLovesYou / rust-ppapi

Rust idiomatic bindings to the Pepper API.
Mozilla Public License 2.0
14 stars 0 forks source link

libcrypto_la-cpt_err.o: No such file or directory #3

Closed binji closed 9 years ago

binji commented 10 years ago

building at: rust-pnacl-hello-world:0030e0d02e4eeda9a2842b81b83ee07461eb0000 rust-ppapi:10158b73c79fa456893447041ac271e244e5cef7 pepper_38: Chrome Revision = 288723

I'm trying to build rust-pnacl-hello-world, but failing here:

$ make SYSROOT=<path>/rust-pnacl-hello-world/../rust-pnacl-bin NACL_SDK=~/dev/chromium/src/out/pepper_38
make -C <path>/rust-pnacl-hello-world/deps/ppapi               \
    RUSTC="<path>/rust-pnacl-bin/bin/rustc"               \
    SYSROOT="<path>/rust-pnacl-hello-world/../rust-pnacl-bin"           \
    NACL_SDK="<path>/dev/chromium/src/out/pepper_38"         \
    RUST_HTTP="<path>/rust-pnacl-hello-world/deps/http"       \
    RUST_OPENSSL="<path>/rust-pnacl-hello-world/deps/openssl" \
    BUILD_DIR="<path>/rust-pnacl-hello-world/build"       \
    USE_DEBUG=0
<...SNIP...>
<path>/chromium/src/out/pepper_38/toolchain/linux_pnacl/host_x86_32/bin/le32-nacl-ar: `u' modifier ignored since `D' is the default (see `U')
  CCLD     libcrypto.la
<path>/dev/chromium/src/out/pepper_38/toolchain/linux_pnacl/host_x86_32/bin/le32-nacl-ar: `u' modifier ignored since `D' is the default (see `U')
<path>/dev/chromium/src/out/pepper_38/toolchain/linux_pnacl/host_x86_32/bin/le32-nacl-ar: libcrypto_la-cpt_err.o: No such file or directory
make[2]: *** [libcrypto.la] Error 1

The only reference to this file is in deps/ppapi/deps/libressl-2.0.0/crypto/libcrypto_la-cpt_err.lo: non_pic_object='libcrypto_la-cpt_err.o'

I don't know autoconf well enough to understand why the object file isn't compiled here. Any ideas?

DiamondLovesYou commented 10 years ago

@binji: Try cleaning then build normally.

I have only the vaguest idea what's causing this, TBH. I get this error all the time in fresh checkouts and despite my best efforts, I haven't been able to fix it.

DiamondLovesYou commented 10 years ago

Also, your sysroot is actually incorrect. It'll be stage2 in [your host's triple] within the root of the build.

I'll update the readme.

binji commented 10 years ago

Cool, it seems to have succeded. :)

BTW, that sysroot directory was the directory I passed to --prefix. It seems like the contents are close (a "diff -r" between them seems to be mostly intermediate files)

DiamondLovesYou commented 10 years ago

Ah, well it still won't work when you try to create a bin (pexe). See https://github.com/DiamondLovesYou/rust/issues/5.