clang-objc-fuzzer fails to compile on Visual Studio 2019
| Bugzilla Link | 44414 |
| Resolution | FIXED |
| Resolved on | Apr 14, 2020 06:00 |
| Version | trunk |
| OS | Windows NT |
| CC | @DavidGoldman,@gribozavr,@RKSimon,@morehouse |
| Fixed by commit(s) | rG440b445fff84 |
Extended Description
clang-objc-fuzzer fails to compile on Windows 10 Pro x64 (latest update) and Visual Studio 2019 (latest update):
110>DummyClangFuzzer.obj : error LNK2019: riferimento al simbolo esterno LLVMFuzzerInitialize non risolto nella funzione main 110>D:\llvm-project\build\Debug\bin\clang-objc-fuzzer.exe : fatal error LNK1120: 1 esterni non risolti 110>Compilazione progetto "clang-objc-fuzzer.vcxproj" NON COMPLETATA. ========== Compilazione: 104 completate, 1 non riuscite, 418 aggiornate, 28 ignorate ==========
The error messages are in Italian, but the rough translation is that clang-objc-fuzzer.vcxproj failed to compile because the external symbol LLVMFuzzerInitialize found on main was unresolved (at link time).
To compile I've followed this guide: http://clang.llvm.org/get_started.html with: Python 3.8 x86 MSYS2 x64 (instead of GnuWin32 tools) cmake -DLLVM_ENABLE_PROJECTS=clang -G "Visual Studio 16 2019" -A x64 -Thost=x64 ..\llvm "ALL_BUILD" project
LLVM REPO VERSION:
commit bc5b7217dceecd3eec69593026a9e38dfbfd6908 (HEAD -> master, origin/master, origin/HEAD)
Author: Martin Storsjö [email protected]
Date: Sat Dec 28 23:38:41 2019 +0200
Revert "[COFF] Make the autogenerated .weak.
VISUAL STUDIO 2019 VERSION: Microsoft Visual Studio Community 2019 Versione 16.3.8 VisualStudio.16.Release/16.3.8+29503.13 Microsoft .NET Framework Versione 4.8.03752
Edizione installata: Community
Visual C++ 2019 00435-60000-00000-AA439 Microsoft Visual C++ 2019
ASP.NET and Web Tools 2019 16.3.286.43615 ASP.NET and Web Tools 2019
Estensione IntelliCode 1.0 Informazioni dettagliate sull'estensione IntelliCode di Visual Studio
Gestione pacchetti NuGet 5.3.1 Gestione pacchetti NuGet in Visual Studio. Per altre informazioni su NuGet, visitare il sito Web https://docs.nuget.org/
IncrediBuild Build Acceleration 1.5.0.10 IncrediBuild effectively reduces compilation and development times by up to 90%.
Microsoft MI-Based Debugger 1.0 Provides support for connecting Visual Studio to MI compatible debuggers
Pacchetto di Microsoft Visual Studio VC 1.0 Pacchetto di Microsoft Visual Studio VC
Pacchetto host dell'adattatore di debug di Visual Studio Code 1.0 Livello di interoperabilità per l'hosting degli adattatori di debug di Visual Studio Code in Visual Studio
Procedure guidate di Microsoft Visual C++ 1.0 Procedure guidate di Microsoft Visual C++
ProjectServicesPackage Extension 1.0 ProjectServicesPackage Visual Studio Extension Detailed Info
Test Adapter for Boost.Test 1.0 Enables Visual Studio's testing tools with unit tests written for Boost.Test. The use terms and Third Party Notices are available in the extension installation directory.
Visual C++ per lo sviluppo di applicazioni Linux 1.0.9.29424
Visual Studio Tools per CMake 1.0
Fixed in rG440b445fff84
I've pinged the https://reviews.llvm.org/D69171 review to see why LLVMFuzzerInitialize was removed from ClangObjectiveCFuzzer.cpp when it was copied from ClangFuzzer.cpp.