DiamondLovesYou / rust-ppapi

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

Can't compile #2

Closed ghost closed 10 years ago

ghost commented 10 years ago

Hello, just updated your rust and nacl_sdk, but can't compile the "Hello World" program.

[manuel@Manuels-PC rust-pnacl-hello-world]$ python2env make SYSROOT=/home/manuel/dev/rust-pnacl/x86_64-unknown-linux-gnu/stage2/ NACL_SDK=/home/manuel/dev/nacl_sdk/pepper_canary/ serve
make -C /home/manuel/dev/rust-pnacl-hello-world/deps/ppapi               \
    RUSTC="/home/manuel/dev/rust-pnacl/x86_64-unknown-linux-gnu/stage2/bin/rustc"               \
    SYSROOT="/home/manuel/dev/rust-pnacl/x86_64-unknown-linux-gnu/stage2/"           \
    NACL_SDK="/home/manuel/dev/nacl_sdk/pepper_canary/"         \
    RUST_HTTP="/home/manuel/dev/rust-pnacl-hello-world/deps/http"       \
    RUST_OPENSSL="/home/manuel/dev/rust-pnacl-hello-world/deps/openssl" \
    BUILD_DIR="/home/manuel/dev/rust-pnacl-hello-world/build"
make[1]: Entering directory '/home/manuel/dev/rust-pnacl-hello-world/deps/ppapi'
mkdir -p build/obj
/home/manuel/dev/nacl_sdk/pepper_canary//toolchain/linux_pnacl/bin/pnacl-clang++ -I/home/manuel/dev/nacl_sdk/pepper_canary//include -I/home/manuel/dev/nacl_sdk/pepper_canary//include/pnacl -Os helper.cpp -c -o build/obj/helper.o
/home/manuel/dev/nacl_sdk/pepper_canary//toolchain/linux_pnacl/bin/pnacl-ar cr build/libhelper.a build/obj/helper.o
cd /home/manuel/dev/rust-pnacl-hello-world/deps/http; \
WITH_OPENSSL="/home/manuel/dev/rust-pnacl-hello-world/deps/openssl" ./configure
configure: OpenSSL specified, using it.
configure: writing Makefile
configure: done!
cd /home/manuel/dev/rust-pnacl-hello-world/deps/openssl; \
./configure
cd /home/manuel/dev/rust-pnacl-hello-world/deps/ppapi/deps/libressl-2.0.0; \
CC="/home/manuel/dev/nacl_sdk/pepper_canary//toolchain/linux_pnacl/bin/pnacl-clang" CXX="/home/manuel/dev/nacl_sdk/pepper_canary//toolchain/linux_pnacl/bin/pnacl-clang++" AR="/home/manuel/dev/nacl_sdk/pepper_canary//toolchain/linux_pnacl/bin/pnacl-ar" CFLAGS="-I/home/manuel/dev/nacl_sdk/pepper_canary//include -I/home/manuel/dev/nacl_sdk/pepper_canary//include/pnacl -Os -DNO_SYSLOG" CXXFLAGS="-I/home/manuel/dev/nacl_sdk/pepper_canary//include -I/home/manuel/dev/nacl_sdk/pepper_canary//include/pnacl -Os" ./configure --disable-shared --host=le32-unknown-nacl --without-pic
checking build system type... x86_64-unknown-linux-gnu
checking host system type... le32-unknown-nacl
checking target system type... le32-unknown-nacl
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for le32-unknown-nacl-strip... no
checking for strip... strip
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 make supports nested variables... (cached) yes
checking for le32-unknown-nacl-gcc... /home/manuel/dev/nacl_sdk/pepper_canary//toolchain/linux_pnacl/bin/pnacl-clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /home/manuel/dev/nacl_sdk/pepper_canary//toolchain/linux_pnacl/bin/pnacl-clang accepts -g... yes
checking for /home/manuel/dev/nacl_sdk/pepper_canary//toolchain/linux_pnacl/bin/pnacl-clang option to accept ISO C89... none needed
checking whether /home/manuel/dev/nacl_sdk/pepper_canary//toolchain/linux_pnacl/bin/pnacl-clang understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of /home/manuel/dev/nacl_sdk/pepper_canary//toolchain/linux_pnacl/bin/pnacl-clang... gcc3
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by /home/manuel/dev/nacl_sdk/pepper_canary//toolchain/linux_pnacl/bin/pnacl-clang... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... no
checking for le32-unknown-nacl-dumpbin... no
checking for le32-unknown-nacl-link... no
checking for dumpbin... no
checking for link... link -dump
configure: WARNING: using cross tools not prefixed with host triplet
checking the name lister (nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to le32-unknown-nacl format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for le32-unknown-nacl-objdump... no
checking for objdump... objdump
checking how to recognize dependent libraries... unknown
checking for le32-unknown-nacl-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for le32-unknown-nacl-ar... /home/manuel/dev/nacl_sdk/pepper_canary//toolchain/linux_pnacl/bin/pnacl-ar
checking for archiver @FILE support... @
checking for le32-unknown-nacl-strip... strip
checking for le32-unknown-nacl-ranlib... no
checking for ranlib... ranlib
checking command to parse nm output from /home/manuel/dev/nacl_sdk/pepper_canary//toolchain/linux_pnacl/bin/pnacl-clang object... failed
checking for sysroot... no
checking for le32-unknown-nacl-mt... no
checking for mt... no
checking if : is a manifest tool... no
checking how to run the C preprocessor... /home/manuel/dev/nacl_sdk/pepper_canary//toolchain/linux_pnacl/bin/pnacl-clang -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... no
checking for objdir... .libs
checking if /home/manuel/dev/nacl_sdk/pepper_canary//toolchain/linux_pnacl/bin/pnacl-clang supports -fno-rtti -fno-exceptions... yes
checking for /home/manuel/dev/nacl_sdk/pepper_canary//toolchain/linux_pnacl/bin/pnacl-clang option to produce PIC... -fPIC -DPIC
checking if /home/manuel/dev/nacl_sdk/pepper_canary//toolchain/linux_pnacl/bin/pnacl-clang PIC flag -fPIC -DPIC works... yes
checking if /home/manuel/dev/nacl_sdk/pepper_canary//toolchain/linux_pnacl/bin/pnacl-clang static flag -static works... yes
checking if /home/manuel/dev/nacl_sdk/pepper_canary//toolchain/linux_pnacl/bin/pnacl-clang supports -c -o file.o... yes
checking if /home/manuel/dev/nacl_sdk/pepper_canary//toolchain/linux_pnacl/bin/pnacl-clang supports -c -o file.o... (cached) yes
checking whether the /home/manuel/dev/nacl_sdk/pepper_canary//toolchain/linux_pnacl/bin/pnacl-clang linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... no
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... no
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for /home/manuel/dev/nacl_sdk/pepper_canary//toolchain/linux_pnacl/bin/pnacl-clang option to accept ISO C99... none needed
checking for /home/manuel/dev/nacl_sdk/pepper_canary//toolchain/linux_pnacl/bin/pnacl-clang option to accept ISO Standard C... (cached) none needed
checking for strlcpy... no
checking for strlcat... no
checking for reallocarray... no
checking for timingsafe_bcmp... no
checking for timingsafe_memcmp... no
checking for arc4random_buf... no
checking for getentropy... no
checking for issetugid... yes
checking for library containing write... none required
checking for strtonum... no
checking for getauxval... no
checking for funopen... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating include/Makefile
config.status: creating include/openssl/Makefile
config.status: creating ssl/Makefile
config.status: creating crypto/Makefile
config.status: creating tests/Makefile
config.status: creating apps/Makefile
config.status: creating man/Makefile
config.status: executing depfiles commands
config.status: executing libtool commands
make -C /home/manuel/dev/rust-pnacl-hello-world/deps/ppapi/deps/libressl-2.0.0/ssl    && cp /home/manuel/dev/rust-pnacl-hello-world/deps/ppapi/deps/libressl-2.0.0/ssl/.libs/libssl.a /home/manuel/dev/rust-pnacl-hello-world/build
make[2]: Entering directory '/home/manuel/dev/rust-pnacl-hello-world/deps/ppapi/deps/libressl-2.0.0/ssl'
  CC       libssl_la-bio_ssl.lo
  CC       libssl_la-d1_both.lo
  CC       libssl_la-d1_clnt.lo
  CC       libssl_la-d1_enc.lo
  CC       libssl_la-d1_lib.lo
  CC       libssl_la-d1_meth.lo
  CC       libssl_la-d1_pkt.lo
  CC       libssl_la-d1_srtp.lo
  CC       libssl_la-d1_srvr.lo
  CC       libssl_la-pqueue.lo
  CC       libssl_la-s23_clnt.lo
  CC       libssl_la-s23_lib.lo
  CC       libssl_la-s23_meth.lo
  CC       libssl_la-s23_pkt.lo
  CC       libssl_la-s23_srvr.lo
  CC       libssl_la-s3_both.lo
  CC       libssl_la-s3_cbc.lo
  CC       libssl_la-s3_clnt.lo
  CC       libssl_la-s3_enc.lo
  CC       libssl_la-s3_lib.lo
  CC       libssl_la-s3_meth.lo
  CC       libssl_la-s3_pkt.lo
  CC       libssl_la-s3_srvr.lo
  CC       libssl_la-ssl_algs.lo
  CC       libssl_la-ssl_asn1.lo
  CC       libssl_la-ssl_cert.lo
  CC       libssl_la-ssl_ciph.lo
  CC       libssl_la-ssl_err.lo
  CC       libssl_la-ssl_err2.lo
  CC       libssl_la-ssl_lib.lo
  CC       libssl_la-ssl_rsa.lo
  CC       libssl_la-ssl_sess.lo
  CC       libssl_la-ssl_stat.lo
  CC       libssl_la-ssl_txt.lo
  CC       libssl_la-t1_clnt.lo
  CC       libssl_la-t1_enc.lo
  CC       libssl_la-t1_lib.lo
  CC       libssl_la-t1_meth.lo
  CC       libssl_la-t1_reneg.lo
  CC       libssl_la-t1_srvr.lo
  CCLD     libssl.la
/home/manuel/dev/nacl_sdk/pepper_canary/toolchain/linux_pnacl/host_x86_32/bin/le32-nacl-ar: `u' modifier ignored since `D' is the default (see `U')
../libtool: line 1082: 19701 Segmentation fault      ranlib .libs/libssl.a
Makefile:427: recipe for target 'libssl.la' failed
make[2]: *** [libssl.la] Error 139
make[2]: Leaving directory '/home/manuel/dev/rust-pnacl-hello-world/deps/ppapi/deps/libressl-2.0.0/ssl'
Makefile:90: recipe for target 'deps/libressl.stamp' failed
make[1]: *** [deps/libressl.stamp] Error 2
make[1]: Leaving directory '/home/manuel/dev/rust-pnacl-hello-world/deps/ppapi'
Makefile:86: recipe for target 'deps/ppapi.stamp' failed
make: *** [deps/ppapi.stamp] Error 2
[manuel@Manuels-PC rust-pnacl-hello-world]$ less Makefile 
[manuel@Manuels-PC rust-pnacl-hello-world]$ python2env make SYSROOT=/home/manuel/dev/rust-pnacl/x86_64-unknown-linux-gnu/stage2/ NACL_SDK=/home/manuel/dev/nacl_sdk/pepper_canary/ serve^C
[manuel@Manuels-PC rust-pnacl-hello-world]$ less Makefile 
[manuel@Manuels-PC rust-pnacl-hello-world]$ python2env make SYSROOT=/home/manuel/dev/rust-pnacl/x86_64-unknown-linux-gnu/stage2/ NACL_SDK=/home/manuel/dev/nacl_sdk/pepper_canary/ serve
make -C /home/manuel/dev/rust-pnacl-hello-world/deps/ppapi               \
    RUSTC="/home/manuel/dev/rust-pnacl/x86_64-unknown-linux-gnu/stage2/bin/rustc"               \
    SYSROOT="/home/manuel/dev/rust-pnacl/x86_64-unknown-linux-gnu/stage2/"           \
    NACL_SDK="/home/manuel/dev/nacl_sdk/pepper_canary/"         \
    RUST_HTTP="/home/manuel/dev/rust-pnacl-hello-world/deps/http"       \
    RUST_OPENSSL="/home/manuel/dev/rust-pnacl-hello-world/deps/openssl" \
    BUILD_DIR="/home/manuel/dev/rust-pnacl-hello-world/build"
make[1]: Entering directory '/home/manuel/dev/rust-pnacl-hello-world/deps/ppapi'
cd /home/manuel/dev/rust-pnacl-hello-world/deps/ppapi/deps/libressl-2.0.0; \
CC="/home/manuel/dev/nacl_sdk/pepper_canary//toolchain/linux_pnacl/bin/pnacl-clang" CXX="/home/manuel/dev/nacl_sdk/pepper_canary//toolchain/linux_pnacl/bin/pnacl-clang++" AR="/home/manuel/dev/nacl_sdk/pepper_canary//toolchain/linux_pnacl/bin/pnacl-ar" CFLAGS="-I/home/manuel/dev/nacl_sdk/pepper_canary//include -I/home/manuel/dev/nacl_sdk/pepper_canary//include/pnacl -Os -DNO_SYSLOG" CXXFLAGS="-I/home/manuel/dev/nacl_sdk/pepper_canary//include -I/home/manuel/dev/nacl_sdk/pepper_canary//include/pnacl -Os" ./configure --disable-shared --host=le32-unknown-nacl --without-pic
checking build system type... x86_64-unknown-linux-gnu
checking host system type... le32-unknown-nacl
checking target system type... le32-unknown-nacl
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for le32-unknown-nacl-strip... no
checking for strip... strip
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 make supports nested variables... (cached) yes
checking for le32-unknown-nacl-gcc... /home/manuel/dev/nacl_sdk/pepper_canary//toolchain/linux_pnacl/bin/pnacl-clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /home/manuel/dev/nacl_sdk/pepper_canary//toolchain/linux_pnacl/bin/pnacl-clang accepts -g... yes
checking for /home/manuel/dev/nacl_sdk/pepper_canary//toolchain/linux_pnacl/bin/pnacl-clang option to accept ISO C89... none needed
checking whether /home/manuel/dev/nacl_sdk/pepper_canary//toolchain/linux_pnacl/bin/pnacl-clang understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of /home/manuel/dev/nacl_sdk/pepper_canary//toolchain/linux_pnacl/bin/pnacl-clang... gcc3
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by /home/manuel/dev/nacl_sdk/pepper_canary//toolchain/linux_pnacl/bin/pnacl-clang... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... no
checking for le32-unknown-nacl-dumpbin... no
checking for le32-unknown-nacl-link... no
checking for dumpbin... no
checking for link... link -dump
configure: WARNING: using cross tools not prefixed with host triplet
checking the name lister (nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to le32-unknown-nacl format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for le32-unknown-nacl-objdump... no
checking for objdump... objdump
checking how to recognize dependent libraries... unknown
checking for le32-unknown-nacl-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for le32-unknown-nacl-ar... /home/manuel/dev/nacl_sdk/pepper_canary//toolchain/linux_pnacl/bin/pnacl-ar
checking for archiver @FILE support... @
checking for le32-unknown-nacl-strip... strip
checking for le32-unknown-nacl-ranlib... no
checking for ranlib... ranlib
checking command to parse nm output from /home/manuel/dev/nacl_sdk/pepper_canary//toolchain/linux_pnacl/bin/pnacl-clang object... failed
checking for sysroot... no
checking for le32-unknown-nacl-mt... no
checking for mt... no
checking if : is a manifest tool... no
checking how to run the C preprocessor... /home/manuel/dev/nacl_sdk/pepper_canary//toolchain/linux_pnacl/bin/pnacl-clang -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... no
checking for objdir... .libs
checking if /home/manuel/dev/nacl_sdk/pepper_canary//toolchain/linux_pnacl/bin/pnacl-clang supports -fno-rtti -fno-exceptions... yes
checking for /home/manuel/dev/nacl_sdk/pepper_canary//toolchain/linux_pnacl/bin/pnacl-clang option to produce PIC... -fPIC -DPIC
checking if /home/manuel/dev/nacl_sdk/pepper_canary//toolchain/linux_pnacl/bin/pnacl-clang PIC flag -fPIC -DPIC works... yes
checking if /home/manuel/dev/nacl_sdk/pepper_canary//toolchain/linux_pnacl/bin/pnacl-clang static flag -static works... yes
checking if /home/manuel/dev/nacl_sdk/pepper_canary//toolchain/linux_pnacl/bin/pnacl-clang supports -c -o file.o... yes
checking if /home/manuel/dev/nacl_sdk/pepper_canary//toolchain/linux_pnacl/bin/pnacl-clang supports -c -o file.o... (cached) yes
checking whether the /home/manuel/dev/nacl_sdk/pepper_canary//toolchain/linux_pnacl/bin/pnacl-clang linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... no
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... no
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for /home/manuel/dev/nacl_sdk/pepper_canary//toolchain/linux_pnacl/bin/pnacl-clang option to accept ISO C99... none needed
checking for /home/manuel/dev/nacl_sdk/pepper_canary//toolchain/linux_pnacl/bin/pnacl-clang option to accept ISO Standard C... (cached) none needed
checking for strlcpy... no
checking for strlcat... no
checking for reallocarray... no
checking for timingsafe_bcmp... no
checking for timingsafe_memcmp... no
checking for arc4random_buf... no
checking for getentropy... no
checking for issetugid... yes
checking for library containing write... none required
checking for strtonum... no
checking for getauxval... no
checking for funopen... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating include/Makefile
config.status: creating include/openssl/Makefile
config.status: creating ssl/Makefile
config.status: creating crypto/Makefile
config.status: creating tests/Makefile
config.status: creating apps/Makefile
config.status: creating man/Makefile
config.status: executing depfiles commands
config.status: executing libtool commands
make -C /home/manuel/dev/rust-pnacl-hello-world/deps/ppapi/deps/libressl-2.0.0/ssl    && cp /home/manuel/dev/rust-pnacl-hello-world/deps/ppapi/deps/libressl-2.0.0/ssl/.libs/libssl.a /home/manuel/dev/rust-pnacl-hello-world/build
make[2]: Entering directory '/home/manuel/dev/rust-pnacl-hello-world/deps/ppapi/deps/libressl-2.0.0/ssl'
  CCLD     libssl.la
/home/manuel/dev/nacl_sdk/pepper_canary/toolchain/linux_pnacl/host_x86_32/bin/le32-nacl-ar: `u' modifier ignored since `D' is the default (see `U')
../libtool: line 1082: 21963 Segmentation fault      ranlib .libs/libssl.a
Makefile:427: recipe for target 'libssl.la' failed
make[2]: *** [libssl.la] Error 139
make[2]: Leaving directory '/home/manuel/dev/rust-pnacl-hello-world/deps/ppapi/deps/libressl-2.0.0/ssl'
Makefile:90: recipe for target 'deps/libressl.stamp' failed
make[1]: *** [deps/libressl.stamp] Error 2
make[1]: Leaving directory '/home/manuel/dev/rust-pnacl-hello-world/deps/ppapi'
Makefile:86: recipe for target 'deps/ppapi.stamp' failed
make: *** [deps/ppapi.stamp] Error 2
[manuel@Manuels-PC rust-pnacl-hello-world]$ 

Do you know what I'm doing wrong?

DiamondLovesYou commented 10 years ago

I assume you're still using Arch Linux?

ghost commented 10 years ago

Sure :-) Can i test something or post some logs?

DiamondLovesYou commented 10 years ago

To be honest, this seems to be a SDK bug, from a quick glance. For example, what are those segfaults?

I've started the Rust build on my Arch VM, so as soon as that's done I'll have a machine I can reproduce the bug with.

DiamondLovesYou commented 10 years ago

@maun: Could you do a pull and try the build locally again?

ghost commented 10 years ago

Basically the same error, did a fresh checkout of rust-ppapi, but did not update rust previously.

[manuel@Manuels-PC rust-ppapi]$ git submodule update --init
Submodule 'deps/rust-http' (https://github.com/chris-morgan/rust-http.git) registered for path 'deps/rust-http'
Submodule 'deps/rust-openssl' (https://github.com/sfackler/rust-openssl.git) registered for path 'deps/rust-openssl'
Cloning into 'deps/rust-http'...
remote: Counting objects: 3510, done.
remote: Compressing objects: 100% (55/55), done.
remote: Total 3510 (delta 25), reused 18 (delta 9)
Receiving objects: 100% (3510/3510), 875.65 KiB | 653.00 KiB/s, done.
Resolving deltas: 100% (1973/1973), done.
Checking connectivity... done.
Submodule path 'deps/rust-http': checked out '59052ae120750a7ae9277c88f11b4c993edef4fd'
Cloning into 'deps/rust-openssl'...
remote: Counting objects: 976, done.
remote: Total 976 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (976/976), 209.28 KiB | 0 bytes/s, done.
Resolving deltas: 100% (572/572), done.
Checking connectivity... done.
Submodule path 'deps/rust-openssl': checked out 'ee1abc61182cf2a943737b14d5d7afa2210825ce'
[manuel@Manuels-PC rust-ppapi]$ python2env make SYSROOT=~/dev/rust-pnacl/x86_64-unknown-linux-gnu/stage2/ NACL_SDK=~/dev/nacl_sdk/pepper_canary/
cd /home/manuel/dev/rust-ppapi/deps/rust-http; \
WITH_OPENSSL="/home/manuel/dev/rust-ppapi/deps/rust-openssl" ./configure
configure: OpenSSL specified, using it.
configure: writing Makefile
configure: done!
cd /home/manuel/dev/rust-ppapi/deps/rust-openssl; \
./configure
cd /home/manuel/dev/rust-ppapi/deps/libressl-2.0.0; \
CC="/home/manuel/dev/nacl_sdk/pepper_canary/toolchain/linux_pnacl/bin/pnacl-clang" CXX="/home/manuel/dev/nacl_sdk/pepper_canary/toolchain/linux_pnacl/bin/pnacl-clang++" AR="/home/manuel/dev/nacl_sdk/pepper_canary/toolchain/linux_pnacl/bin/pnacl-ar" CFLAGS="-I/home/manuel/dev/nacl_sdk/pepper_canary//include -I/home/manuel/dev/nacl_sdk/pepper_canary//include/pnacl -Os -DNO_SYSLOG" CXXFLAGS="-I/home/manuel/dev/nacl_sdk/pepper_canary//include -I/home/manuel/dev/nacl_sdk/pepper_canary//include/pnacl -Os" ./configure --disable-shared --host=le32-unknown-nacl --without-pic
checking build system type... x86_64-unknown-linux-gnu
checking host system type... le32-unknown-nacl
checking target system type... le32-unknown-nacl
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for le32-unknown-nacl-strip... no
checking for strip... strip
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 make supports nested variables... (cached) yes
checking for le32-unknown-nacl-gcc... /home/manuel/dev/nacl_sdk/pepper_canary/toolchain/linux_pnacl/bin/pnacl-clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /home/manuel/dev/nacl_sdk/pepper_canary/toolchain/linux_pnacl/bin/pnacl-clang accepts -g... yes
checking for /home/manuel/dev/nacl_sdk/pepper_canary/toolchain/linux_pnacl/bin/pnacl-clang option to accept ISO C89... none needed
checking whether /home/manuel/dev/nacl_sdk/pepper_canary/toolchain/linux_pnacl/bin/pnacl-clang understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of /home/manuel/dev/nacl_sdk/pepper_canary/toolchain/linux_pnacl/bin/pnacl-clang... gcc3
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by /home/manuel/dev/nacl_sdk/pepper_canary/toolchain/linux_pnacl/bin/pnacl-clang... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... no
checking for le32-unknown-nacl-dumpbin... no
checking for le32-unknown-nacl-link... no
checking for dumpbin... no
checking for link... link -dump
configure: WARNING: using cross tools not prefixed with host triplet
checking the name lister (nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to le32-unknown-nacl format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for le32-unknown-nacl-objdump... no
checking for objdump... objdump
checking how to recognize dependent libraries... unknown
checking for le32-unknown-nacl-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for le32-unknown-nacl-ar... /home/manuel/dev/nacl_sdk/pepper_canary/toolchain/linux_pnacl/bin/pnacl-ar
checking for archiver @FILE support... @
checking for le32-unknown-nacl-strip... strip
checking for le32-unknown-nacl-ranlib... no
checking for ranlib... ranlib
checking command to parse nm output from /home/manuel/dev/nacl_sdk/pepper_canary/toolchain/linux_pnacl/bin/pnacl-clang object... failed
checking for sysroot... no
checking for le32-unknown-nacl-mt... no
checking for mt... no
checking if : is a manifest tool... no
checking how to run the C preprocessor... /home/manuel/dev/nacl_sdk/pepper_canary/toolchain/linux_pnacl/bin/pnacl-clang -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... no
checking for objdir... .libs
checking if /home/manuel/dev/nacl_sdk/pepper_canary/toolchain/linux_pnacl/bin/pnacl-clang supports -fno-rtti -fno-exceptions... yes
checking for /home/manuel/dev/nacl_sdk/pepper_canary/toolchain/linux_pnacl/bin/pnacl-clang option to produce PIC... -fPIC -DPIC
checking if /home/manuel/dev/nacl_sdk/pepper_canary/toolchain/linux_pnacl/bin/pnacl-clang PIC flag -fPIC -DPIC works... yes
checking if /home/manuel/dev/nacl_sdk/pepper_canary/toolchain/linux_pnacl/bin/pnacl-clang static flag -static works... yes
checking if /home/manuel/dev/nacl_sdk/pepper_canary/toolchain/linux_pnacl/bin/pnacl-clang supports -c -o file.o... yes
checking if /home/manuel/dev/nacl_sdk/pepper_canary/toolchain/linux_pnacl/bin/pnacl-clang supports -c -o file.o... (cached) yes
checking whether the /home/manuel/dev/nacl_sdk/pepper_canary/toolchain/linux_pnacl/bin/pnacl-clang linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... no
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... no
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for /home/manuel/dev/nacl_sdk/pepper_canary/toolchain/linux_pnacl/bin/pnacl-clang option to accept ISO C99... none needed
checking for /home/manuel/dev/nacl_sdk/pepper_canary/toolchain/linux_pnacl/bin/pnacl-clang option to accept ISO Standard C... (cached) none needed
checking for strlcpy... no
checking for strlcat... no
checking for reallocarray... no
checking for timingsafe_bcmp... no
checking for timingsafe_memcmp... no
checking for arc4random_buf... no
checking for getentropy... no
checking for issetugid... yes
checking for library containing write... none required
checking for strtonum... no
checking for getauxval... no
checking for funopen... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating include/Makefile
config.status: creating include/openssl/Makefile
config.status: creating ssl/Makefile
config.status: creating crypto/Makefile
config.status: creating tests/Makefile
config.status: creating apps/Makefile
config.status: creating man/Makefile
config.status: executing depfiles commands
config.status: executing libtool commands
echo "#/bin/sh" > /home/manuel/dev/rust-ppapi/deps/libressl-2.0.0/config.status
make -C /home/manuel/dev/rust-ppapi/deps/libressl-2.0.0/ssl    && cp /home/manuel/dev/rust-ppapi/deps/libressl-2.0.0/ssl/.libs/libssl.a /home/manuel/dev/rust-ppapi/build
make[1]: Entering directory '/home/manuel/dev/rust-ppapi/deps/libressl-2.0.0/ssl'
cd .. && make  am--refresh
make[2]: Entering directory '/home/manuel/dev/rust-ppapi/deps/libressl-2.0.0'
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /home/manuel/dev/rust-ppapi/deps/libressl-2.0.0/missing aclocal-1.14 -I m4
 cd . && /bin/sh /home/manuel/dev/rust-ppapi/deps/libressl-2.0.0/missing automake-1.14 --gnu
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /home/manuel/dev/rust-ppapi/deps/libressl-2.0.0/missing autoconf
/bin/sh ./config.status --recheck
 /bin/sh ./config.status
make[2]: Leaving directory '/home/manuel/dev/rust-ppapi/deps/libressl-2.0.0'
make[2]: Entering directory '/home/manuel/dev/rust-ppapi/deps/libressl-2.0.0'
/bin/sh ./config.status --recheck
 /bin/sh ./config.status
make[2]: Leaving directory '/home/manuel/dev/rust-ppapi/deps/libressl-2.0.0'
cd .. && make  am--refresh
make[2]: Entering directory '/home/manuel/dev/rust-ppapi/deps/libressl-2.0.0'
/bin/sh ./config.status --recheck
 /bin/sh ./config.status
make[2]: Leaving directory '/home/manuel/dev/rust-ppapi/deps/libressl-2.0.0'
make[2]: Entering directory '/home/manuel/dev/rust-ppapi/deps/libressl-2.0.0'
/bin/sh ./config.status --recheck
 /bin/sh ./config.status
make[2]: Leaving directory '/home/manuel/dev/rust-ppapi/deps/libressl-2.0.0'
  CC       libssl_la-bio_ssl.lo
  CC       libssl_la-d1_both.lo
  CC       libssl_la-d1_clnt.lo
  CC       libssl_la-d1_enc.lo
  CC       libssl_la-d1_lib.lo
  CC       libssl_la-d1_meth.lo
  CC       libssl_la-d1_pkt.lo
  CC       libssl_la-d1_srtp.lo
  CC       libssl_la-d1_srvr.lo
  CC       libssl_la-pqueue.lo
  CC       libssl_la-s23_clnt.lo
  CC       libssl_la-s23_lib.lo
  CC       libssl_la-s23_meth.lo
  CC       libssl_la-s23_pkt.lo
  CC       libssl_la-s23_srvr.lo
  CC       libssl_la-s3_both.lo
  CC       libssl_la-s3_cbc.lo
  CC       libssl_la-s3_clnt.lo
  CC       libssl_la-s3_enc.lo
  CC       libssl_la-s3_lib.lo
  CC       libssl_la-s3_meth.lo
  CC       libssl_la-s3_pkt.lo
  CC       libssl_la-s3_srvr.lo
  CC       libssl_la-ssl_algs.lo
  CC       libssl_la-ssl_asn1.lo
  CC       libssl_la-ssl_cert.lo
  CC       libssl_la-ssl_ciph.lo
  CC       libssl_la-ssl_err.lo
  CC       libssl_la-ssl_err2.lo
  CC       libssl_la-ssl_lib.lo
  CC       libssl_la-ssl_rsa.lo
  CC       libssl_la-ssl_sess.lo
  CC       libssl_la-ssl_stat.lo
  CC       libssl_la-ssl_txt.lo
  CC       libssl_la-t1_clnt.lo
  CC       libssl_la-t1_enc.lo
  CC       libssl_la-t1_lib.lo
  CC       libssl_la-t1_meth.lo
  CC       libssl_la-t1_reneg.lo
  CC       libssl_la-t1_srvr.lo
  CCLD     libssl.la
/home/manuel/dev/nacl_sdk/pepper_canary/toolchain/linux_pnacl/host_x86_32/bin/le32-nacl-ar: `u' modifier ignored since `D' is the default (see `U')
../libtool: line 1082: 16120 Segmentation fault      ranlib .libs/libssl.a
Makefile:427: recipe for target 'libssl.la' failed
make[1]: *** [libssl.la] Error 139
make[1]: Leaving directory '/home/manuel/dev/rust-ppapi/deps/libressl-2.0.0/ssl'
Makefile:94: recipe for target 'deps/libressl.stamp' failed
make: *** [deps/libressl.stamp] Error 2

The python2env call just makes that the first "python" in the path is python2 instead of 3

DiamondLovesYou commented 10 years ago

@maun: Is pepper_canary up-to-date?

ghost commented 10 years ago

It wasn't, I reinstalled it, freshly cloned the repos(also rust), but still get the same error.

Rust:

python2env ./configure --target=le32-unknown-nacl --nacl-cross-path=~/dev/nacl_sdk/pepper_canary/
python2env make

rust-ppapi:

git submodule update --init
python2env make SYSROOT=~/dev/rust-pnacl/x86_64-unknown-linux-gnu/stage2/ NACL_SDK=~/dev/nacl_sdk/pepper_canary/

...

/bin/sh ./config.status --recheck
 /bin/sh ./config.status
make[2]: Leaving directory '/home/manuel/dev/rust-ppapi/deps/libressl-2.0.0'
  CC       libssl_la-bio_ssl.lo
  CC       libssl_la-d1_both.lo
  CC       libssl_la-d1_clnt.lo
  CC       libssl_la-d1_enc.lo
  CC       libssl_la-d1_lib.lo
  CC       libssl_la-d1_meth.lo
  CC       libssl_la-d1_pkt.lo
  CC       libssl_la-d1_srtp.lo
  CC       libssl_la-d1_srvr.lo
  CC       libssl_la-pqueue.lo
  CC       libssl_la-s23_clnt.lo
  CC       libssl_la-s23_lib.lo
  CC       libssl_la-s23_meth.lo
  CC       libssl_la-s23_pkt.lo
  CC       libssl_la-s23_srvr.lo
  CC       libssl_la-s3_both.lo
  CC       libssl_la-s3_cbc.lo
  CC       libssl_la-s3_clnt.lo
  CC       libssl_la-s3_enc.lo
  CC       libssl_la-s3_lib.lo
  CC       libssl_la-s3_meth.lo
  CC       libssl_la-s3_pkt.lo
  CC       libssl_la-s3_srvr.lo
  CC       libssl_la-ssl_algs.lo
  CC       libssl_la-ssl_asn1.lo
  CC       libssl_la-ssl_cert.lo
  CC       libssl_la-ssl_ciph.lo
  CC       libssl_la-ssl_err.lo
  CC       libssl_la-ssl_err2.lo
  CC       libssl_la-ssl_lib.lo
  CC       libssl_la-ssl_rsa.lo
  CC       libssl_la-ssl_sess.lo
  CC       libssl_la-ssl_stat.lo
  CC       libssl_la-ssl_txt.lo
  CC       libssl_la-t1_clnt.lo
  CC       libssl_la-t1_enc.lo
  CC       libssl_la-t1_lib.lo
  CC       libssl_la-t1_meth.lo
  CC       libssl_la-t1_reneg.lo
  CC       libssl_la-t1_srvr.lo
  CCLD     libssl.la
/home/manuel/dev/nacl_sdk/pepper_canary/toolchain/linux_pnacl/host_x86_32/bin/le32-nacl-ar: `u' modifier ignored since `D' is the default (see `U')
../libtool: line 1082: 15162 Segmentation fault      ranlib .libs/libssl.a
Makefile:427: recipe for target 'libssl.la' failed
make[1]: *** [libssl.la] Error 139
make[1]: Leaving directory '/home/manuel/dev/rust-ppapi/deps/libressl-2.0.0/ssl'
Makefile:94: recipe for target 'deps/libressl.stamp' failed
make: *** [deps/libressl.stamp] Error 2
DiamondLovesYou commented 10 years ago

@maun Could you pull and try again?

ghost commented 10 years ago

Great, after also hitting issue #3 the Hello World example works. Thank you