Bug 729308
Summary: | clang can't compile basic C++ programs | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Tamás Szelei <szelei.t> |
Component: | llvm | Assignee: | Michel Lind <michel> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 16 | CC: | bos, dmalcolm, dtardon, jakub, jerome.benoit, jistone, joew60, mariuszs, michel, stiell |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | llvm-2.9-10.fc16 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-04-13 21:35:32 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Tamás Szelei
2011-08-09 13:23:07 UTC
I guess http://llvm.org/bugs/show_bug.cgi?id=9472 needs to be backported. This bug exist also in llvm 2.9 in f16. llvm-2.8-15.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/llvm-2.8-15.fc15 llvm-2.9-8.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/llvm-2.9-8.fc16 I am getting the following error with the updated package: clang++ -c -v test.cc clang version 2.9 (tags/RELEASE_29/final) Target: x86_64-redhat-linux-gnu Thread model: posix "/usr/bin/clang" -cc1 -triple x86_64-redhat-linux-gnu -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name test.cc -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version 2.21.53.0.1 -momit-leaf-frame-pointer -v -resource-dir /usr/bin/../lib/clang/2.9 -ferror-limit 19 -fmessage-length 80 -fcxx-exceptions -fexceptions -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o test.o -x c++ test.cc clang -cc1 version 2.9 based upon llvm 2.9 hosted on x86_64-redhat-linux-gnu ignoring nonexistent directory "/usr/include/c++/4.6.2" ignoring nonexistent directory "/usr/include/c++/4.6.2/x86_64-redhat-linux/" ignoring nonexistent directory "/usr/include/c++/4.6.2/backward" ignoring nonexistent directory "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/include" #include "..." search starts here: #include <...> search starts here: /usr/local/include /usr/bin/../lib/clang/2.9/include /usr/include End of search list. test.cc:1:10: fatal error: 'iostream' file not found #include <iostream> ^ 1 error generated. I have gcc-4.6.3-2.fc16.x86_64 and llvm-2.9-8.fc16.x86_64 . When I rebuild llvm locally (i.e., with gcc 4.6.3), it finds the include, but I get the original error again. Please retest with llvm-2.9-9, It works here. If it works, please give some points to https://admin.fedoraproject.org/updates/llvm-2.9-9.fc16 Package llvm-2.8-15.fc15: * should fix your issue, * was pushed to the Fedora 15 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing llvm-2.8-15.fc15' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-4571/llvm-2.8-15.fc15 then log in and leave karma (feedback). (In reply to comment #1) > I guess http://llvm.org/bugs/show_bug.cgi?id=9472 needs to be backported. > This bug exist also in llvm 2.9 in f16. That is necessary but insufficient; after backporting that patch some of the errors remain. I suspect __decltype also need to be backported; searching for its implementation on the 3.0 branch now. llvm-2.9-10.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/llvm-2.9-10.fc16 Fixed in 2.9-10.fc16. I'm switching the affected release to f16, since the codebase is significantly different to 2.8 that reworking the patch is not a trivial undertaking (though I'd welcome such a patch) Package llvm-2.9-10.fc16: * should fix your issue, * was pushed to the Fedora 16 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing llvm-2.9-10.fc16' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-5423/llvm-2.9-10.fc16 then log in and leave karma (feedback). llvm-2.9-10.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report. I have this problem with clang-3.4-6.fc20.x86_64.rpm https://github.com/milgner/k290-fnkeyctl/issues/5 |