Skip to content
This repository was archived by the owner on Jun 8, 2021. It is now read-only.
This repository was archived by the owner on Jun 8, 2021. It is now read-only.

Internal compiler error #76

Closed
Closed
@antoyo

Description

@antoyo

Hello.
When trying to compile a project depending on gtk (and thus glib), I get the following error:

   Compiling glib v0.0.5
error: internal compiler error: ty_is_local invoked on unexpected type: [type error]
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
thread 'rustc' panicked at 'Box<Any>', ../src/libsyntax/diagnostic.rs:253
stack backtrace:
   1:     0x7f3415555150 - sys::backtrace::tracing::imp::write::h5b6ace072a698e367Et
   2:     0x7f341555b945 - panicking::log_panic::_<closure>::closure.40164
   3:     0x7f341555b3df - panicking::log_panic::h6d8190bda72bc747Arx
   4:     0x7f3415525323 - sys_common::unwind::begin_unwind_inner::h94eea8313ef59f71cys
   5:     0x7f340f3fc407 - sys_common::unwind::begin_unwind::begin_unwind::h4274098006826536074
   6:     0x7f340f3fd2b6 - diagnostic::_<impl>::bug::h58a7af07988e46b3UNB
   7:     0x7f34132ade33 - session::_<impl>::bug::h213087ebc98070c1s5w
   8:     0x7f34134c6b16 - middle::traits::coherence::ty_is_local_constructor::h75ac300f619dacd4W6R
   9:     0x7f34134c5dab - middle::traits::coherence::ty_is_local::h2152d6a6c9a70efdG5R
  10:     0x7f34134c43d9 - middle::traits::coherence::orphan_check_trait_ref::h83d5c3db56fab02akWR
  11:     0x7f34134e9c92 - middle::traits::select::_<impl>::candidate_from_obligation::h393efaca65f5af5cMuW
  12:     0x7f34134f1e0c - middle::traits::select::_<impl>::evaluate_stack::hf9d672f70e730aff6jW
  13:     0x7f34134f0ebe - middle::traits::select::_<impl>::evaluate_predicate_recursively::heb447c75ffd8fe018aW
  14:     0x7f34134f2145 - middle::traits::select::_<impl>::evaluate_candidate::_<closure>::closure.99512
  15:     0x7f34134f1e8e - middle::traits::select::_<impl>::evaluate_stack::hf9d672f70e730aff6jW
  16:     0x7f34134f0ebe - middle::traits::select::_<impl>::evaluate_predicate_recursively::heb447c75ffd8fe018aW
  17:     0x7f34134c03fb - middle::traits::coherence::overlap::h26b526550e519e4cYDR
  18:     0x7f34134bfcac - middle::traits::coherence::overlapping_impls::hb6802312fbcad60fYBR
  19:     0x7f3414241645 - coherence::overlap::_<impl>::check_if_impls_overlap::h63d63c4df3f6d9b3zYA
  20:     0x7f34140f7c41 - coherence::check_coherence::hd5f57cb933e3799e3UB
  21:     0x7f34140f04c9 - check_crate::h9b4d8810bf169e71PpD
  22:     0x7f3415a4c85d - driver::phase_3_run_analysis_passes::_<closure>::closure.25151
  23:     0x7f3415a303c3 - middle::ty::context::_<impl>::create_and_enter::create_and_enter::h9927264928927630959
  24:     0x7f3415a2b77b - driver::phase_3_run_analysis_passes::h9394773446094229087
  25:     0x7f34159fd662 - driver::compile_input::h1f61a158c52a8220cca
  26:     0x7f34159ef1db - run_compiler::hd87e09e88aee8063zvc
  27:     0x7f34159ec206 - sys_common::unwind::try::try_fn::try_fn::h2507626549812350305
  28:     0x7f3415552de8 - __rust_try
  29:     0x7f341554b24b - sys_common::unwind::try::inner_try::h4958b46263018defKus
  30:     0x7f34159ec554 - boxed::_<impl>::call_box::call_box::h4575607361476731753
  31:     0x7f341555a473 - sys::thread::_<impl>::new::thread_start::h8f57d9485bcbc18flNw
  32:     0x7f340ec4f4a3 - start_thread
  33:     0x7f34151ea13c - clone
  34:                0x0 - <unknown>

Could not compile `glib`.

To learn more, run the command again with --verbose.

I use rustc 1.6.0-nightly (9303055f3 2015-11-19).

Thanks to fix this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions