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?
|