[llvm-bugs] [Bug 41589] New: malformed or corrupted AST file

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Apr 24 13:36:51 PDT 2019


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

            Bug ID: 41589
           Summary: malformed or corrupted AST file
           Product: clang
           Version: 8.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: marin.baron.pro at gmail.com
                CC: blitzrakete at gmail.com, dgregor at apple.com,
                    erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
                    richard-llvm at metafoo.co.uk

Created attachment 21821
  --> https://bugs.llvm.org/attachment.cgi?id=21821&action=edit
Logs

Step 1 - build with gcc
CXX=gcc cmake && make

Step 2 - build with clang (at the same output)
CXX=clang cmake && make

I have the impression that when precompiled headers of gcc are given to clang,
clang panics.
I don't really know if :
  - it needs bug report
  - it's to build system to clean after compiler change...
  - the compiler should check the precompiled headers and exit more elegantly.

~  find /usr/ -name climits
/usr/lib/gcc/x86_64-pc-linux-gnu/7.4.1/include/c++/climits
/usr/lib/gcc/x86_64-pc-linux-gnu/7.4.1/include/c++/tr1/climits
/usr/include/c++/8.3.0/climits
/usr/include/c++/8.3.0/tr1/climits
/usr/include/boost/compatibility/cpp_c_headers/climits

~  gcc --version
gcc (GCC) 8.3.0
Copyright © 2018 Free Software Foundation, Inc.
Ce logiciel est un logiciel libre; voir les sources pour les conditions de
copie.  Il n'y a
AUCUNE GARANTIE, pas même pour la COMMERCIALISATION ni L'ADÉQUATION À UNE TÂCHE
PARTICULIÈRE.

~  clang --version
clang version 8.0.0 (tags/RELEASE_800/final)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin

-- 
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/20190424/7fd1c13b/attachment.html>


More information about the llvm-bugs mailing list