Hello I'm using bear for a project to be able to get clangd informations in Helix editor. I've tried this on FreeBSD 13.4-RELEASE-p1 and it's working clearly well. But on FreeBSD 14.1-RELEASEp-5, I'm getting some interesting error messages: ld-elf.so.1: /usr/local/lib/libgrpc.so.44: Undefined symbol "_ZN4absl12lts_202407224CordC1INSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEETnNS3_9enable_ifIXsr3std7is_sameIT_S9_EE5valueEiE4typeELi0EEEOSB_" ld-elf.so.1: /usr/local/lib/libgrpc.so.44: Undefined symbol "_ZN4absl12lts_202407224CordC1INSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEETnNS3_9enable_ifIXsr3std7is_sameIT_S9_EE5valueEiE4typeELi0EEEOSB_" make: "/usr/share/mk/bsd.compiler.mk" line 200: warning: "cc -v 2>&1 | grep "gcc version"" returned non-zero status make: "/usr/share/mk/bsd.compiler.mk" line 204: Unable to determine compiler type for CC=cc. Consider setting COMPILER_TYPE. I've tried reinstalling the packages, and also tried on another 14.1-RELEASE machine, both output the same. The command I'm using is: bear --force-wrapper --append -- make CC=cc -C srcdir is there something I'm not doing right?
Hello, Are you using the official packages? It looks like devel/bear didn't get a PORTREVISION bump after devel/grpc was updated in 2715f16944541b6b27d121a57133347574a51ff1. I submitted a review to the devel/grpc maintainer and author of that commit, so a new devel/bear package with a fix should be available soon. https://reviews.freebsd.org/D47513 Thanks for reporting.
(In reply to Joseph Mingrone from comment #1) I'm pretty sure to use the "latest" packages repository, here are the informations about the package locally: bear-3.1.5_2 Name : bear Version : 3.1.5_2 Installed on : Fri Nov 8 10:40:18 2024 CET Origin : devel/bear Architecture : FreeBSD:14:amd64 Prefix : /usr/local Categories : devel Licenses : GPLv3+ Maintainer : jrm@FreeBSD.org WWW : https://github.com/rizsotto/Bear Comment : Tool that generates a compilation database for clang tooling Options : DOCS : on [Shared libs...] Annotations : FreeBSD_version: 1401000 build_timestamp: 2024-11-02T08:31:56+0000 built_by : poudriere-git-3.4.2 port_checkout_unclean: no port_git_hash : 94829e74ad ports_top_checkout_unclean: no ports_top_git_hash: 009a7c198e repo_type : binary repository : FreeBSD Flat size : 1.21MiB [Description...] I'm not using a private package repository.
Thanks for confirming. Once the fix in the review I shared lands and a package for bear-3.1.5_3 is available, your problem should be fixed.
(In reply to Joseph Mingrone from comment #3) Thank you
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=b359e3699e7c0ceddf80d07c0855be02d689c34e commit b359e3699e7c0ceddf80d07c0855be02d689c34e Author: Joseph Mingrone <jrm@FreeBSD.org> AuthorDate: 2024-11-11 16:45:39 +0000 Commit: Joseph Mingrone <jrm@FreeBSD.org> CommitDate: 2024-11-12 03:13:54 +0000 Bump PORTREVISIONs after grpc shlib change in 2715f16944541b6b PR: 282624 Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D47513 biology/ncbi-blast+/Makefile | 2 +- databases/arrow/Makefile | 2 +- devel/bear/Makefile | 2 +- devel/google-cloud-cpp/Makefile | 2 +- net-mgmt/fastnetmon/Makefile | 2 +- net/rubygem-grpc/Makefile | 1 + science/py-tensorflow/Makefile | 2 +- sysutils/syslog-ng/Makefile | 2 +- www/freenginx-devel/Makefile | 2 +- www/freenginx/Makefile | 2 +- www/nginx-devel/Makefile | 2 +- www/nginx/Makefile | 2 +- 12 files changed, 12 insertions(+), 11 deletions(-)