Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 351083 - sys-devel/llvm-2.8-r2 has problems generating floating point code for ARM (missing fpu type directive)
Summary: sys-devel/llvm-2.8-r2 has problems generating floating point code for ARM (mi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: ARM Linux
: High normal (vote)
Assignee: Bernard Cafarelli
URL: http://llvm.org/bugs/show_bug.cgi?id=...
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks:
 
Reported: 2011-01-08 04:42 UTC by Siarhei Siamashka
Modified: 2011-04-15 08:44 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
llvm-2.8-arm-fpu.patch (llvm-2.8-arm-fpu.patch,756 bytes, patch)
2011-01-08 04:46 UTC, Siarhei Siamashka
Details | Diff
llvm-28. build log with FEATURES=test (llvm-2.8-build-with-test.txt,14.71 KB, text/plain)
2011-02-03 13:50 UTC, Siarhei Siamashka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Siarhei Siamashka 2011-01-08 04:42:30 UTC
The details are reported in upstream bugtracker: http://llvm.org/bugs/show_bug.cgi?id=8931

Reproducible: Always
Comment 1 Siarhei Siamashka 2011-01-08 04:46:57 UTC
Created attachment 259252 [details, diff]
llvm-2.8-arm-fpu.patch

I'm using the following patch for llvm-2.8 in my local overlay.
Comment 2 Siarhei Siamashka 2011-02-03 13:45:06 UTC
Tried to ping upstream today: http://lists.cs.uiuc.edu/pipermail/llvmdev/2011-February/037848.html

Looks like they know about the issue and are going to fix it eventually.

What would be the best plan for gentoo? Does it make sense to wait for the next LLVM/clang release before considering ~arm keywording?
Comment 3 Siarhei Siamashka 2011-02-03 13:50:42 UTC
Created attachment 261403 [details]
llvm-28. build log with FEATURES=test

There are 5 unexpected failures, but most of these look like an attempt to run the test for the wrong arch.

Overall, clang-2.8 is quite usable as a C compiler on ARM.
Comment 4 Bernard Cafarelli gentoo-dev 2011-02-07 09:14:57 UTC
Thanks for the report and patch! Apparently your poke worked well upstream, there is a commit including this fix and some others :) 
http://llvm.org/viewvc/llvm-project?view=rev&revision=124995

Can you test with this patch and see how it goes on arm? If everything is fine I can add it and turn this in an ~arm keyword request
Comment 5 Siarhei Siamashka 2011-02-08 19:53:36 UTC
Just had a quick look. The changes from this commit do not apply cleanly to llvm-2.8

Also I don't see the addition of ".fpu" directive anywhere, so it is likely not to help for this particular problem. I'll try to use live ebuild a bit later to see what is the current status of ARM support in LLVM trunk.

Thanks for notifying me about this commit.
Comment 6 Siarhei Siamashka 2011-02-26 15:34:48 UTC
Tried to poke them again: http://lists.cs.uiuc.edu/pipermail/llvmdev/2011-February/038344.html

Hopefully it will be more successful this time :)
Comment 7 Bernard Cafarelli gentoo-dev 2011-03-28 13:05:26 UTC
Apparently it was, judging from the following mails and the matching commits.

I had a few patch hunks failing when testing these, so this will probably be fixed in Gentoo tree with 2.9 (due in a few days). Leaving the bug open until 2.9 is in tree and you can confirm it fixes it :)
Comment 8 Bernard Cafarelli gentoo-dev 2011-04-07 09:37:37 UTC
2.9 is in tree and should work fine, don't hesitate to reopen if needed!

Keywording request is still ongoing in bug #320221
Comment 9 Siarhei Siamashka 2011-04-15 08:44:21 UTC
OK, thanks. This particular problem indeed should be fixed in 2.9

However clang 2.9 seems to be currently broken on ARM (fails to link anything). I'll try to see what can be done and open another bug.