Bug 265947 - lang/guile: Has USE_GCC=12 but gcc11 is used instead
Summary: lang/guile: Has USE_GCC=12 but gcc11 is used instead
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Muhammad Moinur Rahman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-19 18:43 UTC by Lorenzo Salvadore
Modified: 2022-10-27 17:26 UTC (History)
3 users (show)

See Also:
bugzilla: maintainer-feedback? (bofh)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lorenzo Salvadore freebsd_committer freebsd_triage 2022-08-19 18:43:14 UTC
The Makefile has USE_GCC=12, however the port does not depend on gcc12 and depends on gcc11 instead (see make all-depends-list, see index, see freshports etc.).

Since I am now maintaining most of gcc ports, I am going to investigate about why USE_GCC=12 does not work as expected and try to fix it. However, if the port is working fine with gcc11, it is porbably better to set USE_GCC=yes instead (or even better try clang, if it works).
Comment 1 Lorenzo Salvadore freebsd_committer freebsd_triage 2022-08-19 18:51:37 UTC
See also make test-gcc, which is probably the most helpful.
Comment 2 Lorenzo Salvadore freebsd_committer freebsd_triage 2022-08-19 19:16:21 UTC
I have studied the issue and I discovered that bsd.gcc.mk is fine. The problem is in the port Makefile only: USES=cc-c++11-lib overrides USE_GCC=12 and set USE_GCC=11 instead. You can check it with make -V USE_GCC.
Comment 3 Tatsuki Makino 2022-08-20 02:48:04 UTC
I am also concerned that USES=compiler:foo-bar even determines the version of the compiler to be used.
I think it would be better for USES=compiler:foo-bar to determine the range of compiler versions to be used, and let USE_GCC and USE_LLVM determine the final version to be used....
Comment 4 commit-hook freebsd_committer freebsd_triage 2022-10-27 17:26:23 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=b6afd65b60898fb1637061ad7686c30597d1c8e1

commit b6afd65b60898fb1637061ad7686c30597d1c8e1
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2022-10-27 17:23:55 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2022-10-27 17:25:23 +0000

    lang/guile: Remove USE_GCC=12

    The Makefile has USE_GCC=12, however the port does not depend on gcc12
    and depends on gcc11 instead. Somehow the USES=cc-c++11-lib overrides
    USE_GCC=12 and this port perfectly builds with GCC 11

    PR:             265947
    Reported by:    salvadore

 lang/guile/Makefile | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)