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#32026 - [llvm] packaging lacks x32 support

Attached to Project: Arch Linux
Opened by Fantix King (fantix) - Wednesday, 17 October 2012, 08:34 GMT
Last edited by Evangelos Foutras (foutrelis) - Wednesday, 24 October 2012, 10:40 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Evangelos Foutras (foutrelis)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No


The package "llvm" under x86_64 contains two header files: llvm-Config-llvm-config.h and llvm-Config-config.h. They work well with package "lib32-llvm" (32-bit) but not with "libx32-llvm" (x32 ABI).

Reason is that, __WORDSIZE for x86_64-x32 is 32, the same as it is for i686. But x32 has different header files delivered in AUR package "libx32-llvm".

A simple solution is offered in attachment. The fix should have no harm for normal "llvm" and "lib32-llvm" users at all, but could help "libx32-llvm" users a lot from hacking.

Steps to reproduce:
* Uninstall lib32-llvm
* Install libx32-llvm from AUR
* Write a simple .c to include llvm-config.h and compile with -mx32 (gcc-multilib-x32)
* Expect failure: Cannot find llvm-config-32.h
This task depends upon

Closed by  Evangelos Foutras (foutrelis)
Wednesday, 24 October 2012, 10:40 GMT
Reason for closing:  Won't implement
Additional comments about closing:  Same reasoning as  FS#32176 .
Comment by Fantix King (fantix) - Tuesday, 23 October 2012, 07:29 GMT
The same thing for package "curl" - shall I create a new task or just leaving comments here please?

Patch attached.
Comment by Greg (dolby) - Tuesday, 23 October 2012, 07:41 GMT
Please make seperate reports.
Comment by Evangelos Foutras (foutrelis) - Tuesday, 23 October 2012, 07:42 GMT
Yes, please create a new task for curl.