Skip to content
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

gfx_device_gl 0.16.1 compilation error on latest nightly - "could not find format_args in core" #2964

Closed
mitchmindtree opened this issue Aug 18, 2019 · 5 comments
Labels
api: pre-ll old abstraction layer (pre-ll branch) client: blocker blocker issue for a known client type: bug

Comments

@mitchmindtree
Copy link
Contributor

Currently attempting to update conrod, however travis's nightly build seems to be failing with the following error. Curiously, stable and beta build fine. I wonder if this is a bug in the latest rustc nightly?

   Compiling gfx_device_gl v0.16.1

     Running `rustc --crate-name gfx_device_gl /home/travis/.cargo/registry/src/github.com-1ecc6299db9ec823/gfx_device_gl-0.16.1/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C debuginfo=2 -C metadata=99ad1df062eeb806 -C extra-filename=-99ad1df062eeb806 --out-dir /home/travis/build/PistonDevelopers/conrod/target/debug/deps -L dependency=/home/travis/build/PistonDevelopers/conrod/target/debug/deps --extern gfx_core=/home/travis/build/PistonDevelopers/conrod/target/debug/deps/libgfx_core-1411fbda9e20854f.rmeta --extern gfx_gl=/home/travis/build/PistonDevelopers/conrod/target/debug/deps/libgfx_gl-ecbe19e745d0b4a3.rmeta --extern log=/home/travis/build/PistonDevelopers/conrod/target/debug/deps/liblog-7a40360aa6455ce2.rmeta --cap-lints allow`

error[E0433]: failed to resolve: could not find `format_args` in `core`

   --> /home/travis/.cargo/registry/src/github.com-1ecc6299db9ec823/gfx_device_gl-0.16.1/src/shade.rs:434:24

    |

434 |                 name = format!("Target{}", index);

    |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^ could not find `format_args` in `core`

    |

    = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

error[E0433]: failed to resolve: could not find `format_args` in `core`

   --> /home/travis/.cargo/registry/src/github.com-1ecc6299db9ec823/gfx_device_gl-0.16.1/src/shade.rs:487:30

    |

487 |             let color_name = format!("Target{}\0", i);

    |                              ^^^^^^^^^^^^^^^^^^^^^^^^ could not find `format_args` in `core`

    |

    = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0433`.

error: Could not compile `gfx_device_gl`.

Caused by:

  process didn't exit successfully: `rustc --crate-name gfx_device_gl /home/travis/.cargo/registry/src/github.com-1ecc6299db9ec823/gfx_device_gl-0.16.1/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C debuginfo=2 -C metadata=99ad1df062eeb806 -C extra-filename=-99ad1df062eeb806 --out-dir /home/travis/build/PistonDevelopers/conrod/target/debug/deps -L dependency=/home/travis/build/PistonDevelopers/conrod/target/debug/deps --extern gfx_core=/home/travis/build/PistonDevelopers/conrod/target/debug/deps/libgfx_core-1411fbda9e20854f.rmeta --extern gfx_gl=/home/travis/build/PistonDevelopers/conrod/target/debug/deps/libgfx_gl-ecbe19e745d0b4a3.rmeta --extern log=/home/travis/build/PistonDevelopers/conrod/target/debug/deps/liblog-7a40360aa6455ce2.rmeta --cap-lints allow` (exit code: 1)

warning: build failed, waiting for other jobs to finish...

error: build failed

The command "cargo test --verbose" exited with 101.

I believe this is related to the pre-ll gfx.

@TheOpenDevProject
Copy link

This is also blocking me from building my project.

@alexheretic
Copy link
Contributor

I noticed this recently as I wanted to mess about with some profile-overrides (nightly only). Refactoring from extern crate gfx_core as core -> extern crate gfx_core seems to fix currently nightly compilation.

I'd say this is a rustc regression, but it's pretty harmless to fix the pre-ll code too. Particularly as the core alias seems a poor one anyway. Would you guys like a pr?

@kvark
Copy link
Member

kvark commented Aug 26, 2019

@alexheretic we'd be happy to accept a PR, yes.

bors bot added a commit that referenced this issue Aug 28, 2019
2980: [v0.18] Remove `core` alias in gfx_device_gl r=kvark a=alexheretic

Fixes gfx_device_gl to compile on recent nightlies, fixes #2964. Cherry picked from #2979 into `v0.18`.

PR checklist:
- [x] tested examples with the following backends: gl


Co-authored-by: Alex Butler <[email protected]>
bors bot added a commit that referenced this issue Aug 28, 2019
2979: [pre-ll] Remove `core` alias in gfx_device_gl r=kvark a=alexheretic

Fixes `gfx_device_gl` to compile on recent nightlies, see #2964. I only removed the alias usage in this crate as it was the one that seems to cause issues.

PR checklist:
- [x] tested examples with the following backends: gl


Co-authored-by: Alex Butler <[email protected]>
bors bot added a commit that referenced this issue Aug 29, 2019
2984: [v0.18] Release gfx_device_gl 0.16.2 r=kvark a=alexheretic

Resolves #2964


Co-authored-by: Alex Butler <[email protected]>
@alexheretic
Copy link
Contributor

This is fixed with 0.16.2

@GabrielMajeri
Copy link
Contributor

@kvark this issue seems to have been fixed

@kvark kvark closed this as completed Jul 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: pre-ll old abstraction layer (pre-ll branch) client: blocker blocker issue for a known client type: bug
Projects
None yet
Development

No branches or pull requests

5 participants