[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


https://bugs.llvm.org/show_bug.cgi?id=44414

            Bug ID: 44414
           Summary: clang-objc-fuzzer fails to compile on Visual Studio
                    2019
           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
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ö <martin at martin.st>
Date:   Sat Dec 28 23:38:41 2019 +0200
    Revert "[COFF] Make the autogenerated .weak.<name>.default symbols static"


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

-- 
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