Bug 949489

Summary: Clang's ASAN feature is broken in Fedora
Product: [Fedora] Fedora Reporter: Dhiru Kholia <dkholia>
Component: llvmAssignee: Jan Včelák <jv+fedora>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 20CC: ajax, andrew, bos, bressers, david.m.highley, dmalcolm, fweimer, hcorg, jv+fedora, michel, nathan0n5ire, petersen, scottt.tw, ycollette.nospam
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: llvm-3.3-3.fc19 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1309329 (view as bug list) Environment:
Last Closed: 2013-12-14 03:47:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
updated SPEC file
none
newly updated SPEC file none

Description Dhiru Kholia 2013-04-08 09:40:20 UTC
Description of problem:

Clang's ASAN feature is broken in F18.

✗ cat main.c 
int main() {}

✗ clang -fsanitize=address main.c
/usr/bin/ld: cannot find /usr/bin/../lib/clang/3.2/lib/linux/libclang_rt.asan-x86_64.a: No such file or directory
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Version-Release number of selected component (if applicable):

✗ clang -v
clang version 3.2 (tags/RELEASE_32/final)
Target: x86_64-redhat-linux-gnu
Thread model: posix
  
Additional info:

To fix this problem, build and ship "compiler-rt" component along with existing LLVM / Clang package(s).

Other distributions have already fixed this problem.

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=674155

https://bugs.archlinux.org/task/29983

Comment 1 Andrew Hutchings 2013-05-03 13:17:22 UTC
*** Bug 957587 has been marked as a duplicate of this bug. ***

Comment 2 Dhiru Kholia 2013-07-01 05:28:09 UTC
Hi,

Is there any progress on this bug? 

Are we going to ship a "broken" compiler again? :-(

Comment 3 Dhiru Kholia 2013-07-03 11:24:12 UTC
Update: Clang's ASAN feature is still broken in Fedora 19.

Comment 4 Dhiru Kholia 2013-07-03 13:51:59 UTC
Created attachment 768253 [details]
updated SPEC file

Comment 5 Dhiru Kholia 2013-07-03 13:54:21 UTC
Hi Adam,

I have attached an updated SPEC file to fix the problem.

It now builds LLVM 3.3 release (instead of building pre-releases) and ASAN feature now works great.

Please test and let me know how it goes.

Comment 6 ycollet 2013-09-10 14:25:11 UTC
Seems that ASAN still missing in fedora 20 ...

YC

Comment 7 Dhiru Kholia 2013-10-03 11:52:19 UTC
Created attachment 807045 [details]
newly updated SPEC file

Comment 8 Dhiru Kholia 2013-10-03 11:54:20 UTC
Attached SPEC file seems to work. See http://koji.fedoraproject.org/koji/taskinfo?taskID=6019218

Comment 9 Jan Včelák 2013-11-07 12:24:14 UTC
I would really love to see this working.

Any update on this bug? (And other LLVM bugs? Just a few features provided by LLVM work in Fedora unfortunately.)

Comment 10 ycollet 2013-11-07 12:32:43 UTC
When you compile clang from sources, everything is working fine (tested with the git repo). It's a little bit long to compile, but all the plugins works.

Comment 11 Dhiru Kholia 2013-11-09 15:01:37 UTC
I have submitted fixed (and tested!) .spec files multiple times already. I simply do not understand why it is taking so long (close to a year now!) to fix this trivial bug.

Please allow someone else to maintain / co-maintain this package. I really don't want to use the "unresponsive maintainer" resolution path.

Comment 12 Jan Včelák 2013-11-09 16:23:59 UTC
I wrote to Adam a few days ago and we talked about it. I'm looking into this and several other LLVM bugs. I will try to help Adam to resolve this bug ASAP.

Comment 13 David Highley 2013-11-17 17:49:06 UTC
*** Bug 1026101 has been marked as a duplicate of this bug. ***

Comment 14 Fedora Update System 2013-11-21 22:47:43 UTC
llvm-3.3-2.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/llvm-3.3-2.fc20

Comment 15 Fedora Update System 2013-11-24 03:52:21 UTC
Package llvm-3.3-2.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing llvm-3.3-2.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-22023/llvm-3.3-2.fc20
then log in and leave karma (feedback).

Comment 16 David Highley 2013-11-24 20:14:42 UTC
Confirming that it is working with the update. Will there be an update for Fedora 19 as well?

Comment 17 Jan Včelák 2013-11-25 00:40:42 UTC
(In reply to David Highley from comment #16)
> Confirming that it is working with the update. Will there be an update for
> Fedora 19 as well?

I'm not sure if update in F19 is safe enough. There were quite a lot of changes in the package. I want to be sure that I didn't break anything.

Comment 18 Fedora Update System 2013-11-26 14:25:30 UTC
llvm-3.3-2.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/llvm-3.3-2.fc19

Comment 19 Fedora Update System 2013-11-30 08:45:09 UTC
llvm-3.3-3.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/llvm-3.3-3.fc19

Comment 20 Fedora Update System 2013-12-14 03:47:33 UTC
llvm-3.3-2.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 21 Fedora Update System 2013-12-16 23:06:22 UTC
llvm-3.3-3.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.