Could also try building with clang its available in EPEL.
milton@milton:~/temp/cgminer$ clang --version
clang version 3.8.0 (tags/RELEASE_380/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
buildlog here:
http://dpaste.com/3Z7962Zgot it going with some old gear here:
cgminer version 4.9.2 - Started: [2016-07-16 12:24:27.338]
--------------------------------------------------------------------------------
(5s):37.26G (1m):37.85G (5m):24.31G (15m):11.01G (avg):37.62Gh/s
A:2000 R:0 HW:2 WU:525.1/m
Connected to stratum.ckpool.org diff 1K with stratum as user 1PKN98VN2z5gwSGZvGKS2bj8aADZBkyhkZ.0
Block: 4454ec80... Diff:213G Started: [12:25:55.222] Best share: 1.71K
--------------------------------------------------------------------------------
[U]SB management [P]ool management [S]ettings [D]isplay options [Q]uit
0: ANU 0 : 250MHz | 3.301G / 1.926Gh/s WU:26.9/m
1: ANU 1 : 250MHz | 3.030G / 2.105Gh/s WU:29.4/m
2: ANU 2 : 250MHz | 1.461G / 2.270Gh/s WU:31.7/m
3: ANU 3 : 250MHz | 2.177G / 1.678Gh/s WU:23.5/m
4: ANU 4 : 250MHz | 2.614G / 2.174Gh/s WU:30.4/m
5: ANU 5 : 250MHz | 1.917G / 1.912Gh/s WU:26.7/m
6: ANU 6 : 250MHz | 2.579G / 2.022Gh/s WU:28.3/m
7: ANU 7 : 250MHz | 1.733G / 1.555Gh/s WU:21.7/m
8: ANU 8 : 250MHz | 950.8M / 1.926Gh/s WU:26.9/m
9: ANU 9 : 250MHz | 3.413G / 1.857Gh/s WU:26.0/m
10: ANU 10 : 250MHz | 2.224G / 2.174Gh/s WU:30.4/m
11: ANU 11 : 250MHz | 2.550G / 2.022Gh/s WU:28.3/m
12: ANU 12 : 250MHz | 1.348G / 1.857Gh/s WU:26.0/m
13: ANU 13 : 250MHz | 5.615G / 2.201Gh/s WU:30.8/m
14: ANU 14 : 250MHz | 2.573G / 2.009Gh/s WU:28.1/m
15: ANU 15 : 250MHz | 2.950G / 1.775Gh/s WU:24.8/m
16: ANU 16 : 250MHz | 2.231G / 1.981Gh/s WU:27.7/m
17: ANU 17 : 250MHz | 2.598G / 1.981Gh/s WU:27.7/m
18: ANU 18 : 250MHz | 2.181G / 2.174Gh/s WU:30.0/m
--------------------------------------------------------------------------------
[2016-07-16 12:24:05.797] Started cgminer 4.9.2
[2016-07-16 12:24:26.338] Probing for an alive pool
[2016-07-16 12:24:26.912] Pool 0 difficulty changed to 1000
[2016-07-16 12:24:27.182] Pool 0 message: Authorised, welcome to solo.ckpool.org 1PKN98VN2z5gwSGZvGKS2bj8aADZBkyhkZ!
[2016-07-16 12:24:27.339] Network diff set to 213G
[2016-07-16 12:25:55.222] Stratum from pool 0 detected new block at height 420910
[2016-07-16 12:27:14.942] Pool 0 message: New best ever share for user: 1100.238928
[2016-07-16 12:27:14.942] Stratum reconnect requested from pool 0 to stratum.ckpool.org:443
[2016-07-16 12:27:15.873] Pool 0 difficulty changed to 1000
[2016-07-16 12:27:16.100] Stratum from pool 0 requested work restart
[2016-07-16 12:27:16.101] Pool 0 message: Authorised, welcome to solo.ckpool.org 1PKN98VN2z5gwSGZvGKS2bj8aADZBkyhkZ!
[2016-07-16 12:27:50.230] Accepted 400ca180 Diff 1.02K/1000 ANU 13
[2016-07-16 12:28:58.395] Pool 0 message: New best ever share for user: 1713.233558
[2016-07-16 12:28:58.395] Accepted 264091fc Diff 1.71K/1000 ANU 4