Bug 284667 - www/py-qh3: fix build with LLVM_DEFAULT=19
Summary: www/py-qh3: fix build with LLVM_DEFAULT=19
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Yuri Victorovich
URL:
Keywords:
Depends on:
Blocks: 284297
  Show dependency treegraph
 
Reported: 2025-02-08 22:28 UTC by Dimitry Andric
Modified: 2025-02-26 19:10 UTC (History)
0 users

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


Attachments
www/py-qh3: fix build with LLVM_DEFAULT=19 (4.02 KB, patch)
2025-02-08 22:30 UTC, Dimitry Andric
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dimitry Andric freebsd_committer freebsd_triage 2025-02-08 22:28:53 UTC
When building with LLVM_DEFAULT set to 19, www/py-qh3 errors out with:

  error[E0425]: cannot find function, tuple struct or tuple variant `ERR_GET_LIB_RUST` in this scope
    --> /wrkdirs/usr/ports/www/py-qh3/work-py311/qh3-1.0.9/cargo-crates/aws-lc-sys-0.20.1/src/lib.rs:74:14
     |
  74 |     unsafe { ERR_GET_LIB_RUST(packed_error) }
     |              ^^^^^^^^^^^^^^^^ not found in this scope

  error[E0425]: cannot find function, tuple struct or tuple variant `ERR_GET_REASON_RUST` in this scope
    --> /wrkdirs/usr/ports/www/py-qh3/work-py311/qh3-1.0.9/cargo-crates/aws-lc-sys-0.20.1/src/lib.rs:80:14
     |
  80 |     unsafe { ERR_GET_REASON_RUST(packed_error) }
     |              ^^^^^^^^^^^^^^^^^^^ not found in this scope

  error[E0425]: cannot find function, tuple struct or tuple variant `ERR_GET_FUNC_RUST` in this scope
    --> /wrkdirs/usr/ports/www/py-qh3/work-py311/qh3-1.0.9/cargo-crates/aws-lc-sys-0.20.1/src/lib.rs:86:14
     |
  86 |     unsafe { ERR_GET_FUNC_RUST(packed_error) }
     |              ^^^^^^^^^^^^^^^^^ not found in this scope

  error[E0425]: cannot find function, tuple struct or tuple variant `BIO_ctrl` in this scope
    --> /wrkdirs/usr/ports/www/py-qh3/work-py311/qh3-1.0.9/cargo-crates/aws-lc-sys-0.20.1/src/lib.rs:91:14
     |
  91 |     unsafe { BIO_ctrl(b, BIO_CTRL_INFO, 0, pp.cast::<c_void>()) }
     |              ^^^^^^^^ not found in this scope

  error[E0425]: cannot find function, tuple struct or tuple variant `CRYPTO_library_init` in this scope
    --> /wrkdirs/usr/ports/www/py-qh3/work-py311/qh3-1.0.9/cargo-crates/aws-lc-sys-0.20.1/src/lib.rs:95:14
     |
  95 |     unsafe { CRYPTO_library_init() }
     |              ^^^^^^^^^^^^^^^^^^^ not found in this scope

In https://github.com/aws/aws-lc-rs/issues/476#issuecomment-2402442254
justsmth mentions:

> With the release of bindgen 0.69.5 this problem should now be resolved.

Bumping the bindgen CARGO_CRATES entry to 0.69.5 indeed allows the port
to built against llvm 19.
Comment 1 Dimitry Andric freebsd_committer freebsd_triage 2025-02-08 22:30:26 UTC
Created attachment 257334 [details]
www/py-qh3: fix build with LLVM_DEFAULT=19
Comment 2 commit-hook freebsd_committer freebsd_triage 2025-02-26 19:02:56 UTC
A commit in branch main references this bug:

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

commit 9cccbd8cf04893ddf7fef2f2653487e06f0b94d8
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2025-02-08 22:29:10 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2025-02-26 19:00:45 +0000

    www/py-qh3: fix build with LLVM_DEFAULT=19

    When building with LLVM_DEFAULT set to 19, www/py-qh3 errors out with:

      error[E0425]: cannot find function, tuple struct or tuple variant `ERR_GET_LIB_RUST` in this scope
        --> /wrkdirs/usr/ports/www/py-qh3/work-py311/qh3-1.0.9/cargo-crates/aws-lc-sys-0.20.1/src/lib.rs:74:14
         |
      74 |     unsafe { ERR_GET_LIB_RUST(packed_error) }
         |              ^^^^^^^^^^^^^^^^ not found in this scope

      error[E0425]: cannot find function, tuple struct or tuple variant `ERR_GET_REASON_RUST` in this scope
        --> /wrkdirs/usr/ports/www/py-qh3/work-py311/qh3-1.0.9/cargo-crates/aws-lc-sys-0.20.1/src/lib.rs:80:14
         |
      80 |     unsafe { ERR_GET_REASON_RUST(packed_error) }
         |              ^^^^^^^^^^^^^^^^^^^ not found in this scope

      error[E0425]: cannot find function, tuple struct or tuple variant `ERR_GET_FUNC_RUST` in this scope
        --> /wrkdirs/usr/ports/www/py-qh3/work-py311/qh3-1.0.9/cargo-crates/aws-lc-sys-0.20.1/src/lib.rs:86:14
         |
      86 |     unsafe { ERR_GET_FUNC_RUST(packed_error) }
         |              ^^^^^^^^^^^^^^^^^ not found in this scope

      error[E0425]: cannot find function, tuple struct or tuple variant `BIO_ctrl` in this scope
        --> /wrkdirs/usr/ports/www/py-qh3/work-py311/qh3-1.0.9/cargo-crates/aws-lc-sys-0.20.1/src/lib.rs:91:14
         |
      91 |     unsafe { BIO_ctrl(b, BIO_CTRL_INFO, 0, pp.cast::<c_void>()) }
         |              ^^^^^^^^ not found in this scope

      error[E0425]: cannot find function, tuple struct or tuple variant `CRYPTO_library_init` in this scope
        --> /wrkdirs/usr/ports/www/py-qh3/work-py311/qh3-1.0.9/cargo-crates/aws-lc-sys-0.20.1/src/lib.rs:95:14
         |
      95 |     unsafe { CRYPTO_library_init() }
         |              ^^^^^^^^^^^^^^^^^^^ not found in this scope

    In https://github.com/aws/aws-lc-rs/issues/476#issuecomment-2402442254
    justsmth mentions:

    > With the release of bindgen 0.69.5 this problem should now be resolved.

    Bumping the bindgen CARGO_CRATES entry to 0.69.5 indeed allows the port
    to built against llvm 19.

    PR:             284667
    Approved by:    maintainer timeout (2 weeks)
    MFH:            2025Q1

 www/py-qh3/Makefile | 2 +-
 www/py-qh3/distinfo | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)
Comment 3 commit-hook freebsd_committer freebsd_triage 2025-02-26 19:04:00 UTC
A commit in branch 2025Q1 references this bug:

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

commit 0d47e63e74ee3fc23bc82aa98c4df6429a0877ff
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2025-02-08 22:29:10 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2025-02-26 19:02:51 +0000

    www/py-qh3: fix build with LLVM_DEFAULT=19

    When building with LLVM_DEFAULT set to 19, www/py-qh3 errors out with:

      error[E0425]: cannot find function, tuple struct or tuple variant `ERR_GET_LIB_RUST` in this scope
        --> /wrkdirs/usr/ports/www/py-qh3/work-py311/qh3-1.0.9/cargo-crates/aws-lc-sys-0.20.1/src/lib.rs:74:14
         |
      74 |     unsafe { ERR_GET_LIB_RUST(packed_error) }
         |              ^^^^^^^^^^^^^^^^ not found in this scope

      error[E0425]: cannot find function, tuple struct or tuple variant `ERR_GET_REASON_RUST` in this scope
        --> /wrkdirs/usr/ports/www/py-qh3/work-py311/qh3-1.0.9/cargo-crates/aws-lc-sys-0.20.1/src/lib.rs:80:14
         |
      80 |     unsafe { ERR_GET_REASON_RUST(packed_error) }
         |              ^^^^^^^^^^^^^^^^^^^ not found in this scope

      error[E0425]: cannot find function, tuple struct or tuple variant `ERR_GET_FUNC_RUST` in this scope
        --> /wrkdirs/usr/ports/www/py-qh3/work-py311/qh3-1.0.9/cargo-crates/aws-lc-sys-0.20.1/src/lib.rs:86:14
         |
      86 |     unsafe { ERR_GET_FUNC_RUST(packed_error) }
         |              ^^^^^^^^^^^^^^^^^ not found in this scope

      error[E0425]: cannot find function, tuple struct or tuple variant `BIO_ctrl` in this scope
        --> /wrkdirs/usr/ports/www/py-qh3/work-py311/qh3-1.0.9/cargo-crates/aws-lc-sys-0.20.1/src/lib.rs:91:14
         |
      91 |     unsafe { BIO_ctrl(b, BIO_CTRL_INFO, 0, pp.cast::<c_void>()) }
         |              ^^^^^^^^ not found in this scope

      error[E0425]: cannot find function, tuple struct or tuple variant `CRYPTO_library_init` in this scope
        --> /wrkdirs/usr/ports/www/py-qh3/work-py311/qh3-1.0.9/cargo-crates/aws-lc-sys-0.20.1/src/lib.rs:95:14
         |
      95 |     unsafe { CRYPTO_library_init() }
         |              ^^^^^^^^^^^^^^^^^^^ not found in this scope

    In https://github.com/aws/aws-lc-rs/issues/476#issuecomment-2402442254
    justsmth mentions:

    > With the release of bindgen 0.69.5 this problem should now be resolved.

    Bumping the bindgen CARGO_CRATES entry to 0.69.5 indeed allows the port
    to built against llvm 19.

    PR:             284667
    Approved by:    maintainer timeout (2 weeks)
    MFH:            2025Q1

    (cherry picked from commit 9cccbd8cf04893ddf7fef2f2653487e06f0b94d8)

 www/py-qh3/Makefile | 2 +-
 www/py-qh3/distinfo | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)