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

Make endian cross-platform #161

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ulrikstrid
Copy link

No description provided.

This was referenced May 20, 2019
@XVilka
Copy link

XVilka commented Sep 15, 2019

On mirage-xen platform

- + ocamlfind ocamlc -g -ccopt '-DACCELERATE -mssse3 -maes -mpclmul' -ccopt '-isystem/home/travis/.opam/ocaml-base-compiler.4.04.2/lib/pkgconfig/../../include/minios-xen -isystem/home/travis/.opam/ocaml-base-compiler.4.04.2/lib/pkgconfig/../../include/minios-xen/posix -m64 -mno-red-zone -fno-reorder-blocks -fno-stack-protector -fno-asynchronous-unwind-tables -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/4.8/include -U__linux__ -U__FreeBSD__ -U__sun__ -U__linux -D__MINIOS__ -I/home/travis/.opam/ocaml-base-compiler.4.04.2/lib/pkgconfig/../../include/mirage-xen-ocaml/include -I/home/travis/.opam/ocaml-base-compiler.4.04.2/lib/pkgconfig/../../include/mirage-xen-posix/include -I/home/travis/.opam/ocaml-base-compiler.4.04.2/include -I/home/travis/.opam/ocaml-base-compiler.4.04.2/include/openlibm' -ccopt '-D_DEFAULT_SOURCE --std=c99 -Wall -Wextra -O3' -package 'bytes ocplib-endian cstruct' -c X/mirage-xen/src/native/hash/stubs.c
- In file included from X/mirage-xen/src/native/hash/../nocrypto.h:5:0,
-                  from X/mirage-xen/src/native/hash/stubs.c:1:
- X/mirage-xen/src/native/hash/../endian.h:120:3: error: #error platform not supported
-  # error platform not supported
-    ^
- Command exited with code 2.
- pkg.ml: [ERROR] cmd ['ocamlbuild' '-use-ocamlfind' '-classic-display' '-j' '4' '-tag' 'debug'
-      '-build-dir' '_build' '-plugin-tag' 'package(ocb-stubblr)' '-tag'
-      'accelerate' 'opam' 'pkg/META' 'CHANGES.md' 'LICENSE.md' 'README.md'
-      'src/dllnocrypto_stubs.so' 'src/libnocrypto_stubs.a' 'src/nocrypto.a'
-      'src/nocrypto.cmxs' 'src/nocrypto.cmxa' 'src/nocrypto.cma'
-      'src/nocrypto.cmx' 'src/nocrypto.cmi' 'src/nocrypto.mli'
-      'unix/nocrypto_unix.a' 'unix/nocrypto_unix.cmxs'
-      'unix/nocrypto_unix.cmxa' 'unix/nocrypto_unix.cma'
-      'unix/nocrypto_entropy_unix.cmx' 'unix/nocrypto_entropy_unix.cmi'
-      'unix/nocrypto_entropy_unix.mli'
-      'X/mirage-xen/src/libnocrypto_stubs+mirage-xen.a']: exited with 10
[ERROR] The compilation of nocrypto failed at
        "/home/travis/.opam/opam-init/hooks/sandbox.sh build ocaml pkg/pkg.ml
        build --pinned true --tests false --with-lwt false --xen true --mirage
        false --freestanding false".

#=== ERROR while compiling nocrypto.0.5.4-1 ===================================#
# context     2.0.3 | linux/x86_64 | ocaml-base-compiler.4.04.2 | pinned(file:///home/travis/build/mirleft/ocaml-nocrypto)
# path        ~/.opam/ocaml-base-compiler.4.04.2/.opam-switch/build/nocrypto.0.5.4-1
# command     ~/.opam/opam-init/hooks/sandbox.sh build ocaml pkg/pkg.ml build --pinned true --tests false --with-lwt false --xen true --mirage false --freestanding false
# exit-code   1
# env-file    ~/.opam/log/nocrypto-29106-58c514.env
# output-file ~/.opam/log/nocrypto-29106-58c514.out
### output ###
# [...]
# Command exited with code 2.
# pkg.ml: [ERROR] cmd ['ocamlbuild' '-use-ocamlfind' '-classic-display' '-j' '4' '-tag' 'debug'
#      '-build-dir' '_build' '-plugin-tag' 'package(ocb-stubblr)' '-tag'
#      'accelerate' 'opam' 'pkg/META' 'CHANGES.md' 'LICENSE.md' 'README.md'
#      'src/dllnocrypto_stubs.so' 'src/libnocrypto_stubs.a' 'src/nocrypto.a'
#      'src/nocrypto.cmxs' 'src/nocrypto.cmxa' 'src/nocrypto.cma'
#      'src/nocrypto.cmx' 'src/nocrypto.cmi' 'src/nocrypto.mli'
#      'unix/nocrypto_unix.a' 'unix/nocrypto_unix.cmxs'
#      'unix/nocrypto_unix.cmxa' 'unix/nocrypto_unix.cma'
#      'unix/nocrypto_entropy_unix.cmx' 'unix/nocrypto_entropy_unix.cmi'
#      'unix/nocrypto_entropy_unix.mli'
#      'X/mirage-xen/src/libnocrypto_stubs+mirage-xen.a']: exited with 10

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

Successfully merging this pull request may close these issues.

None yet

2 participants