pcp
[Top] [All Lists]

Re: pmmgr build failure on 32-bit Fedora release 20 [was 17]

To: "Frank Ch. Eigler" <fche@xxxxxxxxxx>
Subject: Re: pmmgr build failure on 32-bit Fedora release 20 [was 17]
From: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date: Tue, 11 Mar 2014 19:22:32 +1100
Cc: pcp@xxxxxxxxxxx
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <20140306020106.GA6053@xxxxxxxxxx>
References: <53101471.4000200@xxxxxxxxxxxxxxxx> <y0mzjlbwj2e.fsf@xxxxxxxx> <y0m4n3jw52a.fsf@xxxxxxxx> <5311157B.9010004@xxxxxxxxxxxxxxxx> <20140228231759.GA18123@xxxxxxxxxx> <5316AD5C.3030408@xxxxxxxxxxxxxxxx> <20140305150207.GB27666@xxxxxxxxxx> <5317BE58.6020603@xxxxxxxxxxxxxxxx> <20140306020106.GA6053@xxxxxxxxxx>
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0
On 06/03/14 13:01, Frank Ch. Eigler wrote:

Thanks.  For better or for worse, F17 has already lost upstream
support, as has F18 for that matter.  F19 and F20 are supported
(and have libatomic, so the other build fix would kick in).


OK ... my build fails on 32-bit F20!

I have libatomic by the looks of it ...

kenj@vm23:~/src/pcp$ locate libatomic
/usr/lib/libatomic.so.1
/usr/lib/libatomic.so.1.0.0
/usr/lib/gcc/i686-redhat-linux/4.8.2/libatomic.so

But it is not included in the link

kenj@vm23:~/src/pcp/pcp-3.9.1/src/pmmgr$ make
g++ -fPIC -fno-strict-aliasing -D_GNU_SOURCE -fstack-protector-all -D_FORTIFY_SOURCE=2 -fPIE -Wall -O2 -g -DPCP_DEBUG -DPCP_VERSION=\"3.9.1\" -I../../src/include -I../../src/include/pcp -o pmmgr -Wl,-z,relro -Wall -L../../src/libpcp/src -L../../src/libpcp_pmda/src -rdynamic -pie -Wl,-z,relro -Wl,-z,now pmmgr.o -lpcp -lpthread
pmmgr.o: In function `__exchange_and_add':
/usr/include/c++/4.8.2/ext/atomicity.h:49: undefined reference to `__atomic_fetch_add_4'

Adding -latomic to the line above lets the ld complete correctly.

So this is a bog standard 32-bit F20 iso installed on a 64-bit AMD CPU machine.

And ...
kenj@vm23:~/src/pcp/pcp-3.9.1/src/pmmgr$ rpm --eval %_target_cpu
i686

What now, Frank?

<Prev in Thread] Current Thread [Next in Thread>