File: Building_Android_app_fails.mdwn

package info (click to toggle)
git-annex 6.20170101-1%2Bdeb9u2
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 50,088 kB
  • sloc: haskell: 53,116; sh: 1,582; ansic: 341; makefile: 292; perl: 144
file content (69 lines) | stat: -rw-r--r-- 2,604 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
When trying to build the Android app, I'm able to successfully set up the chroot, and enter it. Once I am inside, as the user "builder" I get a failure on the second step of the installation process "In the chroot, run standalone/android/install-haskell-packages".

When I run this command, I get the following error:

    cbits/cryptonite_rdrand.c: In function ‘cryptonite_get_rand_bytes’:
    
    cbits/cryptonite_rdrand.c:63:2:
         error: inconsistent operand constraints in an ‘asm’
          asm(".byte 0x48,0x0f,0xc7,0xf0; setc %1" \
          ^
    
    cbits/cryptonite_rdrand.c:78:3:
         note: in expansion of macro ‘inline_rdrand_rax’
           inline_rdrand_rax(tmp, ok);
           ^
    
    cbits/cryptonite_rdrand.c:63:2:
         error: inconsistent operand constraints in an ‘asm’
          asm(".byte 0x48,0x0f,0xc7,0xf0; setc %1" \
          ^
    
    cbits/cryptonite_rdrand.c:87:3:
         note: in expansion of macro ‘inline_rdrand_rax’
           inline_rdrand_rax(tmp, ok);
           ^
    
    cbits/cryptonite_rdrand.c:63:2:
         error: inconsistent operand constraints in an ‘asm’
          asm(".byte 0x48,0x0f,0xc7,0xf0; setc %1" \
          ^
    
    cbits/cryptonite_rdrand.c:87:3:
         note: in expansion of macro ‘inline_rdrand_rax’
           inline_rdrand_rax(tmp, ok);
           ^
    
    cbits/cryptonite_rdrand.c:63:2:
         error: inconsistent operand constraints in an ‘asm’
          asm(".byte 0x48,0x0f,0xc7,0xf0; setc %1" \
          ^
    
    cbits/cryptonite_rdrand.c:94:3:
         note: in expansion of macro ‘inline_rdrand_rax’
           inline_rdrand_rax(tmp, ok);
           ^
    cabal: Error: some packages failed to install:
    cryptonite-0.16 failed during the building phase. The exception was:
    ExitFailure 1

So, there is a problem with building the haskell package "cryptonite-0.16".

I also get this output a little further up:

    Failed to install cryptonite-0.16
    Build log ( /home/builder/.cabal/logs/cryptonite-0.16.log ):
    Warning: cryptonite.cabal: Unknown fields: extra-doc-files (line 37)
    Fields allowed in this section:
    name, version, cabal-version, build-type, license, license-file,
    copyright, maintainer, build-depends, stability, homepage,
    package-url, bug-reports, synopsis, description, category, author,
    tested-with, data-files, data-dir, extra-source-files,
    extra-tmp-files

So perhaps that is helpful as well.


If anyone has any guidance on how to move beyond this or what needs to be changed, I'd appreciate it!

Thanks!