Bug 22817 - Clang can't find standard includes
Summary: Clang can't find standard includes
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Thierry Vignaud
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-22 12:58 CET by Juan Magallon
Modified: 2018-03-23 07:13 CET (History)
1 user (show)

See Also:
Source RPM: clang-6.0.0-3.mga7.src.rpm
CVE:
Status comment:


Attachments

Description Juan Magallon 2018-03-22 12:58:03 CET
Clang cant find normal includes from c++, it misses the libstdc++ include paths:

pandora:~/tmp> clang++ -v -o s sort.cc
clang version 6.0.0 (tags/RELEASE_600/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
 "/usr/bin/clang-6.0" -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -discard-value-names -main-file-name sort.cc -mrelocation-model static -mthread-model posix -mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64 -dwarf-column-info -debugger-tuning=gdb -v -resource-dir /usr/lib64/clang/6.0.0 -internal-isystem /usr/local/include -internal-isystem /usr/lib64/clang/6.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /home/magallon/tmp -ferror-limit 19 -fmessage-length 80 -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/magallon/sort-72edd4.o -x c++ sort.cc
clang -cc1 version 6.0.0 based upon LLVM 6.0.0 default target x86_64-unknown-linux-gnu
ignoring nonexistent directory "/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /usr/lib64/clang/6.0.0/include
 /usr/include
End of search list.
sort.cc:2:10: fatal error: 'string' file not found
#include <string>
         ^~~~~~~~
1 error generated.
Comment 1 Marja Van Waes 2018-03-22 17:33:33 CET
Assigning to the registered maintainer.

Summary: Clang cn't find standard includes => Clang can't find standard includes
Assignee: bugsquad => thierry.vignaud
CC: (none) => marja11

Thierry Vignaud 2018-03-22 18:05:25 CET

Status: NEW => ASSIGNED

Comment 2 Thierry Vignaud 2018-03-23 07:13:02 CET
Fixed in 6.0.0-5.mga7

Status: ASSIGNED => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.