bevyengine / bevy

A refreshingly simple data-driven game engine built in Rust
https://bevyengine.org
Apache License 2.0
36.6k stars 3.6k forks source link

Cannot compile Bevy with the dynamic feature with x86_64-w64-mingw32-gcc #4758

Open BlueStaggo opened 2 years ago

BlueStaggo commented 2 years ago

What you did

Compiling my Bevy app was taking too long for me. I decided to add in the "dynamic" feature to try to speed up compilation, but bevy_dylib would not compile due to "export ordinal too large: 217681".

What you expected to happen

bevy_dylib would compile without the export ordinal error.

What actually happened

bevy_dylib has too large of an export ordinal.

Additional information

The reason why I'm using gcc is because I cannot install Visual C++. Here is my Cargo.toml:

[package]
name = "flocking"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
bevy = { version = "0.7", features = ["dynamic"] }

And here is the console output for cargo run, after downloading Bevy with its base features:

❯ cargo run; Get-Beep
   Compiling bevy_dylib v0.7.0
error: linking with `x86_64-w64-mingw32-gcc` failed: exit code: 1
  |
  = note: "x86_64-w64-mingw32-gcc" "-Wl,C:\\Users\\User\\AppData\\Local\\Temp\\rustcol7sRK\\list.def" "-fno-use-linker-plugin" "-Wl,--dynamicbase" "-Wl,--disable-auto-image-base" "-m64" "-Wl,--high-entropy-va" "C:\\Users\\User\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\rsbegin.o" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\bevy_dylib-ffca6883de9779bb.bevy_dylib.5fd5ba66-cgu.0.rcgu.o" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\bevy_dylib-ffca6883de9779bb.3ayojp43mx99suk8.rcgu.rmeta" "-L" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps" "-L" "C:\\Users\\User\\.cargo\\registry\\src\\github.com-1ecc6299db9ec823\\winapi-x86_64-pc-windows-gnu-0.4.0\\lib" "-L" "C:\\Users\\User\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib" "-Wl,-Bstatic" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libbevy_internal-9b450c40de8cc542.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libbevy_winit-9901d401868bee5b.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libwinit-f836bcb0a8ed9bf7.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libbevy_ui-c5b4bcf8525df63f.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libstretch-d78700d46383edbf.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libbevy_text-ae5ea8bf2b3e5778.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libglyph_brush_layout-83ee1e98b2f11fec.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libxi_unicode-986d769ba58df0d7.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libapprox-0e4e8c08aece1359.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libab_glyph-063706ce65880fe3.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libowned_ttf_parser-30a4f7a97707f71e.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libttf_parser-dfc590a8d851581a.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libab_glyph_rasterizer-5ec76c189d3f1606.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libbevy_sprite-9310f196f5596c55.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\librectangle_pack-d1f4ca7d4376c78f.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libguillotiere-fcfc3845d4d6c0ea.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libsvg_fmt-e650a0a0c744a2db.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libeuclid-3dd2380cf37e76ab.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libbevy_gltf-68bb907decc888ff.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libpercent_encoding-667b3b2a6857c78b.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libgltf-459f087479e88499.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libgltf_json-10419861f297a47f.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libserde_json-b8ab27060fa03550.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libryu-83c04287e5b04546.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libitoa-c4cc1b88bf8863f1.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libbevy_pbr-699864c42f419e2c.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libbevy_gilrs-0624189096d38dff.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libgilrs-915b1bbe5aca512c.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libvec_map-8d34c80af18a3476.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libfnv-45e655d72242f0ae.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libgilrs_core-3962a122dde9cd1b.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\librusty_xinput-12ea2016725f1701.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libbevy_core_pipeline-3d80a79c52bcfe70.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libbevy_render-7c05a4f0b720c850.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libhex-8f9ac4c3c965f45a.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libimage-6cdee0e3f856d5fa.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libcolor_quant-3c7d605d485a7d81.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libnum_iter-e0968de9ff4a4cad.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libpng-f6e13ecec9d31bdd.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libminiz_oxide-9247536bf43047d0.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libcrc32fast-3effddb09bfc5f1e.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libdeflate-a3c865f918f1b107.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libadler32-643beb6f2e02c4d8.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libnum_rational-e68ae3fd628cda11.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libnum_integer-2de19b37fe1e6b45.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libscoped_threadpool-733b6b1e7ae887e2.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libbevy_crevice-75e40b387e5fa3bc.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libhexasphere-50b7707225e7ba54.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libwgpu-5fe14a24db54a0e0.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libwgpu_core-b88e97bcdca2a29a.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libcopyless-39f83f3013d24829.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libwgpu_hal-32d4bdb2da9bbe14.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\librenderdoc_sys-a9329882ae4faf35.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libgpu_descriptor-cf2577db3ef5327b.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libgpu_descriptor_types-f25be4e03ada6c8f.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libd3d12-eebced2969c714b1.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libprofiling-296ae63ed9396fcb.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libgpu_alloc-9db4ac7267e09619.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libgpu_alloc_types-35cc6590da62f13e.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libinplace_it-18f861d1d273d2a9.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libash-014b1998cb50584f.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\liblibloading-c5c12cf124a4c12b.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libnaga-a838d1e739b035d1.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\librustc_hash-0c55f7a30b121b2a.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libcodespan_reporting-c4294363c699ffde.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libunicode_width-a3d3310ea460772d.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libtermcolor-d155a2a8d18ffbd5.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libhexf_parse-6ac42e715fb06332.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libpetgraph-79b727dda17a3f9f.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libpp_rs-63bb339fb03d946f.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libunicode_xid-ec5f03f1c9731121.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libspirv-d6fa6b3c28f632f5.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libnum_traits-b5bbe7cbe77bc54c.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libindexmap-c1a28080c2385712.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\librange_alloc-487be9d57fa4cf4d.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libbit_set-df6660217b3ba26a.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libbit_vec-4619b1801e6df78a.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libwgpu_types-c009c8177c1b3aa0.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libarrayvec-c29786addb6d7749.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libbevy_audio-02b2b1e6eef8b316.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\librodio-89cc23e344acd5da.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\liblewton-78e13acf5fc6c6e5.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libogg-0e15b8932d76f70e.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libtinyvec-142577d0da361009.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libtinyvec_macros-4336a28f2bcab56f.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libcpal-707537de0279185b.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libbevy_animation-5c9ca6edfdef0222.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libbevy_window-dc3e11915be13528.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libraw_window_handle-5631b22e4d929cef.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libcty-16cde8fc968f7c70.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libbevy_transform-707f88ce0096c73f.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libbevy_scene-297d126c71d1c217.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libron-7eeb78a3f52f683d.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libbase64-c8247454f82b9007.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libbitflags-1f420359e4eacf61.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libbevy_hierarchy-86bea9c69e8066aa.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libbevy_input-556a28ad95b6ba59.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libbevy_asset-23f833505b52d6e6.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\librand-0e37c0269f98434f.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\librand_chacha-0665cb65989b7125.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libppv_lite86-3ac4c747bba229f9.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\librand_core-64e8d725c64b6ff9.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libnotify-b7f90c8dc31e8631.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libwalkdir-6fe2bd8d9f68d1e3.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libsame_file-1233e04c9085c178.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libwinapi_util-c26ba1d328793298.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libfiletime-de7adfef762eaf20.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libbevy_diagnostic-e796c6052e7fe78f.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libbevy_core-d90b13d3bc3523b5.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libbevy_math-c4a6e80185ae086a.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libcrossbeam_channel-b86b28a3f358207b.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libcrossbeam_utils-bbb77c137ed57fb8.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libbevy_log-476bba0e9782aab3.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libtracing_subscriber-08d6575d8774ca94.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libsharded_slab-abb3897f9f3fd56b.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libmatchers-22020722f2be0eab.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libregex_automata-209b9431372d8fad.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libregex-961d98696275d628.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libaho_corasick-6a3b230a05a05646.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libregex_syntax-39f069210c2ad1e3.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libansi_term-cf8a986105db730b.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libthread_local-38704f2c148a937b.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libtracing_log-60defc73ac8cdbbf.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\liblog-b0337f86e6070dda.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libanyhow-45c74ba380007c94.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libbevy_app-8fbbfef05aa07974.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libbevy_ecs-a4fc30df89f10b91.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libfxhash-ef0390162de91e25.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libbyteorder-db5f2af7b1be4203.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libbevy_tasks-444bfb4fec28983a.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libasync_channel-6c1db21ee71fc38a.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libasync_executor-dcb7a3fbbb9e196d.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libslab-9fe051d950420d38.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libconcurrent_queue-f72f4b9ef9dee87c.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libcache_padded-42d0f87ebb16cbc0.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libasync_task-cf45d4790d626fd4.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libnum_cpus-e6114d81f932153f.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libevent_listener-a174ba6908e93fa0.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libfutures_lite-2f2527399c5db1a5.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libmemchr-159ce0a562c7c90d.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libfastrand-78afc359c3f8b1b7.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libfutures_io-809c825bf483f91d.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libfutures_core-d4fb194ef52b209e.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libwaker_fn-91a3f67efe112e5b.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libparking-d6cc0f0fa774adbb.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libfixedbitset-43c6373347d4cb8b.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libbevy_reflect-1707ba911587efdc.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\liberased_serde-506db59645f67fdd.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libglam-c0c68a04202468ca.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libmint-82c3bf5027ec3d14.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libbytemuck-98c7ff0e2b97ba62.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libparking_lot-1a5cde5a091d8bbb.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libparking_lot_core-c55d41ca5feaca11.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libwinapi-594b939ed06e538b.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libsmallvec-f4f4e2127682c307.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\liblock_api-cf5b6e95d6264008.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libscopeguard-2307887b33c22022.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libdowncast_rs-90c33c5c55ead4c3.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libthiserror-a3f1dd9e55a01108.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libbevy_utils-9b4380cb9f6db5dd.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libuuid-3c1e6552f2154752.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libtracing-08968782c84e9f46.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libpin_project_lite-7f5a255ae99cc584.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libtracing_core-2ead6dd4961136fb.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\liblazy_static-3560e2a9d79ed69d.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libinstant-d4ec00a526e853ee.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libhashbrown-2dc1cdf4d3425093.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libserde-5d2876e36d5bcc86.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libahash-4a6469ace0c13cb3.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libgetrandom-12fdaf4b35e77780.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libcfg_if-582d68df1dda34ce.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libonce_cell-55ec08341b7e63ef.rlib" "-Wl,--no-whole-archive" "-Wl,--start-group" "-L" "C:\\Users\\User\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib" "-Wl,-Bdynamic" "-lstd-9075868f02c39105" "-Wl,--end-group" "-Wl,-Bstatic" "C:\\Users\\User\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libcompiler_builtins-3f91c8bbaf203c3c.rlib" "-Wl,-Bdynamic" "-lwinapi_advapi32" "-lwinapi_cfgmgr32" "-lwinapi_comctl32" "-lwinapi_d3d12" "-lwinapi_d3dcompiler" "-lwinapi_dwmapi" "-lwinapi_dxgi" "-lwinapi_gdi32" "-lwinapi_imm32" "-lwinapi_kernel32" "-lwinapi_mmdevapi" "-lwinapi_msimg32" "-lwinapi_ole32" "-lwinapi_opengl32" "-lwinapi_shcore" "-lwinapi_shell32" "-lwinapi_shlwapi" "-lwinapi_synchronization" "-lwinapi_user32" "-lwinapi_uxtheme" "-lwinapi_winmm" "-lwinapi_winspool" "-lwinapi_xinput" "-lbcrypt" "-lkernel32" "-lws2_32" "-lbcrypt" "-ladvapi32" "-luserenv" "-lkernel32" "-lgcc_s" "-lmsvcrt" "-lmingwex" "-lmingw32" "-lgcc" "-lmsvcrt" "-luser32" "-lkernel32" "-Wl,--nxcompat" "-L" "C:\\Users\\User\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib" "-o" "D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\bevy_dylib-ffca6883de9779bb.dll" "-shared" "-Wl,--out-implib=D:\\Programming\\rust\\Misc\\flocking\\target\\debug\\deps\\libbevy_dylib-ffca6883de9779bb.dll.a" "-nodefaultlibs" "C:\\Users\\User\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\rsend.o"
  = note: C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: error: export ordinal too large: 217681
          collect2.exe: error: ld returned 1 exit status

error: could not compile `bevy_dylib` due to previous error
bjorn3 commented 2 years ago

Kind of a duplicate of https://github.com/bevyengine/bevy/issues/1110 except this is on MinGW while #1110 is on MSVC I believe.

BlueStaggo commented 2 years ago

From reading #1110, I managed to fix this by installing the nightly version of Rust and putting this into %USERPROFILE%\.cargo\config.toml:

[build]
rustflags = ["-Z", "share-generics=off"]
BlueStaggo commented 2 years ago

However, using this makes the program quit with error code 0xc0000409.

Paulo-21 commented 2 years ago

This features work for me when i updated the msvc compiler to 2022 17.2 before i had the version 17.1, (relatively recent ) And i m working with the msvc toolchain I don't know if that can help you

voxelv commented 2 years ago

I'm also getting this while running with MSYS2/MINGW64

error: export ordinal too large: 218308

janhohenheim commented 1 year ago

Can confirm this is still an issue

stop1204 commented 1 year ago

https://github.com/bevyengine/bevy/blob/main/.cargo/config_fast_builds .cargo/config.toml

0re5ama commented 4 weeks ago

https://github.com/bevyengine/bevy/blob/main/.cargo/config_fast_builds .cargo/config.toml

This link does not have a file anymore. Also, I am still getting the same issue