Skip to content
This repository has been archived by the owner on Oct 7, 2020. It is now read-only.

Build failed on MacOS with clang link error(ghc 8.4.4) #1058

Closed
Vonfry opened this issue Jan 16, 2019 · 7 comments
Closed

Build failed on MacOS with clang link error(ghc 8.4.4) #1058

Vonfry opened this issue Jan 16, 2019 · 7 comments
Milestone

Comments

@Vonfry
Copy link

Vonfry commented Jan 16, 2019

Build with command stack --system-ghc ./install.hs hie-8.4.4.

Error info:

  Undefined symbols for architecture x86_64:
      "_unorderedzmcontainerszm0zi2zi9zi0zmD29DBTdibk7GcEJszzMbIZZV_DataziHashSet_toList_info", referenced from:
          _c3tBV_info in All.o
      "_extrazm1zi6zi14zm52MBVmT2JI4ImaNP8nuEP7_SystemziIOziExtra_readFileEncodingzq1_info", referenced from:
          _s382O_info in Command.o
          _s383l_info in Command.o
      "_hashablezm1zi2zi7zi0zm3xR4vjMEYHR2eJ7DAZZRhaE_DataziHashableziClass_zdfHashableZMZNzuzdszdchash_closure", referenced from:
          _DevelopmentziShakeziInternalziRulesziDirectory_zdfHashableDoesFileExistQ_closure in Directory.o
          _DevelopmentziShakeziInternalziRulesziDirectory_zdfHashableDoesDirectoryExistQ_closure in Directory.o
          _DevelopmentziShakeziInternalziRulesziDirectory_zdfHashableGetEnvQ_closure in Directory.o
          _DevelopmentziShakeziInternalziRulesziDirectory_zdfHashableGetDirectoryContentsQ_closure in Directory.o
          _DevelopmentziShakeziInternalziRulesziDirectory_zdfHashableGetDirectoryDirsQ_closure in Directory.o
      "_extrazm1zi6zi14zm52MBVmT2JI4ImaNP8nuEP7_SystemziIOziExtra_newTempFile1_closure", referenced from:
          _DevelopmentziShakeziInternalziDerived_withTempFile2_closure in Derived.o
      "_extrazm1zi6zi14zm52MBVmT2JI4ImaNP8nuEP7_SystemziTimeziExtra_zdwtimeout_closure", referenced from:
          _S2FRa_srt in Run.o
      "_extrazm1zi6zi14zm52MBVmT2JI4ImaNP8nuEP7_ControlziConcurrentziExtra_withNumCapabilities1_closure", referenced from:
          _S2FRa_srt in Run.o
      "_extrazm1zi6zi14zm52MBVmT2JI4ImaNP8nuEP7_ControlziConcurrentziExtra_withNumCapabilities1_info", referenced from:
          _c2Fx8_info in Run.o
      "_hashablezm1zi2zi7zi0zm3xR4vjMEYHR2eJ7DAZZRhaE_DataziHashableziClass_zdfHashableZLZRzuzdchashWithSalt_closure", referenced from:
          _r1ZwQ_closure in Database.o
          _DevelopmentziShakeziInternalziRulesziRerun_zdfHashableAlwaysRerunQ_closure in Rerun.o
      "_extrazm1zi6zi14zm52MBVmT2JI4ImaNP8nuEP7_DataziTupleziExtra_thd3_info", referenced from:
          _s2cXT_info in Database.o
      "_extrazm1zi6zi14zm52MBVmT2JI4ImaNP8nuEP7_SystemziTimeziExtra_zdwshowDuration_closure", referenced from:
          _S1YQh_srt in Profile.o
          _S1Z80_srt in Profile.o
          _S1Zqa_srt in Profile.o
          _S2DO4_srt in Run.o
      "_extrazm1zi6zi14zm52MBVmT2JI4ImaNP8nuEP7_SystemziTimeziExtra_zdwshowDuration_info", referenced from:
          _c1YPC_info in Profile.o
          _c1Z6Y_info in Profile.o
          _c1ZgJ_info in Profile.o
          _c1Zk3_info in Profile.o
          _c2DLC_info in Run.o
      "_extrazm1zi6zi14zm52MBVmT2JI4ImaNP8nuEP7_ControlziExceptionziExtra_showException2_closure", referenced from:
          _S1WN8_srt in Storage.o
      "_extrazm1zi6zi14zm52MBVmT2JI4ImaNP8nuEP7_ControlziExceptionziExtra_showException2_info", referenced from:
          _c1Wgv_info in Storage.o
      "_extrazm1zi6zi14zm52MBVmT2JI4ImaNP8nuEP7_ControlziMonadziExtra_allM_info", referenced from:
          _DevelopmentziShakeziInternalziPaths_hasManualData_info in Paths.o
      "_extrazm1zi6zi14zm52MBVmT2JI4ImaNP8nuEP7_ControlziMonadziExtra_anyM_info", referenced from:
          _DevelopmentziShakeziInternalziPaths_hasManualData1_info in Paths.o
      "_extrazm1zi6zi14zm52MBVmT2JI4ImaNP8nuEP7_ControlziConcurrentziExtra_onceFork2_closure", referenced from:
          _c1mnv_info in Pool.o
          _S1mo7_srt in Pool.o
      "_unorderedzmcontainerszm0zi2zi9zi0zmD29DBTdibk7GcEJszzMbIZZV_DataziHashMapziBase_zdwsizze_info", referenced from:
          _c1m0A_info in Pool.o
          _c1lW3_info in Pool.o
          _c1Wld_info in Storage.o
      "_extrazm1zi6zi14zm52MBVmT2JI4ImaNP8nuEP7_SystemziTimeziExtra_duration2_closure", referenced from:
          _S1h2A_srt in Timing.o
          _S1zzc_srt in Progress.o
          _S2hTs_srt in Database.o
          _r2CJR_closure in Run.o
          _S2F6p_srt in Run.o
          _S2FRa_srt in Run.o
          _S39So_srt in Command.o
          ...
      "_extrazm1zi6zi14zm52MBVmT2JI4ImaNP8nuEP7_NumericziExtra_showDP_info", referenced from:
          _s1h0R_info in Timing.o
          _s1h1q_info in Timing.o
          _s1w10_info in Progress.o
          _s1w12_info in Progress.o
          _s1w16_info in Progress.o
          _s1w91_info in Progress.o
          _s1w8Y_info in Progress.o
          ...
      "_extrazm1zi6zi14zm52MBVmT2JI4ImaNP8nuEP7_SystemziTimeziExtra_duration2_info", referenced from:
          _c1h2u_info in Timing.o
          _c1zoT_info in Progress.o
          _c2hQN_info in Database.o
          _c2ETU_info in Run.o
          _c2Fqy_info in Run.o
          _DevelopmentziShakeziCommand_zdfCmdArgumentsIO2_info in Command.o
          _c3jPU_info in Args.o
          ...
      "_jszmflotzm0zi8zi3zmBsjxmw7L5o0BiJSkgBCarQ_LanguageziJavascriptziFlot_FlotStack_closure", referenced from:
          _r1fTg_info in Template.o
      "_jszmflotzm0zi8zi3zmBsjxmw7L5o0BiJSkgBCarQ_LanguageziJavascriptziFlot_Flot_closure", referenced from:
          _r1fTc_info in Template.o
      "_extrazm1zi6zi14zm52MBVmT2JI4ImaNP8nuEP7_ControlziMonadziExtra_loopM_info", referenced from:
          _s1dWu_info in Process.o
          _c1eYW_info in Process.o
          _c1mkK_info in Pool.o
          _c1zxQ_info in Progress.o
      "_extrazm1zi6zi14zm52MBVmT2JI4ImaNP8nuEP7_ControlziConcurrentziExtra_zdwwithLock_info", referenced from:
          _DevelopmentziShakeziInternalziCoreziDatabase_zdwlookupDependencies_info in Database.o
          _DevelopmentziShakeziInternalziCoreziDatabase_zdwlistDepends_info in Database.o
          _s2cYN_info in Database.o
          _c2hz1_info in Database.o
          _s2DeL_info in Run.o
          _c2Fv6_info in Run.o
          _c2FHA_info in Run.o
          ...
      "_unorderedzmcontainerszm0zi2zi9zi0zmD29DBTdibk7GcEJszzMbIZZV_DataziHashMapziArray_Array_con_info", referenced from:
          _cbaF_info in Type.o
          _cb9R_info in Type.o
          _cbfQ_info in Type.o
          _cbgD_info in Type.o
          _cbiN_info in Type.o
          _cbhP_info in Type.o
          _cbfp_info in Type.o
          ...
      "_extrazm1zi6zi14zm52MBVmT2JI4ImaNP8nuEP7_ControlziExceptionziExtra_ignore2_closure", referenced from:
          _s1dLK_info in Process.o
          _s1dMa_info in Process.o
          _s1dME_info in Process.o
          _s1VbF_info in Storage.o
          _c3jyx_info in Args.o
      "_jszmflotzm0zi8zi3zmBsjxmw7L5o0BiJSkgBCarQ_LanguageziJavascriptziFlot_file1_closure", referenced from:
          _S1fWE_srt in Template.o
          _S1fXa_srt in Template.o
      "_jszmflotzm0zi8zi3zmBsjxmw7L5o0BiJSkgBCarQ_LanguageziJavascriptziFlot_file1_info", referenced from:
          _r1fTc_info in Template.o
          _r1fTg_info in Template.o
      "_extrazm1zi6zi14zm52MBVmT2JI4ImaNP8nuEP7_ControlziExceptionziExtra_zdwerrorIO_info", referenced from:
          _cwYh_info in Errors.o
          _cwZH_info in Errors.o
          _cx2r_info in Errors.o
          _cx77_info in Errors.o
          _cxi6_info in Errors.o
          _cxkU_info in Errors.o
          _c12YM_info in FileLock.o
          ...
      "_utf8zmstringzm1zi0zi1zi1zmLRSjvSC6FZZkKPp48Qszzoj8_DataziByteStringziUTF8_fromString_closure", referenced from:
          _cPp4_info in Binary.o
          _SPpu_srt in Binary.o
          _SPxH_srt in Binary.o
          _SR86_srt in FileName.o
          _S1QV3_srt in Options.o
          _S1WN8_srt in Storage.o
          _S3tFS_srt in All.o
          ...
      "_extrazm1zi6zi14zm52MBVmT2JI4ImaNP8nuEP7_ControlziConcurrentziExtra_zdwsignalBarrier_closure", referenced from:
          _S11XZ_srt in Chunks.o
          _S1m2v_srt in Pool.o
          _S2FRa_srt in Run.o
      "_unorderedzmcontainerszm0zi2zi9zi0zmD29DBTdibk7GcEJszzMbIZZV_DataziHashMapziBase_Collision_con_info", referenced from:
          _cblJ_info in Type.o
          _cbjB_info in Type.o
          _cK03_info in Bag.o
          _cJYY_info in Bag.o
          _cKhg_info in Bag.o
          _cVih_info in Cleanup.o
          _cVwq_info in Cleanup.o
          ...
      "_extrazm1zi6zi14zm52MBVmT2JI4ImaNP8nuEP7_SystemziTimeziExtra_sleep1_closure", referenced from:
          _s1dWu_info in Process.o
          _c1eYW_info in Process.o
          _S1f5F_srt in Process.o
          _c1mkK_info in Pool.o
          _S1mo7_srt in Pool.o
          _c1zxQ_info in Progress.o
          _S1zzc_srt in Progress.o
          ...
      "_utf8zmstringzm1zi0zi1zi1zmLRSjvSC6FZZkKPp48Qszzoj8_DataziByteStringziUTF8_toString_closure", referenced from:
          _cPqe_info in Binary.o
          _SPqI_srt in Binary.o
          _r2X9B_closure in Directory.o
          _r2X9G_closure in Directory.o
          _r2X9L_closure in Directory.o
          _r2X9Q_closure in Directory.o
          _r2X9Y_closure in Directory.o
          ...
      "_hashablezm1zi2zi7zi0zm3xR4vjMEYHR2eJ7DAZZRhaE_DataziHashableziClass_hashWithSalt_info", referenced from:
          _cHNh_info in Value.o
          _s2wI3_info in Action.o
          _s2wJd_info in Action.o
      "_extrazm1zi6zi14zm52MBVmT2JI4ImaNP8nuEP7_ControlziConcurrentziExtra_zdwwaitBarrier_info", referenced from:
          _c11Rk_info in Chunks.o
          _c11R7_info in Chunks.o
          _s2Dis_info in Run.o
      "_extrazm1zi6zi14zm52MBVmT2JI4ImaNP8nuEP7_DataziListziExtra_unsnoc_closure", referenced from:
          _SD3N_srt in FilePattern.o
      "_hashablezm1zi2zi7zi0zm3xR4vjMEYHR2eJ7DAZZRhaE_DataziHashableziClass_zdwgo_info", referenced from:
          _sSO2_info in FileInfo.o
      "_unorderedzmcontainerszm0zi2zi9zi0zmD29DBTdibk7GcEJszzMbIZZV_DataziHashMapziBase_unsafeInsert_closure", referenced from:
          _S17tF_srt in Intern.o
      "_utf8zmstringzm1zi0zi1zi1zmLRSjvSC6FZZkKPp48Qszzoj8_DataziByteStringziUTF8_fromString_info", referenced from:
          _GeneralziBinary_zdfBinaryExZMZN0zuzdcputEx_info in Binary.o
          _DevelopmentziShakeziInternalziFileName_fileNameFromString1_info in FileName.o
          _DevelopmentziShakeziInternalziOptions_shakeOptions1_info in Options.o
          _c1W5I_info in Storage.o
          _c1W6j_info in Storage.o
          _c1W8C_info in Storage.o
          _c1WiD_info in Storage.o
          ...
      "_unorderedzmcontainerszm0zi2zi9zi0zmD29DBTdibk7GcEJszzMbIZZV_DataziHashMapziBase_unsafeInsert_info", referenced from:
          _c17sP_info in Intern.o
      "_hashablezm1zi2zi7zi0zm3xR4vjMEYHR2eJ7DAZZRhaE_DataziHashableziClass_zdfHashableSomeTypeRepzuzdchashWithSalt_closure", referenced from:
          _DevelopmentziShakeziInternalziValue_zdfHashableQTypeRep_closure in Value.o
      "_randomzm1zi1zm9LLJAJa4iQFLJiLXBOBXBV_SystemziRandom_zdfRandomInt3_closure", referenced from:
          _SKnp_srt in Bag.o
      "_hashablezm1zi2zi7zi0zm3xR4vjMEYHR2eJ7DAZZRhaE_DataziHashableziClass_CZCHashable_con_info", referenced from:
          _DevelopmentziShakeziInternalziValue_zdfHashableKey_closure in Value.o
          _DevelopmentziShakeziInternalziValue_zdfHashableQTypeRep_closure in Value.o
          _DevelopmentziShakeziInternalziRulesziRerun_zdfHashableAlwaysRerunQ_closure in Rerun.o
          _DevelopmentziShakeziInternalziRulesziFile_zdfHashableFileQ_closure in File.o
          _DevelopmentziShakeziInternalziRulesziFiles_zdfHashableFilesQ_closure in Files.o
          _DevelopmentziShakeziInternalziRulesziDirectory_zdfHashableDoesFileExistQ_closure in Directory.o
          _DevelopmentziShakeziInternalziRulesziDirectory_zdfHashableDoesDirectoryExistQ_closure in Directory.o
          ...
      "_unorderedzmcontainerszm0zi2zi9zi0zmD29DBTdibk7GcEJszzMbIZZV_DataziHashMapziBase_BitmapIndexed_con_info", referenced from:
          _r9Yt_info in Type.o
          _cbcs_info in Type.o
          _cbj1_info in Type.o
          _cbhV_info in Type.o
          _cbg8_info in Type.o
          _rJEl_info in Bag.o
          _cJRQ_info in Bag.o
          ...
      "_primitivezm0zi6zi3zi0zmDaZZpcxwJp2TGn8ITSgfI4C_DataziPrimitiveziArray_Array_con_info", referenced from:
          _cYBs_info in Extra.o
          _cYBk_info in Extra.o
      "_unorderedzmcontainerszm0zi2zi9zi0zmD29DBTdibk7GcEJszzMbIZZV_DataziHashMapziArray_MArray_con_info", referenced from:
          _c1Wd6_info in Storage.o
          _c1WcF_info in Storage.o
          _c1WbO_info in Storage.o
          _c2ikC_info in Database.o
          _c2ikb_info in Database.o
          _c2ijc_info in Database.o
          _c2iv2_info in Database.o
          ...
      "_extrazm1zi6zi14zm52MBVmT2JI4ImaNP8nuEP7_ControlziMonadziExtra_firstJustM_info", referenced from:
          _r1ksr_info in Pool.o
          _c39CL_info in Command.o
          _c39Dh_info in Command.o
      "_hashablezm1zi2zi7zi0zm3xR4vjMEYHR2eJ7DAZZRhaE_DataziHashableziClass_defaultSalt_closure", referenced from:
          _cHHq_info in Value.o
      "_extrazm1zi6zi14zm52MBVmT2JI4ImaNP8nuEP7_ControlziExceptionziExtra_zdwerrorIO_closure", referenced from:
          _SwYp_srt in Errors.o
          _SwZR_srt in Errors.o
          _Sx2B_srt in Errors.o
          _Sx7h_srt in Errors.o
          _Sxig_srt in Errors.o
          _Sxl4_srt in Errors.o
          _S12YW_srt in FileLock.o
          ...
      "_extrazm1zi6zi14zm52MBVmT2JI4ImaNP8nuEP7_SystemziTimeziExtra_zdwtimeout_info", referenced from:
          _c2FyV_info in Run.o
      "_extrazm1zi6zi14zm52MBVmT2JI4ImaNP8nuEP7_DataziListziExtra_unsnoc_info", referenced from:
          _cD03_info in FilePattern.o
      "_extrazm1zi6zi14zm52MBVmT2JI4ImaNP8nuEP7_DataziListziExtra_nubOrdBy_closure", referenced from:
          _SEg0_srt in FilePattern.o
          _S1f5F_srt in Process.o
          _S2T0c_srt in Files.o
          _S39So_srt in Command.o
          _S3aKC_srt in Command.o
      "_extrazm1zi6zi14zm52MBVmT2JI4ImaNP8nuEP7_NumericziExtra_showDP_closure", referenced from:
          _S1hqm_srt in Timing.o
          _S1yhj_srt in Progress.o
          _S1yZe_srt in Progress.o
          _S1YI7_srt in Profile.o
          _S1Zqa_srt in Profile.o
      "_extrazm1zi6zi14zm52MBVmT2JI4ImaNP8nuEP7_DataziListziExtra_groupSort_closure", referenced from:
          _SEg0_srt in FilePattern.o
          _S2uTb_srt in Rules.o
      "_extrazm1zi6zi14zm52MBVmT2JI4ImaNP8nuEP7_ControlziMonadziExtra_whileM_info", referenced from:
          _s11sr_info in Chunks.o
          _s1dSC_info in Process.o
          _s1dUp_info in Process.o
      "_jszmjqueryzm3zi3zi1zmCyCHt0pdnbJLD4PVPorosN_LanguageziJavascriptziJQuery_file1_closure", referenced from:
          _r1fT9_closure in Template.o
      "_extrazm1zi6zi14zm52MBVmT2JI4ImaNP8nuEP7_SystemziIOziExtra_captureOutput2_closure", referenced from:
          _GeneralziExtra_getProcessorCount6_info in Extra.o
          _SZ4u_srt in Extra.o
      "_extrazm1zi6zi14zm52MBVmT2JI4ImaNP8nuEP7_ControlziConcurrentziExtra_zdwwaitBarrier_closure", referenced from:
          _S11XZ_srt in Chunks.o
          _S2FRa_srt in Run.o
      "_randomzm1zi1zm9LLJAJa4iQFLJiLXBOBXBV_SystemziRandom_zdfRandomInt3_info", referenced from:
          _sJNO_info in Bag.o
      "_extrazm1zi6zi14zm52MBVmT2JI4ImaNP8nuEP7_DataziListziExtra_groupSort_info", referenced from:
          _cE9m_info in FilePattern.o
          _c2uSM_info in Rules.o
      "_utf8zmstringzm1zi0zi1zi1zmLRSjvSC6FZZkKPp48Qszzoj8_DataziByteStringziUTF8_zdwfoldr_closure", referenced from:
          _SQLw_srt in FileName.o
          _ST52_srt in FileInfo.o
          _S1Vln_srt in Storage.o
          _S2Mut_srt in File.o
          _S2Nsp_srt in File.o
          _S2OJH_srt in File.o
          _S2Rwd_srt in Files.o
          ...
      "_extrazm1zi6zi14zm52MBVmT2JI4ImaNP8nuEP7_DataziListziExtra_zdwsplit_info", referenced from:
          _cD0K_info in FilePattern.o
          _sCoP_info in FilePattern.o
          _cDjZ_info in FilePattern.o
      "_unorderedzmcontainerszm0zi2zi9zi0zmD29DBTdibk7GcEJszzMbIZZV_DataziHashMapziBase_Empty_closure", referenced from:
          _DevelopmentziNinjaziEnv_scopeEnv1_info in Env.o
          _cm92_info in Parse.o
          _cKf3_info in Bag.o
          _GeneralziBag_emptyRandom_closure in Bag.o
          _cUWl_info in Cleanup.o
          _cVg4_info in Cleanup.o
          _rUKe_closure in Cleanup.o
          ...
      "_hashablezm1zi2zi7zi0zm3xR4vjMEYHR2eJ7DAZZRhaE_DataziHashableziClass_zdfHashableByteString0zuzdchash_closure", referenced from:
          _DevelopmentziShakeziInternalziRulesziFile_zdfHashableFileQ_closure in File.o
      "_unorderedzmcontainerszm0zi2zi9zi0zmD29DBTdibk7GcEJszzMbIZZV_DataziHashMapziBase_zdWFull_info", referenced from:
          _cbfQ_info in Type.o
          _cJVt_info in Bag.o
          _cKfv_info in Bag.o
          _cVgw_info in Cleanup.o
          _cVrQ_info in Cleanup.o
          _c161T_info in GetOpt.o
          _c16cy_info in GetOpt.o
          ...
      "_unorderedzmcontainerszm0zi2zi9zi0zmD29DBTdibk7GcEJszzMbIZZV_DataziHashMapziBase_Full_con_info", referenced from:
          _cbiC_info in Type.o
          _cJXX_info in Bag.o
          _cVuk_info in Cleanup.o
          _c164h_info in GetOpt.o
          _c16f2_info in GetOpt.o
          _c19jL_info in Ids.o
          _c1lOu_info in Pool.o
          ...
      "_extrazm1zi6zi14zm52MBVmT2JI4ImaNP8nuEP7_ControlziConcurrentziExtra_zdwsignalBarrier_info", referenced from:
          _s11sB_info in Chunks.o
          _c1lYI_info in Pool.o
          _c1lYp_info in Pool.o
          _c1lY7_info in Pool.o
          _c1lXN_info in Pool.o
          _c1lXQ_info in Pool.o
          _c1lW8_info in Pool.o
          ...
      "_extrazm1zi6zi14zm52MBVmT2JI4ImaNP8nuEP7_DataziListziExtra_zdwword1_info", referenced from:
          _s380F_info in Command.o
      "_extrazm1zi6zi14zm52MBVmT2JI4ImaNP8nuEP7_DataziListziExtra_stripInfix_info", referenced from:
          _cCIu_info in FilePattern.o
      "_extrazm1zi6zi14zm52MBVmT2JI4ImaNP8nuEP7_ControlziMonadziExtra_findM_info", referenced from:
          _c3vor_info in Run.o
          _c3vsR_info in Run.o
      "_hashablezm1zi2zi7zi0zm3xR4vjMEYHR2eJ7DAZZRhaE_DataziHashableziClass_zdfHashableSomeTypeRepzuzdchash_closure", referenced from:
          _DevelopmentziShakeziInternalziValue_zdfHashableQTypeRep_closure in Value.o
      "_utf8zmstringzm1zi0zi1zi1zmLRSjvSC6FZZkKPp48Qszzoj8_DataziByteStringziUTF8_zdwfoldr_info", referenced from:
          _cQLn_info in FileName.o
          _DevelopmentziShakeziInternalziFileInfo_getFileInfo3_info in FileInfo.o
          _s1UMH_info in Storage.o
          _s2LHg_info in File.o
          _DevelopmentziShakeziInternalziRulesziFile_zdwlvl1_info in File.o
          _c2OoR_info in File.o
          _c2Rvy_info in Files.o
          ...
      "_unorderedzmcontainerszm0zi2zi9zi0zmD29DBTdibk7GcEJszzMbIZZV_DataziHashMapziBase_Leaf_con_info", referenced from:
          _cbcx_info in Type.o
          _cbdc_info in Type.o
          _cbdt_info in Type.o
          _cbfQ_info in Type.o
          _cbkI_info in Type.o
          _cbk9_info in Type.o
          _cbit_info in Type.o
          ...
      "_hashablezm1zi2zi7zi0zm3xR4vjMEYHR2eJ7DAZZRhaE_DataziHashableziClass_zdfHashableByteString0_closure", referenced from:
          _DevelopmentziNinjaziType_zdwaskVar_info in Type.o
          _camh_info in Type.o
          _c3sKY_info in All.o
          _c3sLO_info in All.o
          _c3sME_info in All.o
          _c3sND_info in All.o
          _c3sV8_info in All.o
          ...
      "_extrazm1zi6zi14zm52MBVmT2JI4ImaNP8nuEP7_SystemziIOziExtra_readFileEncodingzq1_closure", referenced from:
          _S3aKC_srt in Command.o
      "_extrazm1zi6zi14zm52MBVmT2JI4ImaNP8nuEP7_DataziListziExtra_nubOrdBy_info", referenced from:
          _DevelopmentziShakeziInternalziFilePattern_walkzuf_info in FilePattern.o
          _cE9u_info in FilePattern.o
          _s1dPJ_info in Process.o
          _c1eFD_info in Process.o
          _GeneralziProcess_zdwprocess_info in Process.o
          _c1f5o_info in Process.o
          _c2SWA_info in Files.o
          ...
      "_unorderedzmcontainerszm0zi2zi9zi0zmD29DBTdibk7GcEJszzMbIZZV_DataziHashMapziBase_L_con_info", referenced from:
          _cbaF_info in Type.o
          _cb9R_info in Type.o
          _cbgD_info in Type.o
          _cJQk_info in Bag.o
          _cJPS_info in Bag.o
          _cJYY_info in Bag.o
          _cVmH_info in Cleanup.o
          ...
      "_unorderedzmcontainerszm0zi2zi9zi0zmD29DBTdibk7GcEJszzMbIZZV_DataziHashMapziBase_lookup_info", referenced from:
          _DevelopmentziNinjaziEnv_zdwaskEnv_info in Env.o
          _s1V1n_info in Storage.o
      "_hashable_fnv_hash", referenced from:
          _cbor_info in Type.o
          _cbr0_info in Type.o
          _DevelopmentziShakeziInternalziCoreziStorage_zdwzdsunsafeInsert_info in Storage.o
          _c1W8H_info in Storage.o
          _c1WlB_info in Storage.o
          _c2RtT_info in Files.o
          _c3s7l_info in All.o
          ...
      "_hashablezm1zi2zi7zi0zm3xR4vjMEYHR2eJ7DAZZRhaE_DataziHashableziClass_zdfHashableByteStringzuzdchashWithSalt1_closure", referenced from:
          _DevelopmentziShakeziInternalziRulesziFile_zdfHashableFileQ_closure in File.o
      "_unorderedzmcontainerszm0zi2zi9zi0zmD29DBTdibk7GcEJszzMbIZZV_DataziHashMapziArray_undefinedElem_closure", referenced from:
          _DevelopmentziNinjaziType_zdwzdszdwupdateOrSnocWithKey_info in Type.o
          _cbit_info in Type.o
          _Sbb2_srt in Type.o
          _Sbm8_srt in Type.o
          _GeneralziBag_zdwzdszdwupdateOrSnocWithKey_info in Bag.o
          _cJXO_info in Bag.o
          _GeneralziBag_zdwpolyzugo4_info in Bag.o
          ...
    ld: symbol(s) not found for architecture x86_64
    clang-7: error: linker command failed with exit code 1 (use -v to see invocation)
    `clang' failed in phase `Linker'. (Exit code: 1)

If I try to use stack install --stack-yaml=stack-8.4.4.yaml --system-ghc, it is also failed with ld: symbol(s) not found for architecture x86_64 when compiling hspec-discover and happy version when compiling haskell-src-exts-1.20.3 (I have installed happy by stack install happy --stack-yaml=stack-8.4.4.yaml --system-ghc.

Here is error info with stack install --stack-yaml=stack-8.4.4.yaml --system-ghc

  ld: warning: ignoring file /private/var/folders/hh/mmb417c53xx84ykdycyqls100000gn/T/stack-f26134e4ce16a922/hspec-discover-2.5.5/.stack-work/dist/x86_64-osx/Cabal-2.2.0.1/build/libHShspec-discover-2.5.5-3lbzfYKyCX74uo24qYYO8u.a, file was built for archive which is not the architecture being linked (x86_64): /private/var/folders/hh/mmb417c53xx84ykdycyqls100000gn/T/stack-f26134e4ce16a922/hspec-discover-2.5.5/.stack-work/dist/x86_64-osx/Cabal-2.2.0.1/build/libHShspec-discover-2.5.5-3lbzfYKyCX74uo24qYYO8u.ald: warning: ignoring file /usr/local/Cellar/llvm/7.0.1/lib/clang/7.0.1/lib/darwin/libclang_rt.osx.a, file is universal (2 slices) but does not contain the x86_64 architecture: /usr/local/Cellar/llvm/7.0.1/lib/clang/7.0.1/lib/darwin/libclang_rt.osx.a

    Undefined symbols for architecture x86_64:
      "_hspeczmdiscoverzm2zi5zi5zm3lbzzfYKyCX74uo24qYYO8u_TestziHspecziDiscoverziRun_run1_closure", referenced from:
          _S3gG_srt in Main.o
      "_hspeczmdiscoverzm2zi5zi5zm3lbzzfYKyCX74uo24qYYO8u_TestziHspecziDiscoverziRun_run1_info", referenced from:
          _c3gA_info in Main.o
    ld: symbol(s) not found for architecture x86_64
    clang-7: error: linker command failed with exit code 1 (use -v to see invocation)
    `clang' failed in phase `Linker'. (Exit code: 1)


--  While building package haskell-src-exts-1.20.3 using:
      /Users/vonfry/.stack/setup-exe-cache/x86_64-osx/Cabal-simple_mPHDZzAJ_2.2.0.1_ghc-8.4.4 --builddir=.stack-work/dist/x86_64-osx/Cabal-2.2.0.1 configure --with-ghc=/usr/local/bin/ghc --with-ghc-pkg=/usr/local/bin/ghc-pkg --user --package-db=clear --package-db=global --package-db=/Users/vonfry/.stack/snapshots/x86_64-osx/lts-12.26/8.4.4/pkgdb --libdir=/Users/vonfry/.stack/snapshots/x86_64-osx/lts-12.26/8.4.4/lib --bindir=/Users/vonfry/.stack/snapshots/x86_64-osx/lts-12.26/8.4.4/bin --datadir=/Users/vonfry/.stack/snapshots/x86_64-osx/lts-12.26/8.4.4/share --libexecdir=/Users/vonfry/.stack/snapshots/x86_64-osx/lts-12.26/8.4.4/libexec --sysconfdir=/Users/vonfry/.stack/snapshots/x86_64-osx/lts-12.26/8.4.4/etc --docdir=/Users/vonfry/.stack/snapshots/x86_64-osx/lts-12.26/8.4.4/doc/haskell-src-exts-1.20.3 --htmldir=/Users/vonfry/.stack/snapshots/x86_64-osx/lts-12.26/8.4.4/doc/haskell-src-exts-1.20.3 --haddockdir=/Users/vonfry/.stack/snapshots/x86_64-osx/lts-12.26/8.4.4/doc/haskell-src-exts-1.20.3 --dependency=array=array-0.5.2.0 --dependency=base=base-4.11.1.0 --dependency=ghc-prim=ghc-prim-0.5.2.0 --dependency=pretty=pretty-1.1.3.6
    Process exited with code: ExitFailure 1
    Logs have been written to: /Users/vonfry/.local/src/haskell-ide-engine/.stack-work/logs/haskell-src-exts-1.20.3.log

    Configuring haskell-src-exts-1.20.3...
    clang-7: warning: argument unused during compilation: '-nopie' [-Wunused-command-line-argument]
    Cabal-simple_mPHDZzAJ_2.2.0.1_ghc-8.4.4: The program 'happy' version >=1.19 is
    required but the version of
    /Users/vonfry/.stack/snapshots/x86_64-osx/lts-12.26/8.4.4/bin/happy could not
    be determined.

If I remove --system-ghc, it has the same error.

@Vonfry
Copy link
Author

Vonfry commented Jan 16, 2019

I have tried to update stack(head), clean stack files, reinstall stack and use third-part/apple's llvm/clang/gcc. None of them can work.

I find some relative issues: commercialhaskell/stack#4399 commercialhaskell/stack#4504 commercialhaskell/stack#4125 commercialhaskell/stack#4373, but these cannot resolve my problem.

@lorenzo
Copy link
Collaborator

lorenzo commented Jan 16, 2019

Is it the same problem if you don't use system-ghc?

@Vonfry
Copy link
Author

Vonfry commented Jan 16, 2019

@lorenzo Yes

@justjoheinz
Copy link

You might want to check whether you have binutils installed via brew.
If yes - brew unlink binutils did the trick for me. Your compiler errors look very much like the ones I used to see.

@Anrock
Copy link
Collaborator

Anrock commented Jan 16, 2019

brew unlink binutils did the trick for me

Yeah, i had some troubles with binutils from brew before. Removeing binutils from brew fixed it.

@Vonfry
Copy link
Author

Vonfry commented Jan 16, 2019

Thanks! @Anrock and @justjoheinz !

After remove binutils, this issue is fixed!

@Vonfry Vonfry closed this as completed Jan 16, 2019
@LambdaP
Copy link

LambdaP commented Jan 16, 2019

I feel that this information should be given more prominence, as removing homebrew binutils also solved a problem of mine that had nothing to do with hie.

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

No branches or pull requests

6 participants