Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails for ring v0.14.3 on Ubuntu with macOS as target (nightly). #784

Closed
sverrejb opened this issue Feb 1, 2019 · 3 comments
Closed

Comments

@sverrejb
Copy link

sverrejb commented Feb 1, 2019

Building on Ubuntu 18.04, targeting macOS using nightly fails.

>cargo build --target x86_64-apple-darwin

   Compiling ring v0.14.3 (/home/spk.no/j27/workspace/div/rust/ring)
error: failed to run custom build command for `ring v0.14.3 (/home/spk.no/j27/workspace/div/rust/ring)`
process didn't exit successfully: `/home/spk.no/j27/workspace/div/rust/ring/target/debug/build/ring-730fa532d11a1b57/build-script-build` (exit code: 101)
--- stdout
CARGO: /home/spk.no/j27/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/cargo
CARGO_CFG_DEBUG_ASSERTIONS:
CARGO_CFG_PROC_MACRO:
CARGO_CFG_TARGET_ARCH: x86_64
CARGO_CFG_TARGET_ENDIAN: little
CARGO_CFG_TARGET_ENV:
CARGO_CFG_TARGET_FAMILY: unix
CARGO_CFG_TARGET_FEATURE: cmpxchg16b,fxsr,mmx,sse,sse2,sse3,ssse3
CARGO_CFG_TARGET_HAS_ATOMIC: 128,16,32,64,8,cas,ptr
CARGO_CFG_TARGET_OS: macos
CARGO_CFG_TARGET_POINTER_WIDTH: 64
CARGO_CFG_TARGET_THREAD_LOCAL:
CARGO_CFG_TARGET_VENDOR: apple
CARGO_CFG_UNIX:
CARGO_FEATURE_DEFAULT: 1
CARGO_FEATURE_DEV_URANDOM_FALLBACK: 1
CARGO_FEATURE_USE_HEAP: 1
CARGO_HOME: /home/spk.no/j27/.cargo
CARGO_MAKEFLAGS: --jobserver-fds=3,7 -j --jobserver-auth=3,7 -j
CARGO_MANIFEST_DIR: /home/spk.no/j27/workspace/div/rust/ring
CARGO_MANIFEST_LINKS: ring-asm
CARGO_PKG_AUTHORS: Brian Smith <brian@briansmith.org>
CARGO_PKG_DESCRIPTION: Safe, fast, small crypto using Rust.
CARGO_PKG_HOMEPAGE:
CARGO_PKG_NAME: ring
CARGO_PKG_REPOSITORY: https://github.com/briansmith/ring
CARGO_PKG_VERSION: 0.14.3
CARGO_PKG_VERSION_MAJOR: 0
CARGO_PKG_VERSION_MINOR: 14
CARGO_PKG_VERSION_PATCH: 3
CARGO_PKG_VERSION_PRE:
CLUTTER_IM_MODULE: xim
COLORTERM: truecolor
DBUS_SESSION_BUS_ADDRESS: unix:path=/run/user/137229332/bus
DEBUG: true
DEFAULTS_PATH: /usr/share/gconf/ubuntu.default.path
DESKTOP_AUTOSTART_ID: 10112b0a622d548f84154902064995220100000018960007
DESKTOP_SESSION: ubuntu
DISPLAY: :0
GDMSESSION: ubuntu
GNOME_DESKTOP_SESSION_ID: this-is-deprecated
GNOME_SHELL_SESSION_MODE: ubuntu
GNOME_TERMINAL_SCREEN: /org/gnome/Terminal/screen/86fa98b2_cb06_42c2_8e5a_bd17df987a3c
GNOME_TERMINAL_SERVICE: :1.66
GPG_AGENT_INFO: /run/user/137229332/gnupg/S.gpg-agent:0:1
GTK_IM_MODULE: ibus
GTK_MODULES: gail:atk-bridge
HOME: /home/spk.no/j27
HOST: x86_64-unknown-linux-gnu
IM_CONFIG_PHASE: 2
KRB5CCNAME: FILE:/tmp/krb5cc_137229332_k7oYss
LANG: en_US.UTF-8
LC_ADDRESS: nb_NO.UTF-8
LC_CTYPE: en_US.UTF-8
LC_IDENTIFICATION: nb_NO.UTF-8
LC_MEASUREMENT: nb_NO.UTF-8
LC_MONETARY: nb_NO.UTF-8
LC_NAME: nb_NO.UTF-8
LC_NUMERIC: nb_NO.UTF-8
LC_PAPER: nb_NO.UTF-8
LC_TELEPHONE: nb_NO.UTF-8
LC_TIME: nb_NO.UTF-8
LD_LIBRARY_PATH: /home/spk.no/j27/workspace/div/rust/ring/target/debug/deps:/home/spk.no/j27/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib:/home/spk.no/j27/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib
LESS: -R
LOGNAME: j27
LSCOLORS: Gxfxcxdxbxegedabagacad
LS_COLORS: rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
MANDATORY_PATH: /usr/share/gconf/ubuntu.mandatory.path
NUM_JOBS: 12
OLDPWD: /home/spk.no/j27/workspace/div/rust
OPT_LEVEL: 0
OUT_DIR: /home/spk.no/j27/workspace/div/rust/ring/target/x86_64-apple-darwin/debug/build/ring-bd98e157538d74ce/out
PAGER: less
PATH: /home/spk.no/j27/.cargo/bin:/home/spk.no/j27/.cargo/bin:/home/spk.no/j27/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
PROFILE: debug
PWD: /home/spk.no/j27/workspace/div/rust/ring
QT4_IM_MODULE: xim
QT_ACCESSIBILITY: 1
QT_IM_MODULE: xim
RUSTC: rustc
RUSTDOC: rustdoc
RUSTUP_HOME: /home/spk.no/j27/.rustup
RUSTUP_TOOLCHAIN: nightly-x86_64-unknown-linux-gnu
RUST_RECURSION_COUNT: 1
SESSION_MANAGER: local/spk0774:@/tmp/.ICE-unix/1896,unix/spk0774:/tmp/.ICE-unix/1896
SHELL: /usr/bin/zsh
SHLVL: 2
SPK_CONFIG_ROOT: /home/spk.no/j27/.spkconfig
SSH_AGENT_PID: 1992
SSH_AUTH_SOCK: /run/user/137229332/keyring/ssh
SSL_CERT_DIR: /usr/lib/ssl/certs
SSL_CERT_FILE: /usr/lib/ssl/certs/ca-certificates.crt
TARGET: x86_64-apple-darwin
TERM: screen-256color
TEXTDOMAIN: im-config
TEXTDOMAINDIR: /usr/share/locale/
TMUX: /tmp/tmux-137229332/default,5861,0
TMUX_PANE: %1
USER: j27
USERNAME: j27
VTE_VERSION: 5202
WINDOWPATH: 2
XAUTHORITY: /run/user/137229332/gdm/Xauthority
XDG_CONFIG_DIRS: /etc/xdg/xdg-ubuntu:/etc/xdg
XDG_CURRENT_DESKTOP: ubuntu:GNOME
XDG_DATA_DIRS: /usr/share/ubuntu:/usr/local/share:/usr/share:/var/lib/snapd/desktop
XDG_MENU_PREFIX: gnome-
XDG_RUNTIME_DIR: /run/user/137229332
XDG_SEAT: seat0
XDG_SESSION_DESKTOP: ubuntu
XDG_SESSION_ID: 2
XDG_SESSION_TYPE: x11
XDG_VTNR: 2
XMODIFIERS: @im=ibus
ZSH: /home/spk.no/j27/.oh-my-zsh
_: /home/spk.no/j27/.cargo/bin/cargo
running "perl" "crypto/fipsmodule/aes/asm/aes-x86_64.pl" "macosx" "/home/spk.no/j27/workspace/div/rust/ring/target/x86_64-apple-darwin/debug/build/ring-bd98e157538d74ce/out/aes-x86_64-macosx.S"
running "perl" "crypto/fipsmodule/aes/asm/aesni-x86_64.pl" "macosx" "/home/spk.no/j27/workspace/div/rust/ring/target/x86_64-apple-darwin/debug/build/ring-bd98e157538d74ce/out/aesni-x86_64-macosx.S"
running "perl" "crypto/fipsmodule/aes/asm/vpaes-x86_64.pl" "macosx" "/home/spk.no/j27/workspace/div/rust/ring/target/x86_64-apple-darwin/debug/build/ring-bd98e157538d74ce/out/vpaes-x86_64-macosx.S"
running "perl" "crypto/fipsmodule/bn/asm/x86_64-mont.pl" "macosx" "/home/spk.no/j27/workspace/div/rust/ring/target/x86_64-apple-darwin/debug/build/ring-bd98e157538d74ce/out/x86_64-mont-macosx.S"
running "perl" "crypto/fipsmodule/bn/asm/x86_64-mont5.pl" "macosx" "/home/spk.no/j27/workspace/div/rust/ring/target/x86_64-apple-darwin/debug/build/ring-bd98e157538d74ce/out/x86_64-mont5-macosx.S"
running "perl" "crypto/chacha/asm/chacha-x86_64.pl" "macosx" "/home/spk.no/j27/workspace/div/rust/ring/target/x86_64-apple-darwin/debug/build/ring-bd98e157538d74ce/out/chacha-x86_64-macosx.S"
running "perl" "crypto/fipsmodule/ec/asm/p256-x86_64-asm.pl" "macosx" "/home/spk.no/j27/workspace/div/rust/ring/target/x86_64-apple-darwin/debug/build/ring-bd98e157538d74ce/out/p256-x86_64-asm-macosx.S"
running "perl" "crypto/fipsmodule/modes/asm/aesni-gcm-x86_64.pl" "macosx" "/home/spk.no/j27/workspace/div/rust/ring/target/x86_64-apple-darwin/debug/build/ring-bd98e157538d74ce/out/aesni-gcm-x86_64-macosx.S"
running "perl" "crypto/fipsmodule/modes/asm/ghash-x86_64.pl" "macosx" "/home/spk.no/j27/workspace/div/rust/ring/target/x86_64-apple-darwin/debug/build/ring-bd98e157538d74ce/out/ghash-x86_64-macosx.S"
running "perl" "crypto/poly1305/asm/poly1305-x86_64.pl" "macosx" "/home/spk.no/j27/workspace/div/rust/ring/target/x86_64-apple-darwin/debug/build/ring-bd98e157538d74ce/out/poly1305-x86_64-macosx.S"
running "perl" "crypto/fipsmodule/sha/asm/sha512-x86_64.pl" "macosx" "/home/spk.no/j27/workspace/div/rust/ring/target/x86_64-apple-darwin/debug/build/ring-bd98e157538d74ce/out/sha512-x86_64-macosx.S"
running "perl" "crypto/fipsmodule/sha/asm/sha512-x86_64.pl" "macosx" "/home/spk.no/j27/workspace/div/rust/ring/target/x86_64-apple-darwin/debug/build/ring-bd98e157538d74ce/out/sha256-x86_64-macosx.S"
OPT_LEVEL = Some("0")
TARGET = Some("x86_64-apple-darwin")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-apple-darwin = None
CC_x86_64_apple_darwin = None
TARGET_CC = None
CC = None
CROSS_COMPILE = None
CFLAGS_x86_64-apple-darwin = None
CFLAGS_x86_64_apple_darwin = None
TARGET_CFLAGS = None
CFLAGS = None
DEBUG = Some("true")
running "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "include" "-Wall" "-Wextra" "-pedantic" "-pedantic-errors" "-Wall" "-Wextra" "-Wcast-align" "-Wcast-qual" "-Wconversion" "-Wenum-compare" "-Wfloat-equal" "-Wformat=2" "-Winline" "-Winvalid-pch" "-Wmissing-declarations" "-Wmissing-field-initializers" "-Wmissing-include-dirs" "-Wredundant-decls" "-Wshadow" "-Wsign-compare" "-Wsign-conversion" "-Wundef" "-Wuninitialized" "-Wwrite-strings" "-fno-strict-aliasing" "-fvisibility=hidden" "-fstack-protector" "-gfull" "-Werror" "-D_XOPEN_SOURCE=700" "-c" "-o/home/spk.no/j27/workspace/div/rust/ring/target/x86_64-apple-darwin/debug/build/ring-bd98e157538d74ce/out/aes-x86_64-macosx.o" "/home/spk.no/j27/workspace/div/rust/ring/target/x86_64-apple-darwin/debug/build/ring-bd98e157538d74ce/out/aes-x86_64-macosx.S"

--- stderr
cc: error: unrecognized debug output level ‘full’
thread 'main' panicked at 'execution failed', build.rs:643:9
note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
@sverrejb sverrejb changed the title Build fails for ring v0.13.5 on Ubuntu with macOS as target (nightly). Build fails for ring v0.14.3 on Ubuntu with macOS as target (nightly). Feb 1, 2019
@briansmith
Copy link
Owner

briansmith commented Feb 1, 2019

running "cc" "-O0" [...]

  1. Install clang.
  2. use TARGET_CC=clang cargo build --target x86_64-apple-darwin.

@briansmith
Copy link
Owner

Clsoing this on the assumption that the previous comment resolved the problem.

@michaelritsema
Copy link

Same error on macOS with a target=x86_64-pc-windows-gnu on nightly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants