Skip to content

'v up' fails due to missing libgc.dylib #27148

@programmingkidx

Description

@programmingkidx

Describe the bug

When running 'v up' I see an error message stating "Library not loaded: @rpath/libgc.dylib".

Reproduction Steps

Run command 'v up'.

Expected Behavior

I expect v's source code to be updated then the v binary being remade.

Current Behavior

I see this error instead:

dyld[3902]: Library not loaded: @rpath/libgc.dylib
Referenced from: /Users/user/Documents/Development/Projects/Vlang/V-source-code/git-repo/v/cmd/tools/vup
Reason: tried: '/Users/user/Documents/Development/Projects/Vlang/V source code/git-repo/v/thirdparty/tcc/lib/libgc.dylib' (no such file), '/Users/user/Documents/Development/Projects/Vlang/V source code/git-repo/v/thirdparty/tcc/lib/libgc.dylib' (no such file), '/usr/X11/lib/libgc.dylib' (no such file), '/usr/lib/libgc.dylib' (no such file), '/libgc.dylib' (no such file), '/libgc.dylib' (no such file)
Abort trap: 6

Possible Solution

I suggest enable static linking of libgc. This pull request should fix the problem: #26695.

Additional Information/Context

No response

V version

V 0.5.1 9e01248

Environment details (OS name and version, etc.)

V full version V 0.5.1 ed5fc16.9e01248
OS macos, macOS, 12.3.1, 21E258
Processor 8 cpus, 64bit, little endian, Apple M1
Memory 0.08GB/16GB
V executable /Users/user/Documents/Development/Projects/Vlang/V-source-code/git-repo/v/v
V last modified time 2026-05-11 00:43:00
V home dir OK, value: /Users/user/Documents/Development/Projects/Vlang/V-source-code/git-repo/v
VMODULES OK, value: /Users/user/.vmodules
VTMP OK, value: /tmp/v_501
Current working dir OK, value: /Users/user/Desktop
Git version git version 2.36.1
V git status 0.5.1-1539-g9e012480
.git/config present true
cc version 2026-05-12 15:51:13.878 xcodebuild[4124:135674] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
gcc version Apple clang version 13.1.6 (clang-1316.0.21.2.3)
clang version Apple clang version 13.1.6 (clang-1316.0.21.2.3)
tcc version tcc version 0.9.28rc 2026-01-10 HEAD@5ec0e6f8 (AArch64 Darwin)
tcc git status thirdparty-macos-arm64 f995efa3
emcc version N/A
glibc version N/A

Note

You can use the 👍 reaction to increase the issue's priority for developers.

Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugThis tag is applied to issues which reports bugs.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions