<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - error: multiple overloads of '__va_list_tag' instantiate to the same signature 'void ()'"
   href="https://llvm.org/bugs/show_bug.cgi?id=27890">27890</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>error: multiple overloads of '__va_list_tag' instantiate to the same signature 'void ()'
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Modules
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>biancacristinacristescu@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dgregor@apple.com, llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>The error is seen when trying to build llvm self-hosted with modules.

cd /home/biancacr/clang_build_/obj_with_modules/utils/TableGen &&
/home/biancacr/clang_build_/inst/bin/clang++   -DGTEST_HAS_RTTI=0 -D_GNU_SOURCE
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -fPIC
-fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings
-Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long
-Wcovered-switch-default -Wnon-virtual-dtor -Wdelete-non-virtual-dtor
-Werror=date-time -std=c++11 -fmodules -Xclang
-fmodules-local-submodule-visibility -fmodules-cache-path=module.cache
-ffunction-sections -fdata-sections
-I/home/biancacr/clang_build_/obj_with_modules/utils/TableGen
-I/home/biancacr/clang_build_/src/utils/TableGen
-I/home/biancacr/clang_build_/obj_with_modules/include
-I/home/biancacr/clang_build_/src/include     -fno-exceptions -fno-rtti -o
CMakeFiles/obj.llvm-tblgen.dir/TableGen.cpp.o -c
/home/biancacr/clang_build_/src/utils/TableGen/TableGen.cpp
error: multiple overloads of '__va_list_tag' instantiate to the same signature
'void ()'
/home/biancacr/clang_build_/src/utils/TableGen/TableGen.cpp:52:14: note: in
instantiation of function template specialization 'llvm::cl::values<int>'
requested here
         cl::values(clEnumValN(PrintRecords, "print-records",
             ^
note: previous definition is here
1 error generated.
utils/TableGen/CMakeFiles/obj.llvm-tblgen.dir/build.make:675: recipe for target
'utils/TableGen/CMakeFiles/obj.llvm-tblgen.dir/TableGen.cpp.o' failed
make[2]: *** [utils/TableGen/CMakeFiles/obj.llvm-tblgen.dir/TableGen.cpp.o]
Error 1
make[2]: Leaving directory '/home/biancacr/clang_build_/obj_with_modules'
CMakeFiles/Makefile2:482: recipe for target
'utils/TableGen/CMakeFiles/obj.llvm-tblgen.dir/all' failed
make[1]: *** [utils/TableGen/CMakeFiles/obj.llvm-tblgen.dir/all] Error 2
make[1]: Leaving directory '/home/biancacr/clang_build_/obj_with_modules'
Makefile:136: recipe for target 'all' failed
make: *** [all] Error 2

Presummably we cannot merge properly the __builtin_va_list.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>