Bug 914713 - llvm-devel missing cmake modules
Summary: llvm-devel missing cmake modules
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: llvm
Version: 19
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Jan Včelák
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-22 15:43 UTC by pha012231
Modified: 2014-01-07 09:44 UTC (History)
8 users (show)

Fixed In Version: llvm-3.3-4.fc19
Clone Of:
Environment:
Last Closed: 2013-12-27 05:57:45 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description pha012231 2013-02-22 15:43:12 UTC
Description of problem:

I'm having issues with the LLVM/Clang packages.  It
seems these packages are missing files that I can only obtain when building
LLVM/Clang myself.  I'd rather use Fedora's packages, and so I am wondering if
these files can be included in either an existing or a new devel package.

The files I am referring to are the LLVM cmake modules -  applications that
build custom LLVM passes require the LLVM cmake modules during the build
process.

How reproducible:

For llvm-3.2, the files I'm referring to exist in:
llvm-3.2.src/cmake/modules/*.cmake

And after building LLVM/Cmake like this:
wget http://llvm.org/releases/3.2/llvm-3.2.src.tar.gz
wget http://llvm.org/releases/3.2/clang-3.2.src.tar.gz
tar xaf llvm-3.2.src.tar.gz
tar xaf clang-3.2.src.tar.gz
cp -R clang-3.2.src llvm-3.2.src/tools/clang
cd llvm-3.2.src/
mkdir build
cd build/
cmake -DCMAKE_INSTALL_PREFIX=/home/karsten/.local ../.
make
make install

the files are then installed to:
/home/karsten/.local/share/llvm/cmake/*.cmake

Neither the llvm or llvm-devel packages contain these files.

Version-Release number of selected component (if applicable):
3.2-1.fc19

Actual results:
LLVM CMake modules are not included in llvm-devel package.

Expected results:
LLVM CMake modules are included in llvm-devel package.

Additional info:
Is there an existing package that I am missing that contains these files? Otherwise, does it make sense to include these files in the llvm-devel package?

See this Debian bug report:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=701153

Comment 1 Fedora Admin XMLRPC Client 2013-02-27 15:11:46 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 2 Fedora End Of Life 2013-04-03 13:35:33 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 19 development cycle.
Changing version to '19'.

(As we did not run this process for some time, it could affect also pre-Fedora 19 development
cycle bugs. We are very sorry. It will help us with cleanup during Fedora 19 End Of Life. Thank you.)

More information and reason for this action is here:
https://fedoraproject.org/wiki/BugZappers/HouseKeeping/Fedora19

Comment 3 Michael Schwendt 2013-08-11 11:42:50 UTC
Fedora's llvm build does not use cmake but "configure":
http://pkgs.fedoraproject.org/cgit/llvm.git/plain/llvm.spec

IMO, it would make more sense to submit a bug report upstream and request that the CMake support files are installed always.

Comment 4 pha012231 2013-08-30 03:56:32 UTC
(In reply to Michael Schwendt from comment #3)
> Fedora's llvm build does not use cmake but "configure":
> http://pkgs.fedoraproject.org/cgit/llvm.git/plain/llvm.spec
> 

OK, but I don't see how the files that get *bundled* in the llvm package depend on the tool used to *build* the package.

> IMO, it would make more sense to submit a bug report upstream and request
> that the CMake support files are installed always.

Where should I report this?

Comment 5 Jan Včelák 2013-11-13 23:00:11 UTC
I was trying to switch LLVM build from autotools to cmake to allow separate building of Clang and LLDB. But it just didn't work. It required a lot of patching and there were still some problems. I gave up because it was demanding. 
And upstream documentation prefers to build the tools withing LLVM tree.

If upstream improves cmake support, it might be possible in future. But not now.

Comment 6 pha012231 2013-12-09 16:57:31 UTC
Can you please explain why your LLVM build needs to change to cmake? You should be able to continue to build LLVM with autotools as before. All I am asking is that some files in the LLVM source distribution get included in the rpm. I think all you have to do is change you spec file, not the build process.

I can see where the confusion comes in, since the example in the original post says you need to reproduce it using cmake. I'll soon post an example to reproduce it with autotools.

Comment 7 pha012231 2013-12-09 18:17:24 UTC
wget http://llvm.org/releases/3.2/llvm-3.2.src.tar.gz
tar xaf llvm-3.2.src.tar.gz

Now I ask the the files in llvm-3.2.src/cmake/modules/*.cmake are included in llvm-devel or some other rpm.

Actually, there is no need to build llvm at all to obtain the files I am asking to be included in the rpm. Although one could build llvm that using autotools like this:

cd llvm-3.2.src/
./configure
make

The files I am asking for will still exist in llvm-3.2.src/cmake/modules/*.cmake.

Does this make sense, or am I missing something?

Comment 8 pha012231 2013-12-09 18:21:53 UTC
In case its helpful, debian solved this by placing those files (llvm-3.2.src/cmake/modules/*.cmake) in a new llvm-toolchain package. See here:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=701153

Comment 9 Jan Včelák 2013-12-09 22:00:58 UTC
OK, I will take a look at it.

Comment 10 Fedora Update System 2013-12-20 18:54:33 UTC
llvm-3.3-4.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/llvm-3.3-4.fc19

Comment 11 Fedora Update System 2013-12-20 18:55:53 UTC
llvm-3.3-4.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/llvm-3.3-4.fc20

Comment 12 Fedora Update System 2013-12-22 05:31:01 UTC
Package llvm-3.3-4.fc19:
* should fix your issue,
* was pushed to the Fedora 19 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-4.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-23760/llvm-3.3-4.fc19
then log in and leave karma (feedback).

Comment 13 Fedora Update System 2013-12-27 05:57:45 UTC
llvm-3.3-4.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 14 Fedora Update System 2014-01-07 09:44:27 UTC
llvm-3.3-4.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.


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