Changes between Initial Version and Version 1 of Ticket #57821, comment 18


Ignore:
Timestamp:
Jan 6, 2019, 11:48:09 PM (6 years ago)
Author:
mouse07410 (Mouse)
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #57821, comment 18

    initial v1  
    1414\\
    1515An excellent advice. I don't understand why this would work, while the {{{-L/some/thing}}} doesn't, but apparently it seemed to work! Thank you, Joshua!
     16\\
    1617
     18To 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.
     22Resolving dependencies...
     23Build profile: -w ghc-8.6.3 -O1
     24In 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"
     31Resolving dependencies...
     32Build profile: -w ghc-8.6.3 -O1
     33In order, the following will be built (use -v for more details):
     34 - StateVar-1.1.1.1 (lib) (requires build)
     35. . . . .
     36Linking /Users/uri/src/saltine/dist-newstyle/build/x86_64-osx/ghc-8.6.3/saltine-0.1.1.0/t/tests/build/tests/tests ...
     37Running 1 test suites...
     38Test 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
     51Test suite tests: PASS
     52}}}
     53
     54Here's what didn't:
     55{{{
     56$ /usr/local/bin/ghc -V
     57The 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"
     59Resolving dependencies...
     60Build profile: -w ghc-8.6.3 -O1
     61In 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"
     65Build profile: -w ghc-8.6.3 -O1
     66In order, the following will be built (use -v for more details):
     67 - StateVar-1.1.1.1 (lib) (requires build)
     68. . . . .
     69Completed    tf-random-0.5 (lib)
     70cabal: Failed to build distributive-0.6 (which is required by test:tests from
     71saltine-0.1.1.0). The failure occurred during the configure step. The
     72exception was:
     73dieVerbatim: user error (cabal: '/usr/local/bin/ghc' exited with an error:
     74Undefined 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)
     113ld: symbol(s) not found for architecture x86_64
     114collect2: error: ld returned 1 exit status
     115`gcc' failed in phase `Linker'. (Exit code: 1)
     116)
     117}}}