Skip to content

vlang installation for V 0.5.1 is missing the TCC library #281267

@mortax

Description

@mortax

brew doctor output

Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: Some installed casks are deprecated or disabled.
You should find replacements for the following casks:
  gstreamer-runtime

Warning: Some installed formulae are deprecated or disabled.
You should find replacements for the following formulae:
  icu4c@77

Verification

  • I ran brew update twice and am still able to reproduce my issue.
  • My "brew doctor output" above says Your system is ready to brew or a definitely unrelated Tier message.
  • This issue's title and/or description do not reference a single formula e.g. brew install wget. If they do, open an issue at https://github.com/Homebrew/homebrew-core/issues/new/choose instead.

brew config output

HOMEBREW_VERSION: 5.1.9
ORIGIN: https://github.com/Homebrew/brew
HEAD: c94270e54e7c1ab761c3287893a1381fee60533a
Last commit: 3 days ago
Branch: stable
Core tap JSON: 06 May 19:16 UTC
Core cask tap JSON: 06 May 19:16 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_AUTO_UPDATE_SECS: 86400
HOMEBREW_CASK_OPTS: []
HOMEBREW_DOWNLOAD_CONCURRENCY: 32
HOMEBREW_FORBID_PACKAGES_FROM_PATHS: set
HOMEBREW_MAKE_JOBS: 16
Homebrew Ruby: 4.0.3 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/4.0.3/bin/ruby
CPU: 16-core 64-bit arm_brava
Clang: 21.0.0 build 2100
Git: 2.50.1 => /Applications/Xcode.app/Contents/Developer/usr/bin/git
Curl: 8.7.1 => /usr/bin/curl
macOS: 26.4.1-arm64
CLT: 26.4.1.0.1775747724
Xcode: 26.4.1
Metal Toolchain: N/A
Rosetta 2: false

What were you trying to do (and why)?

brew upgrade vlang install version V 0.5.1, which doesn't work. see vlang/v#27031.

What happened (include all command output)?

V 0.5.1 produces a linker error when compiling anything (in the link phase).

[macro]$ v -prod hello.v -g
ld: warning: search path '/opt/homebrew/Cellar/vlang/0.5.1/libexec/thirdparty/tcc/lib' not found
ld: library 'gc' not found
clang: error: linker command failed with exit code 1 (use -v to see invocation)
builder error: 
==================
C error found. It should never happen, when compiling pure V code.
This is a V compiler bug, please report it using `v bug file.v`,
or goto https://github.com/vlang/v/issues/new/choose .
You can also use #help on Discord: https://discord.gg/vlang .

What did you expect to happen?

After using the workaround:

[macro]$ cat hello.v
//usr/bin/env v run $0 "$@"; exit

fn main() {
    println('Hello world!')
}
[macro]$ v version         
V 0.5.1 
[macro]$ v -prod hello.v -g
[macro]$ ./hello           
Hello world!

Step-by-step reproduction instructions (by running brew commands)

Post-upgrade to V 0.5.1:


[macro]$ cat hello.v 
//usr/bin/env v run $0 "$@"; exit

fn main() {
    println('Hello world!')
}
[macro]$ v version
V 0.5.1 
[macro]$ v -prod hello.v -g
ld: warning: search path '/opt/homebrew/Cellar/vlang/0.5.1/libexec/thirdparty/tcc/lib' not found
ld: library 'gc' not found
clang: error: linker command failed with exit code 1 (use -v to see invocation)
builder error: 
==================
C error found. It should never happen, when compiling pure V code.
This is a V compiler bug, please report it using `v bug file.v`,
or goto https://github.com/vlang/v/issues/new/choose .
You can also use #help on Discord: https://discord.gg/vlang .
{1} [macro]$

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions