| 18 | To help others, here's what worked: |
| 19 | {{{ |
| 20 | $ cabal v2-configure --with-ghc /usr/local/bin/ghc --with-gcc /opt/local/bin/clang --with-ld /opt/local/bin/clang --ld-option "/usr/lib/libiconv.dylib" --ghc-option "/usr/lib/libiconv.dylib" |
| 21 | 'cabal.project.local' file already exists. Now overwriting it. |
| 22 | Resolving dependencies... |
| 23 | Build profile: -w ghc-8.6.3 -O1 |
| 24 | In order, the following would be built (use -v for more details): |
| 25 | - StateVar-1.1.1.1 (lib) (requires build) |
| 26 | . . . . . |
| 27 | - profunctors-5.3 (lib) (requires build) |
| 28 | - saltine-0.1.1.0 (lib) (first run) |
| 29 | - saltine-0.1.1.0 (test:tests) (first run) |
| 30 | $ cabal v2-test --with-ghc /usr/local/bin/ghc --with-gcc /opt/local/bin/clang --with-ld /opt/local/bin/clang --ld-option "/usr/lib/libiconv.dylib" --ghc-option "/usr/lib/libiconv.dylib" |
| 31 | Resolving dependencies... |
| 32 | Build profile: -w ghc-8.6.3 -O1 |
| 33 | In order, the following will be built (use -v for more details): |
| 34 | - StateVar-1.1.1.1 (lib) (requires build) |
| 35 | . . . . . |
| 36 | Linking /Users/uri/src/saltine/dist-newstyle/build/x86_64-osx/ghc-8.6.3/saltine-0.1.1.0/t/tests/build/tests/tests ... |
| 37 | Running 1 test suites... |
| 38 | Test suite tests: RUNNING... |
| 39 | ...Internal.Box: |
| 40 | Can decrypt ciphertext using...: |
| 41 | ... public key/secret key: [OK, passed 20000 tests] |
| 42 | ... combined key: [OK, passed 20000 tests] |
| 43 | . . . . . |
| 44 | matches test vector for shared secret from bob's view: [OK, passed 1 tests] |
| 45 | |
| 46 | Properties Total |
| 47 | Passed 52 52 |
| 48 | Failed 0 0 |
| 49 | Total 52 52 |
| 50 | |
| 51 | Test suite tests: PASS |
| 52 | }}} |
| 53 | |
| 54 | Here's what didn't: |
| 55 | {{{ |
| 56 | $ /usr/local/bin/ghc -V |
| 57 | The Glorious Glasgow Haskell Compilation System, version 8.6.3 |
| 58 | $ cabal v2-configure --with-ghc /usr/local/bin/ghc --with-ld /opt/local/bin/clang --ld-option "/usr/lib/libiconv.dylib" |
| 59 | Resolving dependencies... |
| 60 | Build profile: -w ghc-8.6.3 -O1 |
| 61 | In order, the following would be built (use -v for more details): |
| 62 | - StateVar-1.1.1.1 (lib) (requires build) |
| 63 | . . . . . |
| 64 | $ cabal v2-test --with-ghc /usr/local/bin/ghc --with-ld /opt/local/bin/clang --ld-option "/usr/lib/libiconv.dylib" |
| 65 | Build profile: -w ghc-8.6.3 -O1 |
| 66 | In order, the following will be built (use -v for more details): |
| 67 | - StateVar-1.1.1.1 (lib) (requires build) |
| 68 | . . . . . |
| 69 | Completed tf-random-0.5 (lib) |
| 70 | cabal: Failed to build distributive-0.6 (which is required by test:tests from |
| 71 | saltine-0.1.1.0). The failure occurred during the configure step. The |
| 72 | exception was: |
| 73 | dieVerbatim: user error (cabal: '/usr/local/bin/ghc' exited with an error: |
| 74 | Undefined symbols for architecture x86_64: |
| 75 | "_iconv", referenced from: |
| 76 | _hs_iconv in libHSbase-4.12.0.0.a(iconv.o) |
| 77 | (maybe you meant: _base_GHCziIOziEncodingziIconv_iconvEncoding1_info, |
| 78 | _base_GHCziIOziEncodingziIconv_iconvEncoding7_closure , |
| 79 | _base_GHCziIOziEncodingziIconv_iconvEncoding15_closure , |
| 80 | _base_GHCziIOziEncodingziIconv_iconvEncoding4_info , |
| 81 | _base_GHCziIOziEncodingziIconv_iconvEncoding7_info , |
| 82 | _base_GHCziIOziEncodingziIconv_iconvEncoding6_closure , |
| 83 | _base_GHCziIOziEncodingziIconv_iconvEncoding6_info , _hs_iconv , |
| 84 | _base_GHCziIOziEncodingziIconv_iconvEncoding5_closure , |
| 85 | _base_GHCziIOziEncodingziIconv_iconvEncoding14_bytes , |
| 86 | _base_GHCziIOziEncodingziIconv_iconvEncoding8_closure , |
| 87 | _base_GHCziIOziEncodingziIconv_iconvEncoding8_info , _hs_iconv_open , |
| 88 | _base_GHCziIOziEncodingziIconv_iconvEncoding9_closure , _hs_iconv_close , |
| 89 | _base_GHCziIOziEncodingziIconv_iconvEncoding9_info , |
| 90 | _base_GHCziIOziEncodingziIconv_iconvEncoding11_info , |
| 91 | _base_GHCziIOziEncodingziIconv_iconvEncoding12_info , |
| 92 | _base_GHCziIOziEncodingziIconv_iconvEncoding15_info , |
| 93 | _base_GHCziIOziEncodingziIconv_iconvEncoding13_closure , |
| 94 | _base_GHCziIOziEncodingziIconv_iconvEncoding4_closure , |
| 95 | _base_GHCziIOziEncodingziIconv_iconvEncoding3_closure , |
| 96 | _base_GHCziIOziEncodingziIconv_iconvEncoding1_closure , |
| 97 | _base_GHCziIOziEncodingziIconv_iconvEncoding12_closure , |
| 98 | _base_GHCziIOziEncodingziIconv_iconvEncoding10_bytes , |
| 99 | _base_GHCziIOziEncodingziIconv_iconvEncoding2_info , |
| 100 | _base_GHCziIOziEncodingziIconv_iconvEncoding13_info , |
| 101 | _base_GHCziIOziEncodingziIconv_iconvEncoding11_closure , |
| 102 | _base_GHCziIOziEncodingziIconv_iconvEncoding2_closure , |
| 103 | _base_GHCziIOziEncodingziIconv_iconvEncoding_closure , |
| 104 | _base_GHCziIOziEncodingziIconv_iconvEncoding_info ) |
| 105 | "_iconv_open", referenced from: |
| 106 | _hs_iconv_open in libHSbase-4.12.0.0.a(iconv.o) |
| 107 | (maybe you meant: _hs_iconv_open) |
| 108 | "_iconv_close", referenced from: |
| 109 | _hs_iconv_close in libHSbase-4.12.0.0.a(iconv.o) |
| 110 | (maybe you meant: _hs_iconv_close) |
| 111 | "_locale_charset", referenced from: |
| 112 | _localeEncoding in libHSbase-4.12.0.0.a(PrelIOUtils.o) |
| 113 | ld: symbol(s) not found for architecture x86_64 |
| 114 | collect2: error: ld returned 1 exit status |
| 115 | `gcc' failed in phase `Linker'. (Exit code: 1) |
| 116 | ) |
| 117 | }}} |