pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: llvm on i386?



On Thu, 29 Dec 2016 20:47:09 -0500
Greg Troxel <gdt%lexort.com@localhost> wrote:

> 
> On netbsd-7 i386, with the newly-minted 2016Q4 and everything up to
> date, building llvm from pkgsrc fails:
> 
>   -- Performing Test HAVE_CXX_ATOMICS_WITHOUT_LIB
>   -- Performing Test HAVE_CXX_ATOMICS_WITHOUT_LIB - Success
>   -- Performing Test HAVE_CXX_ATOMICS64_WITHOUT_LIB
>   -- Performing Test HAVE_CXX_ATOMICS64_WITHOUT_LIB - Failed
>   -- Looking for __atomic_load_8 in atomic
>   -- Looking for __atomic_load_8 in atomic - not found
>   CMake Error at cmake/modules/CheckAtomic.cmake:74 (message):
>     Host compiler appears to require libatomic, but cannot find it.
>   Call Stack (most recent call first):
>     cmake/config-ix.cmake:317 (include)
>     CMakeLists.txt:461 (include)
> 
> Is this a known issue, a sign of my system having something wrong, or
> something else?  Surely llvm works on i386, but I'm not clear on 64-bit
> atomic ops on the i386 arch.
> 
> (llvm 3.9.0 built fine with netbsd-7 amd64 and 2016Q4.)
> 
> (I realize there is clang/llvm in base with MKLLVM, but it seems like the
> pkgsrc entries should also work.)
> 

Hi,

You'll need to pick up this patch and apply it to the aforementioned
package(s):

cvs rdiff -u -r1.14 -r1.15 pkgsrc/lang/libLLVM/Makefile

(with condolences to owners of pre pentium-era machines)

Cheers,
-Tobias


Home | Main Index | Thread Index | Old Index