Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Compilation failed, the mod might require a newer Windhawk version" #347

Open
nt1naa opened this issue Dec 9, 2024 · 3 comments
Open
Labels
bug Something isn't working info-needed Further information is requested

Comments

@nt1naa
Copy link

nt1naa commented Dec 9, 2024

I try to download a mod on my device and i always get this message "Compilation failed, the mod might require a newer Windhawk version"
Screenshot (2)

@nt1naa nt1naa added the bug Something isn't working label Dec 9, 2024
@m417z
Copy link
Member

m417z commented Dec 9, 2024

Looks like the compiler fails without printing any error message. Are you using an antivirus? Perhaps it interferes with Windhawk.

@m417z m417z added the info-needed Further information is requested label Dec 9, 2024
@kemus
Copy link

kemus commented Dec 22, 2024

Hey, I might be able to provide more info, since I'm seeing the same error, which is preventing me from updating or installing any mods.

Running 1.5.1 installed via winget on windows 11.

I forked one of the mods arbitrarily to try to investigate, and added -v -Xlinker --verbose to the end of the @compilerOptions to get some output:

clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
Target: i686-w64-windows-gnu
Thread model: posix
InstalledDir: c:/Program Files/Windhawk/Compiler/bin
 "C:/Program Files/Windhawk/Compiler/bin/clang-18.exe" -cc1 -triple i686-w64-windows-gnu -emit-obj -dumpdir "C:\\ProgramData\\Windhawk\\Engine\\Mods\\32\\local@explorer-details-better-file-sizes-fork_1.4.6_511309.dll-" -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name mod.wh.cpp -mrelocation-model static -mframe-pointer=none -fmath-errno -ffp-contract=on -fno-rounding-math -mconstructor-aliases -mms-bitfields -fno-use-init-array -target-cpu pentium4 -tune-cpu generic -debugger-tuning=gdb "-fdebug-compilation-dir=c:/Program Files/Windhawk/Compiler" -v "-fcoverage-compilation-dir=c:/Program Files/Windhawk/Compiler" -resource-dir "C:/Program Files/Windhawk/Compiler/lib/clang/18" -include windhawk_api.h -D UNICODE -D _UNICODE -D WINVER=0x0A00 -D _WIN32_WINNT=0x0A00 -D _WIN32_IE=0x0A00 -D NTDDI_VERSION=0x0A000008 -D __USE_MINGW_ANSI_STDIO=0 -D WH_MOD -D "WH_MOD_ID=L\"local@explorer-details-better-file-sizes-fork\"" -D "WH_MOD_VERSION=L\"1.4.6\"" -internal-isystem "c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/include/c++/v1" -internal-isystem "c:/Program Files/Windhawk/Compiler/include/c++/v1" -internal-isystem "C:/Program Files/Windhawk/Compiler/lib/clang/18/include" -internal-isystem "c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/include" -internal-isystem "c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/usr/include" -internal-isystem "c:/Program Files/Windhawk/Compiler/include" -O2 -std=c++23 -fdeprecated-macro -ferror-limit 19 -fno-use-cxa-atexit -fgnuc-version=4.2.1 -fno-implicit-modules -fskip-odr-check-in-gmf -fcxx-exceptions -fexceptions -exception-model=dwarf -vectorize-loops -vectorize-slp -faddrsig -o C:/Users/kemus/AppData/Local/Temp/mod-43488b.o -x c++ "c:\\ProgramData\\Windhawk\\EditorWorkspace\\mod.wh.cpp"
clang -cc1 version 18.1.8 based upon LLVM 18.1.8 default target i686-w64-mingw32
ignoring nonexistent directory "c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/include/c++/v1"
ignoring nonexistent directory "c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/include"
ignoring nonexistent directory "c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/usr/include"
#include "..." search starts here:
#include <...> search starts here:
 c:/Program Files/Windhawk/Compiler/include/c++/v1
 C:/Program Files/Windhawk/Compiler/lib/clang/18/include
 c:/Program Files/Windhawk/Compiler/include
End of search list.
 "c:/Program Files/Windhawk/Compiler/bin/ld.lld" -m i386pe --shared -Bdynamic -e _DllMainCRTStartup@12 --enable-auto-image-base -o "C:\\ProgramData\\Windhawk\\Engine\\Mods\\32\\local@explorer-details-better-file-sizes-fork_1.4.6_511309.dll" "c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/dllcrt2.o" "c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/crtbegin.o" "-Lc:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib" "-Lc:/Program Files/Windhawk/Compiler/i686-w64-mingw32/mingw/lib" "-Lc:/Program Files/Windhawk/Compiler/lib" "-LC:/Program Files/Windhawk/Compiler/lib/clang/18/lib/windows" "c:\\Program Files\\Windhawk\\Engine\\1.5.1\\32\\windhawk.lib" C:/Users/kemus/AppData/Local/Temp/mod-43488b.o -lole32 -loleaut32 -lpropsys --verbose -lc++ -lmingw32 "C:/Program Files/Windhawk/Compiler/lib/clang/18/lib/windows/libclang_rt.builtins-i386.a" -lunwind -lmoldname -lmingwex -lmsvcrt -ladvapi32 -lshell32 -luser32 -lkernel32 -lmingw32 "C:/Program Files/Windhawk/Compiler/lib/clang/18/lib/windows/libclang_rt.builtins-i386.a" -lunwind -lmoldname -lmingwex -lmsvcrt -lkernel32 "c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/crtend.o"
clang-18: error: linker command failed due to signal (use -v to see invocation)

That didn't give me much info, other than the fact that it was failing after running ld.lld, so I decided to go to a git bash terminal and run the ld.lld command myself:

kemus@regnar MINGW64 /c/ProgramData/Windhawk/EditorWorkspace (master)
$ "c:/Program Files/Windhawk/Compiler/bin/ld.lld" -m i386pe --shared -Bdynamic -e _DllMainCRTStartup@12 --enable-auto-image-base -o "C:\\ProgramData\\Windhawk\\Engine\\Mods\\32\\local@explorer-details-better-file-sizes-fork_1.4.9999_496167.dll" "c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/dllcrt2.o" "c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/crtbegin.o" "-Lc:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib" "-Lc:/Program Files/Windhawk/Compiler/i686-w64-mingw32/mingw/lib" "-Lc:/Program Files/Windhawk/Compiler/lib" "-LC:/Program Files/Windhawk/Compiler/lib/clang/18/lib/windows" "c:\\Program Files\\Windhawk\\Engine\\1.5.1\\32\\windhawk.lib" C:/Users/kemus/AppData/Local/Temp/mod-565451.o -lole32 -loleaut32 -lpropsys --verbose -lc++ -lmingw32 "C:/Program Files/Windhawk/Compiler/lib/clang/18/lib/windows/libclang_rt.builtins-i386.a" -lunwind -lmoldname -lmingwex -lmsvcrt -ladvapi32 -lshell32 -luser32 -lkernel32 -lmingw32 "C:/Program Files/Windhawk/Compiler/lib/clang/18/lib/windows/libclang_rt.builtins-i386.a" -lunwind -lmoldname -lmingwex -lmsvcrt -lkernel32 "c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/crtend.o"
lld-link -lldmingw -entry:DllMainCRTStartup@12 -out:C:\ProgramData\Windhawk\Engine\Mods\32\local@explorer-details-better-file-sizes-fork_1.4.9999_496167.dll -debug:dwarf -build-id -WX:no -dll -verbose -opt:noref -demangle -auto-import -runtime-pseudo-reloc -opt:noicf -machine:x86 -alternatename:__image_base__=___ImageBase -libpath:c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib -libpath:c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/mingw/lib -libpath:c:/Program Files/Windhawk/Compiler/lib -libpath:C:/Program Files/Windhawk/Compiler/lib/clang/18/lib/windows c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/dllcrt2.o c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/crtbegin.o c:\Program Files\Windhawk\Engine\1.5.1\32\windhawk.lib C:/Users/kemus/AppData/Local/Temp/mod-565451.o c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/libole32.a c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/liboleaut32.a c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/libpropsys.a c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/libc++.dll.a c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/libmingw32.a C:/Program Files/Windhawk/Compiler/lib/clang/18/lib/windows/libclang_rt.builtins-i386.a c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/libunwind.dll.a c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/libmoldname.a c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/libmingwex.a c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/libmsvcrt.a c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/libadvapi32.a c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/libshell32.a c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/libuser32.a c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/libkernel32.a c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/libmingw32.a C:/Program Files/Windhawk/Compiler/lib/clang/18/lib/windows/libclang_rt.builtins-i386.a c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/libunwind.dll.a c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/libmoldname.a c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/libmingwex.a c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/libmsvcrt.a c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/libkernel32.a c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/crtend.o
ld.lld: Reading c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/dllcrt2.o
ld.lld: Reading c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/crtbegin.o
ld.lld: Reading c:\Program Files\Windhawk\Engine\1.5.1\32\windhawk.lib
ld.lld: error: could not open 'C:/Users/kemus/AppData/Local/Temp/mod-565451.o': No such file or directory
ld.lld: Reading c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/libole32.a
ld.lld: Reading c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/liboleaut32.a
ld.lld: Reading c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/libpropsys.a
ld.lld: Reading c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/libc++.dll.a
ld.lld: Reading c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/libmingw32.a
ld.lld: Reading C:/Program Files/Windhawk/Compiler/lib/clang/18/lib/windows/libclang_rt.builtins-i386.a
ld.lld: Reading c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/libunwind.dll.a
ld.lld: Reading c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/libmoldname.a
ld.lld: Reading c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/libmingwex.a
ld.lld: Reading c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/libmsvcrt.a
ld.lld: Reading c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/libadvapi32.a
ld.lld: Reading c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/libshell32.a
ld.lld: Reading c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/libuser32.a
ld.lld: Reading c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/libkernel32.a
ld.lld: Reading c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/crtend.o
ld.lld: Reading libmingw32.a(lib32_libmingw32_a-gccmain.o)
ld.lld: Loaded libmingw32.a(lib32_libmingw32_a-gccmain.o) for ___main
ld.lld: Reading libmingw32.a(lib32_libmingw32_a-natstart.o)
ld.lld: Loaded libmingw32.a(lib32_libmingw32_a-natstart.o) for ___native_dllmain_reason
ld.lld: Reading libmingw32.a(lib32_libmingw32_a-tlssup.o)
ld.lld: Loaded libmingw32.a(lib32_libmingw32_a-tlssup.o) for ___dyn_tls_init_callback
ld.lld: Reading libmingw32.a(lib32_libmingw32_a-cinitexe.o)
ld.lld: Loaded libmingw32.a(lib32_libmingw32_a-cinitexe.o) for ___xi_a
ld.lld: Reading libmingw32.a(lib32_libmingw32_a-mingw_helpers.o)
ld.lld: Loaded libmingw32.a(lib32_libmingw32_a-mingw_helpers.o) for ___mingw_app_type
ld.lld: Reading libmingw32.a(lib32_libmingw32_a-pseudo-reloc.o)
ld.lld: Loaded libmingw32.a(lib32_libmingw32_a-pseudo-reloc.o) for __pei386_runtime_relocator
ld.lld: Reading libmingwex.a(lib32_libmingwex_a-mingw_cfguard_support.o)
ld.lld: Loaded libmingwex.a(lib32_libmingwex_a-mingw_cfguard_support.o) for ___guard_check_icall_fptr
ld.lld: Reading libmingwex.a(lib32_libmingwex_a-dllentry.o)
ld.lld: Loaded libmingwex.a(lib32_libmingwex_a-dllentry.o) for _DllEntryPoint@12
ld.lld: Reading libmingwex.a(lib32_libmingwex_a-dllmain.o)
ld.lld: Loaded libmingwex.a(lib32_libmingwex_a-dllmain.o) for _DllMain@12
ld.lld: Reading msvcrt.dll
ld.lld: Reading msvcrt.dll
ld.lld: Reading libmsvcrt.a(lib32_libmsvcrt_common_a-onexit_table.o)
ld.lld: Loaded libmsvcrt.a(lib32_libmsvcrt_common_a-onexit_table.o) for __initialize_onexit_table
ld.lld: Reading KERNEL32.dll
ld.lld: Reading libmingw32.a(lib32_libmingw32_a-tlsthrd.o)
ld.lld: Loaded libmingw32.a(lib32_libmingw32_a-tlsthrd.o) for ___mingw_TLScallback
ld.lld: Reading libmingw32.a(lib32_libmingw32_a-tlsmcrt.o)
ld.lld: Loaded libmingw32.a(lib32_libmingw32_a-tlsmcrt.o) for __CRT_MT
ld.lld: Reading libmingw32.a(lib32_libmingw32_a-pesect.o)
ld.lld: Loaded libmingw32.a(lib32_libmingw32_a-pesect.o) for ___mingw_GetSectionCount
ld.lld: Reading libclang_rt.builtins-i386.a(chkstk.S.obj)
ld.lld: Loaded libclang_rt.builtins-i386.a(chkstk.S.obj) for __alloca
ld.lld: Reading KERNEL32.dll
ld.lld: Reading KERNEL32.dll
ld.lld: Reading msvcrt.dll
ld.lld: Reading KERNEL32.dll
ld.lld: Reading libmsvcrt.a(lib32_libmsvcrt_common_a-acrt_iob_func.o)
ld.lld: Loaded libmsvcrt.a(lib32_libmsvcrt_common_a-acrt_iob_func.o) for ___acrt_iob_func
ld.lld: Reading msvcrt.dll
ld.lld: Reading msvcrt.dll
ld.lld: Reading msvcrt.dll
ld.lld: Reading libmingw32.a(lib32_libmingw32_a-pseudo-reloc-list.o)
ld.lld: Loaded libmingw32.a(lib32_libmingw32_a-pseudo-reloc-list.o) for ___RUNTIME_PSEUDO_RELOC_LIST_END__
ld.lld: Reading msvcrt.dll
ld.lld: Reading msvcrt.dll
ld.lld: Reading msvcrt.dll
ld.lld: Reading msvcrt.dll
ld.lld: Reading msvcrt.dll
ld.lld: Reading KERNEL32.dll
ld.lld: Reading KERNEL32.dll
ld.lld: Reading KERNEL32.dll
ld.lld: Reading libmingw32.a(lib32_libmingw32_a-CRT_fp10.o)
ld.lld: Loaded libmingw32.a(lib32_libmingw32_a-CRT_fp10.o) for __fpreset
ld.lld: Reading KERNEL32.dll
ld.lld: Reading KERNEL32.dll
ld.lld: Reading msvcrt.dll
ld.lld: Reading msvcrt.dll
ld.lld: Reading libmsvcrt.a(msvcrt.dll)
ld.lld: Loaded libmsvcrt.a(msvcrt.dll) for ___iob_func
ld.lld: Reading msvcrt.dll

That produced a ton more output, but the interesting part is toward the top: ld.lld: error: could not open 'C:/Users/kemus/AppData/Local/Temp/mod-565451.o': No such file or directory -- okay, so there's some Temp file not being made from the clang-18 call, so let's try running that:

kemus@regnar MINGW64 /c/ProgramData/Windhawk/EditorWorkspace (master)
$ "C:/Program Files/Windhawk/Compiler/bin/clang-18.exe" -cc1 -triple i686-w64-windows-gnu -emit-obj -dumpdir "C:\\ProgramData\\Windhawk\\Engine\\Mods\\32\\local@explorer-details-better-file-sizes-fork_1.4.9999_496167.dll-" -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name mod.wh.cpp -mrelocation-model static -mframe-pointer=none -fmath-errno -ffp-contract=on -fno-rounding-math -mconstructor-aliases -mms-bitfields -fno-use-init-array -target-cpu pentium4 -tune-cpu generic -debugger-tuning=gdb "-fdebug-compilation-dir=c:/Program Files/Windhawk/Compiler" -v "-fcoverage-compilation-dir=c:/Program Files/Windhawk/Compiler" -resource-dir "C:/Program Files/Windhawk/Compiler/lib/clang/18" -include windhawk_api.h -D UNICODE -D _UNICODE -D WINVER=0x0A00 -D _WIN32_WINNT=0x0A00 -D _WIN32_IE=0x0A00 -D NTDDI_VERSION=0x0A000008 -D __USE_MINGW_ANSI_STDIO=0 -D WH_MOD -D "WH_MOD_ID=L\"local@explorer-details-better-file-sizes-fork\"" -D "WH_MOD_VERSION=L\"1.4.9999\"" -internal-isystem "c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/include/c++/v1" -internal-isystem "c:/Program Files/Windhawk/Compiler/include/c++/v1" -internal-isystem "C:/Program Files/Windhawk/Compiler/lib/clang/18/include" -internal-isystem "c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/include" -internal-isystem "c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/usr/include" -internal-isystem "c:/Program Files/Windhawk/Compiler/include" -O2 -std=c++23 -fdeprecated-macro -ferror-limit 19 -fno-use-cxa-atexit -fgnuc-version=4.2.1 -fno-implicit-modules -fskip-odr-check-in-gmf -fcxx-exceptions -fexceptions -exception-model=dwarf -vectorize-loops -vectorize-slp -faddrsig -o C:/Users/kemus/AppData/Local/Temp/mod-565451.o -x c++ "c:\\ProgramData\\Windhawk\\EditorWorkspace\\mod.wh.cpp"
clang -cc1 version 18.1.8 based upon LLVM 18.1.8 default target i686-w64-mingw32
ignoring nonexistent directory "c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/include/c++/v1"
ignoring nonexistent directory "c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/include"
ignoring nonexistent directory "c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/usr/include"
#include "..." search starts here:
#include <...> search starts here:
 c:/Program Files/Windhawk/Compiler/include/c++/v1
 C:/Program Files/Windhawk/Compiler/lib/clang/18/include
 c:/Program Files/Windhawk/Compiler/include
End of search list.

Seems to finish without errors, but interestingly enough, it actually created the file:

kemus@regnar MINGW64 /c/ProgramData/Windhawk/EditorWorkspace (master)
$ file "C:/Users/kemus/AppData/Local/Temp/mod-565451.o"
C:/Users/kemus/AppData/Local/Temp/mod-565451.o: Intel 80386 COFF object file, not stripped, 465 sections, symbol offset=0xddfb, 1567 symbols, 1st section name ".text"

And if I run the ld.lld command again:

kemus@regnar MINGW64 /c/ProgramData/Windhawk/EditorWorkspace (master)
$  "c:/Program Files/Windhawk/Compiler/bin/ld.lld" -m i386pe --shared -Bdynamic -e _DllMainCRTStartup@12 --enable-auto-image-base -o "C:\\ProgramData\\Windhawk\\Engine\\Mods\\32\\local@explorer-details-better-file-sizes-fork_1.4.9999_496167.dll" "c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/dllcrt2.o" "c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/crtbegin.o" "-Lc:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib" "-Lc:/Program Files/Windhawk/Compiler/i686-w64-mingw32/mingw/lib" "-Lc:/Program Files/Windhawk/Compiler/lib" "-LC:/Program Files/Windhawk/Compiler/lib/clang/18/lib/windows" "c:\\Program Files\\Windhawk\\Engine\\1.5.1\\32\\windhawk.lib" C:/Users/kemus/AppData/Local/Temp/mod-565451.o -lole32 -loleaut32 -lpropsys --verbose -lc++ -lmingw32 "C:/Program Files/Windhawk/Compiler/lib/clang/18/lib/windows/libclang_rt.builtins-i386.a" -lunwind -lmoldname -lmingwex -lmsvcrt -ladvapi32 -lshell32 -luser32 -lkernel32 -lmingw32 "C:/Program Files/Windhawk/Compiler/lib/clang/18/lib/windows/libclang_rt.builtins-i386.a" -lunwind -lmoldname -lmingwex -lmsvcrt -lkernel32 "c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/crtend.o"
lld-link -lldmingw -entry:DllMainCRTStartup@12 -out:C:\ProgramData\Windhawk\Engine\Mods\32\local@explorer-details-better-file-sizes-fork_1.4.9999_496167.dll -debug:dwarf -build-id -WX:no -dll -verbose -opt:noref -demangle -auto-import -runtime-pseudo-reloc -opt:noicf -machine:x86 -alternatename:__image_base__=___ImageBase -libpath:c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib -libpath:c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/mingw/lib -libpath:c:/Program Files/Windhawk/Compiler/lib -libpath:C:/Program Files/Windhawk/Compiler/lib/clang/18/lib/windows c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/dllcrt2.o c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/crtbegin.o c:\Program Files\Windhawk\Engine\1.5.1\32\windhawk.lib C:/Users/kemus/AppData/Local/Temp/mod-565451.o c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/libole32.a c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/liboleaut32.a c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/libpropsys.a c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/libc++.dll.a c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/libmingw32.a C:/Program Files/Windhawk/Compiler/lib/clang/18/lib/windows/libclang_rt.builtins-i386.a c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/libunwind.dll.a c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/libmoldname.a c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/libmingwex.a c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/libmsvcrt.a c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/libadvapi32.a c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/libshell32.a c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/libuser32.a c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/libkernel32.a c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/libmingw32.a C:/Program Files/Windhawk/Compiler/lib/clang/18/lib/windows/libclang_rt.builtins-i386.a c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/libunwind.dll.a c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/libmoldname.a c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/libmingwex.a c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/libmsvcrt.a c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/libkernel32.a c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/crtend.o
ld.lld: Reading c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/dllcrt2.o
ld.lld: Reading c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/crtbegin.o
ld.lld: Reading c:\Program Files\Windhawk\Engine\1.5.1\32\windhawk.lib
ld.lld: Reading C:/Users/kemus/AppData/Local/Temp/mod-565451.o
ld.lld: Directives: C:/Users/kemus/AppData/Local/Temp/mod-565451.o:  -exclude-symbols:_ZTW18g_cacheShellFolder -exclude-symbols:_ZTW23g_cacheShellFolderSizes -exclude-symbols:__clang_call_terminate -exclude-symbols:_ZTW21g_inCDefItem_GetValue -exclude-symbols:_ZTW29g_inCFSFolder_CompareIDs_Hook -exclude-symbols:_ZTW35g_cacheShellFolderLastUsedTickCount
ld.lld: Reading c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/libole32.a
ld.lld: Reading c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/liboleaut32.a
ld.lld: Reading c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/libpropsys.a
ld.lld: Reading c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/libc++.dll.a
ld.lld: Reading c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/libmingw32.a
ld.lld: Reading C:/Program Files/Windhawk/Compiler/lib/clang/18/lib/windows/libclang_rt.builtins-i386.a
ld.lld: Reading c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/libunwind.dll.a
ld.lld: Reading c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/libmoldname.a
ld.lld: Reading c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/libmingwex.a
ld.lld: Reading c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/libmsvcrt.a
ld.lld: Reading c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/libadvapi32.a
ld.lld: Reading c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/libshell32.a
ld.lld: Reading c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/libuser32.a
ld.lld: Reading c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/libkernel32.a
ld.lld: Reading c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/crtend.o
ld.lld: Reading windhawk.dll
ld.lld: Reading windhawk.dll
ld.lld: Reading windhawk.dll
ld.lld: Reading windhawk.dll
ld.lld: Reading windhawk.dll
ld.lld: Reading windhawk.dll
ld.lld: Reading windhawk.dll
ld.lld: Reading ole32.dll
ld.lld: Reading ole32.dll
ld.lld: Reading ole32.dll
ld.lld: Reading ole32.dll
ld.lld: Reading OLEAUT32.dll
ld.lld: Reading OLEAUT32.dll
ld.lld: Reading PROPSYS.dll
ld.lld: Reading PROPSYS.dll
ld.lld: Reading libc++.dll
ld.lld: Reading libc++.dll
ld.lld: Reading libc++.dll
ld.lld: Reading libc++.dll
ld.lld: Reading libc++.dll
ld.lld: Reading libc++.dll
ld.lld: Reading libc++.dll
ld.lld: Reading libc++.dll
ld.lld: Reading libc++.dll
ld.lld: Reading libc++.dll
ld.lld: Reading libc++.dll
ld.lld: Reading libc++.dll
ld.lld: Reading libc++.dll
ld.lld: Reading libc++.dll
ld.lld: Reading libc++.dll
ld.lld: Reading libc++.dll
ld.lld: Reading libmingw32.a(lib32_libmingw32_a-gccmain.o)
ld.lld: Loaded libmingw32.a(lib32_libmingw32_a-gccmain.o) for ___main
ld.lld: Reading libmingw32.a(lib32_libmingw32_a-natstart.o)
ld.lld: Loaded libmingw32.a(lib32_libmingw32_a-natstart.o) for ___native_dllmain_reason
ld.lld: Reading libmingw32.a(lib32_libmingw32_a-tlssup.o)
ld.lld: Loaded libmingw32.a(lib32_libmingw32_a-tlssup.o) for __tls_index
ld.lld: Reading libmingw32.a(lib32_libmingw32_a-cinitexe.o)
ld.lld: Loaded libmingw32.a(lib32_libmingw32_a-cinitexe.o) for ___xi_a
ld.lld: Reading libmingw32.a(lib32_libmingw32_a-mingw_helpers.o)
ld.lld: Loaded libmingw32.a(lib32_libmingw32_a-mingw_helpers.o) for ___mingw_app_type
ld.lld: Reading libmingw32.a(lib32_libmingw32_a-pseudo-reloc.o)
ld.lld: Loaded libmingw32.a(lib32_libmingw32_a-pseudo-reloc.o) for __pei386_runtime_relocator
ld.lld: Reading libmingw32.a(lib32_libmingw32_a-cxa_thread_atexit.o)
ld.lld: Loaded libmingw32.a(lib32_libmingw32_a-cxa_thread_atexit.o) for ___cxa_thread_atexit
ld.lld: Reading libmingw32.a(lib32_libmingw32_a-tls_atexit.o)
ld.lld: Loaded libmingw32.a(lib32_libmingw32_a-tls_atexit.o) for ___dso_handle
ld.lld: Reading libunwind.dll
ld.lld: Reading libmingwex.a(lib32_libmingwex_a-mingw_cfguard_support.o)
ld.lld: Loaded libmingwex.a(lib32_libmingwex_a-mingw_cfguard_support.o) for ___guard_check_icall_fptr
ld.lld: Reading libmingwex.a(lib32_libmingwex_a-dllentry.o)
ld.lld: Loaded libmingwex.a(lib32_libmingwex_a-dllentry.o) for _DllEntryPoint@12
ld.lld: Reading msvcrt.dll
ld.lld: Reading msvcrt.dll
ld.lld: Reading msvcrt.dll
ld.lld: Reading msvcrt.dll
ld.lld: Reading msvcrt.dll
ld.lld: Reading msvcrt.dll
ld.lld: Reading msvcrt.dll
ld.lld: Reading msvcrt.dll
ld.lld: Reading msvcrt.dll
ld.lld: Reading msvcrt.dll
ld.lld: Reading msvcrt.dll
ld.lld: Reading libmsvcrt.a(lib32_libmsvcrt_common_a-onexit_table.o)
ld.lld: Loaded libmsvcrt.a(lib32_libmsvcrt_common_a-onexit_table.o) for __initialize_onexit_table
ld.lld: Reading SHELL32.dll
ld.lld: Reading SHELL32.dll
ld.lld: Reading SHELL32.dll
ld.lld: Reading SHELL32.dll
ld.lld: Reading SHELL32.dll
ld.lld: Reading SHELL32.dll
ld.lld: Reading USER32.dll
ld.lld: Reading USER32.dll
ld.lld: Reading USER32.dll
ld.lld: Reading USER32.dll
ld.lld: Reading USER32.dll
ld.lld: Reading USER32.dll
ld.lld: Reading USER32.dll
ld.lld: Reading USER32.dll
ld.lld: Reading USER32.dll
ld.lld: Reading USER32.dll
ld.lld: Reading USER32.dll
ld.lld: Reading USER32.dll
ld.lld: Reading USER32.dll
ld.lld: Reading USER32.dll
ld.lld: Reading USER32.dll
ld.lld: Reading USER32.dll
ld.lld: Reading USER32.dll
ld.lld: Reading USER32.dll
ld.lld: Reading KERNEL32.dll
ld.lld: Reading KERNEL32.dll
ld.lld: Reading KERNEL32.dll
ld.lld: Reading KERNEL32.dll
ld.lld: Reading KERNEL32.dll
ld.lld: Reading KERNEL32.dll
ld.lld: Reading KERNEL32.dll
ld.lld: Reading KERNEL32.dll
ld.lld: Reading KERNEL32.dll
ld.lld: Reading KERNEL32.dll
ld.lld: Reading KERNEL32.dll
ld.lld: Reading KERNEL32.dll
ld.lld: Reading KERNEL32.dll
ld.lld: Reading KERNEL32.dll
ld.lld: Reading KERNEL32.dll
ld.lld: Reading KERNEL32.dll
ld.lld: Reading KERNEL32.dll
ld.lld: Reading KERNEL32.dll
ld.lld: Reading KERNEL32.dll
ld.lld: Reading libmingw32.a(lib32_libmingw32_a-tlsthrd.o)
ld.lld: Loaded libmingw32.a(lib32_libmingw32_a-tlsthrd.o) for ___mingw_TLScallback
ld.lld: Reading libmingw32.a(lib32_libmingw32_a-tlsmcrt.o)
ld.lld: Loaded libmingw32.a(lib32_libmingw32_a-tlsmcrt.o) for __CRT_MT
ld.lld: Reading libmingw32.a(lib32_libmingw32_a-pesect.o)
ld.lld: Loaded libmingw32.a(lib32_libmingw32_a-pesect.o) for ___mingw_GetSectionCount
ld.lld: Reading libclang_rt.builtins-i386.a(chkstk.S.obj)
ld.lld: Loaded libclang_rt.builtins-i386.a(chkstk.S.obj) for __alloca
ld.lld: Reading KERNEL32.dll
ld.lld: Reading KERNEL32.dll
ld.lld: Reading libmsvcrt.a(lib32_libmsvcrt_common_a-acrt_iob_func.o)
ld.lld: Loaded libmsvcrt.a(lib32_libmsvcrt_common_a-acrt_iob_func.o) for ___acrt_iob_func
ld.lld: Reading msvcrt.dll
ld.lld: Reading msvcrt.dll
ld.lld: Reading msvcrt.dll
ld.lld: Reading libmingw32.a(lib32_libmingw32_a-pseudo-reloc-list.o)
ld.lld: Loaded libmingw32.a(lib32_libmingw32_a-pseudo-reloc-list.o) for ___RUNTIME_PSEUDO_RELOC_LIST_END__
ld.lld: Reading msvcrt.dll
ld.lld: Reading KERNEL32.dll
ld.lld: Reading KERNEL32.dll
ld.lld: Reading msvcrt.dll
ld.lld: Reading KERNEL32.dll
ld.lld: Reading KERNEL32.dll
ld.lld: Reading KERNEL32.dll
ld.lld: Reading KERNEL32.dll
ld.lld: Reading libmsvcrt.a(lib32_libmsvcrt_common_a-register_tls_atexit.o)
ld.lld: Loaded libmsvcrt.a(lib32_libmsvcrt_common_a-register_tls_atexit.o) for __register_thread_local_exe_atexit_callback
ld.lld: Reading msvcrt.dll
ld.lld: Reading KERNEL32.dll
ld.lld: Reading KERNEL32.dll
ld.lld: Reading msvcrt.dll
ld.lld: Reading msvcrt.dll
ld.lld: Reading msvcrt.dll
ld.lld: Reading libmingw32.a(lib32_libmingw32_a-CRT_fp10.o)
ld.lld: Loaded libmingw32.a(lib32_libmingw32_a-CRT_fp10.o) for __fpreset
ld.lld: Reading msvcrt.dll
ld.lld: Reading msvcrt.dll
ld.lld: Reading libmsvcrt.a(msvcrt.dll)
ld.lld: Loaded libmsvcrt.a(msvcrt.dll) for ___iob_func
ld.lld: Reading msvcrt.dll
ld.lld: Reading libmingwex.a(lib32_libmingwex_a-mingw_cfguard_loadcfg.o)
ld.lld: Loaded libmingwex.a(lib32_libmingwex_a-mingw_cfguard_loadcfg.o) for __load_config_used
ld.lld: Loading lazy __imp___ZTVSt12length_error from c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/libc++.dll.a for automatic import      
ld.lld: Loading lazy __imp___ZTVN10__cxxabiv120__si_class_type_infoE from c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/libc++.dll.a for automatic import
ld.lld: Loading lazy __imp___ZTVN10__cxxabiv117__class_type_infoE from c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/libc++.dll.a for automatic import
ld.lld: Reading libc++.dll
ld.lld: Reading libc++.dll
ld.lld: Reading libc++.dll
ld.lld: Automatically importing __ZTVSt12length_error from libc++.dll
ld.lld: Replacing .refptr.__ZTVSt12length_error with __imp___ZTVSt12length_error
ld.lld: Automatically importing __ZTVN10__cxxabiv120__si_class_type_infoE from libc++.dll
ld.lld: Automatically importing __ZTVN10__cxxabiv117__class_type_infoE from libc++.dll
ld.lld: Discarded .refptr.__ZTVSt12length_error
ld.lld: Processing section .CRT$XCA -> .CRT
ld.lld:   lib32_libmingw32_a-cinitexe.o, SectionID: 6
ld.lld: Processing section .CRT$XCZ -> .CRT
ld.lld:   lib32_libmingw32_a-cinitexe.o, SectionID: 7
ld.lld: Processing section .CRT$XDA -> .CRT
ld.lld:   lib32_libmingw32_a-tlssup.o, SectionID: 9
ld.lld: Processing section .CRT$XDZ -> .CRT
ld.lld:   lib32_libmingw32_a-tlssup.o, SectionID: 10
ld.lld: Processing section .CRT$XIA -> .CRT
ld.lld:   lib32_libmingw32_a-cinitexe.o, SectionID: 4
ld.lld: Processing section .CRT$XIAA -> .CRT
ld.lld:   c:/Program Files/Windhawk/Compiler/i686-w64-mingw32/lib/dllcrt2.o, SectionID: 4
ld.lld: Processing section .CRT$XIZ -> .CRT
ld.lld:   lib32_libmingw32_a-cinitexe.o, SectionID: 5
ld.lld: Processing section .CRT$XLA -> .CRT
ld.lld:   lib32_libmingw32_a-tlssup.o, SectionID: 6
ld.lld: Processing section .CRT$XLB -> .CRT
ld.lld:   lib32_libmingw32_a-tls_atexit.o, SectionID: 5
ld.lld: Processing section .CRT$XLC -> .CRT
ld.lld:   lib32_libmingw32_a-tlssup.o, SectionID: 11
ld.lld: Processing section .CRT$XLD -> .CRT
ld.lld:   lib32_libmingw32_a-tlssup.o, SectionID: 12
ld.lld: Processing section .CRT$XLZ -> .CRT
ld.lld:   lib32_libmingw32_a-tlssup.o, SectionID: 7
ld.lld: Writing 10 runtime pseudo relocations

Then it succeeds. So something is different between when I run this on msys2 and when it's run by your vscode -- vscode is just silently failing to create the file, even though the argument is supposed to be mandatory.

@m417z
Copy link
Member

m417z commented Dec 22, 2024

@kemus Windhawk is running as administrator, maybe it's related to that and to file permissions or something. If you try to run these commands from an elevated cmd, do they succeed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working info-needed Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants