Skip to content

Fix v doctor output on FreeBSD, do not run ldd to get glibc version - #24427

Merged
spytheman merged 1 commit into
vlang:masterfrom
lcheylus:vdoctor-freebsd
May 7, 2025
Merged

spytheman merged 1 commit into
vlang:masterfrom
lcheylus:vdoctor-freebsd

Conversation

@lcheylus

@lcheylus lcheylus commented May 6, 2025 •

Copy link
Copy Markdown
Contributor

glibc not available on FreeBSD

Tests OK on FreeBSD 14.2

$ ./v doctor
|V full version      |V 0.4.10 dd859eae55cf4e69346851fe285b9af104c8ffb7.bab0441
|:-------------------|:-------------------
|OS                  |freebsd, 14.2-RELEASE-p1, FreeBSD 14.2-RELEASE-p1 GENERIC
|Processor           |4 cpus, 64bit, little endian
|Memory              |0.62GB/0.97GB
|                    |
|V executable        |/home/fox/dev/vlang.git/v
|V last modified time|2025-05-06 13:32:11
|                    |
|V home dir          |OK, value: /home/fox/dev/vlang.git
|VMODULES            |OK, value: /home/fox/.vmodules
|VTMP                |OK, value: /tmp/v_1000
|Current working dir |OK, value: /home/fox/dev/vlang.git
|                    |
|Git version         |git version 2.48.1
|V git status        |weekly.2025.17-60-gbab04415
|.git/config present |true
|                    |
|cc version          |FreeBSD clang version 18.1.6 (https://github.com/llvm/llvm-project.git llvmorg-18.1.6-0-g1118c2e05e67)
|gcc version         |N/A
|clang version       |FreeBSD clang version 18.1.6 (https://github.com/llvm/llvm-project.git llvmorg-18.1.6-0-g1118c2e05e67)
|tcc version         |tcc version 0.9.28rc 2025-02-13 HEAD@f8bd136d (x86_64 FreeBSD)
|tcc git status      |thirdparty-freebsd-amd64 2f0f0f13
|emcc version        |N/A
|glibc version       |N/A

Tests OK on Linux Debian/testing

$ ./v doctor
|V full version      |V 0.4.10 dd859eae55cf4e69346851fe285b9af104c8ffb7.bab0441
|:-------------------|:-------------------
|OS                  |linux, Debian GNU/Linux trixie/sid
|Processor           |8 cpus, 64bit, little endian, Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
|Memory              |0.91GB/15.5GB
|                    |
|V executable        |/home/fox/dev/vlang.git/v
|V last modified time|2025-05-06 13:39:59
|                    |
|V home dir          |OK, value: /home/fox/dev/vlang.git
|VMODULES            |OK, value: /home/fox/.vmodules
|VTMP                |OK, value: /tmp/v_1000
|Current working dir |OK, value: /home/fox/dev/vlang.git
|                    |
|Git version         |git version 2.47.2
|V git status        |weekly.2025.17-60-gbab04415
|.git/config present |true
|                    |
|cc version          |cc (Debian 14.2.0-19) 14.2.0
|gcc version         |gcc (Debian 14.2.0-19) 14.2.0
|clang version       |Debian clang version 19.1.7 (3)
|tcc version         |tcc version 0.9.28rc 2025-02-13 HEAD@f8bd136d (x86_64 Linux)
|tcc git status      |thirdparty-linux-amd64 696c1d84
|emcc version        |N/A
|glibc version       |ldd (Debian GLIBC 2.41-7) 2.41

@huly-for-github

Copy link
Copy Markdown

Connected to Huly®: V_0.6-22798

…bc version

Signed-off-by: Laurent Cheylus <foxy@free.fr>
@lcheylus
lcheylus force-pushed the vdoctor-freebsd branch from bab0441 to beb4641 Compare May 6, 2025 14:00

@spytheman spytheman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work.

@spytheman
spytheman merged commit 2d43b83 into vlang:master May 7, 2025
@lcheylus
lcheylus deleted the vdoctor-freebsd branch May 7, 2025 07:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants