digitalmars.D.learn - ld errors in osx Catalina
- David Briant (714/714) Oct 09 2019 I've accidentally upgraded to Catalina - a little earlier than
- David Briant (14/29) Oct 09 2019 If I uninstall clang using conda I now get:
- David Briant (4/21) Oct 09 2019 FYI Solution was to use anaconda-clean to remove anaconda
- rikki cattermole (9/26) Oct 09 2019 D as a native language links against libc, so using the system c
- Paolo Invernizzi (5/16) Oct 09 2019 I confirm that ldc-1.18.0-beta2 works fine on mine Catalina,
I've accidentally upgraded to Catalina - a little earlier than planned as I had hoped not to be trail blazing! My problem is this, in a bash shell and a new directory when I run $ dub init ... answering the questions that dub asks $ dub dmd compiles the skeleton project but ld fails (full dump below). I've tried uninstalling dub, dmd (via homebrew) and reinstalling (had to use the latest beta) and upgrading xcode and also upgrading to Catalina. I'm a d newbie and this is my first escapade into compiling on the mac. Has anyone an idea how to fix this? (base) Davids-MacBook:fred david$ dub Performing "debug" build using /Library/D/dmd/bin/dmd for x86_64. fred ~master: building configuration "application"... Linking... ld: warning: ignoring file /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libpthread.tbd, file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (x86_64): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libpthread.tbd ld: warning: ignoring file /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libm.tbd, file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (x86_64): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libm.tbd ld: warning: ignoring file /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libSystem.tbd, file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (x86_64): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libSystem.tbd Undefined symbols for architecture x86_64: "__NSGetMachExecuteHeader", referenced from: __D2rt9backtrace5dwarf23traceHandlerOpApplyImplFxAPvMDFKmKxAaZiZi in libphobos2.a(dwarf_9d0_924.o) "__Unwind_DeleteException", referenced from: ___dmd_personality_v0 in libphobos2.a(dwarfeh_892_811.o) ___dmd_begin_catch in libphobos2.a(dwarfeh_88f_6b9.o) "__Unwind_GetIP", referenced from: ___dmd_personality_v0 in libphobos2.a(dwarfeh_892_811.o) "__Unwind_GetLanguageSpecificData", referenced from: ___dmd_personality_v0 in libphobos2.a(dwarfeh_892_811.o) "__Unwind_GetRegionStart", referenced from: ___dmd_personality_v0 in libphobos2.a(dwarfeh_892_811.o) "__Unwind_RaiseException", referenced from: __d_throwdwarf in libphobos2.a(dwarfeh_891_56a.o) "__Unwind_Resume", referenced from: __D3std5stdio__T7writelnTAyaZQnFNfQjZv in fred.o __D3std5stdio4File8opAssignMFNcNjNfSQBhQBgQBdZQl in libphobos2.a(stdio_19dd_180.o) __D3std5stdio4File6reopenMFNeAyaMAxaZv in libphobos2.a(stdio_19dd_180.o) __D3std5stdio4File6fdopenMFNeiMAxaAyaZv in libphobos2.a(stdio_19dd_180.o) __D3std5stdio4File6detachMFNeZv in libphobos2.a(stdio_19dd_180.o) __D3std5stdio4File5closeMFNeZv in libphobos2.a(stdio_19dd_180.o) __D3std5stdio4File11ByChunkImpl6__ctorMFNcSQBoQBnQBkmZSQCaQBzQBwQBu in libphobos2.a(stdio_19dd_180.o) ... "__Unwind_SetGR", referenced from: ___dmd_personality_v0 in libphobos2.a(dwarfeh_892_811.o) "__Unwind_SetIP", referenced from: ___dmd_personality_v0 in libphobos2.a(dwarfeh_892_811.o) "___error", referenced from: __D3std5stdio4File7tryLockMFEQBaQz8LockTypemmZb in libphobos2.a(stdio_19dd_180.o) __D3std9exception14ErrnoException6__ctorMFNfAyaQdmZCQBxQBwQBp in libphobos2.a(exception_489_5b5.o) __d_run_main2 in libphobos2.a(dmain2_888_4ad.o) __D4core6thread6Thread5sleepFNbNiSQBf4time8DurationZv in libphobos2.a(thread_386_258.o) _fakePureReprintReal in libphobos2.a(demangle_2ff_79b.o) "___stderrp", referenced from: ___dmd_personality_v0 in libphobos2.a(dwarfeh_892_811.o) __d_throwdwarf in libphobos2.a(dwarfeh_891_56a.o) __D2rt7dwarfeh8scanLSDAFPxhmmbbPSQBe6unwind17_Unwind_ExceptionJmJi EQCnQCn10LsdaResult in libphobos2.a(dwarfeh_896_2c9.o) __D2rt6dmain218_d_print_throwableUC6object9ThrowableZ4sinkMFNbNiNlMxAaZv in libphobos2.a(dmain2_88b_776.o) __d_run_main2 in libphobos2.a(dmain2_888_4ad.o) __D2rt6dmain212_d_run_main2UAAamPUQgZiZ6runAllMFZv in libphobos2.a(dmain2_888_4ad.o) __D2rt7dwarfeh17actionTableLookupFPSQBh6unwind17_Unwind_ExceptionkPxhQdhmQhZi in libphobos2.a(dwarfeh_897_6e0.o) ... "___stdoutp", referenced from: __D3std5stdio__T10makeGlobalVEQBbQBa13StdFileHandlea22_636f72652e737464632e737464696f2e7374646f7574ZQDgFN NcNdNiZSQEhQEg4File in libphobos2.a(stdio_19e9_cfb.o) __d_run_main2 in libphobos2.a(dmain2_888_4ad.o) "__dyld_get_image_header", referenced from: __D2rt19sections_osx_x86_6411getTLSRangeFNbNixPvZAv in libphobos2.a(sections_osx_x86_64_93f_420.o) "__dyld_image_count", referenced from: __D2rt19sections_osx_x86_6411getTLSRangeFNbNixPvZAv in libphobos2.a(sections_osx_x86_64_93f_420.o) "__dyld_register_func_for_add_image", referenced from: _rt_init in libphobos2.a(dmain2_880_2f9.o) "__tlv_bootstrap", referenced from: __D2rt7dwarfeh15ExceptionHeader5stackPSQBkQBkQBf in libphobos2.a(dwarfeh_88e_5f8.o) __D2rt7dwarfeh15ExceptionHeader9ehstorageSQBnQBnQBi in libphobos2.a(dwarfeh_88e_5f8.o) __D2rt8lifetime18__blkcache_storagePS4core6memory8BlkInfo_ in libphobos2.a(lifetime.o) __D2rt8lifetime12__nextBlkIdxi in libphobos2.a(lifetime.o) __D4core9exception6_storeG128v in libphobos2.a(exception.o) __D4core6thread5Fiber7sm_thisCQBbQzQu in libphobos2.a(thread.o) __D4core6thread6Thread7sm_thisCQBcQBaQw in libphobos2.a(thread_386_258.o) ... "_abort", referenced from: ___dmd_personality_v0 in libphobos2.a(dwarfeh_892_811.o) __d_throwdwarf in libphobos2.a(dwarfeh_891_56a.o) __D2rt7dwarfeh13_d_throwdwarfUC6object9ThrowableZ17exception_cleanupUiPSQCr6unwind1 _Unwind_ExceptionZv in libphobos2.a(dwarfeh_891_56a.o) __D2rt7dwarfeh15ExceptionHeader6createFNiC6object9ThrowableZPSQChQChQCc in libphobos2.a(dwarfeh_88e_5f8.o) __D2rt7dwarfeh8scanLSDAFPxhmmbbPSQBe6unwind17_Unwind_ExceptionJmJ Z11dw_pe_valueMFhZm in libphobos2.a(dwarfeh_896_2c9.o) ___dmd_begin_catch in libphobos2.a(dwarfeh_88f_6b9.o) __D4core8internal5abortQgFNbNiNfMAyaMQemZv in libphobos2.a(abort_45a_218.o) ... "_backtrace", referenced from: __D4core7runtime18runModuleUnitTestsUZ19unittestSegvHandlerUNbNiiPSQCm3sys5posix6 ignal9siginfo_tPvZv in libphobos2.a(runtime_36d_76e.o) "_backtrace_symbols", referenced from: __D2rt9backtrace5dwarf23traceHandlerOpApplyImplFxAPvMDFKmKxAaZiZi in libphobos2.a(dwarf_9d0_924.o) "_backtrace_symbols_fd", referenced from: __D4core7runtime18runModuleUnitTestsUZ19unittestSegvHandlerUNbNiiPSQCm3sys5posix6 ignal9siginfo_tPvZv in libphobos2.a(runtime_36d_76e.o) "_calloc", referenced from: __d_throwdwarf in libphobos2.a(dwarfeh_891_56a.o) __D2rt7dwarfeh15ExceptionHeader6createFNiC6object9ThrowableZPSQChQChQCc in libphobos2.a(dwarfeh_88e_5f8.o) __D2rt5minfo11ModuleGroup12sortCtorsOldMFAAiZb in libphobos2.a(minfo_8f6_473.o) __D2rt8monitor_13ensureMonitorFNbC6ObjectZPOSQBqQBq7Monitor in libphobos2.a(monitor__925_57a.o) __D2gc4impl12conservativeQw14ConservativeGC6__ctorMFZCQBzQBzQBxQCiQBn in libphobos2.a(gc_74e_583.o) __D2gc4impl12conservativeQw14ConservativeGC7setAttrMFNbPvkZ2goFNbPSQC QCmQCkQCv3GcxQBckZk in libphobos2.a(gc_74e_583.o) __D2gc4impl12conservativeQw14ConservativeGC13reallocNoSyncMFNbP mKkKmxC8TypeInfoZQt in libphobos2.a(gc_74e_583.o) ... (maybe you meant: _gc_calloc) "_clearerr", referenced from: __D3std5stdio4File8clearerrMFNaNbNfZv in libphobos2.a(stdio_19dd_180.o) "_exit", referenced from: _gc_init_nothrow in libphobos2.a(proxy_7bb_64d.o) "_fclose", referenced from: __D3std5stdio4File12closeHandlesMFNeZv in libphobos2.a(stdio_19dd_180.o) "_fcntl", referenced from: __D3std5stdio4File8lockImplMFismmZi in libphobos2.a(stdio_19dd_180.o) "_fdopen", referenced from: __D3std5stdio4File6fdopenMFNeiMAxaAyaZv in libphobos2.a(stdio_19dd_180.o) "_feof", referenced from: __D3std5stdio4File3eofMxFNaNdNeZb in libphobos2.a(stdio_19dd_180.o) "_ferror", referenced from: __D3std5stdio4File5errorMxFNaNbNdNeZb in libphobos2.a(stdio_19dd_180.o) "_fflush", referenced from: __D3std5stdio4File5flushMFNeZv in libphobos2.a(stdio_19dd_180.o) __d_run_main2 in libphobos2.a(dmain2_888_4ad.o) "_fileno", referenced from: __D3std5stdio4File6filenoMxFNdNeZi in libphobos2.a(stdio_19dd_180.o) "_flockfile", referenced from: __D3std5stdio4File17LockingTextWriter6__ctorMFNcNeKSQBxQBwQBtZSQCiQChQCeQCc in libphobos2.a(stdio_19dd_180.o) __D3std5stdio4File17LockingTextWriter10__postblitMFNeZv in libphobos2.a(stdio_19dd_180.o) __D3std5stdio4File__T16BinaryWriterImplVbi1ZQx6__ctorMFNcKSQCeQCdQCaZSQCp CoQCl__TQCjVbi1ZQCr in libphobos2.a(stdio_19ff_855.o) __D3std5stdio4File__T16BinaryWriterImplVbi1ZQx10__postblitMFNbNiZv in libphobos2.a(stdio_19ff_855.o) "_fopen", referenced from: __D3std5stdio__T6_fopenTAyaTAxaZQqFQlQjZ10_fopenImplFNbNiNePxaQdZPOS4 ore4stdcQCt7__sFILE in libphobos2.a(stdio_19f8_a9a.o) (maybe you meant: __D3std5stdio__T6_fopenTAyaTAxaZQqFNbNiNfQrQpZPOS4core4stdcQCa7__sFILE, __D3std5stdio__T6_fopenTAyaTAxaZQqFQlQjZ10_fopenImplFNbNiNePxaQdZPOS4 ore4stdcQCt7__sFILE ) "_fprintf", referenced from: ___dmd_personality_v0 in libphobos2.a(dwarfeh_892_811.o) __d_throwdwarf in libphobos2.a(dwarfeh_891_56a.o) __D2rt7dwarfeh8scanLSDAFPxhmmbbPSQBe6unwind17_Unwind_ExceptionJmJi EQCnQCn10LsdaResult in libphobos2.a(dwarfeh_896_2c9.o) __D2rt6dmain218_d_print_throwableUC6object9ThrowableZ4sinkMFNbNiNlMxAaZv in libphobos2.a(dmain2_88b_776.o) __d_run_main2 in libphobos2.a(dmain2_888_4ad.o) __D2rt6dmain212_d_run_main2UAAamPUQgZiZ6runAllMFZv in libphobos2.a(dmain2_888_4ad.o) __D2rt7dwarfeh17actionTableLookupFPSQBh6unwind17_Unwind_ExceptionkPxhQdhmQhZi in libphobos2.a(dwarfeh_897_6e0.o) ... "_fputc", referenced from: __D3std5stdio14fputc_unlockedFNbNiiPS4core4stdcQBo7__sFILEZi in libphobos2.a(stdio_19d9_5d6.o) "_fputwc", referenced from: __D3std5stdio15fputwc_unlockedFNbNiwPS4core4stdcQBp7__sFILEZi in libphobos2.a(stdio_19da_64d.o) "_fread", referenced from: __D3std5stdio__T12trustedFreadThZQrFNbNiNePOS4core4stdcQBw7__sFILEAhZm in libphobos2.a(stdio_19fb_737.o) "_free", referenced from: __D3std5stdio4File6detachMFNeZv in libphobos2.a(stdio_19dd_180.o) __D3std5stdio4File5closeMFNeZv in libphobos2.a(stdio_19dd_180.o) __D2rt7dwarfeh13_d_throwdwarfUC6object9ThrowableZ17exception_cleanupUiPSQCr6unwind1 _Unwind_ExceptionZv in libphobos2.a(dwarfeh_891_56a.o) __D2rt7dwarfeh15ExceptionHeader4freeFPSQBkQBkQBfZv in libphobos2.a(dwarfeh_88e_5f8.o) __D2rt8lifetime19_staticDtor_L498_C1FZv in libphobos2.a(lifetime.o) __D4core6memory__T8pureFreeZQkFNaNbNiPvZv in libphobos2.a(memory_1ed_3b0.o) __d_delThrowable in libphobos2.a(ehalloc_8a8_5ff.o) ... (maybe you meant: _gc_free) "_freopen", referenced from: __D3std5stdio4File6reopenMFNeAyaMAxaZv in libphobos2.a(stdio_19dd_180.o) "_fseeko", referenced from: __D3std5stdio4File4seekMFNeliZv in libphobos2.a(stdio_19dd_180.o) "_fsync", referenced from: __D3std5stdio4File4syncMFNeZv in libphobos2.a(stdio_19dd_180.o) "_ftello", referenced from: __D3std5stdio4File4tellMxFNdNeZm in libphobos2.a(stdio_19dd_180.o) "_funlockfile", referenced from: __D3std5stdio4File17LockingTextWriter6__dtorMFNeZv in libphobos2.a(stdio_19dd_180.o) __D3std5stdio4File__T16BinaryWriterImplVbi1ZQx6__dtorMFNbNiZv in libphobos2.a(stdio_19ff_855.o) "_fwide", referenced from: __D3std5stdio4File17LockingTextWriter6__ctorMFNcNeKSQBxQBwQBtZSQCiQChQCeQCc in libphobos2.a(stdio_19dd_180.o) "_fwrite", referenced from: __D3std5stdio__T13trustedFwriteTaZQsFNbNiNePOS4core4stdcQBx7__sFILExAaZm in fred.o "_getenv", referenced from: __D2rt6config16rt_envvarsOptionFNbNiAyaMDFNbNiQkZQnZQq in libphobos2.a(config_83a_6c3.o) "_getpid", referenced from: __D3std5stdio4File8lockImplMFismmZi in libphobos2.a(stdio_19dd_180.o) "_getsectbynamefromheader_64", referenced from: _sections_osx_onAddImage in libphobos2.a(sections_osx_x86_64_93c_949.o) "_getsectiondata", referenced from: __D2rt9backtrace5dwarf23traceHandlerOpApplyImplFxAPvMDFKmKxAaZiZi in libphobos2.a(dwarf_9d0_924.o) "_gettimeofday", referenced from: __D4core4sync6config7mktspecFNbNiKSQBg3sys5posix6signal8timespec QCk4time8DurationZv in libphobos2.a(config_5ee_2f7.o) "_isdigit", referenced from: __D4core8internal12parseoptions__T5parseHThZQkFNbNiAxaKANgaKhQkZb in libphobos2.a(parseoptions_4c9_465.o) __D4core8internal12parseoptions__T5parseHTkZQkFNbNiAxaKANgaKkQkZb in libphobos2.a(parseoptions_4cb_3fc.o) __D4core8internal12parseoptions__T5parseHTmZQkFNbNiAxaKANgaKmQkZb in libphobos2.a(parseoptions_4ca_461.o) "_isspace", referenced from: __D4core8internal12parseoptions__T4findSQBlQBjQBd__T4skipX7isspaceZQpFNbNiANgaZ9__lambda2Z CeMFNaNbNiNfQBdZQBh in libphobos2.a(parseoptions_4c5_602.o) "_mach_absolute_time", referenced from: __D4core4time12TickDuration27_sharedStaticCtor_L2820_C14FNeZv in libphobos2.a(time.o) __D2gc4impl12conservativeQw3Gcx11fullcollectMFNbbZm in libphobos2.a(gc_753_122.o) "_mach_timebase_info", referenced from: __D4core4time12TickDuration27_sharedStaticCtor_L2820_C14FNeZv in libphobos2.a(time.o) __d_initMonoTime in libphobos2.a(time_3dd_5fe.o) "_malloc", referenced from: __D3std5stdio4File6__ctorMFNcNePOS4core4stdcQBl7__sFILEAyakbZSQChQCgQCd in libphobos2.a(stdio_19dd_180.o) __D3std5stdio4File9resetFileMFNeAyaMAxabZv in libphobos2.a(stdio_19dd_180.o) __d_newclass in libphobos2.a(lifetime_8ac_482.o) __D3std8internal6memory__T13enforceMallocZQqFNaNbNiNfmZPv in libphobos2.a(memory_25a4_5ac.o) __d_arrayappendcTX in libphobos2.a(lifetime_8dd_6c8.o) __D2rt8lifetime12__getBlkInfoFNbPvZPS4core6memory8BlkInfo_ in libphobos2.a(lifetime_8bb_4a3.o) __D2rt5minfo11ModuleGroup12genCyclePathMFmmAAiZAm in libphobos2.a(minfo_8f6_473.o) ... (maybe you meant: _gc_malloc) "_malloc_size", referenced from: __D2rt19sections_osx_x86_6411getTLSRangeFNbNixPvZAv in libphobos2.a(sections_osx_x86_64_93f_420.o) "_memcmp", referenced from: __D2rt8typeinfo5ti_Ag11TypeInfo_Ag6equalsMxFxPvxQdZb in libphobos2.a(ti_Ag_a43_435.o) __D4core8internal5array8equality__T8__equalsTxhTxhZQqFAxhQdZ9_ lambda3MFNaNbNiNeZb in libphobos2.a(equality_569_d49.o) __D4core8internal5array8equality__T8__equalsTyaTyaZQqFAyaQdZ9_ lambda3MFNaNbNiNeZb in libphobos2.a(equality_54c_f65.o) __D4core8internal6string__T7dstrcmpZQjFNaNbNiNeMxAaMxQeZi in libphobos2.a(string_4e0_36f.o) __D4core8internal5array8equality__T8__equalsTaTyaZQpFAaAyaZ9_ lambda3MFNaNbNiNeZb in libphobos2.a(equality_558_b54.o) __D4core8internal5array8equality__T8__equalsTxaTxaZQqFAxaQdZ9_ lambda3MFNaNbNiNeZb in libphobos2.a(equality_54e_c33.o) __D6object15TypeInfo_Struct6equalsMxFNaNbNexPvxQdZb in libphobos2.a(object_12_612.o) ... "_memcpy", referenced from: __D6object__T4_dupTxaTyaZQmFNaNbAxaZAya in fred.o __d_newclass in libphobos2.a(lifetime_8ac_482.o) __D3std3utf12UTFException11setSequenceMFNaNbNiNfMAkXCQByQBxQBw in libphobos2.a(utf_2b6d_49e.o) __D3std8internal7cstring__T11tempCStringTaTAxaZQuFNaNbNiNfMQqZSQCiQChQCb__T17Te pCStringBufferTaZQw in libphobos2.a(cstring_3c88_b9a.o) __D3std8internal7cstring__T11tempCStringTaTAxaZQuFMQiZ9__lambda2MFNaNbNiNeZPa in libphobos2.a(cstring_3c88_b9a.o) __D3std8internal7cstring__T11tempCStringTaTAyaZQuFNaNbNiNfMQqZSQCiQChQCb__T17Te pCStringBufferTaZQw in libphobos2.a(cstring_3c8a_963.o) __D3std8internal7cstring__T11tempCStringTaTAyaZQuFMQiZ9__lambda2MFNaNbNiNeZPa in libphobos2.a(cstring_3c8a_963.o) ... "_memmove", referenced from: __D4core6thread6Thread3addFNbNiCQBdQBbQxbZv in libphobos2.a(thread_386_258.o) __D4core7runtime16DefaultTraceInfo7fixlineMxFAxaNkKG4096aZQn in libphobos2.a(runtime_36f_640.o) __D2gc9pooltable__T9PoolTableTSQBc4impl12conservativeQBy4PoolZQB 6insertMFNbNiPQBxZb in libphobos2.a(pooltable_7b8_58e.o) __D4core6thread15ll_removeThreadFNbNiPSQBk3sys5posixQk5types1 _opaque_pthread_tZv in libphobos2.a(thread_3c4_61d.o) "_memset", referenced from: __d_newarrayT in libphobos2.a(lifetime_8c2_4df.o) __d_arrayappendcTX in libphobos2.a(lifetime_8dd_6c8.o) __D2rt8lifetime12__getBlkInfoFNbPvZPS4core6memory8BlkInfo_ in libphobos2.a(lifetime_8bb_4a3.o) __D2rt5minfo11ModuleGroup9sortCtorsMFAyaZv in libphobos2.a(minfo_8f6_473.o) __D2rt5minfo11ModuleGroup9sortCtorsMFAyaZ10clearFlagsMFNaNbNiPmZv in libphobos2.a(minfo_8f6_473.o) __D2rt5minfo11ModuleGroup9sortCtorsMFAyaZ8findDepsMFmPmZb in libphobos2.a(minfo_8f6_473.o) __D2rt5minfo11ModuleGroup9sortCtorsMFAyaZ6doSortMFmKAPyS6object10ModuleInfoZb in libphobos2.a(minfo_8f6_473.o) ... (maybe you meant: __memset32) "_mmap", referenced from: __D2gc4impl12conservativeQw4Pool10initializeMFNbmbZv in libphobos2.a(gc_754_19a.o) __D2gc4impl12conservativeQw3Gcx__T11ToScanStackTPvZQr4growMFNbZv in libphobos2.a(gc_761_68c.o) __D2gc4impl12conservativeQw3Gcx__T11ToScanStackTSQBuQBuQBsQCdQBi__T9ScanRangeVb 0ZQpZQBz4growMFNbZv in libphobos2.a(gc_75e_a4e.o) __D2gc4impl12conservativeQw3Gcx__T11ToScanStackTSQBuQBuQBsQCdQBi__T9ScanRangeVb 1ZQpZQBz4growMFNbZv in libphobos2.a(gc_760_a03.o) "_munmap", referenced from: __D4core6thread5Fiber6__dtorMFNbNiZv in libphobos2.a(thread_3ab_236.o) __D2gc4impl12conservativeQw3Gcx4DtorMFZv in libphobos2.a(gc_753_122.o) __D2gc4impl12conservativeQw3Gcx8minimizeMFNbZv in libphobos2.a(gc_753_122.o) __D2gc4impl12conservativeQw3Gcx7newPoolMFNbmbZPSQBtQBtQBrQCc4Pool in libphobos2.a(gc_753_122.o) __D2gc4impl12conservativeQw4Pool4DtorMFNbZv in libphobos2.a(gc_754_19a.o) __D2gc4impl12conservativeQw3Gcx__T11ToScanStackTPvZQr5resetMFNbZv in libphobos2.a(gc_761_68c.o) __D2gc4impl12conservativeQw3Gcx__T11ToScanStackTPvZQr4growMFNbZv in libphobos2.a(gc_761_68c.o) ... "_nanosleep", referenced from: __D4core6thread6Thread5sleepFNbNiSQBf4time8DurationZv in libphobos2.a(thread_386_258.o) "_pclose", referenced from: __D3std5stdio4File12closeHandlesMFNeZv in libphobos2.a(stdio_19dd_180.o) "_popen", referenced from: __D3std5stdio__T6_popenTAyaTAxaZQqFNbNiNeQrQpZ9popenImplFNbNiNePxaQdZPOS4 ore4stdcQCx7__sFILE in libphobos2.a(stdio_19f9_aa4.o) (maybe you meant: __D3std5stdio__T6_popenTAyaTAxaZQqFNbNiNeQrQpZ9popenImplFNbNiNePxaQdZPOS4c re4stdcQCx7__sFILE, __D3std5stdio__T6_popenTAyaTAxaZQqFNbNiNeQrQpZPOS4 ore4stdcQCa7__sFILE ) "_printf", referenced from: ___dmd_personality_v0 in libphobos2.a(dwarfeh_892_811.o) __d_throwdwarf in libphobos2.a(dwarfeh_891_56a.o) __D2rt7dwarfeh13_d_throwdwarfUC6object9ThrowableZ17exception_cleanupUiPSQCr6unwind1 _Unwind_ExceptionZv in libphobos2.a(dwarfeh_891_56a.o) __D2rt7dwarfeh15ExceptionHeader6createFNiC6object9ThrowableZPSQChQChQCc in libphobos2.a(dwarfeh_88e_5f8.o) __D2rt7dwarfeh8scanLSDAFPxhmmbbPSQBe6unwind17_Unwind_ExceptionJmJ Z11dw_pe_valueMFhZm in libphobos2.a(dwarfeh_896_2c9.o) ___dmd_begin_catch in libphobos2.a(dwarfeh_88f_6b9.o) __D4core7runtime18runModuleUnitTestsUZ14__foreachbody2MFPS6object10ModuleInfoZi in libphobos2.a(runtime_36d_76e.o) ... "_pthread_atfork", referenced from: _thread_init in libphobos2.a(thread_388_48b.o) __D2gc4impl12conservativeQw3Gcx16startScanThreadsMFNbZv in libphobos2.a(gc_753_122.o) "_pthread_attr_init", referenced from: __D4core6thread6Thread5startMFNbZCQBfQBdQz in libphobos2.a(thread_386_258.o) __D4core6thread20createLowLevelThreadFNbNiDFNbZvkDFNbZvZPSQCd3sys5posixQk5type 17_opaque_pthread_t in libphobos2.a(thread_3c5_7f6.o) "_pthread_attr_setstacksize", referenced from: __D4core6thread6Thread5startMFNbZCQBfQBdQz in libphobos2.a(thread_386_258.o) __D4core6thread20createLowLevelThreadFNbNiDFNbZvkDFNbZvZPSQCd3sys5posixQk5type 17_opaque_pthread_t in libphobos2.a(thread_3c5_7f6.o) "_pthread_cond_broadcast", referenced from: __D2gc4impl12conservativeQw3Gcx12markParallelMFNbbZv in libphobos2.a(gc_753_122.o) __D2gc4impl12conservativeQw3Gcx15stopScanThreadsMFNbZv in libphobos2.a(gc_753_122.o) __D2gc4impl12conservativeQw3Gcx14scanBackgroundMFNbZv in libphobos2.a(gc_753_122.o) __D4core4sync5event5Event3setMFNbNiZv in libphobos2.a(event_5f1_202.o) "_pthread_cond_destroy", referenced from: __D2gc4impl12conservativeQw3Gcx15stopScanThreadsMFNbZv in libphobos2.a(gc_753_122.o) __D2gc4impl12conservativeQw3Gcx11__fieldDtorMFNbNiZv in libphobos2.a(gc_753_122.o) __D4core4sync5event5Event6__dtorMFNbNiZv in libphobos2.a(event_5f1_202.o) __D4core4sync5event5Event9terminateMFNbNiZv in libphobos2.a(event_5f1_202.o) "_pthread_cond_init", referenced from: __D4core4sync5event5Event10initializeMFNbNibbZv in libphobos2.a(event_5f1_202.o) "_pthread_cond_timedwait", referenced from: __D4core4sync5event5Event4waitMFNbNiSQBi4time8DurationZb in libphobos2.a(event_5f1_202.o) "_pthread_cond_wait", referenced from: __D4core4sync5event5Event4waitMFNbNiSQBi4time8DurationZb in libphobos2.a(event_5f1_202.o) "_pthread_create", referenced from: __D4core6thread6Thread5startMFNbZCQBfQBdQz in libphobos2.a(thread_386_258.o) __D4core6thread20createLowLevelThreadFNbNiDFNbZvkDFNbZvZPSQCd3sys5posixQk5type 17_opaque_pthread_t in libphobos2.a(thread_3c5_7f6.o) "_pthread_detach", referenced from: __D4core6thread6Thread6__dtorMFNbNiZv in libphobos2.a(thread_386_258.o) "_pthread_get_stackaddr_np", referenced from: _thread_init in libphobos2.a(thread_388_48b.o) _thread_entryPoint in libphobos2.a(thread_383_713.o) "_pthread_getschedparam", referenced from: __D4core6thread6Thread14loadPrioritiesFNbNiNeZSQBsQBqQBm8Priority in libphobos2.a(thread_386_258.o) __D4core6thread6Thread8priorityMFNdZi in libphobos2.a(thread_386_258.o) __D4core6thread6Thread8priorityMFNdiZv in libphobos2.a(thread_386_258.o) __D4core6thread6Thread__T10loadGlobalVAyaa12_5052494f524954595 4d4158ZQBtFNbNiNfZi in libphobos2.a(thread_3c9_81d.o) __D4core6thread6Thread__T10loadGlobalVAyaa12_5052494f524954595 4d494eZQBtFNbNiNfZi in libphobos2.a(thread_3c8_81b.o) __D4core6thread6Thread__T10loadGlobalVAyaa16_5052494f524954595f4445464 554c54ZQCbFNbNiNfZi in libphobos2.a(thread_3ca_93c.o) "_pthread_getspecific", referenced from: __D2rt19sections_osx_x86_6411getTLSRangeFNbNixPvZAv in libphobos2.a(sections_osx_x86_64_93f_420.o) "_pthread_join", referenced from: __D4core6thread6Thread4joinMFbZC6object9Throwable in libphobos2.a(thread_386_258.o) __D2gc4impl12conservativeQw3Gcx15stopScanThreadsMFNbZv in libphobos2.a(gc_753_122.o) "_pthread_mach_thread_np", referenced from: _thread_init in libphobos2.a(thread_388_48b.o) __D4core6thread11thread_initUNiZ18initChildAfterForkUNbNiZv in libphobos2.a(thread_388_48b.o) __D4core6thread6Thread5startMFNbZCQBfQBdQz in libphobos2.a(thread_386_258.o) "_pthread_mutex_destroy", referenced from: __d_critical_term in libphobos2.a(critical__85e_684.o) __d_monitor_staticdtor in libphobos2.a(monitor__91c_8ca.o) _thread_term in libphobos2.a(thread_389_48f.o) __D4core4sync5mutex5Mutex6__dtorMFNbNiNeZv in libphobos2.a(mutex_5f3_213.o) __D4core6thread6Thread9termLocksFNiZv in libphobos2.a(thread_386_258.o) __d_monitordelete in libphobos2.a(monitor__915_69d.o) __d_monitordelete_nogc in libphobos2.a(monitor__916_8a3.o) ... "_pthread_mutex_init", referenced from: __d_critical_init in libphobos2.a(critical__85d_680.o) __d_monitor_staticctor in libphobos2.a(monitor__91b_8c9.o) __D4core4sync5mutex5Mutex__T6__ctorTCQBiQBgQBeQBbZQwMFNbNiNebZQBa in libphobos2.a(mutex_5f6_4fb.o) __D4core4sync5mutex5Mutex__T6__ctorTOCQBjQBhQBfQBcZQxMOFNbNiNebZOQBc in libphobos2.a(mutex_5f7_7c3.o) __D2rt8monitor_13ensureMonitorFNbC6ObjectZPOSQBqQBq7Monitor in libphobos2.a(monitor__925_57a.o) __D4core4sync5event5Event10initializeMFNbNibbZv in libphobos2.a(event_5f1_202.o) "_pthread_mutex_lock", referenced from: __D4core4sync5mutex5Mutex__T12lock_nothrowTCQBpQBnQBlQBiZQBdMFNbNiNeZv in libphobos2.a(mutex_5f4_79e.o) __D4core4sync5mutex5Mutex__T12lock_nothrowTOCQBqQBoQBmQBjZQBeMOFNbNiNeZv in libphobos2.a(mutex_5fa_a66.o) __d_monitorenter in libphobos2.a(monitor__917_648.o) __D2rt8monitor_13ensureMonitorFNbC6ObjectZPOSQBqQBq7Monitor in libphobos2.a(monitor__925_57a.o) __D2gc4impl12conservativeQw3Gcx12markParallelMFNbbZv in libphobos2.a(gc_753_122.o) __D2gc4impl12conservativeQw3Gcx15stopScanThreadsMFNbZv in libphobos2.a(gc_753_122.o) __D2gc4impl12conservativeQw3Gcx14scanBackgroundMFNbZv in libphobos2.a(gc_753_122.o) ... "_pthread_mutex_trylock", referenced from: __D4core4sync5mutex5Mutex7tryLockMFNeZb in libphobos2.a(mutex_5f3_213.o) __D4core4sync5mutex5Mutex7tryLockMOFNeZb in libphobos2.a(mutex_5f3_213.o) "_pthread_mutex_unlock", referenced from: __D4core4sync5mutex5Mutex__T14unlock_nothrowTCQBrQBpQBnQBkZQBfMFNbNiNeZv in libphobos2.a(mutex_5f5_881.o) __D4core4sync5mutex5Mutex__T14unlock_nothrowTOCQBsQBqQBoQBlZQBgMOFNbNiNeZv in libphobos2.a(mutex_5fb_b49.o) __d_monitorexit in libphobos2.a(monitor__918_5e4.o) __D2rt8monitor_13ensureMonitorFNbC6ObjectZPOSQBqQBq7Monitor in libphobos2.a(monitor__925_57a.o) __D2gc4impl12conservativeQw3Gcx12markParallelMFNbbZv in libphobos2.a(gc_753_122.o) __D2gc4impl12conservativeQw3Gcx15stopScanThreadsMFNbZv in libphobos2.a(gc_753_122.o) __D2gc4impl12conservativeQw3Gcx14scanBackgroundMFNbZv in libphobos2.a(gc_753_122.o) ... "_pthread_mutexattr_destroy", referenced from: __d_monitor_staticdtor in libphobos2.a(monitor__91c_8ca.o) __D4core4sync5mutex5Mutex__T6__ctorTCQBiQBgQBeQBbZQwMFNbNiNebZQBa in libphobos2.a(mutex_5f6_4fb.o) __D4core4sync5mutex5Mutex__T6__ctorTOCQBjQBhQBfQBcZQxMOFNbNiNebZOQBc in libphobos2.a(mutex_5f7_7c3.o) "_pthread_mutexattr_init", referenced from: __d_monitor_staticctor in libphobos2.a(monitor__91b_8c9.o) __D4core4sync5mutex5Mutex__T6__ctorTCQBiQBgQBeQBbZQwMFNbNiNebZQBa in libphobos2.a(mutex_5f6_4fb.o) __D4core4sync5mutex5Mutex__T6__ctorTOCQBjQBhQBfQBcZQxMOFNbNiNebZOQBc in libphobos2.a(mutex_5f7_7c3.o) "_pthread_mutexattr_settype", referenced from: __d_monitor_staticctor in libphobos2.a(monitor__91b_8c9.o) __D4core4sync5mutex5Mutex__T6__ctorTCQBiQBgQBeQBbZQwMFNbNiNebZQBa in libphobos2.a(mutex_5f6_4fb.o) __D4core4sync5mutex5Mutex__T6__ctorTOCQBjQBhQBfQBcZQxMOFNbNiNebZOQBc in libphobos2.a(mutex_5f7_7c3.o) "_pthread_self", referenced from: _thread_init in libphobos2.a(thread_388_48b.o) __D4core6thread11thread_initUNiZ18initChildAfterForkUNbNiZv in libphobos2.a(thread_388_48b.o) __D4core6thread6Thread14loadPrioritiesFNbNiNeZSQBsQBqQBm8Priority in libphobos2.a(thread_386_258.o) __D4core6thread6Thread__T10loadGlobalVAyaa12_5052494f524954595 4d4158ZQBtFNbNiNfZi in libphobos2.a(thread_3c9_81d.o) __D4core6thread6Thread__T10loadGlobalVAyaa12_5052494f524954595 4d494eZQBtFNbNiNfZi in libphobos2.a(thread_3c8_81b.o) __D4core6thread6Thread__T10loadGlobalVAyaa16_5052494f524954595f4445464 554c54ZQCbFNbNiNfZi in libphobos2.a(thread_3ca_93c.o) _thread_entryPoint in libphobos2.a(thread_383_713.o) ... "_pthread_setschedparam", referenced from: __D4core6thread6Thread8priorityMFNdiZv in libphobos2.a(thread_386_258.o) "_realloc", referenced from: __D2rt4util9container6common8xreallocFNbNiPvmZQe in libphobos2.a(common_a11_35a.o) __D2rt5minfo11ModuleGroup9sortCtorsMFAyaZv in libphobos2.a(minfo_8f6_473.o) __D2rt5minfo11ModuleGroup9sortCtorsMFAyaZ6doSortMFmKAPyS6object10ModuleInfoZb in libphobos2.a(minfo_8f6_473.o) __D2rt5minfo11ModuleGroup12sortCtorsOldMFAAiZ4sortMFKAPyS6object10ModuleInfokZb in libphobos2.a(minfo_8f6_473.o) __D4core6thread6Thread5startMFNbZCQBfQBdQz in libphobos2.a(thread_386_258.o) __D4core6thread6Thread7opApplyFMDFKCQBhQBfQBbZiZ6resizeFNbNiKAQBbmZv in libphobos2.a(thread_386_258.o) __D4core6thread6Thread3addFNbNiCQBdQBbQxbZv in libphobos2.a(thread_386_258.o) ... (maybe you meant: _gc_realloc) "_rewind", referenced from: __D3std5stdio4File6rewindMFNfZv in libphobos2.a(stdio_19dd_180.o) "_sched_get_priority_max", referenced from: __D4core6thread6Thread14loadPrioritiesFNbNiNeZSQBsQBqQBm8Priority in libphobos2.a(thread_386_258.o) __D4core6thread6Thread__T10loadGlobalVAyaa12_5052494f524954595 4d4158ZQBtFNbNiNfZi in libphobos2.a(thread_3c9_81d.o) __D4core6thread6Thread__T10loadGlobalVAyaa12_5052494f524954595 4d494eZQBtFNbNiNfZi in libphobos2.a(thread_3c8_81b.o) __D4core6thread6Thread__T10loadGlobalVAyaa16_5052494f524954595f4445464 554c54ZQCbFNbNiNfZi in libphobos2.a(thread_3ca_93c.o) "_sched_get_priority_min", referenced from: __D4core6thread6Thread14loadPrioritiesFNbNiNeZSQBsQBqQBm8Priority in libphobos2.a(thread_386_258.o) __D4core6thread6Thread__T10loadGlobalVAyaa12_5052494f524954595 4d4158ZQBtFNbNiNfZi in libphobos2.a(thread_3c9_81d.o) __D4core6thread6Thread__T10loadGlobalVAyaa12_5052494f524954595 4d494eZQBtFNbNiNfZi in libphobos2.a(thread_3c8_81b.o) __D4core6thread6Thread__T10loadGlobalVAyaa16_5052494f524954595f4445464 554c54ZQCbFNbNiNfZi in libphobos2.a(thread_3ca_93c.o) "_sched_yield", referenced from: _thread_joinAll in libphobos2.a(thread_392_5a0.o) __D4core6thread6Thread5yieldFNbNiZv in libphobos2.a(thread_386_258.o) __D4core8internal8spinlock8SpinLock5yieldMOFNbNiNemZv in libphobos2.a(spinlock_4d3_323.o) "_setvbuf", referenced from: __D3std5stdio4File7setvbufMFNemiZv in libphobos2.a(stdio_19dd_180.o) __D3std5stdio4File7setvbufMFNeAviZv in libphobos2.a(stdio_19dd_180.o) "_sigaction", referenced from: _runModuleUnitTests in libphobos2.a(runtime_36d_76e.o) "_sigfillset", referenced from: _runModuleUnitTests in libphobos2.a(runtime_36d_76e.o) "_snprintf", referenced from: __D2rt9backtrace5dwarf23traceHandlerOpApplyImplFxAPvMDFKmKxAaZiZi in libphobos2.a(dwarf_9d0_924.o) _fakePureReprintReal in libphobos2.a(demangle_2ff_79b.o) __D4core8internal12parseoptions5parseFNbNiAxaKANgaKfQkZb in libphobos2.a(parseoptions_4be_21b.o) "_sscanf", referenced from: __D4core8internal12parseoptions5parseFNbNiAxaKANgaKfQkZb in libphobos2.a(parseoptions_4be_21b.o) "_strerror", referenced from: __d_run_main2 in libphobos2.a(dmain2_888_4ad.o) "_strerror_r", referenced from: __D3std9exception11errnoStringFNbNeiZAya in libphobos2.a(exception_488_49d.o) "_strlen", referenced from: __d_run_main in libphobos2.a(dmain2_887_47b.o) __D3std9exception11errnoStringFNbNeiZAya in libphobos2.a(exception_488_49d.o) __D6object10ModuleInfo6addrOfMxFNaNbNiiZPv in libphobos2.a(object_18_3f2.o) __D6object10ModuleInfo4nameMxFNaNbNdNiZAya in libphobos2.a(object_18_3f2.o) __d_arrayboundsp in libphobos2.a(exception_359_63c.o) __D2rt6config16rt_envvarsOptionFNbNiAyaMDFNbNiQkZQnZQq in libphobos2.a(config_83a_6c3.o) __D2rt9backtrace5dwarf23traceHandlerOpApplyImplFxAPvMDFKmKxAaZiZi in libphobos2.a(dwarf_9d0_924.o) ... "_strtold", referenced from: _fakePureReprintReal in libphobos2.a(demangle_2ff_79b.o) "_sysconf", referenced from: __D4core6thread26_sharedStaticCtor_L3695_C1FZv in libphobos2.a(thread.o) "_thread_get_state", referenced from: __D4core6thread7suspendFNbCQyQv6ThreadZb in libphobos2.a(thread_394_302.o) "_thread_resume", referenced from: __D4core6thread6resumeFNbCQxQu6ThreadZv in libphobos2.a(thread_396_291.o) (maybe you meant: _thread_resumeAll) "_thread_suspend", referenced from: __D4core6thread7suspendFNbCQyQv6ThreadZb in libphobos2.a(thread_394_302.o) (maybe you meant: _thread_suspendAll) "_tmpfile", referenced from: __D3std5stdio4File7tmpfileFNfZSQBcQBbQy in libphobos2.a(stdio_19dd_180.o) "_toupper", referenced from: __D2rt6config16rt_envvarsOptionFNbNiAyaMDFNbNiQkZQnZQq in libphobos2.a(config_83a_6c3.o) "_write", referenced from: __D4core8internal5abortQgFNbNiNfMAyaMQemZv in libphobos2.a(abort_45a_218.o) __D4core8internal5abortQgFNbNiNfMAyaMQemZ8writeStrFNbNiNeMAAxaXv in libphobos2.a(abort_45a_218.o) ld: symbol(s) not found for architecture x86_64 clang-4.0: error: linker command failed with exit code 1 (use -v to see invocation) Error: linker exited with status 1 /Library/D/dmd/bin/dmd failed with exit code 1.
Oct 09 2019
On Wednesday, 9 October 2019 at 10:33:21 UTC, David Briant wrote:I've accidentally upgraded to Catalina - a little earlier than planned as I had hoped not to be trail blazing! My problem is this, in a bash shell and a new directory when I run $ dub init ... answering the questions that dub asks $ dub dmd compiles the skeleton project but ld fails (full dump below). I've tried uninstalling dub, dmd (via homebrew) and reinstalling (had to use the latest beta) and upgrading xcode and also upgrading to Catalina. I'm a d newbie and this is my first escapade into compiling on the mac. Has anyone an idea how to fix this?If I uninstall clang using conda I now get: (base) Davids-MacBook:fred david$ dub Performing "debug" build using /Library/D/dmd/bin/dmd for x86_64. fred ~master: building configuration "application"... Linking... x86_64-apple-darwin13.4.0-clang: No such file or directory core.thread.ThreadError src/core/thread.d(3093): Unable to load thread state ---------------- Error: linker exited with status 255 /Library/D/dmd/bin/dmd failed with exit code 1. It seems like dub has somehow gotten entwined with the anaconda compiler - any ideas how to fix?
Oct 09 2019
On Wednesday, 9 October 2019 at 15:42:42 UTC, David Briant wrote:On Wednesday, 9 October 2019 at 10:33:21 UTC, David Briant wrote:FYI Solution was to use anaconda-clean to remove anaconda completely, then uninstall dmd using homebrew then reinstall the beta version.[...]If I uninstall clang using conda I now get: (base) Davids-MacBook:fred david$ dub Performing "debug" build using /Library/D/dmd/bin/dmd for x86_64. fred ~master: building configuration "application"... Linking... x86_64-apple-darwin13.4.0-clang: No such file or directory core.thread.ThreadError src/core/thread.d(3093): Unable to load thread state ---------------- Error: linker exited with status 255 /Library/D/dmd/bin/dmd failed with exit code 1. It seems like dub has somehow gotten entwined with the anaconda compiler - any ideas how to fix?
Oct 09 2019
On 09/10/2019 11:33 PM, David Briant wrote:I've accidentally upgraded to Catalina - a little earlier than planned as I had hoped not to be trail blazing! My problem is this, in a bash shell and a new directory when I run $ dub init ... answering the questions that dub asks $ dub dmd compiles the skeleton project but ld fails (full dump below). I've tried uninstalling dub, dmd (via homebrew) and reinstalling (had to use the latest beta) and upgrading xcode and also upgrading to Catalina. I'm a d newbie and this is my first escapade into compiling on the mac. Has anyone an idea how to fix this?D as a native language links against libc, so using the system c compiler as the linker is a viable method to prevent having to look things up. Perhaps try ldc? That uses LLVM so may be better on OSX. Related: https://issues.dlang.org/show_bug.cgi?id=20019 Also those versions on homebrew look to be at least one version out of date. If ldc on homebrew doesn't work, you should try the versions on the main site (which has dmg's) https://dlang.org/download.html
Oct 09 2019
On Wednesday, 9 October 2019 at 16:08:41 UTC, rikki cattermole wrote:On 09/10/2019 11:33 PM, David Briant wrote:I confirm that ldc-1.18.0-beta2 works fine on mine Catalina, downloaded and activated with the official install script. /Paolo[...]D as a native language links against libc, so using the system c compiler as the linker is a viable method to prevent having to look things up. Perhaps try ldc? That uses LLVM so may be better on OSX. Related: https://issues.dlang.org/show_bug.cgi?id=20019 Also those versions on homebrew look to be at least one version out of date. If ldc on homebrew doesn't work, you should try the versions on the main site (which has dmg's) https://dlang.org/download.html
Oct 09 2019