ld errors in osx Catalina

David Briant dbriant at symmetryinvestments.com
Wed Oct 9 15:42:42 UTC 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 at 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?


More information about the Digitalmars-d-learn mailing list