Skip to content

Update lightgbm-rs to a newer version. #1572

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

higuoxing
Copy link
Contributor

There will be compiling errors with older lightgbm-rs.

error[E0425]: cannot find function, tuple struct or tuple variant `LGBM_GetLastError` in crate `lightgbm_sys`
  --> /home/v/.cargo/git/checkouts/lightgbm-rs-8bd319b78c888ced/e20d7b9/src/error.rs:41:59
   |
41 |         let c_str = unsafe { CStr::from_ptr(lightgbm_sys::LGBM_GetLastError()) };
   |                                                           ^^^^^^^^^^^^^^^^^ not found in `lightgbm_sys`

error[E0425]: cannot find function, tuple struct or tuple variant `LGBM_DatasetCreateFromMat` in crate `lightgbm_sys`
  --> /home/v/.cargo/git/checkouts/lightgbm-rs-8bd319b78c888ced/e20d7b9/src/dataset.rs:70:34
   |
70 |         lgbm_call!(lightgbm_sys::LGBM_DatasetCreateFromMat(
   |                                  ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `lightgbm_sys`

error[E0425]: cannot find function, tuple struct or tuple variant `LGBM_DatasetSetField` in crate `lightgbm_sys`
  --> /home/v/.cargo/git/checkouts/lightgbm-rs-8bd319b78c888ced/e20d7b9/src/dataset.rs:81:34
   |
81 |         lgbm_call!(lightgbm_sys::LGBM_DatasetSetField(
   |                                  ^^^^^^^^^^^^^^^^^^^^ not found in `lightgbm_sys`

error[E0425]: cannot find function, tuple struct or tuple variant `LGBM_DatasetCreateFromMat` in crate `lightgbm_sys`
   --> /home/v/.cargo/git/checkouts/lightgbm-rs-8bd319b78c888ced/e20d7b9/src/dataset.rs:115:34
    |
115 |         lgbm_call!(lightgbm_sys::LGBM_DatasetCreateFromMat(
    |                                  ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `lightgbm_sys`

This patch helps bump lightgbm-rs to a newer version.

There will be compiling errors with older lightgbm-rs.

```
error[E0425]: cannot find function, tuple struct or tuple variant `LGBM_GetLastError` in crate `lightgbm_sys`
  --> /home/v/.cargo/git/checkouts/lightgbm-rs-8bd319b78c888ced/e20d7b9/src/error.rs:41:59
   |
41 |         let c_str = unsafe { CStr::from_ptr(lightgbm_sys::LGBM_GetLastError()) };
   |                                                           ^^^^^^^^^^^^^^^^^ not found in `lightgbm_sys`

error[E0425]: cannot find function, tuple struct or tuple variant `LGBM_DatasetCreateFromMat` in crate `lightgbm_sys`
  --> /home/v/.cargo/git/checkouts/lightgbm-rs-8bd319b78c888ced/e20d7b9/src/dataset.rs:70:34
   |
70 |         lgbm_call!(lightgbm_sys::LGBM_DatasetCreateFromMat(
   |                                  ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `lightgbm_sys`

error[E0425]: cannot find function, tuple struct or tuple variant `LGBM_DatasetSetField` in crate `lightgbm_sys`
  --> /home/v/.cargo/git/checkouts/lightgbm-rs-8bd319b78c888ced/e20d7b9/src/dataset.rs:81:34
   |
81 |         lgbm_call!(lightgbm_sys::LGBM_DatasetSetField(
   |                                  ^^^^^^^^^^^^^^^^^^^^ not found in `lightgbm_sys`

error[E0425]: cannot find function, tuple struct or tuple variant `LGBM_DatasetCreateFromMat` in crate `lightgbm_sys`
   --> /home/v/.cargo/git/checkouts/lightgbm-rs-8bd319b78c888ced/e20d7b9/src/dataset.rs:115:34
    |
115 |         lgbm_call!(lightgbm_sys::LGBM_DatasetCreateFromMat(
    |                                  ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `lightgbm_sys`
```

This patch helps bump lightgbm-rs to a newer version.
@NetFire-Hex NetFire-Hex mentioned this pull request Dec 28, 2024
@montanalow
Copy link
Contributor

This patch was picked up in #1620.

@montanalow montanalow closed this Jan 3, 2025
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
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy