FS#17828 - [llvm] 2.6-6 reports incorrect architecture on i686

Attached to Project: Community Packages
Opened by Arvid (BeholdMyGlory) - Wednesday, 13 January 2010, 22:15 GMT
Last edited by Evangelos Foutras (foutrelis) - Thursday, 14 January 2010, 00:03 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Evangelos Foutras (foutrelis)
Architecture i686
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Running 'llvm-config --host-target' from the community package outputs
'x86_64-unknown-linux-gnu', even on i686. That LLVM reports the incorrect
architecture causes for example the D runtime library Tango to fail
miserably when trying to compile the library for the D compiler for
LLVM, LDC, since LDC tries to build for x86_64. This makes it completely
useless for my purposes.

The expected output of 'llvm-config --host-target' is something along
the lines of 'i686-pc-linux-gnu' (which is outputed from the config.guess
script of LDC.)

Additional info:
* package version: 2.6-6


Steps to reproduce:
1) Install LLVM from [community]
2) Compile and install LDC using the attached PKGBUILD.ldc
3) Try to compile libtango from SVN for LDC using the attached PKGBUILD.libtango.
Here it will output a mountain of errors when running the build script,
build/bin/linux/bob
This task depends upon

Closed by  Evangelos Foutras (foutrelis)
Thursday, 14 January 2010, 00:03 GMT
Reason for closing:  Fixed
Additional comments about closing:  Should be fixed in llvm 2.6-6.1. Reopen if the issue persists.
Comment by Ionut Biru (wonder) - Wednesday, 13 January 2010, 23:01 GMT
did you forgot to run with linux32 makechrootpkg ?
Comment by Evangelos Foutras (foutrelis) - Wednesday, 13 January 2010, 23:13 GMT
You're absolutely right, Ionut. On my local machine I have aliases for building i686 and x86_64 packages which use linux32/64 as appropriate. However when I built llvm on pkgbuild.com I forgot about this. :(

I will fix this immediately!

Loading...