[llvm-bugs] [Bug 44414] New: clang-objc-fuzzer fails to compile on Visual Studio 2019

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Dec 31 01:53:51 PST 2019


            Bug ID: 44414
           Summary: clang-objc-fuzzer fails to compile on Visual Studio
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Tooling
          Assignee: unassignedclangbugs at nondot.org
          Reporter: cesare.di.mauro at gmail.com
                CC: llvm-bugs at lists.llvm.org

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
Python 3.8 x86
MSYS2 x64 (instead of GnuWin32 tools)
cmake -DLLVM_ENABLE_PROJECTS=clang -G "Visual Studio 16 2019" -A x64 -Thost=x64
"ALL_BUILD" project

commit bc5b7217dceecd3eec69593026a9e38dfbfd6908 (HEAD -> master, origin/master,
Author: Martin Storsjö <martin at martin.st>
Date:   Sat Dec 28 23:38:41 2019 +0200
    Revert "[COFF] Make the autogenerated .weak.<name>.default symbols static"

Microsoft Visual Studio Community 2019
Versione 16.3.8
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
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
IncrediBuild effectively reduces compilation and development times by up to

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

Visual Studio Tools per CMake   1.0

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20191231/564f791a/attachment.html>

More information about the llvm-bugs mailing list