rusty_v8 icon indicating copy to clipboard operation
rusty_v8 copied to clipboard

error: relocation R_X86_64_TPOFF32 against hidden symbol `_ZN2v88internal18g_current_isolate_E' can not be used when making a shared object

Open mplemay opened this issue 8 months ago • 7 comments

When upgrading to the latest version of the v8 create, I encounter the following error:

  = note: /usr/bin/ld: /tmp/rustcnxkAyd/libv8-fa1f4565c5216947.rlib(binding.o): relocation R_X86_64_TPOFF32 against hidden symbol `_ZN2v88internal18g_current_isolate_E' can not be used when making a shared object
          /usr/bin/ld: failed to set dynamic section sizes: bad value
          collect2: error: ld returned 1 exit status

despite the part of my code which references isolation being unchanged (see below)

        // let isolate_params = v8::CreateParams::default().heap_limits(0, 2000 * 1024 * 1024);
        let isolate = &mut v8::Isolate::new(Default::default());
        let handle_scope = &mut v8::HandleScope::new(isolate);
        let mut context = v8::Context::new(handle_scope, Default::default());
        let scope = &mut v8::ContextScope::new(handle_scope, context);

Do y'all have any pointers on how to debug/resolve this issue?

mplemay avatar Feb 12 '25 14:02 mplemay