Skip to content

Instantly share code, notes, and snippets.

@dsisnero
Created February 9, 2023 17:33
Show Gist options
  • Save dsisnero/60d3a6ad63b71524ac5f9f357f1d70fe to your computer and use it in GitHub Desktop.
Save dsisnero/60d3a6ad63b71524ac5f9f357f1d70fe to your computer and use it in GitHub Desktop.
rake compile
c:\msys64\usr\bin/make.exe
generating target/release/rust_uuid.dll (release)
cargo rustc --manifest-path ../../../../ext/rust_uuid/Cargo.toml --target-dir target --lib --release -- -C linker=gcc -L native=F:/windows/tools/ruby/Ruby3.2/lib -C link-arg=-pipe -C link-arg=-fstack-protector-strong -C link-arg=-Wl,--enable-auto-image-base,--enable-auto-import -l shell32 -l ws2_32 -l iphlpapi -l imagehlp -l shlwapi -l bcrypt -l x64-ucrt-ruby320 -C link-arg=-Wl,--dynamicbase -C link-arg=-Wl,--disable-auto-image-base -C link-arg=-static-libgcc
Compiling memchr v2.5.0
Compiling proc-macro2 v1.0.51
Compiling quote v1.0.23
Compiling winapi v0.3.9
Compiling glob v0.3.1
Compiling unicode-ident v1.0.6
Compiling libc v0.2.139
Compiling minimal-lexical v0.2.1
Compiling bindgen v0.60.1
Compiling regex-syntax v0.6.28
Compiling rustc-hash v1.1.0
Compiling shlex v1.1.0
Compiling bitflags v1.3.2
Compiling lazy_static v1.4.0
Compiling clang-sys v1.4.0
Compiling peeking_take_while v0.1.2
Compiling lazycell v1.3.0
Compiling shell-words v1.1.0
Compiling syn v1.0.107
Compiling rb-sys-env v0.1.2
Compiling cfg-if v1.0.0
Compiling getrandom v0.2.8
Compiling magnus v0.4.4
Compiling uuid v1.3.0
Compiling nom v7.1.3
Compiling aho-corasick v0.7.20
Compiling libloading v0.7.4
Compiling regex v1.7.1
Compiling cexpr v0.6.0
Compiling magnus-macros v0.3.0
Compiling rb-sys-build v0.9.64
Compiling rb-sys v0.9.64
Compiling rb-allocator v0.9.6
Compiling rust_uuid v0.1.0 (F:\programming\source\repos\ruby\magnus_examples\rust_uuid\ext\rust_uuid)
error: linking with `gcc` failed: exit code: 1
|
= note: "gcc" "-Wl,C:\\Users\\DOMINI~1\\AppData\\Local\\Temp\\rustcFu5DhS\\list.def" "C:\\Users\\DOMINI~1\\AppData\\Local\\Temp\\rustcFu5DhS\\symbols.o" "f:\\programming\\source\\repos\\ruby\\magnus_examples\\rust_uuid\\tmp\\x64-mingw-ucrt\\rust_uuid\\3.2.0\\target\\release\\deps\\rust_uuid.rust_uuid.d9260b9b-cgu.0.rcgu.o" "f:\\programming\\source\\repos\\ruby\\magnus_examples\\rust_uuid\\tmp\\x64-mingw-ucrt\\rust_uuid\\3.2.0\\target\\release\\deps\\rust_uuid.rust_uuid.d9260b9b-cgu.1.rcgu.o" "f:\\programming\\source\\repos\\ruby\\magnus_examples\\rust_uuid\\tmp\\x64-mingw-ucrt\\rust_uuid\\3.2.0\\target\\release\\deps\\rust_uuid.rust_uuid.d9260b9b-cgu.10.rcgu.o" "f:\\programming\\source\\repos\\ruby\\magnus_examples\\rust_uuid\\tmp\\x64-mingw-ucrt\\rust_uuid\\3.2.0\\target\\release\\deps\\rust_uuid.rust_uuid.d9260b9b-cgu.11.rcgu.o" "f:\\programming\\source\\repos\\ruby\\magnus_examples\\rust_uuid\\tmp\\x64-mingw-ucrt\\rust_uuid\\3.2.0\\target\\release\\deps\\rust_uuid.rust_uuid.d9260b9b-cgu.12.rcgu.o" "f:\\programming\\source\\repos\\ruby\\magnus_examples\\rust_uuid\\tmp\\x64-mingw-ucrt\\rust_uuid\\3.2.0\\target\\release\\deps\\rust_uuid.rust_uuid.d9260b9b-cgu.13.rcgu.o" "f:\\programming\\source\\repos\\ruby\\magnus_examples\\rust_uuid\\tmp\\x64-mingw-ucrt\\rust_uuid\\3.2.0\\target\\release\\deps\\rust_uuid.rust_uuid.d9260b9b-cgu.14.rcgu.o" "f:\\programming\\source\\repos\\ruby\\magnus_examples\\rust_uuid\\tmp\\x64-mingw-ucrt\\rust_uuid\\3.2.0\\target\\release\\deps\\rust_uuid.rust_uuid.d9260b9b-cgu.2.rcgu.o" "f:\\programming\\source\\repos\\ruby\\magnus_examples\\rust_uuid\\tmp\\x64-mingw-ucrt\\rust_uuid\\3.2.0\\target\\release\\deps\\rust_uuid.rust_uuid.d9260b9b-cgu.3.rcgu.o" "f:\\programming\\source\\repos\\ruby\\magnus_examples\\rust_uuid\\tmp\\x64-mingw-ucrt\\rust_uuid\\3.2.0\\target\\release\\deps\\rust_uuid.rust_uuid.d9260b9b-cgu.4.rcgu.o" "f:\\programming\\source\\repos\\ruby\\magnus_examples\\rust_uuid\\tmp\\x64-mingw-ucrt\\rust_uuid\\3.2.0\\target\\release\\deps\\rust_uuid.rust_uuid.d9260b9b-cgu.5.rcgu.o" "f:\\programming\\source\\repos\\ruby\\magnus_examples\\rust_uuid\\tmp\\x64-mingw-ucrt\\rust_uuid\\3.2.0\\target\\release\\deps\\rust_uuid.rust_uuid.d9260b9b-cgu.6.rcgu.o" "f:\\programming\\source\\repos\\ruby\\magnus_examples\\rust_uuid\\tmp\\x64-mingw-ucrt\\rust_uuid\\3.2.0\\target\\release\\deps\\rust_uuid.rust_uuid.d9260b9b-cgu.7.rcgu.o" "f:\\programming\\source\\repos\\ruby\\magnus_examples\\rust_uuid\\tmp\\x64-mingw-ucrt\\rust_uuid\\3.2.0\\target\\release\\deps\\rust_uuid.rust_uuid.d9260b9b-cgu.8.rcgu.o" "f:\\programming\\source\\repos\\ruby\\magnus_examples\\rust_uuid\\tmp\\x64-mingw-ucrt\\rust_uuid\\3.2.0\\target\\release\\deps\\rust_uuid.rust_uuid.d9260b9b-cgu.9.rcgu.o" "f:\\programming\\source\\repos\\ruby\\magnus_examples\\rust_uuid\\tmp\\x64-mingw-ucrt\\rust_uuid\\3.2.0\\target\\release\\deps\\rust_uuid.52nhi4mlqc9r4twy.rcgu.o" "-L" "F:/windows/tools/ruby/Ruby3.2/lib" "-L" "f:\\programming\\source\\repos\\ruby\\magnus_examples\\rust_uuid\\tmp\\x64-mingw-ucrt\\rust_uuid\\3.2.0\\target\\release\\deps" "-L" "F:/windows/tools/ruby/Ruby3.2/lib" "-L" "F:/windows/tools/ruby/Ruby3.2/lib" "-L" "F:\\windows\\tools\\rust\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib" "-lshell32" "-lws2_32" "-liphlpapi" "-limagehlp" "-lshlwapi" "-lbcrypt" "-lx64-ucrt-ruby320" "-Wl,-Bstatic" "F:\\programming\\source\\repos\\ruby\\magnus_examples\\rust_uuid\\tmp\\x64-mingw-ucrt\\rust_uuid\\3.2.0\\target\\release\\deps\\libuuid-2f489a4f13d3eaca.rlib" "F:\\programming\\source\\repos\\ruby\\magnus_examples\\rust_uuid\\tmp\\x64-mingw-ucrt\\rust_uuid\\3.2.0\\target\\release\\deps\\libgetrandom-988c1347b5b801a9.rlib" "F:\\programming\\source\\repos\\ruby\\magnus_examples\\rust_uuid\\tmp\\x64-mingw-ucrt\\rust_uuid\\3.2.0\\target\\release\\deps\\libcfg_if-ca7b015c11e0ff02.rlib" "F:\\programming\\source\\repos\\ruby\\magnus_examples\\rust_uuid\\tmp\\x64-mingw-ucrt\\rust_uuid\\3.2.0\\target\\release\\deps\\librb_allocator-65bed63a1b434faf.rlib" "F:\\programming\\source\\repos\\ruby\\magnus_examples\\rust_uuid\\tmp\\x64-mingw-ucrt\\rust_uuid\\3.2.0\\target\\release\\deps\\libmagnus-63114b8d85e734ee.rlib" "F:\\programming\\source\\repos\\ruby\\magnus_examples\\rust_uuid\\tmp\\x64-mingw-ucrt\\rust_uuid\\3.2.0\\target\\release\\deps\\librb_sys-17ac379fd0e2fe84.rlib" "F:\\windows\\tools\\rust\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libstd-c9a71bd02014cc03.rlib" "F:\\windows\\tools\\rust\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libpanic_unwind-1a26515fee0365cc.rlib" "F:\\windows\\tools\\rust\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc_demangle-5dc491e9ed71b272.rlib" "F:\\windows\\tools\\rust\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libstd_detect-384a600215f7f42a.rlib" "F:\\windows\\tools\\rust\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libhashbrown-b41c35198f3cb8a7.rlib" "F:\\windows\\tools\\rust\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libminiz_oxide-d6551e7d16e9dc96.rlib" "F:\\windows\\tools\\rust\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libadler-694af0b75d9d45a9.rlib" "F:\\windows\\tools\\rust\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc_std_workspace_alloc-3136aadbfbea1b6b.rlib" "F:\\windows\\tools\\rust\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libunwind-0bdccb1284465051.rlib" "F:\\windows\\tools\\rust\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcfg_if-8de893de278a987b.rlib" "F:\\windows\\tools\\rust\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\liblibc-57c8b4d6b94d494c.rlib" "F:\\windows\\tools\\rust\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\liballoc-34f50d07c9021fd9.rlib" "F:\\windows\\tools\\rust\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc_std_workspace_core-4c2803a533866d1c.rlib" "F:\\windows\\tools\\rust\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcore-f6de9afd42767842.rlib" "F:\\windows\\tools\\rust\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcompiler_builtins-edd2f3908bbf36f0.rlib" "-Wl,-Bdynamic" "-lbcrypt" "-lx64-ucrt-ruby320" "-lshell32" "-lws2_32" "-liphlpapi" "-limagehlp" "-lshlwapi" "-lbcrypt" "-lx64-ucrt-ruby320" "-lshell32" "-lws2_32" "-liphlpapi" "-limagehlp" "-lshlwapi" "-lbcrypt" "-lkernel32" "-ladvapi32" "-luserenv" "-lkernel32" "-lws2_32" "-lbcrypt" "-lmsvcrt" "-llegacy_stdio_definitions" "-Wl,--eh-frame-hdr" "-Wl,--nxcompat" "-L" "F:\\windows\\tools\\rust\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib" "-o" "f:\\programming\\source\\repos\\ruby\\magnus_examples\\rust_uuid\\tmp\\x64-mingw-ucrt\\rust_uuid\\3.2.0\\target\\release\\deps\\rust_uuid.dll" "-shared" "-Wl,--out-implib=f:\\programming\\source\\repos\\ruby\\magnus_examples\\rust_uuid\\tmp\\x64-mingw-ucrt\\rust_uuid\\3.2.0\\target\\release\\deps\\rust_uuid.dll.lib" "-pipe" "-fstack-protector-strong" "-Wl,--enable-auto-image-base,--enable-auto-import" "-Wl,--dynamicbase" "-Wl,--disable-auto-image-base" "-static-libgcc"
= note: Non-UTF-8 output: c:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find \xff\xfe: No such file or directory\r\ncollect2.exe: error: ld returned 1 exit status\n
error: could not compile `rust_uuid` due to previous error
make: *** [Makefile:569: target/release/rust_uuid.dll] Error 101
rake aborted!
Command failed with status (2): [c:\msys64\usr\bin/make.exe...]
Tasks: TOP => compile => compile:x64-mingw-ucrt => compile:rust_uuid:x64-mingw-ucrt => copy:rust_uuid:x64-mingw-ucrt:3.2.0 => tmp/x64-mingw-ucrt/rust_uuid/3.2.0/rust_uuid.so
(See full trace by running task with --trace)
cd tmp/x64-mingw-ucrt/rust_uuid/3.2.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment