Arch Linux

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

FS#29951 - [llvm] Produces broken host triple configuration in a multilib environment under 32 bits

Attached to Project: Arch Linux
Opened by Laurent Carlier (lordheavy) - Saturday, 19 May 2012, 22:19 GMT
Last edited by Evangelos Foutras (foutrelis) - Saturday, 26 May 2012, 01:58 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Evangelos Foutras (foutrelis)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


When llvm is built, the file llvm-config.h produced harcode the host triple.

There is no problems when llvm is used to built binaries in a pure 64 bits or 32 bits environment,
but this design broke badly when building 32 bits binaries under 64 bits (here lib32-mesa).


The easier (and proper) is to use a similar workaround as provided by fedora:


This task depends upon

Closed by  Evangelos Foutras (foutrelis)
Saturday, 26 May 2012, 01:58 GMT
Reason for closing:  Fixed
Comment by Laurent Carlier (lordheavy) - Sunday, 20 May 2012, 08:33 GMT
Potential fixed PKGBUILD (only the llvm part is provided).
Comment by Evangelos Foutras (foutrelis) - Tuesday, 22 May 2012, 16:58 GMT
Will config-32.h and llvm-config-32.h be provided by lib32-llvm?
Comment by Laurent Carlier (lordheavy) - Tuesday, 22 May 2012, 17:07 GMT
Of course, and i already provide this in my mesa-git repo.

I just wait llvm to be "fixed" to upload the corresponding lib32-llvm.
Comment by Evangelos Foutras (foutrelis) - Tuesday, 22 May 2012, 20:44 GMT
llvm 3.1-1 in [testing] includes the fix.

Let me know if it works correctly.