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

Details

Description:
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).

See https://bugs.freedesktop.org/show_bug.cgi?id=44466
See https://bugs.archlinux.org/task/27645

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

See http://pkgs.fedoraproject.org/gitweb/?p=llvm.git;a=tree;hb=HEAD

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.

Loading...