Skip to content

bash alias to rustc stops working #15662

Closed
@edwardw

Description

@edwardw

I usually maintain two versions of rustc in parallel. One is relatively stable and the other is compiled from my local repository. The stable one is in the bash path and the transient one is simply an alias like so:

alias rc1='path/to/rust/x86_64-apple-darwin/stage1/bin/rustc'

But recently the alias one doesn't work any more. If invoking that rustc from any directory other than the local rust repository, it is an error:

dyld: lazy symbol binding failed: Symbol not found: __ZN10lang_start20h795a192a885be7beEoeE
  Referenced from: /path/to/rust/x86_64-apple-darwin/stage1/bin/rustc
  Expected in: /usr/local/lib/libnative-4e7c5e5c.dylib

dyld: Symbol not found: __ZN10lang_start20h795a192a885be7beEoeE
  Referenced from: /path/to/rust/x86_64-apple-darwin/stage1/bin/rustc
  Expected in: /usr/local/lib/libnative-4e7c5e5c.dylib

Trace/BPT trap: 5

This is rather inconvenient.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions