Skip to content

rusty_v8 as cdylib #1798

@CyanChanges

Description

@CyanChanges

I am trying to use deno_core in a cdylib crate

Image

After setting the relocation-model to pic in rustflags (environment variable RUSTFLAGS="-Crelocation-model=pic")
previous errors are gone, but now I got:

Image

Full log

error: linking with `cc` failed: exit status: 1
  |
  = note:  "cc" "-Wl,--version-script=/tmp/rustc3z0VA2/list" "-Wl,--no-undefined-version" "-m64" "/tmp/rustc3z0VA2/symbols.o" "<40 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/home/cyan/RustroverProjects/moderncomputers-native-rs/target/debug/deps/{libjni-646c001bcc9c71d3.rlib,libcesu8-590934ef4919fb45.rlib,liblog-703a329d9b382892.rlib,libcombine-1c53b1d593ed6fb2.rlib,libthiserror-3483d7e0cf662881.rlib,libjni_sys-7cea3bfcc3846ffa.rlib,libdeno_core-b8a382168613b74e.rlib,libbincode-8660bd392d457826.rlib,libdeno_core_icudata-706966cd01ec505b.rlib,libaz-65e1bf98632a3c9f.rlib,libdeno_path_util-5f8d3ff8311717a2.rlib,libsys_traits-e6938215cc7b6b13.rlib,libcooked_waker-479e8aa8a0291b31.rlib,libdeno_unsync-91dd20089e586dc7.rlib,libwasm_dep_analyzer-a1c5f3bcb843d10b.rlib,libserde_v8-f772780ffdcd1038.rlib,libv8-827ba20ccd3d326c.rlib,libpin_project-2493446d9a6b8aff.rlib,libfutures-c6540b8190b57f8b.rlib,libfutures_executor-b0833ddfc3ce7c10.rlib,libfutures_util-f5df3c4a3909a690.rlib,libfutures_io-fd5151b9eccb128d.rlib,libslab-9b3740f2bd025a65.rlib,libfutures_channel-703dfebdece3179f.rlib,libfutures_sink-8014b0451f132829.rlib,libfutures_task-f0dca074890c6a6a.rlib,libpin_utils-600bba7144cc3630.rlib,libfutures_core-139af8b4dcd2a463.rlib,libbit_set-a0609419f4bff964.rlib,libbit_vec-e34ddbd0b9ffb026.rlib,libdeno_ast-527cd5c1e2b5b450.rlib,libswc_ecma_transforms_typescript-5ae98d4bdcd0b185.rlib,libswc_ecma_transforms_react-092eda9e02649d8f.rlib,libsha1-58b4e20315f126c6.rlib,libcpufeatures-5a5d9182bc84505d.rlib,libdigest-869b3b3e681f1d2f.rlib,libblock_buffer-c3816a793daa4573.rlib,libcrypto_common-e976af5af55af545.rlib,libgeneric_array-a151c9514cd8e424.rlib,libtypenum-c18a9bb504a860ce.rlib,libswc_config-0de2f04044fbae99.rlib,libswc_ecma_transforms_proposal-fce49e62ea456d45.rlib,libswc_ecma_transforms_classes-1eb5e117013a6773.rlib,libswc_ecma_transforms_base-481a7ab0259c4370.rlib,libswc_ecma_loader-0a82e43582091e7b.rlib,libanyhow-c0334717964b0aa8.rlib,libswc_ecma_codegen-863a3235647209d7.rlib,libregex-2ecbd6bdc46318e3.rlib,libregex_automata-a51957eb8dca0153.rlib,libaho_corasick-54aef44f146f1b9f.rlib,libregex_syntax-7e42e24771b38a7a.rlib,libswc_allocator-bfd18180689dfaf8.rlib,libbumpalo-1ffe8dee8fbfec2c.rlib,libascii-05baac83134a9b5a.rlib,libcompact_str-8baa666eb7009244.rlib,libcastaway-10e8b00d83d0c5b1.rlib,libswc_ecma_utils-ea18aa475ef909ac.rlib,libryu_js-597c7a45f424fafe.rlib,libnum_cpus-3ded272824cf13d3.rlib,libpar_core-ada49887e52506f7.rlib,libdeno_error-57fd7d15c3f23143.rlib,libtokio-1cffcd55c965e5c4.rlib,libsignal_hook_registry-9c6066ea2262e120.rlib,libsocket2-2af5ed53d98a35f7.rlib,libbytes-0a5b46d499b47494.rlib,libmio-aba389e6cd8dfbfa.rlib,libparking_lot-ebb2fd6ca888a5a1.rlib,libparking_lot_core-3de40e54854d0725.rlib,liblock_api-43b07e5cf8b61d0e.rlib,libscopeguard-0f14871cadd470f2.rlib,libswc_ecma_visit-cb3571bc4182ee68.rlib,libdeno_media_type-76ff8f1565c00800.rlib,libdata_url-4e9677498ef6996a.rlib,libcapacity_builder-416b204d67dfcf2b.rlib,libdprint_swc_ext-e4aeef8a4ceb88ab.rlib,libswc_ecma_parser-95cd4bcaa07fe6c6.rlib,libstacker-d95cbc3969ebb1e4.rlib,libpsm-e0435960806ecdde.rlib,liblibc-2a84641bdad073dd.rlib,libtyped_arena-a931c6263a0e2d0d.rlib,libswc_ecma_lexer-b89fb889cb8e213a.rlib,libsmartstring-61311d0781ad300c.rlib,libstatic_assertions-373b9e6dba28c098.rlib,libarrayvec-a76d6b0cf34a3305.rlib,libswc_ecma_ast-0622a649141a8904.rlib,libbitflags-6ac3278fdcf4d4e5.rlib,libphf-2cf69b411001a99f.rlib,libphf_shared-bea5c84176bca4de.rlib,libsiphasher-3954ce7b1f1b8f92.rlib,libtext_lines-ae48ab9126bb137e.rlib,libswc_common-3558f5156e3f4fdf.rlib,libbetter_scoped_tls-d143298b66eac4a3.rlib,libscoped_tls-1415e8309f1f5434.rlib,libunicode_width-c8349f8b5472bd3d.rlib,libsourcemap-962df0f889e23c12.rlib,libbase64_simd-37cbca375de7b243.rlib,liboutref-6fe94c68e3a2ee44.rlib,libvsimd-1edc0009909caf90.rlib,libunicode_id_start-cf2fb65ba5b673d9.rlib,libdata_encoding-a24983c044321595.rlib,libif_chain-c97e2bc9216b3634.rlib,libserde_json-ca7a1bdf9516f75f.rlib,libmemchr-0acbab62be215fc5.rlib,libitoa-c0d6712141682d12.rlib,libryu-174e716e17c4d745.rlib,libindexmap-a528ee743305666d.rlib,libequivalent-fed35161bead1a36.rlib,libhashbrown-d11d67dc7a9351a6.rlib,libbitvec-e125230a6a75b17c.rlib,libwyz-2d21916dcd279733.rlib,libtap-d2599b08f761ce25.rlib,libradium-06c6de5a849e0ce4.rlib,libfunty-947ddd7723f07036.rlib,liburl-4c222c4b6688c7ba.rlib,libidna-098991038ed01332.rlib,libutf8_iter-c8feb2a916e0a2f2.rlib,libidna_adapter-204ab64b13a01b60.rlib,libicu_properties-41566824f4f29dfe.rlib,libicu_properties_data-a05c5ee68d8d5170.rlib,libicu_normalizer-461283e21326d72a.rlib,libsmallvec-b1ff06462f731c07.rlib,libicu_normalizer_data-1ff1b072d58f86df.rlib,libicu_collections-3481ad7109fbdbad.rlib,libpotential_utf-3d354a5a6a9e7666.rlib,libicu_provider-8748b3ff42642ae9.rlib,libicu_locale_core-80de8391a6087dcf.rlib,libtinystr-f2bd2166df8ea8d3.rlib,liblitemap-df336ab07ac552ea.rlib,libwriteable-bfa5496d0fdc59d0.rlib,libzerovec-8ffcfd05922890a1.rlib,libzerotrie-f351da79cf92e854.rlib,libyoke-4d76e9b36984cd22.rlib,libzerofrom-8205b7b673c3c77e.rlib,libform_urlencoded-e018784eb52f0ee7.rlib,libpercent_encoding-2d37825482bdf223.rlib,libdebugid-f3995130dd177f77.rlib,libuuid-0f530df33dab6482.rlib,libsiphasher-dab2dab9cbf4976a.rlib,libswc_visit-71d9dc055a1f8696.rlib,libeither-0aa8a699225decfa.rlib,libtracing-36f2f9b6d83232a1.rlib,libpin_project_lite-4f1255dde23f3f09.rlib,libtracing_core-6282d9614f5f3823.rlib,libnum_bigint-d5fd3473529774ec.rlib,librand-6dd56e75a720acf1.rlib,librand_core-30f8b451131ea3fe.rlib,libnum_integer-e6af780a8583c4b5.rlib,libnum_traits-dcd110d471052b1b.rlib,libswc_atoms-6431d81fd5098e14.rlib,libhstr-b4f9ce813485e9ef.rlib,libhashbrown-e465a1ca2087692c.rlib,libahash-e0ec706c30f99373.rlib,libcfg_if-355636c902b99490.rlib,libzerocopy-9e7ed5b85d2b4b92.rlib,liballocator_api2-d04805579e93664b.rlib,libtriomphe-610f6d717165119a.rlib,libstable_deref_trait-48909dcae8cafb59.rlib,libdebug_unreachable-2b14c24c953fc03d.rlib,librustc_hash-215c4f97b8965d71.rlib,libserde-c1d530c8fad08e12.rlib,libthiserror-e42368d95b6b16a1.rlib,libbase64-1d1fe7b43c9ce845.rlib,libunicode_width-c903f2c6735f5672.rlib,libdeno_terminal-55d5f0de60de2ae9.rlib,libtermcolor-1765236c858342dd.rlib,libonce_cell-48ff0edda9bf1a31.rlib}.rlib" "<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/lib/{libstd-*,libpanic_unwind-*,libobject-*,libmemchr-*,libaddr2line-*,libgimli-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*,libcfg_if-*,liblibc-*,liballoc-*,librustc_std_workspace_core-*,libcore-*,libcompiler_builtins-*}.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-L" "/tmp/rustc3z0VA2/raw-dylibs" "-B<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/bin/gcc-ld" "-fuse-ld=lld" "-Wl,-znostart-stop-gc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/home/cyan/RustroverProjects/moderncomputers-native-rs/target/debug/build/psm-da33fc92207f0cf5/out" "-L" "/home/cyan/RustroverProjects/moderncomputers-native-rs/target/debug/gn_out/obj/" "-L" "<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/home/cyan/RustroverProjects/moderncomputers-native-rs/target/debug/deps/libmcomp_core.so" "-Wl,--gc-sections" "-shared" "-Wl,-z,relro,-z,now" "-nodefaultlibs"
  = note: some arguments are omitted. use `--verbose` to show all linker arguments
  = note: rust-lld: error: relocation R_X86_64_TPOFF32 against v8::internal::g_current_isolate_ cannot be used with -shared
          >>> defined in /home/cyan/RustroverProjects/moderncomputers-native-rs/target/debug/deps/libv8-827ba20ccd3d326c.rlib(isolate.o)
          >>> referenced by wasm-compiler.cc:1211 (../../../../../.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/v8-137.2.0/v8/src/compiler/wasm-compiler.cc:1211)
          >>>               wasm-compiler.o:(v8::internal::compiler::CompileWasmJSFastCallWrapper(v8::internal::wasm::CanonicalSig const*, v8::internal::DirectHandle<v8::internal::JSReceiver>)) in archive /home/cyan/RustroverProjects/moderncomputers-native-rs/target/debug/deps/libv8-827ba20ccd3d326c.rlib
          
          rust-lld: error: relocation R_X86_64_TPOFF32 against v8::internal::g_current_isolate_ cannot be used with -shared
          >>> defined in /home/cyan/RustroverProjects/moderncomputers-native-rs/target/debug/deps/libv8-827ba20ccd3d326c.rlib(isolate.o)
          >>> referenced by wasm-compiler.cc:1211 (../../../../../.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/v8-137.2.0/v8/src/compiler/wasm-compiler.cc:1211)
          >>>               wasm-compiler.o:(v8::internal::compiler::CompileWasmJSFastCallWrapper(v8::internal::wasm::CanonicalSig const*, v8::internal::DirectHandle<v8::internal::JSReceiver>)) in archive /home/cyan/RustroverProjects/moderncomputers-native-rs/target/debug/deps/libv8-827ba20ccd3d326c.rlib
          
          rust-lld: error: relocation R_X86_64_TPOFF32 against v8::internal::g_current_isolate_ cannot be used with -shared
          >>> defined in /home/cyan/RustroverProjects/moderncomputers-native-rs/target/debug/deps/libv8-827ba20ccd3d326c.rlib(isolate.o)
          >>> referenced by wasm-compiler.cc:1211 (../../../../../.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/v8-137.2.0/v8/src/compiler/wasm-compiler.cc:1211)
          >>>               wasm-compiler.o:(v8::internal::compiler::CompileWasmJSFastCallWrapper(v8::internal::wasm::CanonicalSig const*, v8::internal::DirectHandle<v8::internal::JSReceiver>)) in archive /home/cyan/RustroverProjects/moderncomputers-native-rs/target/debug/deps/libv8-827ba20ccd3d326c.rlib
          
          rust-lld: error: relocation R_X86_64_TPOFF32 against v8::internal::g_current_isolate_ cannot be used with -shared
          >>> defined in /home/cyan/RustroverProjects/moderncomputers-native-rs/target/debug/deps/libv8-827ba20ccd3d326c.rlib(isolate.o)
          >>> referenced by wasm-compiler.cc:1211 (../../../../../.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/v8-137.2.0/v8/src/compiler/wasm-compiler.cc:1211)
          >>>               wasm-compiler.o:(v8::internal::compiler::CompileWasmJSFastCallWrapper(v8::internal::wasm::CanonicalSig const*, v8::internal::DirectHandle<v8::internal::JSReceiver>)) in archive /home/cyan/RustroverProjects/moderncomputers-native-rs/target/debug/deps/libv8-827ba20ccd3d326c.rlib
          
          rust-lld: error: relocation R_X86_64_TPOFF32 against v8::internal::g_current_isolate_ cannot be used with -shared
          >>> defined in /home/cyan/RustroverProjects/moderncomputers-native-rs/target/debug/deps/libv8-827ba20ccd3d326c.rlib(isolate.o)
          >>> referenced by wasm-compiler.cc:1211 (../../../../../.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/v8-137.2.0/v8/src/compiler/wasm-compiler.cc:1211)
          >>>               wasm-compiler.o:(v8::internal::compiler::CompileWasmJSFastCallWrapper(v8::internal::wasm::CanonicalSig const*, v8::internal::DirectHandle<v8::internal::JSReceiver>)) in archive /home/cyan/RustroverProjects/moderncomputers-native-rs/target/debug/deps/libv8-827ba20ccd3d326c.rlib
          
          rust-lld: error: relocation R_X86_64_TPOFF32 against v8::internal::g_current_isolate_ cannot be used with -shared
          >>> defined in /home/cyan/RustroverProjects/moderncomputers-native-rs/target/debug/deps/libv8-827ba20ccd3d326c.rlib(isolate.o)
          >>> referenced by wasm-compiler.cc:1211 (../../../../../.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/v8-137.2.0/v8/src/compiler/wasm-compiler.cc:1211)
          >>>               wasm-compiler.o:(v8::internal::compiler::CompileWasmJSFastCallWrapper(v8::internal::wasm::CanonicalSig const*, v8::internal::DirectHandle<v8::internal::JSReceiver>)) in archive /home/cyan/RustroverProjects/moderncomputers-native-rs/target/debug/deps/libv8-827ba20ccd3d326c.rlib
          
          rust-lld: error: relocation R_X86_64_TPOFF32 against v8::internal::g_current_local_heap_ cannot be used with -shared
          >>> defined in /home/cyan/RustroverProjects/moderncomputers-native-rs/target/debug/deps/libv8-827ba20ccd3d326c.rlib(local-heap.o)
          >>> referenced by js-native-context-specialization.cc:497 (../../../../../.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/v8-137.2.0/v8/src/compiler/js-native-context-specialization.cc:497)
          >>>               js-native-context-specialization.o:(v8::internal::compiler::JSNativeContextSpecialization::ReduceJSAdd(v8::internal::compiler::Node*)) in archive /home/cyan/RustroverProjects/moderncomputers-native-rs/target/debug/deps/libv8-827ba20ccd3d326c.rlib
          
          rust-lld: error: relocation R_X86_64_TPOFF32 against v8::internal::g_current_local_heap_ cannot be used with -shared
          >>> defined in /home/cyan/RustroverProjects/moderncomputers-native-rs/target/debug/deps/libv8-827ba20ccd3d326c.rlib(local-heap.o)
          >>> referenced by js-native-context-specialization.cc:385 (../../../../../.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/v8-137.2.0/v8/src/compiler/js-native-context-specialization.cc:385)
          >>>               js-native-context-specialization.o:(v8::internal::compiler::JSNativeContextSpecialization::Concatenate(v8::internal::Handle<v8::internal::String>, v8::internal::Handle<v8::internal::String>)) in archive /home/cyan/RustroverProjects/moderncomputers-native-rs/target/debug/deps/libv8-827ba20ccd3d326c.rlib
          
          rust-lld: error: relocation R_X86_64_TPOFF32 against v8::internal::g_current_isolate_ cannot be used with -shared
          >>> defined in /home/cyan/RustroverProjects/moderncomputers-native-rs/target/debug/deps/libv8-827ba20ccd3d326c.rlib(isolate.o)
          >>> referenced by heap-refs.cc:735 (../../../../../.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/v8-137.2.0/v8/src/compiler/heap-refs.cc:735)
          >>>               heap-refs.o:(v8::internal::compiler::JSFunctionData::IsConsistentWithHeapState(v8::internal::compiler::JSHeapBroker*) const) in archive /home/cyan/RustroverProjects/moderncomputers-native-rs/target/debug/deps/libv8-827ba20ccd3d326c.rlib
          
          rust-lld: error: relocation R_X86_64_TPOFF32 against v8::internal::g_current_isolate_ cannot be used with -shared
          >>> defined in /home/cyan/RustroverProjects/moderncomputers-native-rs/target/debug/deps/libv8-827ba20ccd3d326c.rlib(isolate.o)
          >>> referenced by heap-refs.cc:735 (../../../../../.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/v8-137.2.0/v8/src/compiler/heap-refs.cc:735)
          >>>               heap-refs.o:(v8::internal::compiler::JSFunctionData::IsConsistentWithHeapState(v8::internal::compiler::JSHeapBroker*) const) in archive /home/cyan/RustroverProjects/moderncomputers-native-rs/target/debug/deps/libv8-827ba20ccd3d326c.rlib
          
          rust-lld: error: relocation R_X86_64_TPOFF32 against v8::internal::g_current_local_heap_ cannot be used with -shared
          >>> defined in /home/cyan/RustroverProjects/moderncomputers-native-rs/target/debug/deps/libv8-827ba20ccd3d326c.rlib(local-heap.o)
          >>> referenced by heap-refs.cc:1439 (../../../../../.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/v8-137.2.0/v8/src/compiler/heap-refs.cc:1439)
          >>>               heap-refs.o:(v8::internal::compiler::StringRef::GetChar(v8::internal::compiler::JSHeapBroker*, unsigned int) const) in archive /home/cyan/RustroverProjects/moderncomputers-native-rs/target/debug/deps/libv8-827ba20ccd3d326c.rlib
          
          rust-lld: error: relocation R_X86_64_TPOFF32 against v8::internal::g_current_isolate_ cannot be used with -shared
          >>> defined in /home/cyan/RustroverProjects/moderncomputers-native-rs/target/debug/deps/libv8-827ba20ccd3d326c.rlib(isolate.o)
          >>> referenced by wasm-external-refs.cc:843 (../../../../../.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/v8-137.2.0/v8/src/wasm/wasm-external-refs.cc:843)
          >>>               wasm-external-refs.o:(v8::internal::wasm::array_copy_wrapper(unsigned long, unsigned int, unsigned long, unsigned int, unsigned int)) in archive /home/cyan/RustroverProjects/moderncomputers-native-rs/target/debug/deps/libv8-827ba20ccd3d326c.rlib
          
          rust-lld: error: relocation R_X86_64_TPOFF32 against v8::internal::g_current_isolate_ cannot be used with -shared
          >>> defined in /home/cyan/RustroverProjects/moderncomputers-native-rs/target/debug/deps/libv8-827ba20ccd3d326c.rlib(isolate.o)
          >>> referenced by wasm-external-refs.cc:972 (../../../../../.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/v8-137.2.0/v8/src/wasm/wasm-external-refs.cc:972)
          >>>               wasm-external-refs.o:(v8::internal::wasm::array_fill_wrapper(unsigned long, unsigned int, unsigned int, unsigned int, unsigned int, unsigned long)) in archive /home/cyan/RustroverProjects/moderncomputers-native-rs/target/debug/deps/libv8-827ba20ccd3d326c.rlib
          
          rust-lld: error: relocation R_X86_64_TPOFF32 against v8::internal::g_current_isolate_ cannot be used with -shared
          >>> defined in /home/cyan/RustroverProjects/moderncomputers-native-rs/target/debug/deps/libv8-827ba20ccd3d326c.rlib(isolate.o)
          >>> referenced by wasm-external-refs.cc:972 (../../../../../.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/v8-137.2.0/v8/src/wasm/wasm-external-refs.cc:972)
          >>>               wasm-external-refs.o:(v8::internal::wasm::array_fill_wrapper(unsigned long, unsigned int, unsigned int, unsigned int, unsigned int, unsigned long)) in archive /home/cyan/RustroverProjects/moderncomputers-native-rs/target/debug/deps/libv8-827ba20ccd3d326c.rlib
          
          rust-lld: error: relocation R_X86_64_TPOFF32 against v8::internal::g_current_isolate_ cannot be used with -shared
          >>> defined in /home/cyan/RustroverProjects/moderncomputers-native-rs/target/debug/deps/libv8-827ba20ccd3d326c.rlib(isolate.o)
          >>> referenced by wasm-debug.cc:989 (../../../../../.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/v8-137.2.0/v8/src/wasm/wasm-debug.cc:989)
          >>>               wasm-debug.o:(v8::internal::WasmScript::SetBreakPointForFunction(v8::internal::DirectHandle<v8::internal::Script>, int, int, v8::internal::DirectHandle<v8::internal::BreakPoint>)) in archive /home/cyan/RustroverProjects/moderncomputers-native-rs/target/debug/deps/libv8-827ba20ccd3d326c.rlib
          
          rust-lld: error: relocation R_X86_64_TPOFF32 against v8::internal::g_current_isolate_ cannot be used with -shared
          >>> defined in /home/cyan/RustroverProjects/moderncomputers-native-rs/target/debug/deps/libv8-827ba20ccd3d326c.rlib(isolate.o)
          >>> referenced by wasm-debug.cc:1128 (../../../../../.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/v8-137.2.0/v8/src/wasm/wasm-debug.cc:1128)
          >>>               wasm-debug.o:(v8::internal::WasmScript::AddBreakpointToInfo(v8::internal::DirectHandle<v8::internal::Script>, int, v8::internal::DirectHandle<v8::internal::BreakPoint>)) in archive /home/cyan/RustroverProjects/moderncomputers-native-rs/target/debug/deps/libv8-827ba20ccd3d326c.rlib
          
          rust-lld: error: relocation R_X86_64_TPOFF32 against v8::internal::g_current_isolate_ cannot be used with -shared
          >>> defined in /home/cyan/RustroverProjects/moderncomputers-native-rs/target/debug/deps/libv8-827ba20ccd3d326c.rlib(isolate.o)
          >>> referenced by wasm-debug.cc:930 (../../../../../.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/v8-137.2.0/v8/src/wasm/wasm-debug.cc:930)
          >>>               wasm-debug.o:(v8::internal::(anonymous namespace)::SetBreakOnEntryFlag(v8::internal::Tagged<v8::internal::Script>, bool)) in archive /home/cyan/RustroverProjects/moderncomputers-native-rs/target/debug/deps/libv8-827ba20ccd3d326c.rlib
          
          rust-lld: error: relocation R_X86_64_TPOFF32 against v8::internal::g_current_isolate_ cannot be used with -shared
          >>> defined in /home/cyan/RustroverProjects/moderncomputers-native-rs/target/debug/deps/libv8-827ba20ccd3d326c.rlib(isolate.o)
          >>> referenced by wasm-debug.cc:930 (../../../../../.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/v8-137.2.0/v8/src/wasm/wasm-debug.cc:930)
          >>>               wasm-debug.o:(v8::internal::(anonymous namespace)::SetBreakOnEntryFlag(v8::internal::Tagged<v8::internal::Script>, bool)) in archive /home/cyan/RustroverProjects/moderncomputers-native-rs/target/debug/deps/libv8-827ba20ccd3d326c.rlib
          
          rust-lld: error: relocation R_X86_64_TPOFF32 against v8::internal::g_current_isolate_ cannot be used with -shared
          >>> defined in /home/cyan/RustroverProjects/moderncomputers-native-rs/target/debug/deps/libv8-827ba20ccd3d326c.rlib(isolate.o)
          >>> referenced by wasm-debug.cc:1046 (../../../../../.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/v8-137.2.0/v8/src/wasm/wasm-debug.cc:1046)
          >>>               wasm-debug.o:(v8::internal::WasmScript::ClearBreakPoint(v8::internal::DirectHandle<v8::internal::Script>, int, v8::internal::DirectHandle<v8::internal::BreakPoint>)) in archive /home/cyan/RustroverProjects/moderncomputers-native-rs/target/debug/deps/libv8-827ba20ccd3d326c.rlib
          
          rust-lld: error: relocation R_X86_64_TPOFF32 against v8::internal::g_current_isolate_ cannot be used with -shared
          >>> defined in /home/cyan/RustroverProjects/moderncomputers-native-rs/target/debug/deps/libv8-827ba20ccd3d326c.rlib(isolate.o)
          >>> referenced by wasm-debug.cc:1094 (../../../../../.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/v8-137.2.0/v8/src/wasm/wasm-debug.cc:1094)
          >>>               wasm-debug.o:(v8::internal::WasmScript::ClearBreakPointById(v8::internal::DirectHandle<v8::internal::Script>, int)) in archive /home/cyan/RustroverProjects/moderncomputers-native-rs/target/debug/deps/libv8-827ba20ccd3d326c.rlib
          
          rust-lld: error: too many errors emitted, stopping now (use --error-limit=0 to see all errors)
          collect2: error: ld returned 1 exit status
          

warning: `mcomp_core` (lib) generated 8 warnings
error: could not compile `mcomp_core` (lib) due to 1 previous error; 8 warnings emitted

Caused by:
  process didn't exit successfully: `CARGO=/home/cyan/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/cargo CARGO_CRATE_NAME=mcomp_core CARGO_MANIFEST_DIR=/home/cyan/RustroverProjects/moderncomputers-native-rs/core CARGO_MANIFEST_PATH=/home/cyan/RustroverProjects/moderncomputers-native-rs/core/Cargo.toml CARGO_PKG_AUTHORS='' CARGO_PKG_DESCRIPTION='' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=mcomp_core CARGO_PKG_README='' CARGO_PKG_REPOSITORY='' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.1.0 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=1 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 CARGO_SBOM_PATH='' LD_LIBRARY_PATH='/home/cyan/RustroverProjects/moderncomputers-native-rs/target/debug/deps:/home/cyan/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib' /usr/bin/sccache /home/cyan/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/rustc --crate-name mcomp_core --edition=2024 core/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=168 --crate-type cdylib --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 -C split-debuginfo=unpacked --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values())' -C metadata=81ba8e1472953c29 --out-dir /home/cyan/RustroverProjects/moderncomputers-native-rs/target/debug/deps -C incremental=/home/cyan/RustroverProjects/moderncomputers-native-rs/target/debug/incremental -L dependency=/home/cyan/RustroverProjects/moderncomputers-native-rs/target/debug/deps --extern deno_ast=/home/cyan/RustroverProjects/moderncomputers-native-rs/target/debug/deps/libdeno_ast-527cd5c1e2b5b450.rlib --extern deno_core=/home/cyan/RustroverProjects/moderncomputers-native-rs/target/debug/deps/libdeno_core-b8a382168613b74e.rlib --extern deno_error=/home/cyan/RustroverProjects/moderncomputers-native-rs/target/debug/deps/libdeno_error-57fd7d15c3f23143.rlib --extern jni=/home/cyan/RustroverProjects/moderncomputers-native-rs/target/debug/deps/libjni-646c001bcc9c71d3.rlib -Crelocation-model=pic -L native=/home/cyan/RustroverProjects/moderncomputers-native-rs/target/debug/build/psm-da33fc92207f0cf5/out -L native=/home/cyan/RustroverProjects/moderncomputers-native-rs/target/debug/gn_out/obj/` (exit status: 1)

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