trans: Internalize symbols without relying on LLVM by michaelwoerister · Pull Request #43183 · rust-lang/rust (original) (raw)

x86_64-pc-windows-gnu failed to link stage1-std ("undefined reference to std::thread::local::os::destroy_value::hXXXXXX"). Seems legit.

error: linking with `gcc` failed: exit code: 1
  |
  = note: "gcc" "-Wl,--enable-long-section-names" "-fno-use-linker-plugin" "-Wl,--nxcompat" "-nostdlib" "-m64" "C:\\projects\\rust\\build\\x86_64-pc-windows-gnu\\stage1\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\dllcrt2.o" "C:\\projects\\rust\\build\\x86_64-pc-windows-gnu\\stage1\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\rsbegin.o" "-L" "C:\\projects\\rust\\build\\x86_64-pc-windows-gnu\\stage1\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib" "C:\\projects\\rust\\build\\x86_64-pc-windows-gnu\\stage1-std\\x86_64-pc-windows-gnu\\release\\deps\\std-ac667c8bbd86e364.0.o" "-o" "C:\\projects\\rust\\build\\x86_64-pc-windows-gnu\\stage1-std\\x86_64-pc-windows-gnu\\release\\deps\\std-ac667c8bbd86e364.dll" "C:\\projects\\rust\\build\\x86_64-pc-windows-gnu\\stage1-std\\x86_64-pc-windows-gnu\\release\\deps\\std-ac667c8bbd86e364.crate.metadata.o" "C:\\projects\\rust\\build\\x86_64-pc-windows-gnu\\stage1-std\\x86_64-pc-windows-gnu\\release\\deps\\std-ac667c8bbd86e364.crate.allocator.o" "-nodefaultlibs" "-L" "C:\\projects\\rust\\build\\x86_64-pc-windows-gnu\\stage1-std\\x86_64-pc-windows-gnu\\release\\deps" "-L" "C:\\projects\\rust\\build\\x86_64-pc-windows-gnu\\stage1-std\\release\\deps" "-L" "C:\\projects\\rust\\build\\x86_64-pc-windows-gnu\\native\\libbacktrace\\.libs" "-L" "C:\\projects\\rust\\build\\x86_64-pc-windows-gnu\\native\\jemalloc\\lib" "-L" "C:\\projects\\rust\\build\\x86_64-pc-windows-gnu\\stage1-std\\x86_64-pc-windows-gnu\\release\\build\\compiler_builtins-3f52fffdb7374465\\out" "-L" "C:\\projects\\rust\\build\\x86_64-pc-windows-gnu\\stage1\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib" "-Wl,-Bstatic" "-Wl,--whole-archive" "-l" "backtrace" "-Wl,--no-whole-archive" "-Wl,-Bdynamic" "-l" "advapi32" "-l" "ws2_32" "-l" "userenv" "-l" "shell32" "-Wl,-Bstatic" "-Wl,--whole-archive" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\rustc.HACeg3fOyh3C\\libpanic_unwind-d7ba3ed13adbba78.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\rustc.HACeg3fOyh3C\\libunwind-4a5bfaad61fe8668.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\rustc.HACeg3fOyh3C\\liblibc-f12a6f077c568615.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\rustc.HACeg3fOyh3C\\librand-fc4f55c30253478d.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\rustc.HACeg3fOyh3C\\liballoc_system-fa945e0e44cf2c85.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\rustc.HACeg3fOyh3C\\liballoc-7e25d9aea6733470.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\rustc.HACeg3fOyh3C\\libstd_unicode-b2da6d85e26577df.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\rustc.HACeg3fOyh3C\\libcore-133c3145709a073d.rlib" "-Wl,--no-whole-archive" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\rustc.HACeg3fOyh3C\\libcompiler_builtins-b49c9299458b621e.rlib" "-l" "gcc_eh" "-l" "pthread" "-shared" "-Wl,-Bdynamic" "-lmingwex" "-lmingw32" "-lgcc" "-lmsvcrt" "-luser32" "-lkernel32" "C:\\projects\\rust\\build\\x86_64-pc-windows-gnu\\stage1\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\rsend.o"
  = note: C:\projects\rust\build\x86_64-pc-windows-gnu\stage1-std\x86_64-pc-windows-gnu\release\deps\std-ac667c8bbd86e364.0.o:(.data+0xd8): undefined reference to `std::thread::local::os::destroy_value::ha44314076d36f203'
          C:\projects\rust\build\x86_64-pc-windows-gnu\stage1-std\x86_64-pc-windows-gnu\release\deps\std-ac667c8bbd86e364.0.o:(.data+0xe8): undefined reference to `std::thread::local::os::destroy_value::hc6b9798d5a01e96f'
          C:\projects\rust\build\x86_64-pc-windows-gnu\stage1-std\x86_64-pc-windows-gnu\release\deps\std-ac667c8bbd86e364.0.o:(.data+0xf8): undefined reference to `std::thread::local::os::destroy_value::hfc4011e45796e013'
          C:\projects\rust\build\x86_64-pc-windows-gnu\stage1-std\x86_64-pc-windows-gnu\release\deps\std-ac667c8bbd86e364.0.o:(.data+0x108): undefined reference to `std::thread::local::os::destroy_value::hc6b9798d5a01e96f'
          C:\projects\rust\build\x86_64-pc-windows-gnu\stage1-std\x86_64-pc-windows-gnu\release\deps\std-ac667c8bbd86e364.0.o:(.data+0x118): undefined reference to `std::thread::local::os::destroy_value::h96e432fe261f7344'
          C:\projects\rust\build\x86_64-pc-windows-gnu\stage1-std\x86_64-pc-windows-gnu\release\deps\std-ac667c8bbd86e364.0.o:(.data+0x128): undefined reference to `std::thread::local::os::destroy_value::h10f11fb8acf74f1c'
          collect2.exe: error: ld returned 1 exit status
          
error: aborting due to previous error
error: Could not compile `std`.